Back to skill

Security audit

Openclaw Agent Governance

Security checks for vulnerabilities and agentic risk

Overview

This skill openly sets up or audits persistent OpenClaw workspace governance files, with no evidence of hidden execution, exfiltration, or system-level persistence.

Install only if you want this skill to create or update persistent governance and memory files in an OpenClaw workspace. Before applying it to an existing workspace, review the proposed AGENTS.md and MEMORY.md changes, keep a backup, and verify any missing template content because the referenced references/ templates are not included in the artifact inspected here.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • 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
Findings (1)

T02 · Agent Memory Poisoning

Warning
Location
SKILL.md:29
Finding

Persistent Modification of Agent Governance and Memory Files

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The main skill instructions from L013 onward are written entirely in Chinese, while the front-matter metadata is in English. This creates a language/locale constraint for users without any opt-in, alternative language, or stated region-specific requirement, which matches the policy-violation criteria for forced language use.

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 63)May include surrounding context.

1. 检查目录结构

bash
WS="$1"
mkdir -p "$WS/memory"

2. 从模板生成/更新文件

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 63)May include surrounding context.

1. 检查目录结构

bash
WS="$1"
mkdir -p "$WS/memory"

2. 从模板生成/更新文件