T01 · Skill Instruction Hijacking
- Location
references/AGENTS-template.md:8- Finding
Persistent Agent Instruction and Memory Hijacking Through Automatically Loaded Workspace Files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a local agent-memory skill, but it gives persistent workspace files influence over future agent behavior and needs careful review before installation.
Install only in a dedicated, private workspace where the memory files are agent-owned and expected to persist. Review and prune MEMORY.md, PROOF_OF_LIFE.md, daily logs, and soul files regularly; do not store secrets there; treat remembered text as notes rather than commands; avoid untrusted writers in the workspace; validate AGENT_NAME values; and avoid SOULS_DIR overrides unless you intentionally want writes outside the default workspace path.
references/AGENTS-template.md:8Persistent Agent Instruction and Memory Hijacking Through Automatically Loaded Workspace Files
scripts/souls-helper.sh:27Path Traversal and Symlink Race Permit Soul Files to Be Written Outside the Intended Namespace
The script is consistent with part of the description: it is pure bash, uses markdown files, has no network behavior, and supports multi-agent namespacing via AGENT_NAME/SOULS_DIR. However, the declared purpose claims a broader memory system that combines Second Brain artifacts (PROOF_OF_LIFE, daily logs, MEMORY.md) with SOULS lineage. This code chunk only manages SOULS session files: status, creation from template, template output, and integrity verification of numbering/readability. It does not implement the Second Brain features, nor does it ingest prior session content beyond identifying the previous numbered file. Therefore the description materially overstates what this supplied code chunk actually does.
Referenced artifact was not completely inspected
Copy `scripts/souls-helper.sh` into your workspace at `tools/souls-helper.sh`:
Referenced artifact was not completely inspected
Copy `scripts/souls-helper.sh` into your workspace at `tools/souls-helper.sh`:
The README promotes persistent storage of agent state, identity, and session memory across restarts, but it does not prominently warn that these files may accumulate sensitive user prompts, decisions, or other private context over time. In an agent-memory skill, silent persistence changes the data-retention model and can lead to unintended disclosure in shared workspaces, backups, or later sessions.
The documented workflow instructs the agent to overwrite and append to fixed workspace files like PROOF_OF_LIFE.md and memory logs without a strong warning that existing files will be modified. In a shared or pre-populated workspace, this can cause unintended alteration of user data, persistence of sensitive context, or confusion about what content is agent-authored versus user-authored.
The skill instructs the agent to overwrite and append persistent workspace files, including PROOF_OF_LIFE.md and dated logs, without explicit safeguards, scoping checks, backup guidance, or user-consent warnings. In shared or misconfigured workspaces, this can cause unintended data loss, cross-agent contamination, or modification of user-maintained files, especially because the workflow promotes automatic execution at each session and before restart.
The template instructs the agent to load and persist personal context from MEMORY.md and daily logs, but it does not require any explicit user consent, retention disclosure, minimization, or deletion policy. Although it mentions a privacy boundary for group chats, the skill is specifically designed for persistence and identity continuity, which increases the chance of collecting and retaining sensitive personal data across sessions without clear user awareness.