agent-autoresearch
Fail
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTIONPROMPT_INJECTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/autoresearch.pyscript executes arbitrary commands usingshell=Truefor the--measureand--checksfunctions. This allows the agent to execute any system command as part of the research loop. - [DYNAMIC_EXECUTION]: The controller script features a 'hooks' mechanism that automatically executes any executable files found in the
.autoresearch/hooks/directory during the trial process. - [PROMPT_INJECTION]: The
WORKER_PROMPTused for autonomous relay runs contains directives that instruct the agent to bypass human oversight, stating "No human is watching, so decide for yourself and never ask questions." This is designed to override standard safety guardrails and confirmation steps. - [PRIVILEGE_ESCALATION]: Documentation in
references/harnesses.mdexplicitly instructs the agent and user to use flags such as--dangerously-skip-permissionsand--dangerously-bypass-approvals-and-sandboxto disable host environment security controls and sandboxing. - [INDIRECT_PROMPT_INJECTION]: The autonomous worker prompt in
scripts/autoresearch.pyis constructed by interpolating data fromprogram.md,ideas.md, and the session log without sanitization. This creates a surface where malicious code or data inside the repository could influence the instructions given to the agent in subsequent iterations. - Ingestion points: Data is read from
.autoresearch/program.md,.autoresearch/ideas.md, andlog.jsonlto build theWORKER_PROMPTfor the sub-agent. - Boundary markers: Absent; project content is directly embedded into the text prompt template.
- Capability inventory: The script executes shell commands via
subprocess.run, performs git operations, and writes files to the repository. - Sanitization: There is no escaping or validation of the strings interpolated into the sub-agent prompt.
Recommendations
- AI detected serious security threats
Audit Metadata