afk-cook
Pass
Audited by Gen Agent Trust Hub on May 19, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection through the GitHub issue tracking system.
- Ingestion points: In
slice-prompt.md, the agent is instructed to fetch task details usinggh issue view {{ISSUE_NUMBER}} --commentsand potentially read parent PRDs. - Boundary markers: None. The prompt does not use delimiters to encapsulate the external issue content nor does it provide instructions to the agent to disregard instructions found within the data.
- Capability inventory: The agent runs in
acceptEditsmode (via theafk-cookscript), allowing it to execute shell commands, modify source code, and perform git commits. - Sanitization: Absent. Data retrieved from the GitHub CLI is directly processed as the task specification.
- [COMMAND_EXECUTION]: The bash runner script executes the AI agent with broad permissions.
- Evidence: The
afk-cookscript invokesclaude --permission-mode acceptEdits, which grants the agent the ability to execute any command discovered in the project's build files or injected via the issue body. - [DATA_EXFILTRATION]: Agent execution logs, which may contain sensitive source code or project context, are stored in a world-readable temporary directory.
- Evidence: The script uses
tee /tmp/ralph-slice-${N}-${attempt}.logto store session output. - Risk: On multi-user systems, this allows other users to read the logs and potentially extract proprietary information or secrets exposed during the agent's session.
Audit Metadata