Skill Trust Decision

introspection-debugger

自省调试框架具有未声明的自动安装依赖和向外部发送错误报告能力,存在数据外泄和供应链风险。

Install decision first Source: ClawHub Scanned: Jun 22, 2026
Files 4
Artifacts 2
Violations 2
Findings 4
Most direct threat evidence

Why this conclusion was reached

1/4 dimensions flagged
Block
Declared vs actual capability

2 undeclared or violating capabilities were inferred.

Review
Hidden execution and egress

2 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

阴影功能 - 未声明自动安装依赖 +20

installDependency 方法自动执行 npm install,但 SKILL.md 仅描述'自动修复'未明确声明会安装 npm 包

阴影功能 - 报告外发机制 +15

notifyHuman 通过 HTTP POST 发送完整报告(包括堆栈),SKILL.md 未说明数据去向

供应链风险 +5

npm install 无版本锁定,可能拉取恶意依赖

Most important evidence

Medium Doc Mismatch

未声明的自动依赖安装

代码在检测到 MODULE_NOT_FOUND 错误时会自动执行 npm install 安装缺失模块,但 SKILL.md 仅描述为'自动修复'未明确声明此行为,存在阴影功能。

introspection-debugger.js:161
在 SKILL.md 中明确声明:当检测到模块缺失时,框架会自动执行 npm install 命令。建议添加警告说明。
Medium Data Exfil

报告外发机制未声明

notifyHuman 方法支持通过 HTTP webhook 发送完整错误报告到外部 URL,包括堆栈信息。如果报告被配置发送到不可信端点,可能导致敏感信息(文件路径、API 密钥片段等)外泄。

introspection-debugger.js:238
1) 在 SKILL.md 明确声明报告外发机制;2) 建议对报告内容进行敏感信息过滤(如 API_KEY、TOKEN 等);3) 仅使用可信的 webhook 端点。
Low Supply Chain

npm install 无版本锁定

installDependency 方法执行 npm install 时未指定版本锁定,可能安装最新版本依赖,存在供应链攻击风险。

introspection-debugger.js:168
考虑添加 package.json 版本锁定机制,或在安装前验证包签名。
Low RCE

chmod +x 权限修改

fixPermissions 方法会自动给文件添加执行权限,用于修复 EACCES 错误。虽然是合理的调试行为,但存在被滥用执行任意脚本的风险。

introspection-debugger.js:155
确保 workspace 参数指向隔离目录,避免对系统关键文件执行 chmod。

Declared capability vs actual capability

Filesystem Pass
Declared WRITE
Inferred WRITE
SKILL.md:自动修复 - 自动创建文件
Shell Block
Declared NONE
Inferred WRITE
introspection-debugger.js:168 exec('npm install')
Network Block
Declared NONE
Inferred WRITE
introspection-debugger.js:244-256 notifyHuman POST报告
Environment Pass
Declared NONE
Inferred READ
错误堆栈可能包含环境变量中的凭证信息

Suspicious artifacts and egress

Medium External URL
https://clawhub.ai/user/danihe001

skill-card.md:7

Medium External URL
https://clawhub.ai/danihe001/introspection-debugger

skill-card.md:27

Dependencies and supply chain

PackageVersionSourceKnown vulnNotes
node-fetch (或 node:https) builtin stdlib No 使用 Node.js 内置 https 模块进行网络请求

File composition

4 files · 660 lines
JavaScript 1 files · 526 linesMarkdown 2 files · 129 linesJSON 1 files · 5 lines
Files of concern · 2
introspection-debugger.js JavaScript · 526 lines
未声明的自动依赖安装 · 报告外发机制未声明 · npm install 无版本锁定 · chmod +x 权限修改
skill-card.md Markdown · 41 lines
https://clawhub.ai/user/danihe001 · https://clawhub.ai/danihe001/introspection-debugger
Other files · SKILL.md · _meta.json

Security positives

代码结构清晰,无混淆或恶意编码
错误规则库设计合理,覆盖常见错误类型
提供通知钩子机制,便于集成和监控
支持错误历史记录和统计分析
skill-card.md 明确声明了 Known Risks 并提供了 Mitigation 建议