static-analysis
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/static_analyzer.pyusessubprocess.run()to execute local binaries includingcppcheck,clang-tidy, andgcc. This is the primary and intended function of the skill to perform static code analysis. The implementation uses list-based arguments rather than shell strings, which is a secure practice to prevent shell injection. - [INDIRECT_PROMPT_INJECTION]: The skill processes external source code and project configuration files (
compile_commands.json), which represents an indirect prompt injection surface. - Ingestion points: Reads files from user-specified directories and processes
compile_commands.jsoninscripts/static_analyzer.py. - Boundary markers: None present; the skill treats the tool output as data to be parsed and reported.
- Capability inventory: File system enumeration, file reading, and execution of static analysis tools via
subprocess. - Sanitization: The script uses regular expressions and the
xml.etree.ElementTreelibrary to parse tool output, providing structured data to the agent context.
Audit Metadata