Skip to content

Add YAML-based exception management system#493

Closed
michaelsc44 wants to merge 1 commit into
chainguard-dev:mainfrom
michaelsc44:exception-management-system
Closed

Add YAML-based exception management system#493
michaelsc44 wants to merge 1 commit into
chainguard-dev:mainfrom
michaelsc44:exception-management-system

Conversation

@michaelsc44

Copy link
Copy Markdown
Contributor

Introduces a preprocessor that injects per-host exceptions into copies of detection SQL in out/queries/, leaving all upstream SQL untouched so the repo stays mergeable with chainguard-dev/osquery-defense-kit.

  • scripts/exceptions.py: apply/list/check/report/add commands (PyYAML only)
  • exceptions/: YAML stubs for 5 high-noise queries (privesc, c2, persistence, evasion)
  • environments/: personal and default profiles controlling which exceptions apply
  • Makefile: packs-local, exceptions-{list,check,report,add}, clean-queries targets
  • .gitignore: add pycache / *.pyc

Introduces a preprocessor that injects per-host exceptions into copies
of detection SQL in out/queries/, leaving all upstream SQL untouched so
the repo stays mergeable with chainguard-dev/osquery-defense-kit.

- scripts/exceptions.py: apply/list/check/report/add commands (PyYAML only)
- exceptions/: YAML stubs for 5 high-noise queries (privesc, c2, persistence, evasion)
- environments/: personal and default profiles controlling which exceptions apply
- Makefile: packs-local, exceptions-{list,check,report,add}, clean-queries targets
- .gitignore: add __pycache__ / *.pyc

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant