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 Why this conclusion was reached
3/4 dimensions flagged1 undeclared or violating capabilities were inferred.
3 high-risk artifacts or egress signals were extracted.
The report includes 4 attack-chain steps and 5 severe findings.
Dependencies are present but no obvious high-risk issue stands out.
Attack Chain
delivery · SKILL.md:1
reconnaissance · SKILL.md:34
weaponization · SKILL.md:34
Execution · cli.js:42
What drove the risk score up
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'
Most important evidence
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 Declared capability vs actual capability
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 Suspicious artifacts and egress
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
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| none | N/A | npm | No | No external dependencies in package.json |
File composition
SKILL.md cli.js