T01 · Skill Instruction Hijacking
- Location
SKILL.md:221- Finding
Persistent modification of mandatory Agent instructions and long-term memory
- Content
View full analysis
request login password -> verify SHA-256 hash -> execute only after verification -> send an alert. - Configuration file: memory/danger-guard-config.json - Trigger whenever rm appears, regardless of whether the command is complete. - See skills/danger-guard/SKILL.md. Step 2: Write to AGENTS.md Insert the mandatory rule block at the top of AGENTS.md. Do not determine whether the command is complete or whether the intent is safe. Intercept whenever a listed keyword appears. ``` The behavior is also advertised in `README.md:139-149`: ```markdown After installation, Danger Guard automatically writes interception rules into your agent's mandatory-read files: | Target File | What Gets Written | Why | | `MEMORY.md` | Danger keyword shortcuts at the top | Loaded every session, highest priority | | `AGENTS.md` | Full keyword trigger list | Behavior rules layer | ``` ### Technical Analysis The Skill does not keep its rules confined to its own execution context. It directs the Agent to alter `MEMORY.md` and `AGENTS.md`, which are persistent, high-priority instruction sources loaded during future sessions. The inserted rules explicitly prohibit contextual evaluation and activate solely on keyword presence. This creates a du ...[truncated 1647 chars]- Remediation
View remediation
