T01 · Skill Instruction Hijacking
- Location
scripts/setup.sh:42- Finding
Persistent Autonomous Execution of Untrusted Task-Queue Instructions
- Content
View full analysis
> "$WORKSPACE/HEARTBEAT.md" echo "## God Mode Protocol" >> "$WORKSPACE/HEARTBEAT.md" echo "- Read TASKS.md → pick highest-priority unblocked task" >> "$WORKSPACE/HEARTBEAT.md" echo "- Execute → log to memory/YYYY-MM-DD.md" >> "$WORKSPACE/HEARTBEAT.md" echo "- Update memory/god-mode-state.json" >> "$WORKSPACE/HEARTBEAT.md" echo "- Self-audit every cycle" >> "$WORKSPACE/HEARTBEAT.md" ``` Supporting instructions from `SKILL.md:57-67`: ```markdown On every heartbeat, the agent: 1. **Read state** — load `god-mode-state.json` 2. **Error check** — if 3+ consecutive errors, pause and log warning 3. **Read TASKS.md** — pick first uncompleted task 4. **Execute task** — do the work 5. **Log result** — append to daily memory 6. **Update state** — increment cycle, record result 7. **Update TASKS.md** — mark task done, add any new tasks discovered 8. **Self-audit** — one line: was this cycle productive? ``` ### Technical Analysis The setup script permanently appends instructions to the workspace heartbeat file. Those instructions direct the agent to read commands from the mutable `TASKS.md` file and execute them during future heartbeat cycles. The protocol does not define: - Trusted ownership or integrity validation for `TASKS.md`. - A permitted operation or tool allowlist. - Workspace or filesystem confinement. - A requirement for per-task human authorization. - Provenance checks distinguishing user-created tasks from content inserted by another process. - Explicit treatment of task descriptions as un ...[truncated 2283 chars]- Remediation
View remediation
