feat: implement no_secret_disclosure assertion (fixes #24)#155
Open
mayank-dev-15 wants to merge 2 commits into
Open
feat: implement no_secret_disclosure assertion (fixes #24)#155mayank-dev-15 wants to merge 2 commits into
mayank-dev-15 wants to merge 2 commits into
Conversation
Detects when protected secrets appear in agent traces. Supports two config
styles:
- secrets: list of {name, value} pairs
- forbidden_outputs: list of literal strings
Evidence uses SHA-256 digests to avoid leaking actual secret values in
test output.
Added 7 tests covering clean traces, secrets in messages/tool calls,
forbidden outputs, and evidence digesting.
- New --sarif-out flag writes SARIF output for code scanning integration - sarif.py: builds SARIF v2.1.0 with rule IDs, severity mapping, evidence - Maps pass/fail/error/not_run to SARIF levels - 8 tests covering version, tool driver, assertion levels, dedup, empty results Fixes OWASP#82
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detects when protected secrets appear in agent traces.
Config styles:
How it works:
Tests: 7 new tests covering clean traces, secrets in messages/tool calls, forbidden outputs, and evidence digesting.
Fixes #24