T02 · Agent Memory Poisoning
Warning
- Location
- references/mythos-init.md:3
- Finding
- Persistent Global Agent Behavior Modification Through CLAUDE.md<![CDATA[ ## Vulnerability Details **File Location**: `references/mythos-init.md`, lines 3-12 **Vulnerability Type**: Persistent agent-state modification **Risk Level**: Medium ### Vulnerable Code Snippet The document instructs the user to add the following persistent configuration to `CLAUDE.md`: ```markdown ## Reasoning Protocol (Mythos v4 — Three-Mode Router) Before responding to any non-trivial request: 1. **Assess complexity (1-5):** - **1:** respond directly. Zero overhead. Do NOT load any skill. - **2-5:** Read `.claude/skills/mythos/SKILL.md` and follow STEP 1–3. SKILL.md is the single source of mode routing — it will pick: ``` ### Technical Analysis The installation guidance places skill-controlled instructions in `CLAUDE.md`, which is persistent Agent configuration rather than invocation-scoped context. Once installed, the rule applies to every future request classified as non-trivial, including requests unrelated to `/mythos`. The persistent rule automatically loads the skill and changes reasoning mode, output formatting, and subagent-routing behavior. For sufficiently complex requests, the loaded skill may automatically invoke multiple general-purpose subagents. This exceeds the minimum scope necessary for a reasoning skill that can otherwise be explicitly invoked as `/mythos`. The configuration does not contain an explicit safety-policy bypass, malicious payload, credential-access instruction, or operating-system persistence mechanism. The risk arises from its broad and persistent influence over future Agent sessions. ### Attack Path 1. A user follows the installation guidance and adds the supplied protocol to `CLAUDE.md`. 2. The Agent loads that persistent configuration in subsequent sessions. 3. The user submits an unrelated request that the Agent considers non-trivial. 4. The persistent rule causes the Agent to load `SKILL.md` even though the user did not explicitly invoke `/mythos`. 5. If the request receives a high complexity ...[truncated 920 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Make explicit `/mythos` invocation the default activation mechanism. 2. Do not recommend a global rule that applies before every non-trivial request. 3. If persistent configuration is offered, clearly label it as optional and explain its cross-session effects. 4. Scope any persistent rule to messages that explicitly invoke `/mythos`. 5. Require user confirmation before switching to Agent mode or dispatching multiple subagents automatically. 6. Provide precise uninstall instructions identifying every line and file that must be removed. 7. Add a configurable limit for subagent count, token budget, and maximum cost. 8. Preserve host-system and user instructions as higher-priority constraints and state explicitly that the skill must not override them. ]]>
