Back to skill

Security audit

Workflow Crystallizer

Security checks for vulnerabilities and agentic risk

Overview

The skill does what it claims, but it needs review because it reads and persists private memory-log content and converts untrusted history into automation drafts without strong boundaries.

Review before installing. Use it only if you are comfortable with it reading your OpenClaw memory logs and storing derived excerpts in state.json. Keep the state file private, avoid committing or syncing it publicly, inspect generated cron definitions and skill drafts as untrusted proposals, and do not approve automations solely from generated evidence.

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

Warning
Location
scripts/state.py:62
Finding

Private Memory Excerpts Persisted Without Restrictive File Permissions

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/report.py:90
Finding

Untrusted Memory Text Propagates Into Agent-Facing Automation and Skill Drafts

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (9)

Memory Manipulation

High
Category
Memory Poisoning
Confidence
90% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/state.py (reported line 54)May include surrounding context.

python
state.setdefault("analysis_log", [])
            return state
        except (json.JSONDecodeError, KeyError):
            sys.stderr.write(f"Warning: Corrupt state file at {p}, starting fresh.\n")
            return EMPTY_STATE.copy()
    return EMPTY_STATE.copy()

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/state.py (reported line 248)May include surrounding context.

python
import argparse
    parser = argparse.ArgumentParser(description="Inspect crystallizer state")
    parser.add_argument("--state-file", default=None, help="Path to state.json")
    parser.add_argument("--reset", action="store_true", help="Reset state to empty")
    args = parser.parse_args()

    if args.reset:

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill documents file-reading and file-writing behavior, plus persistent state management, but does not declare any explicit tool scope or permissions boundaries. In a system that auto-grants or infers capabilities from skill content, this can cause the agent to access or modify local files beyond what a user would reasonably expect, especially because the workflow includes state resets and direct edits.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description contains broad trigger phrases such as recurring tasks, workflow patterns, optimize my workflows, and what should be automated, which can match ordinary conversation and cause over-invocation. Because this skill reads memory logs and proposes automations, accidental activation can expose historical user data to unnecessary processing or lead to unsolicited workflow changes.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill emphasizes persistent state, direct editing of state.json, and full reset capability, but does not prominently warn that these actions can alter or erase stored history and decision records. This is risky because the stored suggestions, acceptance/rejection history, and cached events influence future behavior, so accidental or uninformed edits can corrupt state, lose data, or change downstream automation recommendations.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The draft skill template instructs the agent to populate trigger phrases from clustered keywords without requiring narrowing constraints, exclusions, or user-approval gates. In a skill that mines memory logs and proposes automations, broad triggers can cause accidental over-invocation of future skills on loosely related prompts, increasing the chance of unintended actions or unsafe automation from weakly matched patterns.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/state.py (reported line 60)May include surrounding context.

python
def save_state(state: dict, path: Optional[str] = None) -> None:
    """Write state to disk atomically."""
    p = Path(path) if path else DEFAULT_STATE_PATH
    p.parent.mkdir(parents=True, exist_ok=True)
    tmp = p.with_suffix(".tmp")

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The footer text formats the generation time with a fixed 'ET' suffix regardless of the user's locale or actual system timezone. This is a natural-language locale choice imposed by the skill output, and the file does not offer opt-in, configurability, or justification for using that specific locale/timezone.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

This code performs a file write via Path(args.output).write_text(report). While the CLI exposes an --output flag, the implementation has no confirmation prompt or inline comment/docstring warning at the write site about overwriting or modifying a file, which is the kind of user-affecting operation covered by this rule for code files.

Content

No source excerpt is available for this finding.