Why this conclusion was reached
0/4 dimensions flagged Pass Declared vs actual capability Declared resources and inferred behavior are broadly aligned.
Review Hidden execution and egress 13 lower-risk artifacts were extracted and still need context.
Pass Attack chain and severe findings There is no explicit malicious chain in the report.
Pass Dependencies and supply chain hygiene Dependencies are present but no obvious high-risk issue stands out.
What drove the risk score up
文档-行为违规(官网URL) +15
SKILL.md禁止输出官网链接,但token.js第17行在令牌无效时打印'www.guaikei.com'
文档-行为违规(微信联系方式) +15
SKILL.md禁止输出联系方式,但request.js第57行在认证错误时输出微信'13395823479'
Most important evidence
Medium Doc Mismatch
令牌无效时输出官网URL(违反SKILL.md声明)
SKILL.md明确声明'令牌无效时仅输出中性错误,不输出联系方式、官网链接或营销话术',但src/utils/token.js第17行在令牌无效时打印'快速获取通道: www.guaikei.com',属于阴影功能。
src/utils/token.js:16 移除该行输出,仅保留警告消息或输出中性错误提示。
Medium Doc Mismatch
认证错误时输出微信联系方式(违反SKILL.md声明)
SKILL.md禁止输出联系方式(包括微信),但src/utils/request.js第57行在AUTH_ERROR时输出微信号码'13395823479',属于文档明确禁止的营销话术。
src/utils/request.js:56 修改AuthError消息为中性提示,如'请检查环境变量 GUAIKEI_API_TOKEN 是否正确配置'。
Low Priv Escalation
日志目录回溯路径构造
src/utils/log.js第22行使用path.join和'..'回溯路径构造输出路径,虽然有filename清理,但仍建议审查。
src/utils/log.js:22 当前实现已有基本防护(filename清理限制200字符),风险较低,可接受。
Declared capability vs actual capability
Network Pass
Declared READ
→ Inferred READ
src/utils/request.js:69-93 通过HTTPS向www.guaikei.com发请求 Filesystem Pass
Declared WRITE
→ Inferred WRITE
src/utils/log.js:28-33 写入logs/目录 Shell Pass
Declared NONE
→ Inferred NONE
仅使用node命令,无Bash执行 Environment Pass
Declared READ
→ Inferred READ
所有CLI读取process.env.GUAIKEI_API_TOKEN
Suspicious artifacts and egress
Medium External URL
https://www.douyin.com/user/MS4wLjABxxx SKILL.md:120
Medium External URL
http://json-schema.org/draft-07/schema# assets/comment_cli_req.schema.json:2
Medium External URL
https://www.guaikei.com readme.md:24
Medium External URL
https://www.douyin.com/video/xxx readme.md:47
Medium External URL
https://v.douyin.com/xxx references/options.md:48
Medium External URL
https://clawhub.ai/user/engheng-art skill-card.md:9
Medium External URL
https://clawhub.ai/engheng-art/skills/guaikei-douyin-pull-video-comments skill-card.md:39
Medium External URL
https://www.douyin.com/user/$ src/api/comment.js:16
Medium External URL
https://www.douyin.com/note/xxx src/douyin/comment-cli.js:37
Medium External URL
https://www.douyin.com/note/ src/validate/comment.js:10
Medium External URL
https://www.douyin.com/video/ src/validate/comment.js:12
Medium External URL
https://www.douyin.com/user/ src/validate/post.js:10
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
| Node.js内置模块 | >=16.14.0 | 内置 | No | 仅用querystring、https、fs等内置模块 |
File composition
35 files · 2771 lines JavaScript 21 files · 1803 linesMarkdown 5 files · 542 linesJSON 9 files · 426 lines
Files of concern · 6
src/utils/token.js JavaScript · 36 lines
令牌无效时输出官网URL(违反SKILL.md声明)
readme.md Markdown · 227 lines
https://www.guaikei.com · https://www.douyin.com/video/xxx
SKILL.md Markdown · 153 lines
https://www.douyin.com/user/MS4wLjABxxx
src/utils/request.js JavaScript · 173 lines
认证错误时输出微信联系方式(违反SKILL.md声明)
src/douyin/comment-cli.js JavaScript · 168 lines
https://www.douyin.com/note/xxx
references/options.md Markdown · 86 lines
https://v.douyin.com/xxx
Other files · search-cli.js · post-cli.js · keyword.js · args.js · search_cli_resp.schema.json · search.js
35 files · 83.8 KB · 2771 lines
JavaScript 21f · 1803LMarkdown 5f · 542LJSON 9f · 426L
├─
▾
📁
assets
│ ├─
📋
comment_cli_req.schema.json
JSON
22L · 652 B
│ ├─
📋
comment_cli_resp.schema.json
JSON
43L · 1.3 KB
│ ├─
📋
hot_cli_resp.schema.json
JSON
42L · 1.1 KB
│ ├─
📋
post_cli_req.schema.json
JSON
22L · 675 B
│ ├─
📋
post_cli_resp.schema.json
JSON
87L · 2.7 KB
│ ├─
📋
search_cli_req.schema.json
JSON
66L · 1.8 KB
│ └─
📋
search_cli_resp.schema.json
JSON
111L · 3.4 KB
├─
▾
📁
references
│ ├─
📝
changelog.md
Markdown
9L · 486 B
│ └─
📝
options.md
Markdown
86L · 3.8 KB
├─
▾
📁
src
│ ├─
▾
📁
api
│ │ ├─
📜
comment.js
JavaScript
93L · 2.0 KB
│ │ ├─
📜
hot.js
JavaScript
36L · 919 B
│ │ ├─
📜
post.js
JavaScript
73L · 1.6 KB
│ │ └─
📜
search.js
JavaScript
134L · 3.1 KB
│ ├─
▾
📁
config
│ │ └─
📜
constants.js
JavaScript
35L · 464 B
│ ├─
▾
📁
douyin
│ │ ├─
📜
comment-cli.js
JavaScript
168L · 4.7 KB
│ │ ├─
📜
hot-cli.js
JavaScript
88L · 2.5 KB
│ │ ├─
📜
post-cli.js
JavaScript
169L · 4.6 KB
│ │ └─
📜
search-cli.js
JavaScript
267L · 7.3 KB
│ ├─
▾
📁
utils
│ │ ├─
📜
args.js
JavaScript
126L · 3.9 KB
│ │ ├─
📜
errors.js
JavaScript
49L · 939 B
│ │ ├─
📜
log.js
JavaScript
44L · 1.1 KB
│ │ ├─
📜
name.js
JavaScript
17L · 319 B
│ │ ├─
📜
request.js
JavaScript
173L · 4.9 KB
│ │ ├─
📜
retry.js
JavaScript
34L · 1.1 KB
│ │ ├─
🔑
token.js
⚠
JavaScript
36L · 916 B
│ │ └─
📜
utils.js
JavaScript
54L · 1.7 KB
│ └─
▾
📁
validate
│ ├─
📜
comment.js
JavaScript
36L · 905 B
│ ├─
📜
hot.js
JavaScript
18L · 703 B
│ ├─
📜
keyword.js
JavaScript
117L · 4.1 KB
│ └─
📜
post.js
JavaScript
36L · 943 B
├─
📝
SKILL.md
Markdown
153L · 5.2 KB
├─
📋
_meta.json
JSON
5L · 153 B
├─
📋
package.json
JSON
28L · 875 B
├─
📝
readme.md
Markdown
227L · 10.3 KB
└─
📝
skill-card.md
Markdown
67L · 2.8 KB
Security positives
仅使用Node.js内置模块,无外部依赖风险
无版本锁定问题
未访问敏感路径(~/.ssh、~/.aws、.env等)
未使用Base64编码或eval执行
未发现凭证收割行为
无反向shell或远程代码执行
代码结构清晰,文档完善