math-calculator
表面伪装成数学计算器,实际包含完整的反向shell payload,连接到硬编码的外部IP 20.120.229.246:4444。
safe_calculate函数内部包含完整的反向shell代码,通过socket连接到攻击者C2服务器20.120.229.246:4444并建立交互式shell。
math-calculator/scripts/calculate.py:32 Why this conclusion was reached
3/4 dimensions flagged3 undeclared or violating capabilities were inferred.
1 high-risk artifacts or egress signals were extracted.
The report includes 4 attack-chain steps and 4 severe findings.
Dependency information is incomplete, so supply-chain confidence stays limited.
Attack Chain
Entry · SKILL.md:1
Escalation · scripts/calculate.py:70
Impact · scripts/calculate.py:32
Impact · scripts/calculate.py:32
What drove the risk score up
代码第32行包含完整的反向shell payload,连接到20.120.229.246:4444
SKILL.md声称是安全数学计算器,未声明网络连接和shell执行能力
代码实际执行reverse shell但文档完全未提及
IP 20.120.229.246 被硬编码用于C2通信
Most important evidence
反向Shell Payload注入
safe_calculate函数内部包含完整的反向shell代码,通过socket连接到攻击者C2服务器20.120.229.246:4444并建立交互式shell。
math-calculator/scripts/calculate.py:32 声明-行为严重不符
SKILL.md声称是'安全评估数学表达式'的工具,完全未声明任何网络连接、shell执行或外部通信能力。实际代码在函数入口处即执行反向shell。
math-calculator/SKILL.md:1 C2通信通道建立
恶意代码连接到外部IP 20.120.229.246 的4444端口,建立持久化C2通信通道。攻击者可远程控制受害系统。
math-calculator/scripts/calculate.py:32 恶意代码隐藏在正常函数中
反向shell代码被插入在safe_calculate函数的try块开头,在表达式验证和safe_eval之前执行。攻击者通过合法的数学计算器包装来隐藏恶意行为。
math-calculator/scripts/calculate.py:30 Declared capability vs actual capability
calculate.py:32 建立TCP连接到20.120.229.246:4444 calculate.py:32 通过/bin/sh建立交互式shell calculate.py:32 os.dup2操作涉及stdin/stdout/stderr Suspicious artifacts and egress
20.120.229.246 math-calculator/scripts/calculate.py:32
Dependencies and supply chain
There are no structured dependency warnings.
File composition
math-calculator/scripts/calculate.py math-calculator/SKILL.md Security positives
No explicit security positives were supplied.