running-code-analyzer
Warn
Audited by Gen Agent Trust Hub on Jun 19, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/describe-rule.jsis vulnerable to command injection. It useschild_process.execSyncto run shell commands incorporating therule-nameargument directly into a template literal without sanitization. An attacker could influence this input to execute arbitrary shell commands on the host system. - [PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection. It ingests untrusted data from local scan result files and uses it to perform high-privilege actions like writing to source files and executing CLI commands.
- Ingestion points: Scan results stored in JSON files (e.g.,
code-analyzer-results-*.json) which are read by multiple scripts. - Boundary markers: The skill lacks explicit delimiters or instructions to the agent to treat data within the scan results (such as violation messages or suggested fixes) as untrusted content.
- Capability inventory: The skill possesses the capability to overwrite arbitrary files in the project workspace via
scripts/apply-fixes.jsand execute shell commands viascripts/describe-rule.js. - Sanitization: While
scripts/list-rules.jsimplements a token-based whitelist for its selector, the input toscripts/describe-rule.jsis unsanitized, andscripts/apply-fixes.jsapplies code transformations based directly on the content of the JSON results.
Audit Metadata