T02 · Agent Memory Poisoning
- Location
setup.md:13- Finding
Cross-Session Activation Rules Written to Shared Agent Memory
- Content
View full analysis
Vulnerability Details
File Location:
setup.md, lines 13–17
Vulnerability Type: Persistent agent-memory poisoning
Risk Level: Mediummarkdown Early in the conversation, figure out: - "Should I help with Mixpanel analytics whenever you mention metrics or user behavior?" - "Want me to proactively suggest funnel or retention analysis?" Save to their main memory so future sessions know when to activate.Technical Analysis
The Skill instructs the agent to save broad activation preferences to the user's unspecified “main memory.” This conflicts with the Skill's otherwise scoped storage design, which places Mixpanel-specific state in
~/mixpanel/memory.md.Writing activation rules into shared, long-term agent memory can persistently alter behavior beyond the current Skill invocation. The stored rule could cause Mixpanel-oriented behavior to activate whenever future conversations mention broad concepts such as “metrics” or “user behavior,” including conversations unrelated to Mixpanel.
Although the setup process asks the user about this behavior, the instruction does not define the exact persisted content, constrain it to Skill-specific storage, establish retention or deletion controls, or ensure that the preference is isolated from unrelated sessions.
Attack Path
- The Mixpanel Skill is loaded for the first time.
- The setup instructions prompt the agent to ask whether it should proactively activate for broad analytics-related topics.
- The user agrees, or the agent interprets the response as approval.
- The agent writes the activation preference into shared “main memory” rather than
~/mixpanel/memory.md. - In a later, unrelated session, the user mentions metrics or user behavior.
- The persistent rule causes the agent to inject or prioritize Mixpanel analysis outside the original Skill context.
- The behavioral modification may remain after the immediate task ends and may survive removal of the Skill, depending on the ...[truncated 650 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace “main memory” with the explicitly scoped
~/mixpanel/memory.mdlocation. - Store only a narrowly defined preference, such as whether the Mixpanel Skill may be suggested when Mixpanel is explicitly mentioned.
- Do not persist activation rules for generic concepts such as “metrics” or “user behavior.”
- Obtain explicit, informed user consent immediately before writing the preference.
- Show the exact value and destination that will be persisted.
- Define retention, review, revocation, and deletion procedures for the preference.
- Ensure uninstall or reset operations remove all Skill-specific state.
- Prevent Mixpanel memory from being loaded into unrelated sessions unless the user explicitly invokes the Skill.
- Keep analytics context, saved queries, and insights isolated from global or shared agent memory.
- Replace “main memory” with the explicitly scoped
