Back to skill

Security audit

dr-memory-foundation

Security checks for vulnerabilities and agentic risk

Overview

This skill openly sets up a local file-based memory folder and templates, with no evidence of hidden network access, credential use, deletion, or unsafe persistence.

Install this only in a workspace where you want a persistent memory structure. Review the generated memory files, especially MEMORY.md and memory/always_on.md, before relying on them because they can influence future agent context.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • 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
Vulnerability Patterns
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (2)

Lp3

Medium
Category
MCP Least Privilege
Confidence
96% confidence
Finding
The skill instructs the agent to create and modify files in the workspace and even references an installer script, but it declares no explicit tool scope or permissions boundary. That creates an authorization gap where a host system or reviewer cannot easily constrain file-write behavior, increasing the chance of unintended or over-broad filesystem changes when the skill is applied.

Session Persistence

Medium
Category
Rogue Agent
Content
## Apply to this workspace
When the user asks to **apply** this skill (for example: `Apply dr-memory-foundation to this workspace`), do this:
1) Inspect the existing workspace memory files.
2) Create any missing template files from `references/templates/`.
3) Preserve existing notes; merge or relocate content rather than deleting it.
4) Normalize `MEMORY.md` into preferences + indexes only.
5) Ensure `memory/always_on.md` contains a tiny policy header + topic catalog.
Confidence
90% confidence
Finding
This skill is designed to persist information across sessions by inspecting, creating, merging, relocating, and normalizing memory files. Even though the stated purpose is organizational, persistent memory modification can alter future agent behavior, preserve sensitive information, or silently reshape the workspace state if applied without clear user consent and content-boundary rules.

Static analysis

No suspicious patterns detected.