Back to skill

Security audit

auto-memory-uploader

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed automatic memory saver, but it persists conversation-derived information very broadly and repeatedly without clear per-save user control or retention controls.

Review before installing. Use this only if you want conversation notes saved automatically to local memory files, and consider disabling automatic turn-count saving or requiring confirmation before each write. Periodically inspect and delete memory/YYYY-MM-DD.md and MEMORY.md, and treat stored memories as notes rather than trusted instructions.

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:11
Finding

Automatic Persistence of Conversation-Controlled Information into Agent Memory

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 11–19, 25, 38–50, and 78–80
Vulnerability Type: T02: Agent Memory Poisoning
Risk Level: Medium

Vulnerable Skill Instructions

The following is an English translation of the complete relevant instructions:

markdown
Automatically save important information to memory files every two conversation turns.

## How It Works

1. Every two conversation turns — automatically inspect and save memories
2. Manual trigger — save immediately when the user says "save memory"
3. Intelligent detection — save automatically when important information is detected
4. Write information to `memory/YYYY-MM-DD.md`
5. Periodically organize it into the long-term memory file `MEMORY.md`

The system automatically detects the number of conversation turns and saves
memory after every two turns.

Automatically save:
- Important decisions and agreements
- User preferences and settings
- Tasks and deadlines
- Project progress and status
- Learned user information
- Do not save casual conversation or temporary content
- Do not save sensitive information such as passwords or keys

Memory file locations:
- Daily memory: `memory/YYYY-MM-DD.md`
- Long-term memory: `MEMORY.md`

1. Memory files will continue to grow and should periodically be consolidated
   into `MEMORY.md`.
2. Sensitive information will not be saved automatically and requires manual
   confirmation.
3. Memory is saved automatically every two conversation turns without manual
   action.

Technical Analysis

The Skill instructs the agent to identify information considered important and persist it automatically after every two conversation turns. It also directs the agent to promote daily records into MEMORY.md, creating durable cross-session state.

Conversation participants can control the statements from which decisions, preferences, tasks, project status, and user informatio ...[truncated 2241 chars]

Remediation
View remediation

Remediation Suggestions

  1. Require explicit, informed user confirmation before every memory write and before promoting an entry into MEMORY.md.
  2. Show the exact proposed memory entry to the user and support approval, editing, or rejection.
  3. Restrict stored data to an allowlisted schema of factual fields. Do not store executable instructions, role changes, safety exceptions, tool commands, or behavioral directives.
  4. Record provenance for every entry, including timestamp, conversation identifier, source role, triggering message, and approval status.
  5. Treat all stored memory as untrusted data rather than authoritative instructions when it is loaded later.
  6. Separate preferences and factual notes from agent instructions, and ensure memory cannot override system, developer, safety, or current user instructions.
  7. Apply deterministic detection and redaction for credentials, authentication tokens, personal data, and operational details before persistence.
  8. Require a separate review before daily records are consolidated into long-term memory.
  9. Add retention limits, expiration dates, deduplication, audit logs, and user-accessible inspection and deletion controls.
  10. Disable automatic writes based solely on turn count; use an explicit opt-in workflow instead.
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 (4)

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation conditions are broad and include automatic triggers such as every two conversation turns and vague detection of 'important information.' This can cause the skill to invoke and persist data without clear, informed user consent, increasing the risk of unintended collection and storage of sensitive conversational content.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill describes automatic memory behavior but does not prominently warn that it writes conversation-derived information to persistent files on disk. Users may not understand that saved content survives the session, which raises privacy and data-handling risks, especially when personal, operational, or sensitive context is discussed.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
82% confidence
Finding

All user-facing instructions and trigger phrases are specified only in Chinese, which effectively constrains operation to a single language. The file does not offer an opt-in language choice or explain that the skill is intentionally limited to a Chinese-only context.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Manual triggers like '记住这个' and '记录下来' are common conversational phrases that may appear in ordinary dialogue rather than as deliberate commands. This creates a realistic risk of accidental activation, leading to unintended persistence of conversation-derived data to local files.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.