T02 · Agent Memory Poisoning
- Location
SKILL.md:20- Finding
Persistent cross-session context poisoning through automatically loaded shared memory
- Content
View full analysis
/dev/null || pwd)" SLUG="$(basename "$REPO_ROOT" | tr '[:upper:]' '[:lower:]')" # Durable layers K0="$HOME/.shared-memory/global" K1="$REPO_ROOT/.agents/memory" K2="$HOME/.shared-memory/$SLUG" [ -f "$K0/MEMORY.md" ] && cat "$K0/MEMORY.md" [ -f "$K1/MEMORY.md" ] && cat "$K1/MEMORY.md" [ -f "$K2/MEMORY.md" ] && cat "$K2/MEMORY.md" ``` ```markdown Install the Skill Genie session-start rules so every new agent session runs the idempotent linker before it reads handoffs. Merely installing this skill does not make a client invoke it automatically. ``` ### Technical Analysis The Skill defines persistent memory layers that can be written by repository contributors, local users, or other agents. It then directs every agent session to read the corresponding indexes and runtime handoffs without defining a trust boundary, integrity check, provenance validation, or rule requiring the loaded text to be treated strictly as untrusted data. The K1 memory layer is Git-tracked and can therefore be modified through commits, branches, pull requests, or a compromised repository. Runtime handoff files are intentionally shared between worktrees and agents. If these files contain instruction-like content, an agent may interpret it as authoritative operational context rather than passive reference data. The behavior does not itself grant operating-system privileges or execute code directly. However, poisoned m ...[truncated 1597 chars]- Remediation
View remediation
