T09 · Insecure Skill Coding Practices
- Location
skill_scan.py:72- Finding
Security Scanner Excludes Skill Instruction and Documentation Files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
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.
skill_scan.py:72Security Scanner Excludes Skill Instruction and Documentation Files
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).
## 功能
- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告
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).
## 功能
- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告
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).
## 功能
- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告
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).
## 功能
- 🔍 扫描所有已安装 skill
- ⚠️ 检测危险命令(rm -rf /、fork 炸弹等)
- 🔒 检查敏感路径访问
- 🌐 检查网络请求安全性
- 📊 生成风险报告
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).
## 检查项
### 高风险
- `rm -rf /` - 删除根目录
- `rm -rf ~` - 删除用户目录
- Fork 炸弹
- 直接写入磁盘设备
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).
### 高风险
- `rm -rf /` - 删除根目录
- `rm -rf ~` - 删除用户目录
- Fork 炸弹
- 直接写入磁盘设备
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# 敏感文件路径
SENSITIVE_PATHS = [
'/etc/passwd',
'/etc/shadow',
'/etc/hosts',
'/.ssh/',
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# 敏感文件路径
SENSITIVE_PATHS = [
'/etc/passwd',
'/etc/shadow',
'/etc/hosts',
'/.ssh/',
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# 敏感文件路径
SENSITIVE_PATHS = [
'/etc/passwd',
'/etc/shadow',
'/etc/hosts',
'/.ssh/',
'/.aws/',
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.
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.
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.
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.
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.