Scan Report
5 /100
Polymarket-Brain
Automated geopolitical and macroeconomic analysis pipeline that fetches CNBC news, routes to expert skills, matches Polymarket prediction markets, and delivers trading recommendations to Discord
A legitimate market-analysis pipeline that fetches news, routes to expert skills, matches Polymarket markets, and posts to Discord. No malicious indicators found—no credential theft, exfiltration, obfuscation, or undeclared sensitive behavior.
Safe to install
Approve for use. Consider pinning Discord webhook URLs in environment variables rather than hardcoding across scripts.
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Low | subprocess usage not explicitly declared in SKILL.md Doc Mismatch | polymarket_brain_orchestrator.py:68 |
| Low | Hardcoded Windows user path in multiple scripts Doc Mismatch | run_workflow.py:11 |
| Low | Discord webhook tokens hardcoded in source files Sensitive Access | send_discord.py:9 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Network | READ | READ | ✓ Aligned | urllib/requests to CNBC RSS, Polymarket API, Discord webhooks—all documented and… |
| Filesystem | WRITE | WRITE | ✓ Aligned | Writes output JSON, analysis files, logs to output/ and memory/ directories |
| Shell | WRITE | WRITE | ✓ Aligned | subprocess.run([sys.executable, script]) for local Python scripts—documented and… |
| Environment | NONE | READ | ✓ Aligned | Reads USERPROFILE, APPDATA, SKILLS_ROOT, PYTHONIOENCODING—standard env vars for … |
| Skill Invoke | READ | READ | ✓ Aligned | Routes to geopolitics-expert, the-fed-agent via keyword classification |
| Clipboard | NONE | NONE | — | Not used |
| Browser | NONE | NONE | — | Not used; references to browser skills are routing logic, not actual browser inv… |
| Database | NONE | NONE | — | Not used |
62 findings
Medium External URL 外部 URL
https://discord.com/api/webhooks/1483478506070474922/ReIZsU3KTpXqNseTWFBNsuPJ-FbYgqEuCTELtMHRWw4ND8vVjMUr36b6LyusiOoJn66... FINAL_SUMMARY.txt:82 Medium External URL 外部 URL
https://discord.com/api/webhooks/1483478506070474922/... INSTALLATION_COMPLETE.txt:101 Medium External URL 外部 URL
https://polymarket.com/event/will-the-iranian-regime-fall-by-june-30 KNOWLEDGE_SNAPSHOT.json:41 Medium External URL 外部 URL
https://polymarket.com/event/us-x-iran-ceasefire-by KNOWLEDGE_SNAPSHOT.json:46 Medium External URL 外部 URL
https://polymarket.com/event/iran-x-israelus-conflict-ends-by KNOWLEDGE_SNAPSHOT.json:51 Medium External URL 外部 URL
https://polymarket.com/event/us-forces-enter-iran-by KNOWLEDGE_SNAPSHOT.json:56 Medium External URL 外部 URL
https://polymarket.com/event/iran-leadership-change-by KNOWLEDGE_SNAPSHOT.json:61 Medium External URL 外部 URL
https://polymarket.com/event/fed-decision-in-march KNOWLEDGE_SNAPSHOT.json:66 Medium External URL 外部 URL
https://polymarket.com/event/will-crude-oil-cl-hit-by-end-of-march KNOWLEDGE_SNAPSHOT.json:71 Medium External URL 外部 URL
https://polymarket.com/event/us-recession-by-end-of-2026 KNOWLEDGE_SNAPSHOT.json:76 Medium External URL 外部 URL
https://www.cnbc.com/world-politics/ PERSISTENCE_VERIFICATION.md:36 Medium External URL 外部 URL
https://polymarket.com/ PERSISTENCE_VERIFICATION.md:37 Medium External URL 外部 URL
https://discord.com/api/webhooks/1482043765471445333/YOUR_KEY_HERE README.md:84 Medium External URL 外部 URL
https://discord.com/api/webhooks/1482043765471445333/YOUR_KEY README.md:89 Medium External URL 外部 URL
https://discord.com/api/webhooks/1483478506070474922/YOUR_KEY README.md:90 Medium External URL 外部 URL
https://discord.com/api/webhooks/1482043765471445333/... SKILL.md:32 Medium External URL 外部 URL
https://polymarket.com/event/will-crude-oil-cl-hit__-by-end-of-march SKILL.md:252 Medium External URL 外部 URL
https://polymarket.com/event/will-crude-oil-cl-hit-100-by-end-of-march SKILL.md:253 Medium External URL 外部 URL
https://discord.com/... TROUBLESHOOTING.md:169 Medium External URL 外部 URL
https://polymarket.com/event/ ai_analyzer.py:401 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/17/iran-war-uae-energy-gas-field-oil-fujairah-strait-of-hormuz.html analysis/geopolitics-expert-2026-03-17.md:5 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/17/treasury-yields-middle-east-tensions-fed-decision.html analysis/the-fed-agent-2026-03-17.md:5 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/18/trump-jones-act-oil-iran-war.html output/analysis_input_1.json:4 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/18/vance-oil-industry-gas-prices-iran-war.html output/analysis_input_2.json:4 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/18/dot-plot-fed-still-expects-to-cut-rates-once-this-year-despite-spiking-oil-prices-.html output/analysis_input_5.json:4 Medium External URL 外部 URL
https://polymarket.com/event/will-the-iranian-regime-fall-by-the-end-of-2026 output/discord-message.md:35 Medium External URL 外部 URL
https://polymarket.com/event/us-iran-nuclear-deal-before-2027 output/discord-message.md:36 Medium External URL 外部 URL
https://polymarket.com/event/will-the-us-invade-iran-before-2027 output/discord-message.md:37 Medium External URL 外部 URL
https://polymarket.com/event/russia-x-ukraine-ceasefire-before-2027 output/discord-message.md:38 Medium External URL 外部 URL
https://polymarket.com/event/oil-exceeds-120-before-june-2026 output/discord-message.md:39 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/18/european-markets-stoxx-600-ftse-dax-cac-iran-news-oil-prices.html output/phase2_analyses.json:91 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/18/ai-data-center-buildout-jobs-salary-skilled-traders-worker-shortage.html output/phase2_analyses.json:124 Medium External URL 外部 URL
https://polymarket.com/event/will-iranian-regime-fall-by-june-30? output/phase3_markets.json:12 Medium External URL 外部 URL
https://polymarket.com/event/us-x-iran-ceasefire-by-december-31? output/phase3_markets.json:22 Medium External URL 外部 URL
https://polymarket.com/event/us-forces-enter-iran-by-december-31? output/phase3_markets.json:32 Medium External URL 外部 URL
https://polymarket.com/event/will-crude-oil-hit-$100+-by-end-of-march? output/phase3_markets.json:42 Medium External URL 外部 URL
https://polymarket.com/event/us-recession-by-end-of-2026? output/phase3_markets.json:52 Medium External URL 外部 URL
https://polymarket.com/event/will-crude-oil-cl-hit-120-by-june-30 output/polymarket-brain-summary-2026-03-17.md:60 Medium External URL 外部 URL
https://discord.com/api/webhooks/1482043765471445333/-cHOLCqBtvU_Wua8STfoINes7J0pFNFsXB27EJ3f8F7BklC5P_OkIGAx2HQLDPZe1bN... polymarket_brain_orchestrator.py:30 Medium External URL 外部 URL
https://www.cnbc.com/iran-gulf polymarket_brain_orchestrator.py:356 Medium External URL 外部 URL
https://www.cnbc.com/oil-hormuz polymarket_brain_orchestrator.py:357 Medium External URL 外部 URL
https://www.cnbc.com/fed-stagflation polymarket_brain_orchestrator.py:358 Medium External URL 外部 URL
https://gamma-api.polymarket.com/events references/config.md:7 Medium External URL 外部 URL
https://polymarket.com/event/iran-x-us-israel-conflict-ends-by-2026 references/discord-format.md:43 Medium External URL 外部 URL
https://polymarket.com/event/iran-leadership-change-2026 references/discord-format.md:45 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/17/epstein-pam-bondi-trump-doj-subpoena.html scripts/cnbc_articles_output.md:7 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/17/trump-nato-iran-war-allies-china.html scripts/cnbc_articles_output.md:24 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/17/save-america-act-voter-id-trump-senate.html scripts/cnbc_articles_output.md:40 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/17/dhs-shutdown-trump-homeland-security-senate-democrats-counteroffer.html scripts/cnbc_articles_output.md:56 Medium External URL 外部 URL
https://www.cnbc.com/2026/03/17/this-tech-stock-is-primed-for-a-big-move-higher-how-to-trade-it-using-options.html scripts/cnbc_articles_output.md:73 Medium External URL 外部 URL
https://polymarket.com/api scripts/orchestrate.py:29 Medium External URL 外部 URL
https://polymarket.com/event/iran-regime-fall scripts/orchestrate.py:152 Medium External URL 外部 URL
https://polymarket.com/event/us-iran-ceasefire scripts/orchestrate.py:158 Medium External URL 外部 URL
https://polymarket.com/event/fed-rate-cut scripts/orchestrate.py:166 Medium External URL 外部 URL
https://www\.cnbc\.com/[^\s scripts/run_polymarket_brain.py:163 Medium External URL 外部 URL
https://polymarket.com/event/iran-conflict-ends-2026 scripts/send_discord_summary.py:113 Medium External URL 外部 URL
https://polymarket.com/market/fed scripts/send_markets.py:20 Medium External URL 外部 URL
https://polymarket.com/market/inflation scripts/send_markets.py:21 Medium External URL 外部 URL
https://polymarket.com/market/treasury scripts/send_markets.py:22 Medium External URL 外部 URL
https://polymarket.com/market/stagflation scripts/send_markets.py:23 Medium External URL 外部 URL
https://polymarket.com/market/oil scripts/send_markets.py:24 Medium External URL 外部 URL
https://polymarket.com/event/will-the-iranian-regime-fall-by-june-30\n test_message_length.py:39 File Tree
52 files · 242.7 KB · 6484 lines Python 21f · 3479L
Markdown 17f · 2236L
JSON 11f · 427L
Text 3f · 342L
├─
▾
analysis
│ ├─
geopolitics-expert-2026-03-17.md
Markdown
│ └─
the-fed-agent-2026-03-17.md
Markdown
├─
▾
memory
│ ├─
2026-03-17-cnbc-fed-treasurys.md
Markdown
│ └─
2026-03-17-cnbc-iran-uae.md
Markdown
├─
▾
output
│ ├─
analysis_input_1.json
JSON
│ ├─
analysis_input_2.json
JSON
│ ├─
analysis_input_3.json
JSON
│ ├─
analysis_input_4.json
JSON
│ ├─
analysis_input_5.json
JSON
│ ├─
discord-message.md
Markdown
│ ├─
discord-payload.json
JSON
│ ├─
phase1_articles.json
JSON
│ ├─
phase2_analyses.json
JSON
│ ├─
phase2_expert_analysis.json
JSON
│ ├─
phase3_markets.json
JSON
│ └─
polymarket-brain-summary-2026-03-17.md
Markdown
├─
▾
references
│ ├─
config.md
Markdown
│ ├─
discord-format.md
Markdown
│ └─
workflow.md
Markdown
├─
▾
scripts
│ ├─
cnbc_articles_output.md
Markdown
│ ├─
orchestrate.py
Python
│ ├─
orchestrator.py
Python
│ ├─
run_full_workflow.py
Python
│ ├─
run_polymarket_brain.py
Python
│ ├─
run_workflow.py
Python
│ ├─
send_discord_summary.py
Python
│ ├─
send_discord.py
Python
│ └─
send_markets.py
Python
├─
ai_analyzer.py
Python
├─
FINAL_SUMMARY.txt
Text
├─
GUARANTEE.txt
Text
├─
INSTALLATION_COMPLETE.txt
Text
├─
KNOWLEDGE_SNAPSHOT.json
JSON
├─
PERSISTENCE_VERIFICATION.md
Markdown
├─
polymarket_brain_orchestrator_FIXED.py
Python
├─
polymarket_brain_orchestrator.py
Python
├─
PRE_TEST_CHECKLIST.md
Markdown
├─
README.md
Markdown
├─
RESTART_GUARANTEE.md
Markdown
├─
run_phases_2_4.py
Python
├─
send_discord.py
Python
├─
send_to_discord.py
Python
├─
SKILL.md
Markdown
├─
test_both_webhooks.py
Python
├─
test_message_length.py
Python
├─
test_orchestrator_header.py
Python
├─
test_phase1_webhook.py
Python
├─
test_urllib_headers.py
Python
├─
test_urllib.py
Python
├─
test_webhook.py
Python
├─
TROUBLESHOOTING.md
Markdown
└─
WORKFLOW_LOGIC.md
Markdown
Security Positives
✓ No credential harvesting—skill never accesses ~/.ssh, ~/.aws, .env, or similar sensitive paths
✓ No data exfiltration—outbound network requests only to legitimate APIs (CNBC RSS, Polymarket API, Discord webhooks)
✓ No obfuscation—zero base64, atob, eval(), or hidden encoded payloads
✓ No remote script execution—subprocess only invokes local Python scripts within the skill bundle
✓ Documentation is accurate—SKILL.md accurately describes the 4-phase workflow and matches code behavior
✓ No supply chain threats—uses standard libraries (requests, urllib, json, subprocess) with no external dependencies declared
✓ Skill self-contains its outputs—analysis results written to local output/ directory, not exfiltrated
✓ Exit code 0 always on no-new-news is a good resilience pattern
✓ No persistence mechanisms—no cron, startup hooks, or backdoor installation detected
✓ Discord webhook tokens are public Discord webhooks (not server-side secrets) but still should be env-variable backed