sast-devils-advocate
Fail
Audited by Gen Agent Trust Hub on Nov 11, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill explicitly instructs the agent to perform shell operations such as
grepandobjdumpto verify code presence and security mitigations like stack canaries. These commands are executed locally within the agent's environment. - [INDIRECT_PROMPT_INJECTION]: The instructions direct the agent to interpolate data from untrusted 'candidate vulnerability' reports directly into shell command templates without any mention of sanitization or escaping. For instance, the instruction
grep -n "<key function or variable from the candidate>" <file>uses a user-controlled field in a shell context. An attacker providing a malicious candidate with a function name containing shell metacharacters (e.g.,; rm -rf /) could achieve arbitrary command execution when the agent follows these instructions. - Ingestion points: The 'candidate vulnerability' input provided to the
/sastcommand. - Boundary markers: Absent in shell command templates.
- Capability inventory: Shell access for tools like
grep,objdump, and potentially others required to audit the code. - Sanitization: No escaping or validation logic is specified for the interpolated variables.
Recommendations
- AI detected serious security threats
Audit Metadata