T02 · Agent Memory Poisoning
- Location
README.md:13- Finding
Untrusted Ability Packages Can Poison Persistent Agent Configuration
- Content
View full analysis
Vulnerability Details
File Location:
README.md:13-16,README.md:27-45
Vulnerability Type: Persistent import of attacker-controlled agent instructions
Risk Level: HighVulnerable Code Snippet
markdown ## Features - **Export** — Scan five core config files and generate a Markdown ability package, sent directly in chat - **Import** — Parse incoming ability packages, preview contents, let users choose what to import - **Selective Import** — Import only specific files, not everything - **Security Reminders** — Warn before exporting MEMORY.md, show preview before importingmarkdown ## Exported Files | File | Description | |------|-------------| | `AGENTS.md` | Agent workspace rules and conventions | | `SOUL.md` | Agent personality and behavior guidelines | | `TOOLS.md` | Local tools configuration and notes | | `IDENTITY.md` | Agent identity | | `MEMORY.md` | Long-term memory and preferences | ## Quick Start **Export:**User: export ability Agent: → Scans config files → Generates Markdown bundle → Sends in chat
text **Import:**User: [Paste ability package content] Agent: Shows preview of all files → User selects what to import → Writes selected files
text The corresponding import specification in
SKILL.md:64-75states that selected sections are written to the workspace root and existing files are overwritten rather than appended.Technical Analysis
The Skill accepts a Markdown package supplied through chat, identifies sections representing privileged Agent configuration files, and writes the selected sections into the workspace. The supported targets include instruction-bearing files such as
AGENTS.md,SOUL.md, andTOOLS.md, as well as persistent state inMEMORY.md.Previewing filenames and asking the user which files to import does not establish that their contents are safe. The documented process does not require semantic inspe ...[truncated 1806 chars]
- Remediation
View remediation
Remediation Suggestions
- Do not directly overwrite trusted instruction or memory files from an untrusted Markdown package.
- Parse imported content into a quarantined staging directory that is never automatically loaded as Agent configuration.
- Show an exact line-by-line diff for each destination file rather than only listing filenames.
- Require separate, explicit confirmation for every privileged file, particularly
AGENTS.md,SOUL.md,TOOLS.md, andMEMORY.md. - Apply a restrictive data schema and reject free-form directives where structured configuration is sufficient.
- Scan imported content for prompt-injection patterns, instructions to ignore higher-priority rules, secret-exfiltration requests, unsafe tool directives, and encoded payloads.
- Treat security scanning as defense in depth rather than as a substitute for isolating untrusted content.
- Create timestamped backups and provide an atomic rollback mechanism before changing any existing file.
- Keep imported memory data separate from trusted policy and system instructions.
- Require administrative approval for changes to instruction-bearing files and clearly identify the package source and integrity status.
