codebase-auditor
Warn
Audited by Gen Agent Trust Hub on Mar 20, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The file
scripts/audit_engine.pyimplements dynamic module loading usingimportlib.util. It resolves analyzer modules from thescripts/analyzers/directory based on computed paths. While the module mapping is defined in a static dictionary, the use ofexec_moduleto load logic at runtime is a dynamic execution pattern. - [COMMAND_EXECUTION]: In
scripts/audit_engine.py, the skill usessubprocess.runto executegitcommands. This is used to gather repository information such as commit history and line counts during the initial project discovery phase. - [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface. Analyzers located in
scripts/analyzers/(e.g.,code_quality.py,security_scan.py) read content from the files being audited and include extracted snippets in the final reports generated byscripts/report_generator.py. This content could contain malicious instructions designed to influence an agent that processes the resulting audit reports. - Ingestion points: Files are read from the user-provided codebase path using
Path.rglobacross multiple analyzer modules. - Boundary markers: The report generator wraps code findings in standard markdown code blocks (```).
- Capability inventory: The skill has capabilities to read/write local files, execute git commands via subprocess, and perform dynamic module loading.
- Sanitization: There is no evidence of sanitization or filtering applied to the source code snippets to prevent them from acting as instruction injections when displayed in reports.
Audit Metadata