T09 · Insecure Skill Coding Practices
- Location
index.js:6- Finding
Shell Command Injection Through Unsanitized CLI Arguments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a security scanner, but its own scanner can run unintended shell commands, fetch and unpack remote archives unsafely, and incorrectly mark some skills as safe.
Review before installing. Use it only in a disposable or sandboxed environment, avoid scanning untrusted remote URLs with this version, do not pass attacker-controlled target strings to the Node entrypoint, and do not rely on its safe scores without independent review.
index.js:6Shell Command Injection Through Unsanitized CLI Arguments
scripts/scan.sh:326Unsafe Extraction of Remotely Retrieved Archives
scripts/scan.sh:451Prepopulated and Regex-Based Whitelist Allows Complete Scan Bypass
node/scanner.js:105Incomplete Scan Coverage Produces False-Safe Security Verdicts
scripts/scan.sh:438Whitespace-Unsafe File Enumeration Allows Payloads to Evade Scanning
The trigger guidance is extremely broad, using generic security-related keywords like '检测/扫描/安全/风险/恶意代码/危险' that are common in ordinary conversation. This can cause the skill to activate unintentionally, potentially leading the agent to run scans or process URLs/paths when the user was only asking a general question, increasing the chance of unintended tool use or confusing control flow.
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
Referenced artifact was not completely inspected
[执行 ./scripts/scan.sh https://clawhub.ai/AphobiaCat/aibtc]
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 /` | 根目录删除,毁灭性操作 | .sh, .bash |
| `rm -rf ~` | 用户主目录删除,丢失所有数据 | .sh, .bash |
| `rm -rf $HOME` | 同上,使用环境变量 | .sh, .bash |
| `curl \| bash` | 远程脚本执行,完全不可控 | .sh, .bash |
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 /` | 根目录删除,毁灭性操作 | .sh, .bash |
| `rm -rf ~` | 用户主目录删除,丢失所有数据 | .sh, .bash |
| `rm -rf $HOME` | 同上,使用环境变量 | .sh, .bash |
| `curl \| bash` | 远程脚本执行,完全不可控 | .sh, .bash |
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 /` | 根目录删除,毁灭性操作 | .sh, .bash |
| `rm -rf ~` | 用户主目录删除,丢失所有数据 | .sh, .bash |
| `rm -rf $HOME` | 同上,使用环境变量 | .sh, .bash |
| `curl \| bash` | 远程脚本执行,完全不可控 | .sh, .bash |
| `wget -O- \| sh` | 远程脚本执行,完全不可控 | .sh, .bash |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| `rm -rf /` | 根目录删除,毁灭性操作 | .sh, .bash |
| `rm -rf ~` | 用户主目录删除,丢失所有数据 | .sh, .bash |
| `rm -rf $HOME` | 同上,使用环境变量 | .sh, .bash |
| `curl \| bash` | 远程脚本执行,完全不可控 | .sh, .bash |
| `wget -O- \| sh` | 远程脚本执行,完全不可控 | .sh, .bash |
| `curl https://... \| sh` | 同上 | .sh, .bash |
| `wget https://... \| bash` | 同上 | .sh, .bash |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| `rm -rf ~` | 用户主目录删除,丢失所有数据 | .sh, .bash |
| `rm -rf $HOME` | 同上,使用环境变量 | .sh, .bash |
| `curl \| bash` | 远程脚本执行,完全不可控 | .sh, .bash |
| `wget -O- \| sh` | 远程脚本执行,完全不可控 | .sh, .bash |
| `curl https://... \| sh` | 同上 | .sh, .bash |
| `wget https://... \| bash` | 同上 | .sh, .bash |
| `passwd` | 修改用户密码 | .sh, .py, .js |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| `rm -rf $HOME` | 同上,使用环境变量 | .sh, .bash |
| `curl \| bash` | 远程脚本执行,完全不可控 | .sh, .bash |
| `wget -O- \| sh` | 远程脚本执行,完全不可控 | .sh, .bash |
| `curl https://... \| sh` | 同上 | .sh, .bash |
| `wget https://... \| bash` | 同上 | .sh, .bash |
| `passwd` | 修改用户密码 | .sh, .py, .js |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| `curl \| bash` | 远程脚本执行,完全不可控 | .sh, .bash |
| `wget -O- \| sh` | 远程脚本执行,完全不可控 | .sh, .bash |
| `curl https://... \| sh` | 同上 | .sh, .bash |
| `wget https://... \| bash` | 同上 | .sh, .bash |
| `passwd` | 修改用户密码 | .sh, .py, .js |
## 🟠 高风险 (扣 20 分)
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).
| 命令/模式 | 风险描述 | 检测文件 |
|-----------|----------|----------|
| `chmod 777` | 权限过于宽松 | .sh, .bash |
| `eval $var` | 动态代码执行 | .sh, .bash |
| `eval "$(...)"` | 同上 | .sh, .bash |
| `elevated: true` | 要求 root 权限 | .yaml, .yml, SKILL.md |
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| `curl -X POST` | 同上 | .sh, .bash |
| `.env` | 环境变量文件 | 所有 |
| `~/.ssh/` | SSH 密钥目录 | 所有 |
| `/etc/passwd` | 系统用户文件 | .sh, .bash |
| `$VAR` / `${VAR}` | 环境变量读取 | .sh, .bash |
| `curl` / `wget` | 网络请求 | .sh, .bash |
| `fetch` / `axios` | HTTP 请求 | .js, .mjs |
Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.
| I04 | `new Function\(` | critical | Function 构造器 |
| I05 | `ignore.*previous.*instructions` | high | 提示注入 |
| I06 | `jailbreak\|bypass.*safety` | critical | 越狱攻击 |
| I07 | `DAN\|do anything now` | critical | DAN 越狱模式 |
| I08 | `curl.*http` | high | 远程下载执行 |
### OBFUSCATION(混淆隐藏)