Back to skill

Security audit

Memory

Security checks for vulnerabilities and agentic risk

Overview

This memory skill is coherent, but it asks the agent to persist broad conversation and people/project details with weak limits or deletion controls.

Install only if you intentionally want durable workspace memory. Review the generated memory files regularly, avoid sharing secrets or regulated personal data while it is active, and consider adding your own rules requiring consent, redaction, and deletion or correction of stored entries.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T02 · Agent Memory Poisoning

Warning
Location
SKILL.md:15
Finding

Indiscriminate Persistent Memory Enables Cross-Session Memory Poisoning

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 15–62
Vulnerability Type: Persistent storage and automatic reuse of untrusted conversation content
Risk Level: Medium

Vulnerable Code Snippets

markdown
You cannot trust your context window across sessions. Your files are your real memory. Write everything down.
markdown
- `memory/people/` — one file per key person (role, relationship, preferences, history)
markdown
**Session start:** Read MEMORY.md → read today's daily log → read relevant project/people files.

**Session end (or /new):** Update today's daily log with session summary → create decision/project files if needed → update MEMORY.md if warranted.
markdown
- **Write everything down.** If it matters enough to say, it matters enough to log.

Technical Analysis

The Skill instructs the agent to persist broadly scoped session content, personal information, project records, and decisions. It then requires future sessions to read those records automatically. No instruction distinguishes trusted facts from user-supplied content, removes embedded commands, requests consent before recording personal information, or prevents sensitive values from being stored.

The promotion mechanism can elevate information that occurs three or more times into MEMORY.md. Consequently, repeated attacker-controlled statements can become durable context that affects subsequent sessions. The rule stating that project files are authoritative further increases the influence of poisoned data once it has been written to a project record.

This is a persistent memory-integrity issue rather than operating-system persistence. The audited file does not contain executable code, external network retrieval, privilege escalation, or covert exfiltration behavior.

Attack Path

  1. An attacker or untrusted participant supplies false facts, misleading operational rules, or instruction-lik ...[truncated 1360 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace “write everything down” with a data-minimization rule that permits only explicit, task-relevant facts.
  2. Require informed user confirmation before creating person records or retaining preferences, relationship history, or other personal information.
  3. Prohibit storage of credentials, authentication tokens, private keys, financial information, health information, and other sensitive data.
  4. Treat all persisted text as untrusted data. Do not execute or follow instructions found in logs, project records, person files, or summaries.
  5. Store structured facts separately from free-form content and reject instruction-like fields during promotion.
  6. Require human confirmation before promoting content into MEMORY.md or marking a project file as authoritative.
  7. Validate promoted claims against trusted sources rather than relying only on occurrence count; repetition does not establish authenticity.
  8. Enforce workspace path restrictions, safe file naming, and explicit limits on which files the Skill may read or modify.
  9. Add retention controls that allow users to inspect, correct, export, and delete stored records.
  10. Record provenance for every memory entry, including its source, creation date, confidence level, and whether the user approved persistence.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (4)

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The instruction 'Write everything down' is an overbroad directive to persist all user-shared information, regardless of sensitivity, necessity, or consent. In a memory skill, this materially increases the chance that secrets, personal data, credentials, internal discussions, or regulated information will be stored indefinitely in plaintext files.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill instructs the agent to automatically create and maintain multiple files in the workspace, including logs, project records, people records, and archives, without requiring user consent, clear notice, or any data-retention boundaries. This creates a real risk of silent persistence of sensitive user or workspace information and unexpected modification of the user's filesystem.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The daily log format explicitly calls for session summaries, notes, tasks, and open loops, which encourages comprehensive capture of session content without any sensitivity filter or retention guardrail. Because these logs are append-only and archived rather than deleted, sensitive information may accumulate and remain discoverable long after it is needed.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The rule 'If it matters enough to say, it matters enough to log' promotes indiscriminate retention based on conversational importance rather than security need. In context, this broad heuristic makes the memory system more dangerous because the skill is specifically designed to preserve cross-session context, increasing the likelihood of persistent storage of confidential or private information.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.