Skip to content

Commit

Permalink
Merge pull request #209 from tstromberg/make
Browse files Browse the repository at this point in the history
Add privacy-aware version of the IR rules
  • Loading branch information
tstromberg authored Feb 24, 2023
2 parents 6dba4e0 + 063eb16 commit e58cbbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ out/odk-policy.conf: out/osqtool-$(ARCH) $(wildcard policy/*.sql)
mv out/.odk-policy.conf out/odk-policy.conf

out/odk-incident-response.conf: out/osqtool-$(ARCH) $(wildcard incident_response/*.sql)
./out/osqtool-$(ARCH) --verify pack incident_response/ > out/.odk-incident_response.conf
mv out/.odk-incident_response.conf out/odk-incident_response.conf
./out/osqtool-$(ARCH) --verify pack incident_response/ > out/.odk-incident-response.conf
mv out/.odk-incident-response.conf out/odk-incident_response.conf

packs: out/odk-detection.conf out/odk-policy.conf out/odk-incident-response.conf
# A privacy-aware variation of IR rules
out/odk-incident-response-privacy.conf: out/osqtool-$(ARCH) $(wildcard incident_response/*.sql)
./out/osqtool-$(ARCH) --exclude-tags=disabled,disabled-privacy pack incident_response/ > out/.odk-incident-response-privacy.conf
mv out/.odk-incident-response-privacy.conf out/odk-incident-response-privacy.conf

packs: out/odk-detection.conf out/odk-policy.conf out/odk-incident-response.conf out/odk-incident-response-privacy.conf

out/odk-packs.zip: packs
cd out && zip odk-packs.zip *.conf
cd out && rm -f .*.conf && zip odk-packs.zip *.conf

.PHONY: reformat
reformat:
Expand Down
2 changes: 1 addition & 1 deletion incident_response/running_apps_macos.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- Retrieves currently running applications
--
-- tags: postmortem often
-- tags: postmortem disabled-privacy
-- platform: darwin
SELECT
*
Expand Down

0 comments on commit e58cbbc

Please sign in to comment.