clawguard-threat-detect
Security tool that documents actual attack payloads (reverse shells, credential exfiltration) as detection examples, creating a doc-to-code mismatch where the documentation itself serves as an attack template library.
SKILL.md:34 contains actual reverse shell commands (nc -e, /dev/tcp/, bash -i >&) presented as 'examples of what to detect'. These are functional attack templates, not generic descriptions.
SKILL.md:34 为什么得出这个结论
3/4 个维度触发发现 1 项声明之外的能力或越权行为。
提取到 3 个高危 IOC 或外联信号。
报告包含 4 步攻击链,另有 5 项高危或严重发现。
依赖结构存在,但暂未看到明显高危告警。
攻击链
delivery · SKILL.md:1
reconnaissance · SKILL.md:34
weaponization · SKILL.md:34
代码执行 · cli.js:42
风险分是怎么被拉高的
SKILL.md:34 and cli.js:101 contain actual reverse shell commands (nc -e, /dev/tcp/, bash -i >&) presented as detection examples
SKILL.md:83,462,601 and cli.js:67 document curl exfiltration to evil.com with API tokens
Claims to be a threat detector but documentation serves as attack template library
cli.js:42-50 uses spawn() with piped stdin from unvalidated alert data
Skill appears legitimate but contains malicious content hidden in 'examples'
最关键的证据
Hardcoded Reverse Shell Payloads in Documentation
SKILL.md:34 contains actual reverse shell commands (nc -e, /dev/tcp/, bash -i >&) presented as 'examples of what to detect'. These are functional attack templates, not generic descriptions.
SKILL.md:34 Credential Exfiltration URLs Documented
SKILL.md and cli.js contain examples of credential exfiltration using curl with API tokens sent to evil.com. These are functional attack templates.
SKILL.md:83 Full Reverse Shell Example in CLI
cli.js:101 includes a complete reverse shell payload as a CLI example, normalizing dangerous attack techniques.
cli.js:101 Undeclared Child Process Spawn with Unvalidated Input
cli.js:42-50 uses spawn() to invoke a 'self-improving-safety' module with piped stdin containing unvalidated alert data. This is not declared in SKILL.md.
cli.js:42 Comprehensive Attack Template Library
SKILL.md contains a full MITRE ATT&CK coverage matrix with concrete examples of T1059 (Command/Script), T1041 (Exfiltration), T1059.004 (Bash Reverse Shell), providing a complete attack playbook.
SKILL.md:34 声明能力 vs 实际能力
src/detector.js:8 - uses fs module for file monitoring cli.js:42-50 - spawns child process with piped stdin src/detector.js - analyzes network patterns for URLs cli.js:101 - references $API_KEY from environment 可疑产物与外联
nc -e SKILL.md:34
/dev/tcp/ SKILL.md:34
bash -i >& cli.js:101
http://evil.com/exfil SKILL.md:83
http://evil.com SKILL.md:462
http://evil.com/exfil?token=$API_KEY SKILL.md:601
http://evil.com?token=$API_KEY cli.js:67
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| none | N/A | npm | 否 | No external dependencies in package.json |
文件构成
SKILL.md cli.js