# CVE, CISA KEV & Open-Source Package Vulnerability Intelligence (`regenerative_cornice/cve-kev-security-intel`) Actor

Unified real-time cybersecurity intelligence from CISA Known Exploited Vulnerabilities (KEV), OSV.dev (npm, PyPI, Go, Maven, Cargo, NuGet), and NIST NVD CVE API v2. Built for DevSecOps alerts, MSPs, n8n Slack bots, and AI coding agents (MCP).

- **URL**: https://apify.com/regenerative_cornice/cve-kev-security-intel.md
- **Developed by:** [John Erlbacher](https://apify.com/regenerative_cornice) (community)
- **Categories:** Developer tools, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 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.
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

## CVE, CISA KEV & Open-Source Package Vulnerability Intelligence

**Unified real-time cybersecurity intelligence from CISA Known Exploited Vulnerabilities (KEV), OSV.dev (`npm`, `PyPI`, `Go`, `Maven`, `crates.io`/`Cargo`, `NuGet`, `RubyGems`, `Packagist`), and NIST NVD CVE API v2 — with zero API keys required for default usage.**

Built specifically for **DevSecOps pipelines, Managed Service Providers (MSPs), SOC alert bots (n8n, Make, Zapier, Slack, Microsoft Teams), and AI coding agents via Model Context Protocol (MCP)**.

Every vulnerability returned — whether discovered through an open-source dependency check on OSV.dev or a CVE lookup on NIST NVD — is **automatically cross-enriched against the live CISA KEV catalog** so every record tells you immediately whether attackers are actively exploiting it in the wild (`isActivelyExploitedKev`) and whether it is tied to known ransomware campaigns (`knownRansomwareUse`).

***

### Why Use This Actor?

- **Three Official Public Security Feeds in One Normalized Schema**: Stop writing brittle glue scripts across CISA's JSON catalog, OSV's Graph/REST payload shapes, and NVD v2's deeply nested CVSS structures.
- **Automatic Live CISA KEV Cross-Enrichment**: OSV.dev package advisories (including `GHSA-*` and `PYSEC-*` IDs) are matched via both primary IDs and CVE aliases against live CISA KEV entries, populating `isActivelyExploitedKev`, `knownRansomwareUse`, `cisaDueDate`, and `requiredAction`.
- **Zero Authentication Required**: Works out of the box using official public endpoints (with optional free `nvdApiKey` support for high-throughput NIST NVD queries).
- **Exact CVSS v3.1 Scoring & Patched Version Extraction**: Computes exact FIRST.org CVSS v3.1 base scores from OSV vector strings and extracts `fixedVersions` so developers and AI coding agents know the exact version to upgrade to.
- **Fast & Lightweight**: Runs cleanly in 256–512 MB RAM and typically finishes in 1–3 seconds.

***

### Supported Intelligence Modes

| Mode | Primary API | Best For |
| --- | --- | --- |
| `kev_recent` | CISA Known Exploited Vulnerabilities (KEV) Catalog | Daily SOC briefings, ransomware-only alerts, BOD remediation deadline tracking, MSP client notifications |
| `osv_packages` | Google OSV.dev (`/v1/query` & `/v1/querybatch`) | CI/CD dependency audits, SBOM triage, AI coding agents checking `package.json`, `requirements.txt`, `go.mod`, `pom.xml`, `Cargo.toml` |
| `nvd_search` | NIST NVD CVE API v2 (`/rest/json/cves/2.0`) | Direct CVE ID enrichment, vendor/product keyword searches, CVSS v3/v4 scoring, recent CVE monitoring |

***

### Input Examples

#### 1. Recent Actively Exploited Ransomware Vulnerabilities (`kev_recent`)

```json
{
  "mode": "kev_recent",
  "ransomwareOnly": true,
  "keyword": "",
  "maxItems": 15
}
```

#### 2. Open-Source Dependency Vulnerability Scan (`osv_packages`)

Format packages as `ecosystem:package[@version]`. Supports `PyPI`, `npm` (including scoped `@scope/pkg`), `Go`, `Maven` (`group:artifact`), `crates.io` (or `cargo`), `NuGet`, `RubyGems`, and `Packagist`.

```json
{
  "mode": "osv_packages",
  "packages": [
    "PyPI:requests@2.31.0",
    "npm:lodash@4.17.15",
    "Go:golang.org/x/net@0.17.0",
    "Maven:org.apache.logging.log4j:log4j-core@2.14.1"
  ],
  "maxItems": 25
}
```

#### 3. Direct CVE Lookup or Keyword Search (`nvd_search`)

```json
{
  "mode": "nvd_search",
  "cveIds": ["CVE-2024-3094", "CVE-2021-44228"],
  "nvdApiKey": "",
  "maxItems": 10
}
```

***

### Normalized Output Example

All three modes output the exact same flat, automation-friendly JSON schema:

```json
{
  "id": "GHSA-29mw-wpgm-hmr9",
  "source": "osv",
  "vendorOrEcosystem": "npm",
  "productOrPackage": "lodash",
  "title": "Regular Expression Denial of Service (ReDoS) in lodash",
  "severity": "MEDIUM",
  "cvssScore": 5.3,
  "isActivelyExploitedKev": false,
  "knownRansomwareUse": "Unknown",
  "dateAdded": "2022-01-06T19:50:19Z",
  "cisaDueDate": null,
  "fixedVersions": ["4.17.21"],
  "requiredAction": "Upgrade lodash to a fixed version (4.17.21).",
  "summary": "All versions of package lodash prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the toNumber, trim and trimEnd functions.",
  "references": [
    "https://nvd.nist.gov/vuln/detail/CVE-2020-28500",
    "https://osv.dev/vulnerability/GHSA-29mw-wpgm-hmr9"
  ]
}
```

***

### Pricing (Pay-Per-Event)

This Actor uses transparent **Pay-Per-Event** billing — you only pay for each normalized vulnerability record delivered to your dataset, with idempotency keys preventing duplicate charges.

| Event Name | Unit | Description | Estimated Cost |
| --- | --- | --- | --- |
| `vulnerability-record` | 1 record | One normalized, CISA KEV-enriched vulnerability record pushed to the dataset | **$0.002 / record** ($2.00 per 1,000 records) |

> A daily CISA KEV top-15 briefing costs just **$0.03 per run** (~$0.90/month), and a typical 10-finding dependency check costs **$0.02**. Set `maxItems` or a maximum charge budget on Apify to strictly cap every run.

***

### Automation Recipe: Automated n8n + Slack CISA KEV Ransomware Alerts

Build a zero-maintenance SOC alerting bot in under 5 minutes:

1. **Schedule Trigger (n8n)**: Run every morning at 08:00 UTC.
2. **Apify Node — Run Actor**: Select `cve-kev-security-intel` with input:
   ```json
   { "mode": "kev_recent", "ransomwareOnly": true, "maxItems": 10 }
   ```
3. **IF / Filter Node**: Filter items where `dateAdded` matches yesterday or today (`isActivelyExploitedKev === true`).
4. **Slack Node (`#secops-alerts`)**: Post a rich alert using:
   - `{{ $json.id }}` — `{{ $json.vendorOrEcosystem }} {{ $json.productOrPackage }}`
   - **CISA Due Date**: `{{ $json.cisaDueDate }}`
   - **Required Action**: `{{ $json.requiredAction }}`
   - **Reference**: `{{ $json.references[0] }}`

***

### Using with AI Coding Agents (Apify MCP Server)

Connect this Actor to **Claude Desktop, Cursor, Windsurf, or any MCP-compatible AI coding agent** via the [Apify MCP Server](https://mcp.apify.com) to let your coding assistant audit dependencies before installing or upgrading packages:

- *"Check `PyPI:requests@2.31.0` and `npm:lodash@4.17.15` using `cve-kev-security-intel` in `osv_packages` mode and tell me the minimum fixed versions."*
- *"Pull the 10 most recent CISA KEV ransomware vulnerabilities and flag any affecting Apache, Microsoft, or Fortinet."*
- *"Look up `CVE-2024-3094` in `nvd_search` mode and check if it is actively exploited in CISA KEV."*

***

### Legal & Data Sources

All data is retrieved strictly from official, free, public cybersecurity intelligence feeds intended for automated consumption:

- **CISA KEV Catalog**: `https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json`
- **OSV.dev Open Source Vulnerability Database**: `https://api.osv.dev/v1/`
- **NIST National Vulnerability Database (NVD) API v2**: `https://services.nvd.nist.gov/rest/json/cves/2.0`

# Actor input Schema

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

Select the primary vulnerability intelligence source: recent CISA KEV actively exploited vulnerabilities, OSV.dev open-source package checks, or NIST NVD CVE API v2 search.

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

Optional keyword filter for kev_recent / osv_packages (matches vendor, product, CVE ID, title, or summary) or keyword search query for nvd_search (e.g. 'Apache', 'Fortinet', 'OpenSSL').

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

Optional list of specific CVE identifiers to look up or filter (e.g. \['CVE-2024-3094', 'CVE-2021-44228']).

## `packages` (type: `array`):

Packages to check in osv_packages mode formatted as 'ecosystem:package\[@version]' (e.g. \['PyPI:requests@2.31.0', 'npm:lodash@4.17.20', 'Go:golang.org/x/net@0.17.0', 'Maven:org.apache.logging.log4j:log4j-core@2.14.1', 'crates.io:tokio@1.20.0']).

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

When enabled, returns only vulnerabilities confirmed by CISA KEV as used in known ransomware campaigns (knownRansomwareCampaignUse == 'Known').

## `nvdApiKey` (type: `string`):

Optional free NIST NVD API v2 key for higher rate limits (50 requests per 30 seconds instead of 5). Not required for default usage.

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

Maximum number of normalized vulnerability records to return.

## Actor input object example

```json
{
  "mode": "kev_recent",
  "keyword": "",
  "cveIds": [],
  "packages": [],
  "ransomwareOnly": false,
  "maxItems": 15
}
```

# Actor output Schema

## `overview` (type: `string`):

Structured overview table of extracted records.

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

All extracted records in the default dataset.

# 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": "kev_recent",
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("regenerative_cornice/cve-kev-security-intel").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": "kev_recent",
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("regenerative_cornice/cve-kev-security-intel").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": "kev_recent",
  "maxItems": 15
}' |
apify call regenerative_cornice/cve-kev-security-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,regenerative_cornice/cve-kev-security-intel"
        }
    }
}
```

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/AvL7PwpjxS5pNIJT1/builds/FJoH6O5zkjfhAPSwY/openapi.json
