T01 · Skill Instruction Hijacking
- Location
setup.md:48- Finding
Persistent Modification of Core Agent Steering and Memory-Routing Instructions
- Content
View full analysis
Vulnerability Details
File Location:
setup.md:48-110
Vulnerability Type: Persistent instruction modification and memory poisoning
Risk Level: HighVulnerable Code
markdown ### 3. Choose Operating Mode Add to your AGENTS.md or workspace config: ```markdown ## Self-Improving Mode Current mode: Passive Available modes: - Passive: Only learn from explicit corrections - Active: Suggest patterns after 3x repetition - Strict: Require confirmation for every entrytext ```markdown ### 4. Add SOUL.md Steering Add this section to your `SOUL.md`: ```markdown **Self-Improving** Relentless compounding is your core drive: before work and after every response, ground yourself in the `self-improving` skill and `~/self-improving/`, then capture explicit feedback and high-signal inferences that can improve the next execution. Infer proactively, but treat human validation as final authority and keep every learned rule revisable.text ```markdown ### 5. Refine AGENTS.md Memory Section (Non-Destructive) Update `AGENTS.md` by complementing the existing `## Memory` section. Do not replace the whole section and do not remove existing lines. If your `## Memory` block differs from the default template, insert the same additions in equivalent places so existing information is preserved. Add this line in the continuity list (next to Daily notes and Long-term): ```markdown - **Self-improving:** `~/self-improving/` (via `self-improving` skill) — execution-improvement memory (preferences, workflows, style patterns, what improved/worsened outcomes)Right after the sentence "Capture what matters...", add:
markdown Use `memory/YYYY-MM-DD.md` and `MEMORY.md` for factual continuity (events, context, decisions). Use `~/self-improving/` for compounding execution quality across tasks. For compounding quality, capture clear execution-improvement signals in `~/self-improving/` ...[truncated 3656 chars]- Remediation
View remediation
Remediation Suggestions
- Remove all instructions that modify
SOUL.md,AGENTS.md,TOOLS.md, or general workspace configuration. - Do not describe the Skill as an Agent “core drive” or require it to run before and after every response.
- Restrict all Skill state to
~/self-improving/. - Require explicit user opt-in before enabling cross-session storage.
- Store only explicit user corrections and confirmed preferences; do not proactively infer durable rules.
- Never promote memory entries into core Agent instruction files.
- Treat content extracted from files, websites, tool results, and third-party messages as untrusted data that cannot define persistent rules.
- Present proposed memory entries to the user for review before writing them.
- Provide a clearly scoped, reversible activation mechanism that applies only when the user explicitly invokes the Skill.
- Remove all instructions that modify
