低风险 — 风险评分 15/100
上次扫描:1 天前 重新扫描
15 /100
occ
Control OpenCode to execute development tasks via CLI
This is a legitimate OpenCode CLI controller that manages development sessions with standard tooling patterns. No malicious behavior detected.
技能名称occ
分析耗时38.0s
引擎pi
可以安装
This skill is safe to use. Consider pinning axios to a specific version in package.json for improved supply chain hygiene.

安全发现 2 项

严重性 安全发现 位置
低危
Shell execution not declared in SKILL.md 文档欺骗
The skill uses exec('npm install') and spawn('opencode') but SKILL.md only mentions 'node skills/occ/scripts/bin/opencode-server.js' without declaring shell:WRITE capability
const npmInstall = exec('npm install', { cwd: scriptDir });
→ Document shell:WRITE capability and npm install behavior in SKILL.md
scripts/bin/opencode-server.js:29
低危
Dependency version not pinned 供应链
axios uses ^1.6.0 range allowing automatic minor/patch updates
"axios": "^1.6.0"
→ Pin to exact version: "axios": "1.6.0"
scripts/package.json:13
资源类型声明权限推断权限状态证据
文件系统 READ WRITE ✓ 一致 npm install writes node_modules
网络访问 NONE READ ✓ 一致 HTTP requests to localhost:4096-4200
命令执行 NONE WRITE ✓ 一致 spawn('opencode') and exec('npm install')
环境变量 NONE READ ✓ 一致 Standard PATH lookup for 'opencode' binary

目录结构

8 文件 · 14.8 KB · 574 行
JavaScript 6f · 497L Markdown 1f · 58L JSON 1f · 19L
├─ 📁 scripts
│ ├─ 📁 bin
│ │ └─ 📜 opencode-server.js JavaScript 123L · 3.2 KB
│ ├─ 📁 src
│ │ ├─ 📁 services
│ │ │ ├─ 📜 message.js JavaScript 174L · 4.7 KB
│ │ │ └─ 📜 session.js JavaScript 47L · 1.2 KB
│ │ ├─ 📁 utils
│ │ │ ├─ 📜 http.js JavaScript 43L · 991 B
│ │ │ └─ 📜 server.js JavaScript 102L · 2.5 KB
│ │ └─ 📜 index.js JavaScript 8L · 245 B
│ └─ 📋 package.json JSON 19L · 485 B
└─ 📝 SKILL.md Markdown 58L · 1.6 KB

依赖分析 1 项

包名版本来源已知漏洞备注
axios ^1.6.0 npm Version range allows updates

安全亮点

✓ All network communication is localhost-only (127.0.0.1)
✓ No access to sensitive paths (~/.ssh, ~/.aws, .env)
✓ No credential harvesting or exfiltration behavior
✓ No obfuscation or base64-encoded payloads
✓ No external IP connections or C2 indicators
✓ Port scanning is documented in SKILL.md
✓ Session management is scoped to local development workflow