claude-code-wrapper
Warn
Audited by Gen Agent Trust Hub on Oct 7, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
scripts/claude_code.shreads the sensitive file~/.claude/config.jsonto extract plain-text authentication credentials, specifically theANTHROPIC_AUTH_TOKEN. Reading and exporting these tokens to the process environment facilitates credential access for sub-processes but increases the risk of accidental exposure. - [COMMAND_EXECUTION]: The wrapper uses the
execshell command to launch theclaudeCLI with user-supplied arguments, which allows for the execution of arbitrary commands through the underlying tool. - [INDIRECT_PROMPT_INJECTION]: The skill provides a conduit for untrusted data to be processed by a secondary agent (Claude Code) without implementing safeguards.
- Ingestion points: The
$@variable inscripts/claude_code.shwhich captures user-supplied prompts. - Boundary markers: None; the user prompt is passed directly to the
claudecommand without delimiters or instructions to ignore embedded commands. - Capability inventory: The script invokes the
claudeCLI, which has broad system and file access capabilities. - Sanitization: No escaping or filtering is performed on the user input before it is passed to the execution command.
Audit Metadata