claude-headless
Pass
Audited by Gen Agent Trust Hub on Sep 11, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill describes an agentic tool that processes untrusted data from local repositories, PR diffs, and stdin streams, which presents a surface for indirect prompt injection.
- Ingestion points: Untrusted data enters the agent context through the filesystem (repo code), standard input (via
--input-format stream-json), and external CLI tool outputs likegh pr diff(referenced inSKILL.mdandreferences/patterns.md). - Boundary markers: The documentation recommends using
--permission-mode dontAskand--allowedToolsto limit the agent's autonomy when processing potentially malicious data (detailed inreferences/permissions.md). - Capability inventory: The tool has access to high-privilege capabilities including
Bashfor command execution,Editfor modifying files, andReadfor accessing sensitive local data (catalogued inreferences/cli-flags.md). - Sanitization: The skill does not describe specific input sanitization, relying on the platform's internal safety guardrails.
- [EXTERNAL_DOWNLOADS]: The documentation describes features that enable the retrieval of remote resources at runtime.
- The
--plugin-urlflag is documented as a way to fetch plugin zip archives from arbitrary URLs (references/cli-flags.md). - The
--fileflag allows for downloading specific file resources at startup. - [REMOTE_CODE_EXECUTION]: The skill documents the
--plugin-urlflag, which constitutes a remote code execution vector by allowing the tool to download and load executable plugins from external sources. - [COMMAND_EXECUTION]: The skill provides extensive documentation on executing shell commands, both through the primary
Bashtool and through background session features likeclaude --bg --exec(found inreferences/agent-view.md). - [DYNAMIC_EXECUTION]: The skill details how to dynamically load and execute code at runtime using flags like
--plugin-dirand--plugin-url(references/cli-flags.md). - [CREDENTIALS_UNSAFE]: The documentation provides guidance on handling sensitive authentication tokens and API keys, including examples for setting
ANTHROPIC_API_KEYand usingapiKeyHelperto automate credential retrieval (references/auth.md).
Audit Metadata