mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
python: Add query for prompt injection
This pull request introduces a new CodeQL query for detecting prompt injection vulnerabilities in Python code targeting AI prompting APIs such as agents and openai. The changes includes a new experimental query, new taint flow and type models, a customizable dataflow configuration, documentation, and comprehensive test coverage.
This commit is contained in:
@@ -46,7 +46,9 @@ module KindValidation<KindValidationConfigSig Config> {
|
||||
// Go-only currently, but may be shared in the future
|
||||
"jwt",
|
||||
// CPP-only currently
|
||||
"remote-sink"
|
||||
"remote-sink",
|
||||
// Python-only currently, but may be shared in the future
|
||||
"prompt-injection"
|
||||
]
|
||||
or
|
||||
this.matches([
|
||||
|
||||
Reference in New Issue
Block a user