code-safety-audit
Pass
Audited by Gen Agent Trust Hub on Jul 1, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/security_scan.pyinvokes system binariesnpmandpip-auditusing thesubprocessmodule to perform dependency audits. - [PROMPT_INJECTION]: The skill processes untrusted file content during its scanning phase, which creates an indirect prompt injection surface. Malicious instructions embedded in scanned files could be extracted into the
snippetfield and presented to the agent. - Ingestion points:
scripts/security_scan.pyreads all text files within the target directory provided by the user. - Boundary markers: The scan report format (Text or JSON) lacks explicit delimiters or instructions to the agent to ignore content within the code snippets.
- Capability inventory: The script has the ability to execute shell commands (
npm,pip-audit) and write reports to the file system. - Sanitization: Content is truncated to 200 characters, but no escaping or filtering for prompt injection markers is performed.
Audit Metadata