troubleshooting-regression
Warn
Audited by Gen Agent Trust Hub on Mar 20, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/main.cjsuseschild_process.spawnSyncto execute theclaudeCLI. It takes a user-suppliedpromptargument and passes it directly to the command line (claude -p [prompt] -d). Althoughshell: falseis used to mitigate some shell injection risks, the ability to execute arbitrary prompts via a CLI tool is a powerful capability that requires stricter input controls.\n- [DATA_EXFILTRATION]: The skill's main script reads file content viafs.readFileSyncfrom a path provided in thelogPathargument. There is no validation or sanitization of this path, creating a vulnerability that allows for arbitrary file access (exposure) through directory traversal or absolute paths if the agent is directed to a malicious location.\n- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it processes untrusted data from debug logs without sufficient isolation.\n - Ingestion points:
scripts/main.cjsreads logs from the user's home directory (.claude/debug/) or a user-specifiedlogPath.\n - Boundary markers: No delimiters or instructions are used to distinguish log content from system instructions.\n
- Capability inventory: The skill possesses capabilities for command execution (
spawnSync) and filesystem access (fs.readFileSync).\n - Sanitization: Log lines are processed using regular expression patterns in
classifyLinewithout prior sanitization, allowing for the possibility that crafted log content could influence the diagnostic findings or the agent's behavior.
Audit Metadata