Back to skill

Security audit

Skill Security Scanner by dxx

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local security scanner for OpenClaw skills, but its clean results should not be treated as complete because it skips documentation and instruction files.

Install only if you want a lightweight local pattern scanner. Treat its output as advisory: it can flag obvious risky strings in code files, but it can miss malicious or unsafe instructions hidden in SKILL.md, README, text files, or behavior that simple regexes do not cover. Review important skills manually and do not rely on a clean result as proof of safety.

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 (1)

T09 · Insecure Skill Coding Practices

Error
Location
skill_scan.py:72
Finding

Security Scanner Excludes Skill Instruction and Documentation Files

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (14)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
## 功能

- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
## 功能

- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
## 功能

- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
## 功能

- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
## 检查项

### 高风险
- `rm -rf /` - 删除根目录
- `rm -rf ~` - 删除用户目录
- Fork 炸弹
- 直接写入磁盘设备

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
### 高风险
- `rm -rf /` - 删除根目录
- `rm -rf ~` - 删除用户目录
- Fork 炸弹
- 直接写入磁盘设备

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
# 敏感文件路径
    SENSITIVE_PATHS = [
        '/etc/passwd',
        '/etc/shadow',
        '/etc/hosts',
        '/.ssh/',

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · skill_scan.py (reported line 32)May include surrounding context.

python
# 敏感文件路径
    SENSITIVE_PATHS = [
        '/etc/passwd',
        '/etc/shadow',
        '/etc/hosts',
        '/.ssh/',

Credential Access

High
Category
Privilege Escalation
Confidence
95% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · skill_scan.py (reported line 33)May include surrounding context.

python
# 敏感文件路径
    SENSITIVE_PATHS = [
        '/etc/passwd',
        '/etc/shadow',
        '/etc/hosts',
        '/.ssh/',
        '/.aws/',

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
81% confidence
Finding

All listed trigger keywords and conditions are written only in Chinese, and the skill documentation also uses Chinese without indicating that users may interact in other languages. This can constitute a language policy violation when no user opt-in or justified region-specific constraint is documented.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The trigger keyword "检查skill" is generic and could overlap with ordinary user requests to review or inspect a skill, not specifically to run this security-scan skill. The manifest does not provide negative examples or tighter scope constraints to distinguish this skill from other skill-inspection intents.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The condition "需要检查skill安全性" is a broad natural-language description rather than a narrowly defined activation rule. Without explicit boundaries or exclusions, it may activate on loosely related conversations about skill safety instead of a clear request to perform a scan.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The scanner intentionally skips markdown and other text documentation files, even though skills commonly place operating instructions, setup steps, and shell commands in README/SKILL documentation. An attacker can hide dangerous guidance or user-triggered commands in those files, causing the scanner to miss socially engineered harmful behavior despite claiming a security scan.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
96% confidence
Finding

The module description and user-facing output are written in Chinese, and the file does not indicate that the skill is region-specific or that users can choose another language. This can violate a language/locale policy when a skill implicitly forces a specific language without user opt-in.

Content

No source excerpt is available for this finding.