agent-builder
Warn
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The
references/minimal-agent.pyfile lacks path sanitization in itsread_fileandwrite_filetool implementations. It directly joins the workspace directory with user-provided paths (e.g.,WORKDIR / args["path"]), which allows for path traversal attacks. An agent using this template could be manipulated into reading or writing sensitive files outside the intended project directory. - [COMMAND_EXECUTION]: Multiple templates provided in
scripts/init_agent.py,references/minimal-agent.py, andreferences/tool-templates.pyimplement a 'bash' tool usingsubprocess.runwithshell=True. This grants the agent the ability to execute arbitrary shell commands on the host system. While some templates include a blocklist for dangerous commands (likesudoorrm -rf /), the 'minimal-agent' template does not, increasing the risk of misuse. - [DYNAMIC_EXECUTION]: The
scripts/init_agent.pyscript is designed to generate and write new executable Python scripts to the filesystem based on hardcoded templates. This behavior is inherent to the skill's purpose as an agent builder but constitutes dynamic code generation. - [INDIRECT_PROMPT_INJECTION]: The agent loop patterns implemented in the templates ingest external data (tool outputs, file contents) directly into the model's message history without sanitization. This creates a surface for indirect prompt injection, where malicious instructions hidden in a file being read could override the agent's behavior.
Audit Metadata