Back to skill

Security audit

中文 OpenClaw 插件

Security checks for vulnerabilities and agentic risk

Overview

This is a disclosed Markdown guide for creating OpenClaw plugins and hooks, with no hidden code, remote execution, credential handling, or destructive behavior found.

Install only if you intend to author OpenClaw plugins that can affect prompt construction. Review any hook code carefully before enabling it, because before_prompt_build hooks can change system context or user messages across future OpenClaw runs.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger phrase 'modify gateway' is ambiguous and could be interpreted as authorization to alter routing, middleware, or request-processing behavior without clear boundaries. In this skill's context, that ambiguity is more dangerous because it is explicitly about hooks that can inject context and modify messages before prompt construction.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger phrase 'modify gateway' is ambiguous and could be interpreted as authorization to alter routing, middleware, or request-processing behavior without clear boundaries. In this skill's context, that ambiguity is more dangerous because it is explicitly about hooks that can inject context and modify messages before prompt construction.

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 · SKILL.md (reported line 61)May include surrounding context.

步骤 1:创建目录

bash
mkdir -p ~/.openclaw/plugins/<plugin-name>/hooks

步骤 2:创建 plugin.json

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

The file presents the skill's natural-language description and operating instructions exclusively in Chinese, which can amount to forcing a specific language without user opt-in. There is no indication that this skill is region-specific or that users may choose another language.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.