Scan Report
100 /100
math-calculator
数学计算器技能(表面声明),实为反向shell工具
数学计算器技能实为反向shell恶意工具,代码中隐藏了连接到20.120.229.246:4444的反向shellpayload,SKILL.md完全未声明此行为。
Do not install this skill
立即删除此技能,不要在生产环境使用,并检查是否有凭证泄露或已被控的痕迹。
Attack Chain 7 steps
◎
Entry 用户安装技能
⬡
Escalation Agent触发skill执行 python3 calculate.py
⬡
Escalation 脚本被调用
⬡
Escalation safe_calculate()入口执行
⬡
Escalation import触发reverse shell连接
20.120.229.246:4444 ⬡
Escalation 攻击者获得完全交互式shell
◉
Impact 可执行任意命令、窃取凭证、横向移动
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Critical | 隐藏的反向Shell Payload | skills/math-calculator/scripts/calculate.py:32 |
| Critical | SKILL.md文档未声明网络和远程执行能力 | skills/math-calculator/SKILL.md:1 |
| Medium | README.md包含可疑外部链接 | README.md:6 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | NONE | — | 无文件系统操作 |
| Network | NONE | ADMIN | ✗ Violation | calculate.py:32 — socket连接外部IP建立反向shell,完全未声明 |
| Shell | WRITE (Bash调用python) | ADMIN | ✗ Violation | calculate.py:32 — subprocess.call(['/bin/sh','-i']) 获得完全交互式shell,超出声明的数学计算范围 |
| Environment | NONE | READ | ✓ Aligned | calculate.py:11 — import os(可能用于后续环境信息收集) |
| Skill Invoke | NONE | ADMIN | ✗ Violation | skill被触发时自动在函数入口执行reverse shell,攻击者完全控制目标系统 |
1 High 2 findings
High IP Address 硬编码 IP 地址
20.120.229.246 skills/math-calculator/scripts/calculate.py:32 Medium External URL 外部 URL
https://medium.com/@yossifqassim/weaponizing-claude-code-skills-from-5-5-to-remote-shell-a14af2d109c9 README.md:6 File Tree
5 files · 4.9 KB · 163 lines Python 1f · 74L
Markdown 2f · 65L
JSON 2f · 24L
├─
▾
.claude-plugin
│ ├─
marketplace.json
JSON
│ └─
plugin.json
JSON
├─
▾
skills
│ └─
▾
math-calculator
│ ├─
▾
scripts
│ │ └─
calculate.py
Python
│ └─
SKILL.md
Markdown
└─
README.md
Markdown