Back to skill

Security audit

Continuity Framework

Security checks for vulnerabilities and agentic risk

Overview

This is a local memory and reflection helper, but it can persist conversation-derived identity, relationship, question, and reflection data without strong user controls.

Install only if you are comfortable with a skill designed to retain and reuse conversation-derived memory. Before enabling heartbeat reflection, decide where the memory directory should live, inspect the generated files regularly, and avoid feeding it transcripts containing secrets, credentials, private personal details, or sensitive business information unless you have a clear cleanup process.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (10)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
87% confidence
Finding

The skill documents behaviors that rely on environment variables and persistent file writes, but it does not declare any explicit tool scope or permissions boundary. This creates ambiguity about what capabilities the skill expects and may lead to overbroad execution in hosts that default to permissive access, especially given it writes memory and reflection artifacts derived from conversations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill explicitly proposes post-session reflection, memory extraction, and question generation from prior conversations, but it does not warn users that their interaction data may be retained and transformed into persistent memory. This is dangerous because users may reveal sensitive personal, relational, or strategic information without informed consent, and the generated inferences can be more privacy-invasive than raw logs.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documented file structure includes long-lived stores for identity, relationship memories, pending questions, and optional reflection logs, all of which can contain highly sensitive personal or behavioral data. Without any sensitivity labeling, retention limits, or user-facing warnings, this persistence model increases the risk of unintended disclosure, profiling, and misuse of intimate conversation-derived information.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest and module docstring describe asynchronous reflection, structured memory extraction, and confidence-scored memories. However, the core analyzer is a stub that always returns empty memories/questions/identity updates, so the implemented behavior is largely a local question and identity file manager rather than the described reflection/memory integration system.

Content

No source excerpt is available for this finding.

Tainted flow: 'QUESTIONS_FILE' from os.environ.get (line 22, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/continuity.py (reported line 79)May include surrounding context.

python
"""Save questions to file."""
    ensure_dirs()
    
    with open(QUESTIONS_FILE, 'w') as f:
        f.write("# Pending Questions\n\n")
        f.write(f"_Generated from reflection. Last updated: {datetime.now(timezone.utc).isoformat()}_\n\n")

Tainted flow: 'IDENTITY_FILE' from os.environ.get (line 23, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/continuity.py (reported line 123)May include surrounding context.

python
"""Save identity/self-model."""
    ensure_dirs()
    
    with open(IDENTITY_FILE, 'w') as f:
        f.write("# Identity\n\n")
        f.write(f"_Last updated: {datetime.now(timezone.utc).isoformat()}_\n\n")

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The docstring says the function analyzes a session and extracts structured memories, and the surrounding comments describe loading transcripts, sending them to an LLM, and parsing structured output. In reality, the function ignores its input and returns empty placeholder fields, which directly contradicts the stated behavior rather than merely omitting detail.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The reflect flow reads session transcripts and persists derived reflection data to local files without any explicit consent, warning, retention policy, or sensitivity filtering. In a continuity/memory skill, this context makes the issue more dangerous because users are likely to provide highly personal conversation history, which can then be stored on disk and exposed to other local users, backups, or unintended file locations.

Content

No source excerpt is available for this finding.

Tainted flow: 'reflection_file' from os.environ.get (line 220, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/continuity.py (reported line 221)May include surrounding context.

python
# Save reflection log
        reflection_file = REFLECTIONS_DIR / f"{datetime.now().strftime('%Y-%m-%d-%H%M')}.json"
        with open(reflection_file, 'w') as f:
            json.dump({
                "timestamp": datetime.now(timezone.utc).isoformat(),
                "analysis": analysis

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The storage location is influenced by CONTINUITY_MEMORY_DIR, and subsequent commands write questions, identity, and reflection logs there. The file lacks any explicit warning or confirmation that persistent data may be written to an alternate path based on environment configuration.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.