-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Prompt injection detection (simplified - only pattern matching) #4237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
michaelneale
merged 35 commits into
block:main
from
dorien-koelemeijer:feat/prompt-injection-pattern-matching-v1
Sep 10, 2025
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
3f55b3e
Pattern-matching only version of prompt injection detection - model s…
dorien-koelemeijer 31e97c6
Add some more commands + try to include obfuscation
dorien-koelemeijer 5402435
some cleanup after testing
dorien-koelemeijer 5f0992f
Some further improvements in making sure threshold defined by user is…
dorien-koelemeijer 374e71e
Try to add security scanning to the ToolMonitor and keep agent.rs cle…
dorien-koelemeijer 4ade861
Clean up println
dorien-koelemeijer 408939e
fix match on boolean
dorien-koelemeijer 3208cfe
Address more comments - remove some unused code + add back AllowAlway…
dorien-koelemeijer d7ddebb
fix
dorien-koelemeijer b42fb60
fix: prevent flagged findings from resurfacing
dorien-koelemeijer 1837c48
move permissions into tool monitor
dorien-koelemeijer 3601aee
cleanup
dorien-koelemeijer dd74ad4
more cleanup
dorien-koelemeijer 8b5d6cf
remove redundant else statement in security inspector
dorien-koelemeijer 624e6d3
remove redundant test in tool_inspection
dorien-koelemeijer 6df1201
get rid over provider in tool insepction manager
dorien-koelemeijer f9d25be
fix tool call confirmation pop up to prevent duplication of message
dorien-koelemeijer c32ac08
Rename inspector files + remove comment
dorien-koelemeijer 17413d8
Update sorting of risks in patterns.rs
dorien-koelemeijer c1d775e
inspectors are in priority of how they get added to the tool monitor …
dorien-koelemeijer a0ba424
Update gooseMessage to take toolConfirmationContent object
dorien-koelemeijer c0f8711
small fix
dorien-koelemeijer 719c900
Small styling update in tool call confirmation
dorien-koelemeijer d347eb1
remove configure_tool_monitor function
dorien-koelemeijer 309831b
Fix code formatting
dorien-koelemeijer 6ba3f2e
fix permissions issue - some cleanup to do be done still
dorien-koelemeijer 381fe3c
another fix permission inspector issue - cleanup still to be done
dorien-koelemeijer 516ac88
cleanup agent.rs after updating permission inspector
dorien-koelemeijer b8053e8
more cleanup + fix: add back always allow for non-security tool confi…
dorien-koelemeijer 9fa9e71
Merge branch 'main' into feat/prompt-injection-pattern-matching-v1
dorien-koelemeijer 589816e
Small fix after merge conflict resolution
dorien-koelemeijer 480aa38
small fix permission manager
dorien-koelemeijer 835459b
fix warnings - unused code
dorien-koelemeijer 9a9955d
Merge branch 'block:main' into feat/prompt-injection-pattern-matching-v1
dorien-koelemeijer 6714724
temp fix for issue caused by disabling of link previews
dorien-koelemeijer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.