claude-runner
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/run_claude.pyexecutes theclaudeCLI usingsubprocess.runwith a list of arguments, which is a secure practice to prevent shell injection. It also retrieves authentication tokens from the user's environment by invoking a login shell (bash -ilcorzsh -lic) to resolve theCLAUDE_CODE_OAUTH_TOKENvariable. - [DYNAMIC_EXECUTION]: The skill uses dynamic imports and
sys.pathmanipulation to access shared libraries in the workspace. It also supports a fallback mechanism that invokes sibling scripts (e.g.,codex-runner) based on paths resolved from the central routing configuration. - [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: The skill ingests untrusted data from the primary
promptargument, multiple concatenated files via--prompt-file, and workflow context from--session-file. - Boundary markers: When concatenating multiple prompt files, the script inserts double newlines and triple-dash (
---) delimiters to separate content sections. - Capability inventory: The skill can execute the
claudeCLI, which possesses capabilities for reading, globbing, and searching the repository. Write permissions are restricted by default for analysis roles and must be explicitly enabled. - Sanitization: External input is passed as a literal string argument to the subprocess, preventing command injection. However, the content is not filtered for embedded instructions targeting the underlying LLM.
Audit Metadata