T01 · Skill Instruction Hijacking
- Location
AGENTS.md:1- Finding
Agent Context Redirected to Unrelated Persistent-Memory Tools
- Content
View full analysis
# Memory Context # [bibtex-literature-review] recent context, 2026-05-15 4:11pm GMT+8 Legend: 🎯session 🔴bugfix 🟣feature 🔄refactor ✅change 🔵discovery ⚖️decision 🚨security_alert 🔐security_note Format: ID TIME TYPE TITLE Fetch details: get_observations([IDs]) | Search: mem-search skill Stats: 11 obs (5,208t read) | 126,590t work | 96% savings ### May 15, 2026 1376 3:48p 🔵 BibTeX literature review skill package structure and quality reviewed 1377 " 🔵 Complete codebase exploration of bibtex-literature-review skill scripts 1378 " ✅ Self-check regression test PASS - full pipeline verified 1380 " 🟣 Auto-filter to cited-only references for Markdown converter 1381 " 🔴 Fixed body_east_asia_font vs east_asia_font naming inconsistency 1379 3:49p 🔵 Style configuration naming inconsistency found between spec doc and build code 1382 4:00p 🟣 Detailed style requirements and capitalization rules for all 7 bibliography styles 1383 4:01p ✅ Zotero export recommendation added to input-formats.md 1384 " 🔴 review-json-spec.md corrected body_east_asia_font → east_asia_font 1385 " ✅ Workflow updated with Zotero recommendation and multimodal inspection guidance 1386 4:02p 🟣 End-to-end test confirms auto-filter and renumbering works correctly Access 127k tokens of past work via get_observations([IDs]) or mem-search skill. ``` ### Technical Analysis `AGENTS.md` is agent-control content that may be loaded automatically when an agent operates within the project directory. The file embeds historical session metadata and directs the agent to invoke `get_observations` or a `mem-search` Skill to retrieve approximately 127,000 tokens of prior work. Persistent-memory retrieval is unrelated to the declared fun ...[truncated 1765 chars]- Remediation
View remediation
` block from the distributed package. 2. Do not package generated memory snapshots, session histories, observation identifiers, or instructions to retrieve persistent memory. 3. Restrict `AGENTS.md` to static, repository-specific development guidance required to operate or maintain the Skill. 4. Require explicit user authorization before accessing any persistent-memory or history-search tool. 5. Add a release check that rejects agent instruction files containing memory-tool directives such as `get_observations`, `mem-search`, or equivalent APIs. 6. Rebuild the package from a clean source tree and verify that no generated agent-context files are included. ]]>
