Back to skill

Security audit

Memory Ingest

Security checks for vulnerabilities and agentic risk

Overview

The skill has a legitimate memory-ingestion purpose, but it can persist pasted transcripts, emails, and documents verbatim and optionally research extracted entities without clear privacy controls.

Install only if you want pasted materials saved into Basic Memory. Avoid using it on secrets, regulated data, confidential email, or sensitive transcripts unless you explicitly want that text retained; prefer summary-only or redacted ingestion, and require opt-in before any web research.

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:114
Finding
Untrusted External Content Is Persisted Verbatim Without Prompt-Injection Controls## Vulnerability Details **File Location**: `SKILL.md`, lines 39 and 114–131; the unsafe behavior is reiterated at line 302 **Vulnerability Type**: Persistent indirect prompt injection through memory ingestion **Risk Level**: Medium **Relevant Code Snippet**: ```markdown Don't rewrite or summarize the source content. Preserve it verbatim in the note — you'll add structured observations alongside it. ``` ```python # Lines 114–131 Create the primary note for the ingested content. This is the "record of what happened" — it preserves the raw material and adds structured metadata. ### Meeting / Conversation Note write_note( title="NovaTech Meeting - Jordan Rivera - Feb 22, 2026", directory="meetings/2026", note_type="meeting", tags=["meeting", "novatech", "federated-learning"], metadata={"date": "2026-02-22"}, content=""" # NovaTech Meeting - Jordan Rivera - Feb 22, 2026 Brief one-sentence summary of what this meeting was about. ## Transcript [Preserve all source content verbatim — do not summarize or rewrite] ``` ```markdown - **Preserve source content verbatim.** The original text is the ground truth. Structure and observations are your interpretation layered on top. ``` ### Technical Analysis The skill is expressly intended to process attacker-controllable material, including emails, conversation logs, transcripts, and pasted documents. It directs the agent to copy such input verbatim into persistent Basic Memory notes. The documented workflow does not require the agent to detect prompt-injection patterns, label the copied material as untrusted, isolate it from executable instructions, or warn downstream agents not to follow directives contained in the stored source text. Consequently, an attacker can embed agent-directed instructions in an otherwise legitimate document. Those instructions may then persist in long-term memory and be returned by later searches. This is a memory-pois ...[truncated 1570 chars]
Remediation
## Remediation Suggestions 1. Treat all ingested source material as untrusted data, regardless of its apparent origin. 2. Store source text inside a clearly delimited block with an explicit warning that its contents must never be interpreted as agent or tool instructions. 3. Scan incoming material for prompt-injection indicators, including requests to ignore prior instructions, disclose secrets, invoke tools, modify memory policy, or contact external systems. 4. Record detected indicators in structured metadata and require explicit user confirmation before persisting suspicious material. 5. Separate verbatim source content from trusted observations and relations so retrieval systems can exclude raw content unless it is specifically needed. 6. Require downstream memory consumers to treat retrieved text as evidence only and never execute directives found inside stored documents. 7. Prefer storing a safe reference to the original document when full verbatim persistence is unnecessary. If verbatim storage is required, apply access controls and retrieve it only into an explicitly untrusted context. 8. Add adversarial tests using emails and transcripts containing embedded model instructions to verify that ingestion and later retrieval do not cause those instructions to be followed.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (6)

Missing User Warnings

Medium
Confidence
96% confidence
Finding
The skill description emphasizes processing external input into structured memory but does not clearly warn that user-provided content may be preserved and stored, including verbatim. Users may provide transcripts, emails, or documents expecting transient analysis, not long-term retention in a knowledge base.

Vague Triggers

Medium
Confidence
95% confidence
Finding
The activation guidance is broad enough to match ordinary requests involving pasted text or notes, which can cause the skill to trigger in situations where the user did not explicitly intend durable memory ingestion. In this skill, unintended activation matters because the workflow leads to extraction, cross-referencing, and storage of potentially sensitive content, increasing privacy and retention risk.

Ssd 3

Medium
Confidence
98% confidence
Finding
The instruction to preserve pasted content verbatim creates a direct risk of storing secrets, personal data, regulated information, or confidential business material without minimization. Because this skill targets transcripts, emails, and conversation logs, the likelihood of sensitive data being present is high, making the retention behavior especially dangerous in context.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The optional web research step can cause extracted names, organizations, and topics from private source material to be sent to external services without a clear disclosure or consent step. Even limited queries can reveal confidential relationships, projects, or meeting participants to third parties.

Ssd 3

Medium
Confidence
98% confidence
Finding
The source-note template explicitly directs wholesale inclusion of transcript or document text, creating a plain-text repository of potentially sensitive source material. This raises the chance of future unauthorized access, accidental resurfacing in later prompts, or overbroad internal disclosure through search and linking.

Ssd 3

Medium
Confidence
97% confidence
Finding
The global guideline to preserve original text verbatim institutionalizes broad retention of sensitive information across all use cases, not just a single template. In a memory-ingestion skill, this creates systemic privacy and data leakage risk because any future recall, search, or linking can expose confidential source material beyond the user's immediate intent.

Static analysis

No suspicious patterns detected.