# Cyber KEV, EPSS and CVE Intelligence (`perceptive_city_af7/cyber-kev-epss-cve-intelligence`) Actor

Prioritize vulnerabilities by cross-linking official CISA KEV, FIRST EPSS, Google OSV, and optional NIST NVD data. Get exploit probability, affected packages, fixes, CVSS, ransomware context, and a clear 0-100 risk score.

- **URL**: https://apify.com/perceptive_city_af7/cyber-kev-epss-cve-intelligence.md
- **Developed by:** [fall Rainy](https://apify.com/perceptive_city_af7) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 enriched vulnerability records

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

## Cyber KEV, EPSS and CVE Intelligence

Turn four authoritative security feeds into one remediation queue.

This Apify Actor cross-links the CISA Known Exploited Vulnerabilities (KEV) catalog, FIRST.org EPSS exploit probability, Google OSV open-source package and fix data, and optional NIST NVD CVSS metrics. Every dataset row is immediately usable: one CVE, one 0–100 composite risk score, one operational risk tier, and the evidence behind it.

No browser. No login. No API key. No personal data. The Actor uses public JSON APIs through an asynchronous `httpx` client and streams results to the Apify dataset one record at a time.

### Why teams use it

- Build a daily patch queue that starts with vulnerabilities exploited in the wild.
- Separate high-EPSS KEVs from a long, undifferentiated vulnerability backlog.
- Find affected open-source packages, ecosystems, and known fixed versions through OSV.
- Enrich a customer-provided CVE list without maintaining four API integrations.
- Add CVSS v4.0/v3.x context from NIST NVD only when the extra latency is worthwhile.
- Feed SIEM, SOAR, vulnerability management, security dashboards, MCP tools, or spreadsheets with clean JSON.

### Two modes

#### `kev_prioritized` — ready-made remediation queue

This is the default. The Actor loads the official CISA KEV catalog, applies your filters, adds FIRST EPSS scores in batches of up to 30 CVEs, enriches the selected records through Google OSV, calculates risk, and returns the highest-priority results first.

Available filters:

- `vendor` — substring match against CISA `vendorProject`
- `product` — substring match against CISA `product`
- `keyword` — searches CVE, vendor, product, vulnerability name, description, action, and CWE
- `ransomwareOnly` — only CISA entries marked as used in known ransomware campaigns
- `addedAfter` — only KEVs added strictly after an ISO date
- `minEpssPercent` — minimum exploit probability from 0 to 100

The default input returns at most 10 items and leaves NVD disabled, keeping Apify’s automated health check fast.

```json
{
  "mode": "kev_prioritized",
  "ransomwareOnly": true,
  "minEpssPercent": 60,
  "maxItems": 25,
  "enrichNvd": false
}
```

#### `cve_lookup` — enrich your CVEs

Provide CVE IDs to check them across CISA KEV, FIRST EPSS, Google OSV, and optionally NIST NVD. IDs are normalized, validated, and de-duplicated.

```json
{
  "mode": "cve_lookup",
  "cveIds": [
    "CVE-2021-44228",
    "CVE-2024-3094"
  ],
  "enrichNvd": true,
  "maxItems": 10
}
```

### Output

Each dataset item contains:

- `cveId`, `compositeRiskScore`, and `riskTier`
- `epssScore`, `epssPercent`, and `epssPercentile`
- `isKnownExploited` and `knownRansomwareCampaignUse`
- CISA vendor, product, description, action, dates, and CWE identifiers
- `osvAffectedPackages` with ecosystem, package, and fixed versions
- normalized `osv` data or `null` when OSV has no record
- normalized `nvd` CVSS data, or `null` when disabled or unavailable
- direct official `sourceUrls` and `sourceLicenses`

Example:

```json
{
  "cveId": "CVE-2021-44228",
  "mode": "cve_lookup",
  "compositeRiskScore": 95.21,
  "riskTier": "CRITICAL",
  "epssScore": 0.9824,
  "epssPercent": 98.24,
  "epssPercentile": 0.9999,
  "isKnownExploited": true,
  "knownRansomwareCampaignUse": "Known",
  "vendorProject": "Apache",
  "product": "Log4j2",
  "osvAffectedPackages": [
    {
      "ecosystem": "Maven",
      "name": "org.apache.logging.log4j:log4j-core",
      "fixedVersions": ["2.17.1"]
    }
  ],
  "nvd": null
}
```

### Transparent risk score

The composite score is bounded to 0–100:

| Signal | Maximum points |
| --- | ---: |
| FIRST EPSS probability | 45 |
| Present in CISA KEV | 35 |
| Known ransomware campaign use | 15 |
| KEV recency | 5 |

Risk tiers are `CRITICAL` (80+), `HIGH` (60–79.99), `MEDIUM` (35–59.99), and `LOW` (below 35). The score is a prioritization aid, not a substitute for asset exposure, business criticality, or compensating-control analysis.

### Resilience and responsible use

- FIRST requests contain no more than 30 CVEs, matching the supported batch size.
- Google OSV `404` responses are normal and produce `osv: null` instead of an error.
- NIST NVD is opt-in. Timeouts, rate limits, and server errors are isolated per CVE and produce `nvd: null`.
- Retryable `429` and `5xx` failures use exponential backoff on required feeds.
- Output text is recursively scrubbed for email addresses and phone-like strings.
- The Actor registers an Apify abort handler and stops immediately after a spending-limit signal.

### Sources and reuse

| Source | Purpose | Reuse context |
| --- | --- | --- |
| [CISA KEV JSON](https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json) | Exploited-in-the-wild catalog and remediation context | US Government public domain |
| [FIRST EPSS API](https://api.first.org/data/v1/epss) | Probability and percentile of exploitation in the next 30 days | Public FIRST.org API |
| [Google OSV API](https://google.github.io/osv.dev/api/) | Open-source affected packages and fixed versions | CC BY 4.0 data |
| [NIST NVD CVE API 2.0](https://nvd.nist.gov/developers/vulnerabilities) | Optional CVSS and weakness enrichment | US Government public domain |

Check each source’s current terms and attribution guidance for your deployment. This Actor retrieves public vulnerability information only; it does not collect accounts, credentials, private systems, personal profiles, or paywalled content.

### Local verification

The included verifier makes zero external calls. `httpx.MockTransport` simulates all four APIs, EPSS batching, OSV 404, NVD success, NVD 429, NVD timeout, PII scrubbing, schema constraints, Apify pay-per-event handling, and the abort hook. It writes machine-readable evidence to `evidence.json`.

```bash
python verify.py
```

### Pricing behavior

The Actor uses Apify pay per event: `$0.00005` per Actor start and `$0.008` per dataset item (`$8.00` per 1,000 enriched CVEs). Results are pushed one at a time so an Apify spending cap stops the run without producing unpaid rows.

# Actor input Schema

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

Prioritize the CISA KEV catalog or enrich explicit CVE IDs.

## `cveIds` (type: `array`):

CVE IDs for cve_lookup mode, for example CVE-2021-44228 and CVE-2024-3094. Invalid and duplicate IDs are ignored.

## `vendor` (type: `string`):

Case-insensitive CISA vendorProject substring, such as Microsoft or Apache.

## `product` (type: `string`):

Case-insensitive CISA product substring.

## `keyword` (type: `string`):

Search CVE ID, vendor, product, vulnerability name, description, action, and CWE fields.

## `ransomwareOnly` (type: `boolean`):

Keep only CISA KEVs marked as used in known ransomware campaigns.

## `addedAfter` (type: `string`):

Keep KEVs added strictly after this ISO date (YYYY-MM-DD). Leave empty for all dates.

## `minEpssPercent` (type: `integer`):

Minimum FIRST EPSS exploit probability from 0 to 100 percent.

## `enrichNvd` (type: `boolean`):

Optionally add NIST NVD CVSS v4.0 or v3.x metrics. Disabled by default for a fast health-check-safe run.

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

Maximum number of vulnerability records saved to the dataset.

## Actor input object example

```json
{
  "mode": "kev_prioritized",
  "cveIds": [
    "CVE-2021-44228",
    "CVE-2024-3094"
  ],
  "vendor": "",
  "product": "",
  "keyword": "",
  "ransomwareOnly": false,
  "addedAfter": "",
  "minEpssPercent": 0,
  "enrichNvd": false,
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Cross-linked CISA KEV, FIRST EPSS, Google OSV, and optional NIST NVD intelligence, ordered by composite risk.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("perceptive_city_af7/cyber-kev-epss-cve-intelligence").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("perceptive_city_af7/cyber-kev-epss-cve-intelligence").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 '{}' |
apify call perceptive_city_af7/cyber-kev-epss-cve-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,perceptive_city_af7/cyber-kev-epss-cve-intelligence"
        }
    }
}
```

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/XeqI4hHEy0lbeLfYJ/builds/xoO0nxl5ohNym35iz/openapi.json
