DEV Community

Tao Zhu
Tao Zhu

Posted on Originally published at qq459538565-bot.github.io

How I Built a $0/mo Automated US SEC 8-K Forensic Radar with GitHub Actions, MCP & Public EDGAR Data

Most retail investors and indie quant builders only discover a corporate disaster after the stock gaps down 30% in pre-market — even though the company legally filed a Form 8-K with the US SEC EDGAR database hours earlier.

Rather than paying hundreds of dollars a month for institutional terminal alerts, I built a $0/month automated SEC Form 8-K forensic radar that scans official public EDGAR disclosures every US trading day, scores critical items deterministically (0–100), and publishes both a live web dashboard and a free public JSON feed.

Why Form 8-K Matters More Than Financial News

Press releases bury bad news. SEC Form 8-K legally forces public companies to disclose material unscheduled events within four business days under structured item codes:

SEC 8-K Item Legal Meaning Typical Forensic Signal
Item 4.02 Non-Reliance on Previously Issued Financial Statements Accounting restatement or material internal control weakness
Item 4.01 Changes in Registrant's Certifying Accountant Sudden auditor resignation or disagreement
Item 1.03 Bankruptcy or Receivership Chapter 11 filing / insolvency
Item 3.01 Notice of Delisting or Failure to Satisfy Continued Listing Rule Nasdaq/NYSE non-compliance notice
Item 1.05 Material Cybersecurity Incidents Disclosed breach impacting operations
Item 5.02 Departure of Directors or Certain Officers Unplanned CFO or CEO exit

Real Output From Yesterday's Automated Scan (Nov 24, 2026)

From the automated daily scan of public EDGAR filings on 2026-11-24, the parser flagged 5 high-severity filings with direct links back to sec.gov:

  • $CRMT (America's Car-Mart, Inc.) — Item 1.03 · RED 100/100 (Insolvency / Event of Default / Debt Acceleration)
  • $AREC (American Resources Corp) — Item 4.02 · RED 100/100 (Non-Reliance / Financial Restatement)
  • $SSGC (SafeSpace Global Corp) — Item 4.02 · RED 100/100 (Non-Reliance + Material Weakness in Internal Controls)
  • $DRVN (Driven Brands Holdings Inc.) — Item 3.01 · AMBER 82/100 (Exchange Listing Notice)
  • $SOBR (SOBR Safe, Inc.) — Item 3.01 · AMBER 82/100 (Exchange Listing Notice)

The 3-Part Architecture ($0/mo Infra)

  1. Deterministic EDGAR Parser & MCP Endpoint: Uses deterministic item-code extraction and forward-order forensic regex boundaries to prevent false positives (such as flagging an interim appointment as a resignation). Hosted on Apify as an official-API Actor and directly callable from Claude Desktop, Cursor, or n8n via MCP: https://mcp.apify.com/?actors=durative_hairstreak/sec-8k-risk-signals
  2. Liquidity × Severity Ranking: Deprioritizes noisy 5-letter OTC/SPAC suffixes (*F, *Q, *W, *U) while prioritizing standard NYSE/NASDAQ liquid tickers and critical items (1.05, 1.03, 4.02, 4.01).
  3. Zero-Server GitHub Actions → GitHub Pages Pipeline: Runs Monday–Friday after US filings post, rebuilding the static dashboard and raw latest.json feed automatically.

Try the Free Live Radar, Weekly Email & MCP API

Disclaimer: Informational public SEC EDGAR filing parser only — not investment, accounting, or legal advice.

Top comments (7)

Collapse
 
alexcodebytes profile image
Oleksandr •

I like the decision to keep the scoring deterministic rather than letting an LLM decide what counts as a red flag. One thing I'd be curious about is how you handle context across multiple filings. A resignation, for example, may look routine in isolation but become a much stronger signal when combined with earlier financial or governance disclosures. That historical layer could make the radar even more useful than the severity score alone.

Collapse
 
riskopslab profile image
Tao Zhu •

Great point — keying filings by SEC CIK over a rolling 30-to-90-day window is exactly how those escalation chains stand out rather than looking like isolated noise. For example, $DRVN chained a Nov 3 Item 4.02 restatement into a Nov 24 Item 3.01 Nasdaq notice, and $CRMT stacked Items 1.03, 3.01, and 5.02 across its Nov 24–25 8-K/A filings. Out of curiosity, what lookback window or multi-filing sequence (like 5.02 officer exit after 4.02/4.01) would be most useful for your workflow?

Collapse
 
alexcodebytes profile image
Oleksandr •

I'd probably start with a 60-day window and focus on sequences like 4.02 followed by 5.02 or 3.01. The timing between filings matters too — two events close together can tell a very different story from the same events months apart. I'd rather start with a few meaningful patterns than flag every possible combination 🙂

Thread Thread
 
riskopslab profile image
Tao Zhu •

Spot on about the timing gap — a 4.02 restatement followed by a 5.02 CFO exit within 30–60 days tells a completely different story than the same two filings nine months apart. Keeping it focused on a small set of high-signal sequences instead of flagging every combination is definitely the way to keep noise down. Appreciate the concrete threshold idea!

Thread Thread
 
alexcodebytes profile image
Oleksandr •

Exactly — the goal is to catch meaningful sequences, not turn every filing into an alarm. I'd also be interested in whether the signal gets stronger when several events cluster together: a restatement, an executive departure, and perhaps a delayed filing all within the same window. Individually, each might have an innocent explanation, but together they could justify a closer look. The challenge is keeping that distinction between an investigation trigger and an actual conclusion.

Thread Thread
 
riskopslab profile image
Tao Zhu •

That "investigation trigger vs. conclusion" line is the whole trick — treating a 4.02 + 5.02 + NT 10-Q/10-K cluster within 60 days as a triage queue entry rather than a verdict keeps false positives tolerable. A simple count of distinct risk items per CIK window surfaces those multi-event clusters without needing heavy scoring weights.

Thread Thread
 
alexcodebytes profile image
Oleksandr •

Exactly. The distinction matters because a cluster of filings is a reason to look closer, not proof that something is wrong. I also like using distinct risk items per CIK window as an initial signal rather than introducing complicated scoring too early. It keeps the system explainable and makes it easier to investigate why an issuer was flagged. The next interesting challenge is probably prioritization: when several companies trigger at once, how do you distinguish an unusual sequence that deserves immediate attention from routine filing activity?