agy-headless-driver

Pass

Audited by Gen Agent Trust Hub on Nov 22, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The scripts/agy-run.sh script executes arbitrary commands provided in a tab-separated manifest file (units.tsv). Specifically, the verify_cmd field in the manifest is executed via sh -c "$verify". If an attacker can influence the contents of the manifest file, this leads to arbitrary command execution on the host system.
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process large volumes of external data (briefs, prior pass records, plan trees) to build 'context packs' for subsequent AI sessions. While the skill includes instructions for 'read discipline' and 'verbatim' labels, there is a inherent surface for indirect prompt injection where instructions embedded in processed documents could influence the orchestrator or worker models.
  • Ingestion points: scripts/budget.py (reads any file path), assets/pack-builder-template.md (Gemini Pro reads whole corpus), and the various prompt templates.
  • Boundary markers: XML tags like <operating_contract> and <operator_requirements> are used to delimit instructions, but these are soft boundaries.
  • Capability inventory: The system uses agy -p with the --dangerously-skip-permissions flag, which allows the AI to perform shell writes and tool calls without user confirmation.
  • Sanitization: No explicit sanitization or escaping of external content is mentioned before it is interpolated into prompts.
  • [PROMPT_INJECTION]: The skill uses 'Operating Contracts' and 'Completion Contracts' to attempt to override or strictly control model behavior. While intended for stability, these patterns (Work autonomously to the completion contract at the end of this prompt, Restated because it matters most) are similar to those used in prompt injection to bypass system-level constraints.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 22, 2026, 04:54 PM