code-safety-audit
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/security_scan.pyusessubprocess.runto invoke external security tools, specificallynpm auditandpip-audit. These calls are implemented safely using argument lists andshutil.whichfor path resolution, preventing shell injection vulnerabilities. - [INDIRECT_PROMPT_INJECTION]: The skill acts as an ingestion surface by reading and processing arbitrary files from a user-specified project directory.
- Ingestion points: The
walk_filesandread_linesfunctions inscripts/security_scan.pyread all text files under the target directory for analysis. - Boundary markers: None. However, the data is processed locally by a Python script rather than being directly interpolated into a language model prompt.
- Capability inventory: The skill can perform file system reads and execute specific local audit commands via
subprocess.run. - Sanitization: The skill performs static regex matching and entropy calculations on the ingested data. It does not execute the content of the files it scans.
Audit Metadata