Skill Trust Decision
run402-test
功能正常的数据库配置工具,但存在文档-行为差异(未声明本地配置读取)
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
4 lower-risk artifacts were extracted and still need context.
Pass
Attack chain and severe findings
There is no explicit malicious chain in the report.
Review
Dependencies and supply chain hygiene
Dependency information is incomplete, so supply-chain confidence stays limited.
What drove the risk score up
文档-行为差异 +15
SKILL.md 只描述 curl REST API 调用,但代码实际读取 ~/.config/run402/projects.json
敏感路径访问 +10
使用 homedir() 访问用户配置目录,但属于合法数据库工具用途
无恶意行为 +-5
代码功能正常,无凭证外泄、无网络异常、无混淆代码
Most important evidence
Low Doc Mismatch
未声明的本地配置读取
代码读取 ~/.config/run402/projects.json 获取 service_key,但 SKILL.md 仅描述 REST API 调用流程,未提及本地配置依赖
sql2.mjs:8 在 SKILL.md 补充说明:需提前通过 CLI 或其他方式配置项目,或描述本地配置文件格式
Low Sensitive Access
访问用户配置目录
使用 homedir() 访问用户主目录下的 .config/run402 路径,读取包含 service_key 的配置文件
sql2.mjs:6 属于正常数据库工具行为,但应在文档中声明
Info RCE
SQL 参数直接拼接
process.argv.slice(3).join(' ') 直接作为 SQL body 发送,无参数化查询,但属于 PostgreSQL REST API 的正常用法
sql2.mjs:14 这是远程 API 的预期用法,调用方需自行确保 SQL 安全性
Declared capability vs actual capability
Filesystem Pass
Declared READ
→ Inferred READ
sql2.mjs:8 读取 ~/.config/run402/projects.json,但 SKILL.md 未声明此行为 Network Pass
Declared READ
→ Inferred READ
sql2.mjs:13-15 向 api.run402.com 发送 SQL 请求,与文档一致 Environment Pass
Declared NONE
→ Inferred NONE
无环境变量遍历 Shell Pass
Declared NONE
→ Inferred NONE
无 shell 命令执行 Suspicious artifacts and egress
Medium External URL
https://api.run402.com/v1/projects SKILL.md:13
Medium External URL
https://api.run402.com/admin/v1/projects/$PROJECT_ID/sql SKILL.md:24
Medium External URL
https://api.run402.com/rest/v1/todos?done=eq.false SKILL.md:33
Medium External URL
https://api.run402.com sql2.mjs:5
Dependencies and supply chain
There are no structured dependency warnings.
File composition
2 files · 58 lines
Markdown 1 files · 43 linesJavaScript 1 files · 15 lines
Files of concern · 2
SKILL.md https://api.run402.com/v1/projects · https://api.run402.com/admin/v1/projects/$PROJECT_ID/sql · https://api.run402.com/rest/v1/todos?done=eq.false
sql2.mjs 未声明的本地配置读取 · 访问用户配置目录 · SQL 参数直接拼接 · https://api.run402.com
Security positives
代码逻辑清晰简单,无混淆
无凭证外泄行为(service_key 仅用于远程 API 认证)
网络请求指向明确的服务端点 api.run402.com
无反向 shell、恶意依赖或后门代码