Back to skill

Security audit

dawn-memory-arch

Security checks for vulnerabilities and agentic risk

Overview

This is a local memory architecture skill, but it asks agents to persist and promote user data into startup memory and modify boot behavior without enough consent, scoping, or rollback controls.

Review carefully before installing. Use it only if you want a durable local memory system, and require explicit approval before writing personal, financial, account, or trading data; before changing boot/soul files; and before promoting anything into startup memory. Prefer a versioned or auditable delete process and a clear rollback plan.

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
Findings (2)

T02 · Agent Memory Poisoning

Warning
Location
SKILL.md:49
Finding

Untrusted Session Content Can Be Promoted into Persistent Startup Memory

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 49-50 and 73-77
Vulnerability Type: Persistent memory poisoning
Risk Level: Medium

Vulnerable Code Snippet

markdown
### Layer 1: MEMORY.md (Central Index)
- Navigation entry for all memories
- Hard limit: 200 lines / 25KB
- Must read on every startup
- Contains: core info, status summary, system capabilities, key conclusions, promoted memories
markdown
### 4. Short-to-Long Term Auto Promotion
High-value memories (score > 0.8, appears 3+ times, affects trading decisions, user explicitly asked to remember) auto-promote from daily logs to MEMORY.md.

Technical Analysis

The architecture automatically promotes information from daily logs into MEMORY.md, which the agent must then read at every startup. The specification does not require provenance validation, instruction-versus-data separation, sanitization of embedded directives, or explicit user approval before promotion.

Consequently, attacker-controlled conversational content can potentially be classified as a high-value memory and moved into a persistent startup context. Repetition is explicitly a promotion criterion, so an attacker may increase the likelihood of persistence by submitting the same malicious or misleading instruction at least three times. Once promoted, the content can influence future sessions independently of the original conversation.

The repository contains only the architecture document and no implementing scripts, so the vulnerability is present as an unsafe prescribed design rather than verified executable behavior.

Attack Path

  1. An attacker supplies a malicious instruction or falsified fact during one or more conversations.
  2. The content is recorded in a daily log or other short-term memory source.
  3. The attacker repeats the content three or more times, causes it to receive a score above 0.8, frames it as affecting a trading decisio ...[truncated 790 chars]
Remediation
View remediation

Remediation Suggestions

  • Treat all conversation-derived memories as untrusted data rather than executable instructions.
  • Store memories in a typed schema that separates facts, preferences, summaries, and instructions.
  • Reject or quarantine entries containing imperative directives, role changes, tool-use commands, safety-policy changes, or requests to override higher-priority instructions.
  • Record provenance for every entry, including source conversation, author, timestamp, promotion reason, confidence, and validation status.
  • Require explicit user confirmation before promoting any content capable of changing future agent behavior.
  • Do not use repetition alone as a trust or promotion signal; repeated attacker input remains untrusted.
  • Load persistent memory through a constrained parser and clearly delimit it as non-authoritative reference data.
  • Add integrity checks, review logs, expiry policies, and a rollback mechanism for promoted memories.
  • Prevent memory content from overriding system, developer, safety, or current-session instructions.

T01 · Skill Instruction Hijacking

Warning
Location
SKILL.md:70
Finding

Skill Directs Persistent Modification of Agent Boot and Core Behavior

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 70-74 and 112-120
Vulnerability Type: Persistent instruction and behavior modification
Risk Level: Medium

Vulnerable Code Snippet

markdown
### 2. WAL Protocol (Write-Ahead Logging)
Trigger on detecting corrections, decisions, preference changes, or value changes. Write to session-state.json before replying. Ensures no data loss on crash.

### 3. Working Buffer (Context Fuse)
When context usage > 60%, auto-trigger: write summary to working-buffer.md, record key decisions and context snapshots.
markdown
## Deployment Checklist (10 Steps)

1. Create memory/ directory and subdirectories
2. Create MEMORY.md (core info + system capabilities + file structure)
3. Create session-state.json (WAL protocol cache)
4. Create HEARTBEAT.md (periodic task checklist)
5. Deploy local vector DB (LanceDB + all-MiniLM-L6-v2)
6. Register Engramory curation discipline in boot manual
7. Write memory principles in soul file
8. Configure WAL protocol triggers
9. Configure Working Buffer threshold (60% context trigger)
10. Configure learnings/ directory and auto-promotion rules

Technical Analysis

The deployment instructions direct the installer to write the Skill's principles into a “soul file,” register rules in a boot manual, configure automatic triggers, and create a periodic-task checklist. These changes move the Skill's behavioral instructions outside its immediate execution scope and allow them to be loaded or activated in later sessions.

No approval boundary, target-file allowlist, integrity protection, rollback procedure, or restriction on modifying higher-priority agent configuration is defined. The Skill also imposes a reply-ordering rule—writing state before responding—which can alter the agent's operation after installation.

This is best classified as instruction hijacking because the Skill prescribes changes to the agent's ...[truncated 1356 chars]

Remediation
View remediation

Remediation Suggestions

  • Keep all behavioral rules scoped to the active Skill invocation.
  • Do not modify soul, system, boot, or other higher-priority instruction files.
  • Require explicit, informed user approval before making any persistent configuration change.
  • Define an allowlist of permitted target files and prevent writes outside a dedicated Skill-owned directory.
  • Distinguish operational data from agent instructions and prevent memory files from becoming instruction sources.
  • Provide a manifest of every persistent change, including exact paths, previous values, new values, and reasons.
  • Create transactional installation and complete rollback procedures.
  • Require confirmation before enabling heartbeat, automatic triggers, or startup loading.
  • Apply precedence rules ensuring that persisted Skill content cannot override system, developer, safety, or current-session instructions.
  • Validate and review persistent configuration on startup rather than trusting it implicitly.
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 (3)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The skill explicitly instructs deletion of erroneous memory entries ('Don't mark as deprecated, just delete') without any approval step, backup, tombstoning, or audit safeguard. In a long-term memory architecture, this can cause irreversible loss of user data, destroy provenance, and make it difficult to investigate mistakes or malicious tampering.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The WAL protocol, working buffer, and auto-promotion mechanisms direct the agent to write information to session-state.json, working-buffer.md, MEMORY.md, and other stores automatically, but the skill provides no user-facing notice, consent model, retention policy, or data classification limits. This creates a privacy and persistence risk because user-provided content may be stored across sessions and files unexpectedly, including potentially sensitive information.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill's auto-promotion and write-ahead logging mechanisms encourage broad persistence of user-supplied information from transient context into multiple long-term memory layers. In the context of a memory skill, this makes the issue more dangerous because the core purpose is durable cross-session retention, increasing the chance that sensitive, inaccurate, or unnecessary user data is replicated and later reused beyond the user's expectations.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.