# Threat Intel IOC Feed Aggregator (`jungle_synthesizer/threat-intel-ioc-feed-aggregator-scraper`) Actor

Normalizes and dedupes six free IOC feeds (URLhaus, Feodo Tracker, ThreatFox, MalwareBazaar, OpenPhish, PhishTank) into one schema with cross-feed corroboration counts. Delta mode returns only newly-seen indicators since your last run. Passive: reads published feeds only, never touches listed IOCs.

- **URL**: https://apify.com/jungle_synthesizer/threat-intel-ioc-feed-aggregator-scraper.md
- **Developed by:** [BowTiedRaccoon](https://apify.com/jungle_synthesizer) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 90.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 record scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Threat Intel IOC Feed Aggregator

Normalizes and cross-feed-dedupes **six free, published threat-intelligence IOC feeds** into one
schema, with a cross-feed corroboration count and a persisted delta cursor for hourly-poll
blocklist/enrichment pipelines.

Built for SOC/blue-team, detection-engineering, and threat-intel teams that currently pull each
free feed separately in its own raw format and stitch them together by hand.

**Passive by design.** This actor reads the published feed *endpoints* only
(`urlhaus.abuse.ch`, `feodotracker.abuse.ch`, `threatfox.abuse.ch`, `bazaar.abuse.ch`,
`openphish.com`, `data.phishtank.com`). It never connects to, resolves, or scans any of the
malicious infrastructure *listed inside* those feeds — the URLs/IPs/hashes being cataloged are
parsed as inert text only.

***

### Covered Feeds

| Source | Feed | IOC Type | Auth Required |
|--------|------|----------|----------------|
| `urlhaus` | [abuse.ch URLhaus](https://urlhaus.abuse.ch/) — recent malware-distribution URLs | `url` | None |
| `feodo` | [abuse.ch Feodo Tracker](https://feodotracker.abuse.ch/) — active botnet C2 IPs | `ip_port` | None |
| `threatfox` | [abuse.ch ThreatFox](https://threatfox.abuse.ch/) — recent multi-type IOCs | `url` / `domain` / `ip_port` / hashes | None |
| `malwarebazaar` | [abuse.ch MalwareBazaar](https://bazaar.abuse.ch/) — recent malware sample hashes | `sha256_hash` | None |
| `openphish` | [OpenPhish](https://openphish.com/) — public phishing URL feed | `url` | None |
| `phishtank` | [PhishTank](https://www.phishtank.com/) — verified online phishing URLs | `url` | None |

All six feeds are free, published downloads. None require an account or API key for the endpoints
this actor uses.

***

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `sources` | array | all six | Subset of feeds to fetch and merge: `urlhaus`, `feodo`, `threatfox`, `malwarebazaar`, `openphish`, `phishtank` |
| `maxItems` | integer | 15 | Maximum normalized IOC records to return this run, across all selected feeds combined |
| `resetState` | boolean | false | Force this run to treat all currently-listed IOCs as new, ignoring the persisted delta cursor. Use once for a full baseline pull |

#### Delta mode (default behavior)

Every run persists the set of IOC keys it has already emitted (in the actor's key-value store,
pruned after 30 days). On each subsequent run, only IOCs **not previously emitted** are returned —
so a scheduled hourly run naturally becomes a "what's new since last time" feed instead of
re-delivering the same records. If a run is capped by `maxItems` before covering all new IOCs, the
remainder carries forward and surfaces on the next run — nothing is dropped, just paginated across
runs.

Set `resetState: true` for a one-time full snapshot of everything currently in the selected feeds
(e.g. for an initial bulk load), then leave it `false` for ongoing polling.

***

### Output

Each record contains:

| Field | Type | Description |
|-------|------|-------------|
| `ioc_value` | string | The indicator itself — URL, domain, `ip:port`, or file hash, depending on `ioc_type` |
| `ioc_type` | string | `url` | `domain` | `ip_port` | `md5_hash` | `sha256_hash` | `sha1_hash` |
| `threat_type` | string | `malware_download` | `botnet_c2` | `phishing` | `payload_delivery` |
| `malware_family` | string | Malware family / signature name, when known |
| `source_feed` | string | Primary reporting feed for this IOC |
| `confidence` | integer | Normalized 0-100 confidence score |
| `first_seen` | string | Timestamp first reported (earliest across corroborating feeds) |
| `last_seen` | string | Timestamp last confirmed active (latest across corroborating feeds) |
| `reference_url` | string | Link to the source feed's report page for this indicator |
| `tags` | array | Merged tags/labels from all corroborating feeds |
| `reporter` | string | Reporting analyst/organization, when the source feed provides one |
| `is_online` | boolean | Whether the indicator was reported as currently active/online |
| `dedup_source_count` | integer | Number of distinct feeds that independently reported this same indicator |
| `scraped_at` | string | ISO timestamp this run fetched the source feeds |

A `dedup_source_count` of 2+ means multiple independent feeds corroborated the same indicator —
useful as a confidence signal on top of each feed's own scoring.

***

### Example Inputs

**Hourly-poll delta (recommended for scheduled runs):**

```json
{
  "maxItems": 500,
  "sp_intended_usage": "Hourly blocklist enrichment feed",
  "sp_improvement_suggestions": "None"
}
```

**One-time full baseline of just the malware-hash feeds:**

```json
{
  "sources": ["malwarebazaar", "threatfox"],
  "maxItems": 5000,
  "resetState": true,
  "sp_intended_usage": "Initial IOC database seed",
  "sp_improvement_suggestions": "None"
}
```

**Phishing-only feed for a browser-extension blocklist:**

```json
{
  "sources": ["openphish", "phishtank"],
  "maxItems": 1000,
  "sp_intended_usage": "Phishing URL blocklist",
  "sp_improvement_suggestions": "None"
}
```

***

### Data Sources

All data is sourced from free, published threat-intelligence feeds:

- [abuse.ch](https://abuse.ch/) — URLhaus, Feodo Tracker, ThreatFox, MalwareBazaar (CC0 / free public feeds)
- [OpenPhish](https://openphish.com/) — public phishing feed
- [PhishTank](https://www.phishtank.com/) — Cisco Talos community phishing verification

This actor performs no scanning, resolution, or connection to any indicator it catalogs — it only
downloads and normalizes the published feed files.

# Actor input Schema

## `sp_intended_usage` (type: `string`):

What will this data feed? E.g. lead lists, KYB checks, price tracking.

## `sp_improvement_suggestions` (type: `string`):

Provide any feedback or suggestions for improvements.

## `sp_contact` (type: `string`):

We'll personally help with your use case. No spam.

## `sources` (type: `array`):

Subset of feeds to fetch and merge. Empty = all six.

## `maxItems` (type: `integer`):

Maximum normalized IOC records to return this run, across all selected feeds combined.

## `resetState` (type: `boolean`):

Force this run to treat all currently-listed IOCs as new (ignores the persisted 'already seen' cursor from prior runs). Use for a one-time full baseline pull.

## Actor input object example

```json
{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "sources": [],
  "maxItems": 15,
  "resetState": false
}
```

# Actor output Schema

## `results` (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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "sources": [],
    "maxItems": 15,
    "resetState": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("jungle_synthesizer/threat-intel-ioc-feed-aggregator-scraper").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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "sources": [],
    "maxItems": 15,
    "resetState": False,
}

# Run the Actor and wait for it to finish
run = client.actor("jungle_synthesizer/threat-intel-ioc-feed-aggregator-scraper").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 '{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "sources": [],
  "maxItems": 15,
  "resetState": false
}' |
apify call jungle_synthesizer/threat-intel-ioc-feed-aggregator-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jungle_synthesizer/threat-intel-ioc-feed-aggregator-scraper"
        }
    }
}
```

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/VQq2zJ58GiuTpaePY/builds/P0CKPayGrDjicB5qQ/openapi.json
