# SEC 8-K Risk Signals & Corporate Distress Monitor (`durative_hairstreak/sec-8k-risk-signals`) Actor

Extract high-signal SEC Form 8-K risk events (cyber breaches 1.05, restatements 4.02, auditor exits 4.01, C-suite departures 5.02, bankruptcies 1.03, delistings 3.01) & SEC comment letters with 0-100 risk scores and clean MCP/n8n/Clay JSON.

- **URL**: https://apify.com/durative_hairstreak/sec-8k-risk-signals.md
- **Developed by:** [Tao Zhu](https://apify.com/durative_hairstreak) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 risk filing analyzeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SEC 8-K Risk Signals & Corporate Distress Monitor

**Real-time corporate red-flag intelligence straight from official US SEC EDGAR APIs (`data.sec.gov` & `efts.sec.gov`) — built for AI Agents (MCP), Quant & Equity Research, Third-Party Risk Management (TPRM), and B2B Sales Triggers (Clay / n8n / Make).**

Stop dumping messy 50KB inline-XBRL HTML blobs into your LLM or spreadsheet. This Actor monitors the **10 highest-severity SEC Form 8-K risk items** (plus **SEC accounting comment letters** in watchlist mode), strips all XBRL cover-page noise, extracts the exact matched `Item X.XX` prose, runs **negation-aware forensic phrase detection**, and outputs a deterministic **`0–100` Risk Score** with **`RED` / `AMBER` / `GREEN`** traffic-light classification in ~4 seconds at virtually zero compute cost.

***

### Why Use This Actor Instead of Generic SEC EDGAR Scrapers?

| Feature | Generic EDGAR Scrapers | **SEC 8-K Risk Signals Monitor** |
| :--- | :--- | :--- |
| **Signal Precision** | Dumps every routine earnings / exhibit filing | Strictly filters official SEC `items` array for **10 high-severity risk triggers** |
| **Inline XBRL Cleanup** | Raw HTML full of `<ix:hidden>` & cover noise | Strips `<ix:header>`/`<ix:hidden>`, jumps straight to exact `Item X.XX` prose (saves ~80% LLM tokens) |
| **Negation-Aware Scoring** | Naive keyword search triggers false alarms on *"no disagreements"* | Deterministic **0–100 Risk Score**, **RED/AMBER/GREEN**, & **16 negation-aware forensic detectors** |
| **Two Production Modes** | Usually single mode | **`market_scan`** (all US public firms via EFTS) + **`ticker_audit`** (watchlist + `UPLOAD`/`CORRESP` SEC comment letters) |
| **Speed & Reliability** | Fragile headless browser scraping | **100% official SEC JSON/HTML endpoints**, polite rate limiting, zero proxies, avg ~4s run time |

***

### Supported High-Signal SEC 8-K Risk Events

| SEC Item | Official SEC Title | Category Tag | Primary Buyer Use Cases |
| :---: | :--- | :--- | :--- |
| **`1.03`** | Bankruptcy or Receivership | `BANKRUPTCY_DISTRESS` | Credit risk, distressed debt, supplier insolvency alerts |
| **`4.02`** | Non-Reliance on Previously Issued Financial Statements | `FINANCIAL_RESTATEMENT` | Financial restatement detection, short/quant risk screens |
| **`3.01`** | Notice of Delisting / Listing Rule Failure | `DELISTING_RISK` | Exchange compliance, liquidity & micro-cap risk guards |
| **`2.04`** | Debt Default / Acceleration of Financial Obligation | `DEBT_DEFAULT` | Private credit covenant monitoring & counterparty alerts |
| **`4.01`** | Changes in Certifying Accountant (Auditor Exit) | `AUDITOR_CHANGE` | Forensic accounting red flags, audit/advisory triggers |
| **`1.05`** | Material Cybersecurity Incidents | `CYBER_INCIDENT` | **TPRM vendor breach monitoring & cybersecurity B2B GTM leads** |
| **`2.06`** | Material Impairments | `MATERIAL_IMPAIRMENT` | Balance-sheet goodwill write-down & asset quality tracking |
| **`1.02`** | Termination of a Material Definitive Agreement | `CONTRACT_TERMINATION` | Customer concentration loss & supply-chain disruption alerts |
| **`2.05`** | Exit or Disposal Activities (Layoffs / Restructuring) | `RESTRUCTURING_LAYOFFS` | Corporate turnaround, cost-cutting, & workforce reduction tracking |
| **`5.02`** | Departure / Appointment of Principal Officers (CEO/CFO) | `EXECUTIVE_TURNOVER` | C-suite turnover alerts for funds, executive search, & enterprise sales |
| **`UPLOAD` / `CORRESP`** | SEC Staff Accounting Comment Letters *(Watchlist Mode)* | `SEC_COMMENT_LETTER` | Regulatory accounting scrutiny & disclosure review monitoring |

***

### Live Verified Sample Output (Real SEC EDGAR Filings)

| Filing Date | Ticker / Issuer | Signal | SEC Items | Forensic Red Flags Extracted |
| :--- | :--- | :---: | :---: | :--- |
| `2026-11-20` | **SNTI** (Senti Biosciences Holdings, Inc.) | `RED 99/100` | `4.01` | Material Weakness in Internal Controls; Substantial Doubt / Going Concern |
| `2026-11-19` | **OZVN** (OZ VISION INC.) | `RED 100/100` | `4.02` | Non-Reliance / Financial Restatement; Material Weakness |
| `2026-11-20` | **INM** (Mentari Therapeutics, Inc.) | `RED 97/100` | `4.01` | Substantial Doubt / Going Concern |
| `2026-11-12` | **NVDA** (NVIDIA CORP) | `RED 72/100` | `5.02` | CEO Departure / Termination; Immediate Effective Departure |

***

### Quick Start Input Examples

#### 1. Daily Market-Wide Cybersecurity Breach & Accounting Red-Flag Scan (`market_scan`)

```json
{
  "mode": "market_scan",
  "riskItems": ["1.05", "4.01", "4.02", "1.03", "3.01"],
  "lookbackDays": 30,
  "maxResults": 30,
  "includeExcerpts": true,
  "minRiskScore": 65
}
```

#### 2. Portfolio / Vendor Watchlist Forensic Audit (`ticker_audit`)

```json
{
  "mode": "ticker_audit",
  "tickers": ["SMCI", "CRWD", "NVDA", "TSLA"],
  "riskItems": ["1.05", "4.01", "4.02", "5.02", "2.05", "2.06"],
  "lookbackDays": 180,
  "includeCommentLetters": true,
  "includeExcerpts": true,
  "maxResults": 50
}
```

***

### Integration Snippets (MCP, Python, cURL, n8n, Clay)

#### Connect Directly to Claude Desktop / Cursor via Apify MCP (`mcp.apify.com`)

```json
{
  "mcpServers": {
    "apify-sec-risk-monitor": {
      "url": "https://mcp.apify.com/?actors=durative_hairstreak/sec-8k-risk-signals",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

Prompt example: *"Scan SEC 8-K filings from the last 14 days for any public company reporting a cybersecurity incident (Item 1.05) or financial restatement (Item 4.02) and rank them by risk score."*

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("durative_hairstreak/sec-8k-risk-signals").call(run_input={
    "mode": "market_scan",
    "riskItems": ["1.05", "4.01", "4.02"],
    "lookbackDays": 14,
    "maxResults": 20,
    "minRiskScore": 65,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["headlineSummary"])
```

#### cURL / Clay / n8n Webhook

```bash
curl -X POST "https://api.apify.com/v2/acts/durative_hairstreak~sec-8k-risk-signals/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"market_scan","riskItems":["1.05","4.02"],"lookbackDays":7,"maxResults":10}'
```

***

### Frequently Asked Questions (FAQ)

#### How fast does this Actor run and do I need proxies?

No proxies or headless browsers are required. Because it uses official US SEC EDGAR JSON and archive APIs directly (`efts.sec.gov` and `data.sec.gov`) with built-in SEC fair-access rate limiting, a typical 10-filing scan completes in **~3–5 seconds** on 256MB memory.

#### How do you avoid false positives on routine Item 4.01 auditor rotations?

Every SEC Form 8-K Item 4.01 contains boilerplate language such as *"there were no disagreements with our former auditor and no reportable events."* Our scoring engine applies **negation-aware context checks** so negated boilerplate never inflates the risk score — only affirmative red flags (material weakness, going concern, actual disagreements, restatements, ransomware, data exfiltration) trigger boosts.

#### Can I monitor SEC Form 8-K Item 1.05 cybersecurity disclosures for B2B sales or TPRM?

Yes. Set `"mode": "market_scan"` and `"riskItems": ["1.05"]` on a daily Apify Schedule or n8n cron trigger to receive structured alerts whenever a US public company discloses a material cybersecurity breach, complete with cleaned prose excerpts and ransomware/exfiltration tags.

#### How does it handle SEC accounting comment letters (`UPLOAD` / `CORRESP`)?

In `"mode": "ticker_audit"`, keep `"includeCommentLetters": true` to pull official SEC Division of Corporation Finance comment letters and company responses alongside Form 8-K risk events for every ticker or CIK in your watchlist.

***

### Related B2B Risk & Compliance Tools by `durative_hairstreak`

Explore our companion official-API B2B risk monitoring Actors on [apify.com/durative_hairstreak](https://apify.com/durative_hairstreak):

- **SEC 8-K Risk Signals & Corporate Distress Monitor** *(this Actor)* — US public company financial, governance & cyber breach disclosures
- **SaaS & Cloud Status Page SLA Uptime Monitor** — Real-time multi-vendor outage detection & merged-interval 30d/90d SLA % auditing
- **B2B Vendor Security Posture & Trust Signal Auditor** — Zero-WAF Vanta/Drata/SafeBase GRC platform detection, DMARC/SPF/MX stack & TLS/header auditing

***

### Legal & Compliance Notice

This Actor accesses **100% publicly available US SEC EDGAR government disclosures** (`data.sec.gov`, `efts.sec.gov`, `www.sec.gov`) strictly respecting SEC fair-access rate limits and User-Agent identification guidelines. Outputs are provided strictly for informational, compliance monitoring, and engineering automation purposes and **do not constitute investment, financial, accounting, or legal advice**.

# Actor input Schema

## `mode` (type: `string`):

Choose 'market_scan' to scan all US public filings across SEC EDGAR for selected risk items, or 'ticker_audit' to deeply audit specific stock tickers or CIKs (including SEC comment letters).

## `riskItems` (type: `array`):

High-signal SEC Form 8-K Item codes to monitor. Supported codes: 1.03 (Bankruptcy), 4.02 (Financial Restatement), 3.01 (Delisting), 2.04 (Debt Default), 4.01 (Auditor Change), 1.05 (Cybersecurity Incident), 2.06 (Material Impairment), 1.02 (Agreement Termination), 2.05 (Restructuring/Layoffs), 5.02 (C-Suite Departure).

## `tickers` (type: `array`):

US stock tickers (e.g., SMCI, CRWD, NVDA, TSLA) or 10-digit SEC CIKs to audit. Required when Scan Mode is 'ticker_audit'.

## `lookbackDays` (type: `integer`):

Number of calendar days back from today to scan (ignored if startDate is explicitly provided).

## `maxResults` (type: `integer`):

Maximum number of risk-scored SEC filings to extract and return. Respects your Apify Pay-Per-Event spending cap automatically.

## `includeExcerpts` (type: `boolean`):

Fetch the official SEC filing HTML, strip inline XBRL noise, extract the matched Item section text, and detect 20+ forensic risk phrases (e.g., material weakness, ransomware, going concern, restatement).

## `includeCommentLetters` (type: `boolean`):

In 'ticker_audit' mode, also extract SEC staff comment letters (UPLOAD) and issuer responses (CORRESP) within the lookback window.

## `minRiskScore` (type: `integer`):

Filter output to only include filings meeting or exceeding this deterministic risk score (e.g., 65 for HIGH/CRITICAL alerts only).

## `keywordFilter` (type: `string`):

Optional keyword or phrase to narrow results (e.g., 'ransomware', 'material weakness', 'CFO', 'Chapter 11').

## `startDate` (type: `string`):

Optional explicit start date in YYYY-MM-DD format. Overrides lookbackDays when provided.

## `endDate` (type: `string`):

Optional explicit end date in YYYY-MM-DD format. Defaults to today (UTC).

## `excerptMaxChars` (type: `integer`):

Maximum character length of the cleaned Item prose excerpt per filing (optimized for LLM / MCP token budgets).

## `secUserAgent` (type: `string`):

Optional SEC-compliant User-Agent header ('Organization ContactEmail'). Leave blank to use the default compliant header.

## Actor input object example

```json
{
  "mode": "market_scan",
  "riskItems": [
    "1.05",
    "4.01",
    "4.02",
    "1.03",
    "3.01",
    "5.02"
  ],
  "tickers": [
    "SMCI",
    "CRWD",
    "NVDA"
  ],
  "lookbackDays": 30,
  "maxResults": 25,
  "includeExcerpts": true,
  "includeCommentLetters": true,
  "minRiskScore": 0,
  "excerptMaxChars": 1800
}
```

# Actor output Schema

## `riskSignals` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "market_scan",
    "riskItems": [
        "1.05",
        "4.01",
        "4.02",
        "1.03",
        "3.01",
        "5.02"
    ],
    "tickers": [
        "SMCI",
        "CRWD",
        "NVDA"
    ],
    "lookbackDays": 30,
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("durative_hairstreak/sec-8k-risk-signals").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "market_scan",
    "riskItems": [
        "1.05",
        "4.01",
        "4.02",
        "1.03",
        "3.01",
        "5.02",
    ],
    "tickers": [
        "SMCI",
        "CRWD",
        "NVDA",
    ],
    "lookbackDays": 30,
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("durative_hairstreak/sec-8k-risk-signals").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "market_scan",
  "riskItems": [
    "1.05",
    "4.01",
    "4.02",
    "1.03",
    "3.01",
    "5.02"
  ],
  "tickers": [
    "SMCI",
    "CRWD",
    "NVDA"
  ],
  "lookbackDays": 30,
  "maxResults": 25
}' |
apify call durative_hairstreak/sec-8k-risk-signals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,durative_hairstreak/sec-8k-risk-signals"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6h0YQFMxXeVfhBo4P/builds/aq8oSxGydjA0k49hk/openapi.json
