Scan Report
45 /100
polymarket-opportunities-scanning
Scan Polymarket prediction markets for book arbitrage opportunities, generate formatted report, deliver via Telegram and email
Skill declares only network:READ via public API, but actual code uses shell:WRITE (execSync/osascript) and filesystem:WRITE without disclosure in documentation.
Use with caution
SKILL.md must be updated to declare shell execution, filesystem writes, and environment variable access. Consider if shell execution via execSync is necessary or if a safer alternative exists.
Findings 4 items
| Severity | Finding | Location |
|---|---|---|
| High | Shell execution undeclared in SKILL.md Doc Mismatch | scripts/send-report.js:47 |
| High | osascript/AppleScript execution undeclared Doc Mismatch | scripts/send-report.js:55 |
| Medium | Filesystem write access not declared Doc Mismatch | scripts/scanner.js:217 |
| Medium | .env loading not documented Doc Mismatch | scripts/send-report.js:15 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Network | READ | READ | ✓ Aligned | scanner.js:13 fetches gamma-api.polymarket.com |
| Shell | NONE | WRITE | ✗ Violation | send-report.js:47 execSync, send-report.js:55 osascript |
| Filesystem | NONE | WRITE | ✗ Violation | scanner.js:217 fs.writeFileSync |
| Environment | NONE | READ | ✗ Violation | send-report.js:15-24 .env loading |
3 findings
Medium External URL 外部 URL
https://polymarket.com/event/... SKILL.md:65 Medium External URL 外部 URL
https://gamma-api.polymarket.com scripts/scanner.js:12 Medium External URL 外部 URL
https://polymarket.com/event/$ scripts/scanner.js:151 File Tree
4 files · 18.5 KB · 551 lines JavaScript 2f · 372L
Markdown 2f · 179L
├─
▾
references
│ └─
setup.md
Markdown
├─
▾
scripts
│ ├─
scanner.js
JavaScript
│ └─
send-report.js
JavaScript
└─
SKILL.md
Markdown
Security Positives
✓ Uses native fetch API, no external dependencies with known vulnerabilities
✓ No hardcoded credentials or API keys in source code
✓ No base64 obfuscation or suspicious encoding patterns
✓ Legitimate financial data analysis use case with plausible business justification
✓ Output file (opportunities.json) is local and not exfiltrated