polymarket-opportunities-scanning
Skill declares only network:READ via public API, but actual code uses shell:WRITE (execSync/osascript) and filesystem:WRITE without disclosure in documentation.
SKILL.md states 'No external API keys required' and implies only network:READ via public fetch. However, send-report.js uses execSync to spawn shell processes and osascript for AppleScript execution — shell:WRITE capability not disclosed.
scripts/send-report.js:47 为什么得出这个结论
2/4 个维度触发发现 3 项声明之外的能力或越权行为。
提取到 3 个一般风险产物,需要结合上下文判断。
报告包含 0 步攻击链,另有 2 项高危或严重发现。
没有完整依赖信息,供应链判断需要保留弹性。
风险分是怎么被拉高的
SKILL.md claims no external deps, only network:READ, but send-report.js uses execSync to run node commands
AppleScript execution via osascript not declared — allows arbitrary macOS command execution
Writes opportunities.json without declaration in SKILL.md
最关键的证据
Shell execution undeclared in SKILL.md
SKILL.md states 'No external API keys required' and implies only network:READ via public fetch. However, send-report.js uses execSync to spawn shell processes and osascript for AppleScript execution — shell:WRITE capability not disclosed.
scripts/send-report.js:47 osascript/AppleScript execution undeclared
Email delivery via osascript is not mentioned in SKILL.md. This allows arbitrary macOS command execution through AppleScript, a significant attack vector if the .env is compromised or the script is modified.
scripts/send-report.js:55 Filesystem write access not declared
SKILL.md does not mention that scanner.js writes opportunities.json to disk. While legitimate for the use case, this filesystem:WRITE capability should be declared.
scripts/scanner.js:217 .env loading not documented
send-report.js loads configuration from .env file but this behavior is not mentioned in SKILL.md setup instructions (only references/setup.md).
scripts/send-report.js:15 声明能力 vs 实际能力
scanner.js:13 fetches gamma-api.polymarket.com send-report.js:47 execSync, send-report.js:55 osascript scanner.js:217 fs.writeFileSync send-report.js:15-24 .env loading 可疑产物与外联
https://polymarket.com/event/... SKILL.md:65
https://gamma-api.polymarket.com scripts/scanner.js:12
https://polymarket.com/event/$ scripts/scanner.js:151
依赖与供应链
没有结构化依赖告警。
文件构成
scripts/scanner.js scripts/send-report.js SKILL.md