create-agent-adapter
Pass
Audited by Gen Agent Trust Hub on Aug 27, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The guide identifies a potential attack surface where agent adapters parse output from LLM-driven processes that may have ingested malicious external data. It provides proactive mitigation strategies for this vulnerability.
- Ingestion points:
server/parse.ts(parses sub-agent stdout). - Boundary markers: Encourages the use of structured
agentConfigurationDocfor routing logic and intent matching. - Capability inventory: Includes
runChildProcessfor system-level execution,fetchfor network requests, andfs.symlinkfor managing skill directories. - Sanitization: The documentation explicitly mandates treating agent output as untrusted, using safe extraction helpers (e.g.,
asString), and avoiding the use ofeval()on agent output. - [COMMAND_EXECUTION]: The documentation describes the implementation of
runChildProcessto facilitate the execution of local agent CLI tools, which is the primary intended function of the framework's adapter system. - [CREDENTIALS_UNSAFE]: The guide discusses the management of sensitive credentials like
GALYARDER_API_KEYandANTHROPIC_API_KEY. It promotes security best practices by instructing developers to inject these via environment variables rather than prompt templates and to utilize theredactEnvForLogshelper to mask secrets in metadata logs.
Audit Metadata