扫描报告
42 /100
safe-flow-solana-skill
Payment skill for AI agents on Solana with on-chain rate limiting
SafeFlow Solana skill has undeclared shell execution and missing referenced files, with a doc-to-code mismatch that obscures actual implementation complexity.
谨慎使用
Add complete dependency documentation (npx, ts-node, Node.js packages), verify the sdk/src/agent and target/idl/safeflow_solana.json paths exist, and declare all shell commands and network endpoints in SKILL.md.
安全发现 5 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 高危 | Undocumented shell command execution 文档欺骗 | scripts/bootstrap.sh:40 |
| 高危 | Missing referenced implementation files 文档欺骗 | scripts/execute_payment.sh:39 |
| 高危 | Undeclared Node.js runtime dependency 文档欺骗 | scripts/save_config.sh:24 |
| 中危 | Undeclared network endpoints 文档欺骗 | scripts/execute_payment.sh:44 |
| 低危 | Unpinned npx/ts-node execution 供应链 | scripts/execute_payment.sh:36 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | NONE | WRITE | ✓ 一致 | bootstrap.sh:35 writes .safeflow/config.json |
| 命令执行 | NONE | WRITE | ✓ 一致 | bootstrap.sh:40 executes solana-keygen; execute_payment.sh:36 executes npx ts-no… |
| 网络访问 | NONE | READ | ✓ 一致 | execute_payment.sh:44-46 connects to api.devnet.solana.com |
| 环境变量 | NONE | NONE | — | No environment variable access detected |
2 项发现
中危 外部 URL 外部 URL
https://api.devnet.solana.com scripts/execute_payment.sh:44 中危 外部 URL 外部 URL
https://api.mainnet-beta.solana.com scripts/execute_payment.sh:46 目录结构
4 文件 · 7.9 KB · 264 行 Shell 3f · 193L
Markdown 1f · 71L
├─
▾
scripts
│ ├─
bootstrap.sh
Shell
│ ├─
execute_payment.sh
Shell
│ └─
save_config.sh
Shell
└─
SKILL.md
Markdown
依赖分析 5 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
npx | * | npm | 否 | Not pinned, not declared in SKILL.md |
ts-node | * | npm | 否 | Not pinned, not declared in SKILL.md |
@solana/web3.js | * | npm | 否 | Not declared in SKILL.md, loaded at runtime |
@coral-xyz/anchor | * | npm | 否 | Not declared in SKILL.md, loaded at runtime |
solana-keygen | * | cli | 否 | External Solana CLI tool, not declared in SKILL.md |
安全亮点
✓ No credential harvesting or sensitive data exfiltration detected
✓ No base64-encoded obfuscation or anti-analysis techniques found
✓ No reverse shell, C2, or reverse connection behavior
✓ No hidden instructions in comments or documentation
✓ No attempts to access ~/.ssh, ~/.aws, or .env files
✓ Payment logic appears to be legitimate Solana on-chain rate limiting
✓ No evidence of persistence mechanisms (cron, startup hooks, backdoors)