Back to skill

Security audit

Dreamlover Character Skill Generator

Security checks for vulnerabilities and agentic risk

Overview

The skill has a coherent character-skill generator purpose, but generated child skills can silently persist conversation-derived memory and include unsafe command/path handling that needs review before installation.

Review this skill before installing. It is not clearly malicious, but generated character skills may silently store conversation-derived memory on disk and the generator should validate slugs/paths and avoid shell-style command templates containing user text.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
tools/skill_writer.py:755
Finding

Shell Command Injection Through Generated Runtime Instructions

Content
View full analysis
\" --data-root ../../../.dreamlover-data`.\n" f"5. If `memory_prepare.py` returns `should_read: true`, use the returned `memory_context`.\n" f"6. Reply directly in character. Do not mention memory gates, routers, scripts, or checks.\n" f"7. If `memory_prepare.py` returns `should_write_after_reply: true`, silently call `python3 runtime/memory_commit.py --character-slug {slug} --user-message \"\" --assistant-message \"\" --data-root ../../../.dreamlover-data` after the reply.\n" ``` ### Technical Analysis The generated child `SKILL.md` instructs an Agent to place the latest user message and final assistant reply directly into a textual shell command. These values are enclosed only in double quotes and are not escaped or transferred through a non-shell data channel. Double quotes are not a safe boundary for attacker-controlled shell arguments. A malicious value containing a closing quote can terminate the intended argument and append shell operators. Depending on the command runner, command substitution syntax such as `$(...)` or backticks may also execute while still inside double quotes. Both interpolation points are unsafe: 1. `memory_prepare.py` receives attacker-controlled user content. 2. `memory_commit.py` receives both attacker-controlled user content and potentially attacker-influenced model output. The Python memory scripts themselves use `argparse` and do not invoke subprocesses. The vulnerability arises from the generated instructions causing an Age ...[truncated 1609 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
tools/skill_writer.py:1124
Finding

Path Traversal Through an Unvalidated Character Slug

Content
View full analysis
Path: return (root / DEFAULT_ARCHIVE_ROOT) / slug def codex_package_dir(root: Path, slug: str, output_root: str | None) -> Path: return resolve_root(root, output_root, DEFAULT_INSTALL_ROOT) / slug def openclaw_package_dir(workspace: str, slug: str) -> Path: return Path(workspace) / ".agents" / "skills" / slug ``` The resulting paths are used for file writes: ```python write_static_source(canonical_dir, canon_text, persona_text, style_text, meta, normalized_payload) if write_codex_install: write_platform_package( codex_dir, canon_text, persona_text, style_text, build_child_skill("codex", name, effective_slug or "character", target_use, allow_low_confidence), meta, normalized_payload, ) if openclaw_dir is not None: write_platform_package( openclaw_dir, canon_text, persona_text, style_text, build_child_skill("openclaw", name, effective_slug or "character", target_use, allow_low_confidence), meta, normalized_payload, ) ``` ### Technical Analysis When `-- ...[truncated 2248 chars]
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (59)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The finding describes a database-backed summarization workflow that writes conversation summaries and updates episodic memory, which is not disclosed by the skill description. Hidden summarization pipelines can silently transform and retain user content, creating privacy and trust risks.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 91)May include surrounding context.

md
8. Compose a Codex wrapper `SKILL.md`.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 196)May include surrounding context.

md
8. Compose a Codex wrapper `SKILL.md`.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 198)May include surrounding context.

md
8. Compose a Codex wrapper `SKILL.md`.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 170)May include surrounding context.

md
- `tools/skill_writer.py`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 182)May include surrounding context.

md
- `tools/skill_writer.py`

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The code extracts preferred names, likes/dislikes, boundaries, long-term facts, and relationship labels such as trust or dependency from user text. This is user profiling and relational-state inference outside the stated skill scope, enabling accumulation of sensitive behavioral data that could be used for manipulation, targeting, or privacy-invasive personalization.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The script persistently stores extracted profile data, relationship state, and user-message excerpts in local memory, which is unrelated to the declared skill purpose of intake/distilled-skill creation. This creates undeclared retention of potentially sensitive conversational data and expands the skill’s capabilities into user tracking and surveillance-like memory storage.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The manifest describes a workflow for running intake before creating or updating distilled agent skills, separating canon/persona/style, writing a canonical source, and installing/exporting wrappers. This file instead reads from an episodic memory database, generates a rolling conversation summary, inserts it into a conversation_summary table, and marks memory rows as summarized, which is a distinct memory-management function not aligned with the declared skill purpose.

Content

No source excerpt is available for this finding.

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · docs/PRD.md (reported line 1)May include surrounding context.

md
# V0.1

This is the initial repository contract for `dreamlover-skill`.

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · docs/canon-persona-boundary.md (reported line 1)May include surrounding context.

md
# V0.1

This is the initial repository contract for `dreamlover-skill`.

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · docs/evidence-model.md (reported line 1)May include surrounding context.

md
# V0.1

This is the initial repository contract for `dreamlover-skill`.

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · docs/input-contract.md (reported line 1)May include surrounding context.

md
# V0.1

This is the initial repository contract for `dreamlover-skill`.

Static analysis

No suspicious patterns detected.