techdebt
Warn
Audited by Gen Agent Trust Hub on Jun 14, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/scan.shscript accepts a user-controlled path (SCAN_PATH) which is interpolated directly into several shell commands, includingfind,grep,wc, and various tool invocations (e.g.,pylint,radon,npx). The lack of validation or escaping on this variable allows for arbitrary command execution if a malicious path containing shell metacharacters is passed to the script. - [EXTERNAL_DOWNLOADS]: The script utilizes
npx --yesto run tools likejscpd,ts-prune, andmadge. This command automatically fetches the packages from the npm registry if they are not present on the system, leading to external downloads at runtime. - [REMOTE_CODE_EXECUTION]: The execution of code fetched via
npx --yesrepresents a remote code execution vector, although the packages targeted are well-known development tools. - [PROMPT_INJECTION]: The skill performs technical debt analysis by reading file contents and asking the agent to 'interpret and report' the findings. This creates a surface for indirect prompt injection, where an attacker could place instructions inside TODO comments or code files to manipulate the agent's output or recommendations.
- Ingestion points:
scripts/scan.sh(reads files viagrep,wc, and analysis tools) - Boundary markers: Absent
- Capability inventory: Shell command execution via
scripts/scan.sh, network access vianpx - Sanitization: No sanitization of scanned file content or the
SCAN_PATHargument - [DATA_EXFILTRATION]: The script attempts to access a local configuration file at
~/.claude/docs/development/registry.yaml. Accessing sensitive application configuration paths without explicit user intent can lead to unintended data exposure.
Audit Metadata