# CISA KEV Inventory Matcher — Asset CVEs & Change Tracking (`apivault_labs/cisa-kev-inventory-matcher`) Actor

Match JSON or CSV asset/CVE inventories against CISA KEV. Export remediation actions, ransomware flags and deadlines, reconcile every pair, and compare saved snapshots for added and removed matches.

- **URL**: https://apify.com/apivault_labs/cisa-kev-inventory-matcher.md
- **Developed by:** [Apivault Labs](https://apify.com/apivault_labs) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## CISA KEV Inventory Matcher — Asset CVEs & Change Tracking

Turn a vulnerability scanner export into an asset-specific list of known exploited vulnerabilities. Match the CVEs you already have against CISA's Known Exploited Vulnerabilities (KEV) catalog, keep your asset labels, and export remediation actions, ransomware flags and CISA deadlines. Compare a later check with a saved snapshot to see which asset/CVE matches appeared or disappeared.

Built for vulnerability management teams, security operations, managed service providers and remediation owners working from a spreadsheet or API. No CISA API key, scanner credentials or proxy is required.

### Quick start

1. Keep the two example pairs for a small first run, or replace them with CVEs from your scanner. Asset labels identify your systems; they do not trigger a network scan.
2. Run the Actor. Open **Matched vulnerabilities** for results and **Run summary** for counts.
3. Export the Dataset as CSV, Excel or JSON. Read **Not listed in KEV** and **Excluded by filters** to reconcile every input pair.

```json
{
  "inventory": [
    {"asset": "edge-gateway", "cve": "CVE-2024-3400"},
    {"asset": "app-server", "cve": "CVE-2021-44228"}
  ]
}
```

The form is prefilled with these two examples. An empty API input `{}` also uses them. Explicit empty or malformed inventories are rejected. Replace the examples with your own inventory for a useful assessment.

### What you can do

| Goal | Input | Result |
|---|---|---|
| Prioritize a scanner backlog | JSON asset/CVE pairs | One row per unique pair found in KEV, with required action and provenance |
| Reconcile a spreadsheet | Pasted CSV, TSV or semicolon-separated text | Matched, absent and filtered pairs plus per-asset totals |
| Route ransomware-related findings | `ransomwareOnly: true` | Matches CISA marks `Known` for ransomware use |
| Find past or approaching CISA deadlines | `maxDaysToCisaDueDate: 30` | Overdue matches and matches due within the next 30 UTC days |
| Compare two checks | Inventory plus a previous `MATCH_SNAPSHOT` | Added, removed and unchanged KEV matches, with reasons |
| Feed a ticketing or reporting workflow | Apify API and exports | Structured JSON/CSV for your own scripts or automation |

The Actor matches **explicit CVE IDs**. It does not discover vulnerabilities from a hostname, package name, product version or IP address.

### Import CSV or a spreadsheet

Paste your spreadsheet export into **Inventory CSV**, and clear **Asset and CVE pairs**. In an API call, send `inventoryCsv` instead of `inventory`.

```json
{
  "inventoryCsv": "asset,cve\nedge-gateway,CVE-2024-3400\napp-server,CVE-2021-44228",
  "ransomwareOnly": true,
  "maxDaysToCisaDueDate": 30
}
```

Headers `asset` and `cve` are required, case-insensitive and may appear in either order. Extra columns are accepted and ignored. Comma, semicolon and tab separators, UTF-8 BOM and quoted fields are supported. Uploading an XLSX file or supplying a remote CSV URL is outside the input contract; export or paste the text first.

Each run accepts up to **5,000 input rows** and **1,000,000 CSV characters**. Repeated pairs collapse after trimming asset labels and normalizing CVEs to uppercase. Asset labels stay case-sensitive. The same CVE on two assets yields two independent pairs. Use opaque labels if hostnames are sensitive. Labels must be 1–120 characters; control characters and leading `=`, `+`, `-` or `@` are rejected to keep the asset column safe to open in a spreadsheet.

### Filters and deadlines

| Setting | Default | Meaning |
|---|---|---|
| `inventory` | Two example pairs when both inventory fields are omitted | Array of objects with `asset` and `cve` |
| `inventoryCsv` | Omitted | Pasted text; use this or a populated JSON inventory |
| `ransomwareOnly` | `false` | Keep CISA records whose ransomware status is exactly `Known` |
| `maxDaysToCisaDueDate` | Omitted | Integer 0–365; include overdue records and those due within this many days |
| `baselineSnapshot` | Omitted | Complete `MATCH_SNAPSHOT` from a previous successful run |

Filters combine with AND. A deadline value of `0` includes deadlines through today. Negative `daysToCisaDueDate` means a past deadline; `isCisaOverdue` becomes true the day after the due date, using UTC. CISA's `Unknown` ransomware value is preserved and does not mean exploitation is impossible.

CISA deadlines are published in their federal directive context. They are not a custom organizational SLA, patch validation or a severity score.

### Output and exports

The Dataset contains selected KEV matches. Use its **Remediation queue** view for asset, CVE, deadlines and actions, or **Catalog details** for descriptions and references. Download the full Dataset export when you need all fields.

| Fields | Use |
|---|---|
| `asset`, `cve` | Join a finding back to its inventory owner or ticket |
| `vendor`, `product`, `vulnerabilityName`, `shortDescription` | Identify the catalog entry |
| `dateAdded`, `cisaDueDate`, `daysToCisaDueDate`, `isCisaOverdue` | Sort work by CISA's published dates |
| `ransomwareUse`, `requiredAction` | Preserve ransomware classification and remediation advice |
| `notes`, `cwes` | Source references and semicolon-separated weakness IDs |
| `catalogVersion`, `sourceUrl` | Trace the source used for the finding |

This abbreviated example illustrates the output shape. Source text is abbreviated; date-dependent values must be read from your actual run.

```json
{
  "asset": "edge-gateway",
  "cve": "CVE-2024-3400",
  "vendor": "Palo Alto Networks",
  "product": "PAN-OS",
  "vulnerabilityName": "…",
  "cisaDueDate": "2024-04-19",
  "daysToCisaDueDate": -1,
  "isCisaOverdue": true,
  "ransomwareUse": "Known",
  "requiredAction": "…",
  "catalogVersion": "…"
}
```

Additional JSON records are in the run's default key-value store and linked from its Output tab:

| Record | Contents |
|---|---|
| `SUMMARY` | Input/duplicate counts, unique pairs, assets, matches, exclusions, source version/retrieval time, UTC evaluation date and delivery status |
| `ASSET_SUMMARY` | Matched, delivered, absent, known-ransomware and overdue counts per asset; counts other than delivered cover matches before filtering |
| `NOT_LISTED` | Input pairs absent from the fetched KEV catalog |
| `FILTERED_OUT` | Pairs found in KEV but excluded by your filters |
| `MATCH_SNAPSHOT` | Every normalized input pair and its KEV membership before filtering |
| `MATCH_CHANGES` | Added/removed matches when a baseline was supplied; an empty array otherwise |

Reconciliation: `uniquePairs = matchedPairs + notListedPairs`, and `matchedPairs = deliveredRows + filteredPairs`. `inputCount - uniquePairs` is the duplicate count. A successful empty result is legitimate when no pairs match or filters exclude them; inspect these records for the reason.

### Compare snapshots between runs

1. Confirm `SUMMARY.status` is `COMPLETE`, then save the complete `MATCH_SNAPSHOT` JSON from the run's key-value store.
2. Run with your current inventory and paste that object into **Previous match snapshot** (`baselineSnapshot`). Keep the `pairs`, booleans and `schemaVersion` unchanged.
3. Read `MATCH_CHANGES` and `SUMMARY.comparison` for added, removed and unchanged matched-pair counts.

| Change reason | Meaning |
|---|---|
| `ADDED_TO_INPUT` | A newly supplied asset/CVE pair is in KEV |
| `NOW_IN_KEV` | A pair present in both inventories changed from absent to listed |
| `REMOVED_FROM_INPUT` | A previously matched pair is absent from the current inventory |
| `NO_LONGER_IN_KEV` | A pair present in both inventories changed from listed to absent |

Snapshots cover the full inventory before filtering. Changing a ransomware or deadline filter does not create false membership changes. The comparison tracks KEV membership; edits to descriptions or advice on a pair that stays matched are outside its scope. A removed match does not establish that a system was patched.

Separate inventories can use separate snapshots. Snapshots contain your asset labels and CVEs; retain them according to your storage rules. Baselines are caller-provided JSON and are not independently authenticated. Automatic baseline selection, schedules and notifications are not configured by this Actor. You can schedule runs in Apify and supply snapshots from your own workflow.

### API and automation

Run the Actor through the Apify API with your token in an environment variable. For asynchronous jobs, call `/runs`, wait for terminal status, then read the run's `defaultDatasetId` and `defaultKeyValueStoreId`.

```bash
curl --request POST \
  'https://api.apify.com/v2/acts/apivault_labs~cisa-kev-inventory-matcher/runs' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"inventory":[{"asset":"app-server","cve":"CVE-2021-44228"}]}'
```

Read the Dataset at `https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv` and a summary at `https://api.apify.com/v2/key-value-stores/STORE_ID/records/SUMMARY`, using the same authorization header. Select `format=json` or `format=xlsx` for other exports. Treat `SUMMARY.status: COMPLETE` as the completed report marker.

An n8n workflow can use an HTTP Request node for these calls, and Python can use the standard Apify client. There is no dedicated published Python package or n8n community node for this Actor. Saved public Tasks are not required for these examples; you can save your own inventory as a private Task in Apify Console.

### Cost and source access

There is no Actor result fee in this version. Apify platform usage still depends on your plan and run resources; the Pricing tab is the authority for currently published terms. Do not infer a per-result rate from another KEV scraper. The Actor downloads one catalog for all pairs rather than requesting each CVE separately. It uses no paid enrichment API or proxy.

The primary source is [CISA's official GitHub KEV mirror](https://github.com/cisagov/kev-data). The fallback is the [CISA JSON feed](https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json). Each source has at most two attempts and a 20-second request timeout, within an 8 MB response cap. An invalid or unavailable catalog fails the run; the Actor does not substitute invented findings or a bundled stale catalog. `sourceUrl` and `sourceRetrievedAt` identify the successful source and retrieval time; `catalogVersion` and `dateReleased` identify the catalog itself. Retrieval time does not establish that CISA added entries that day.

The [KEV mirror](https://github.com/cisagov/kev-data#licensing) publishes its data under CC0. This is an independent tool, with no CISA affiliation implied.

### Limits and troubleshooting

| Situation | What to check |
|---|---|
| No Dataset rows | Read `NOT_LISTED`, `FILTERED_OUT` and `SUMMARY`; no rows does not establish safety |
| Two input methods populated | Clear JSON inventory when pasting CSV; a populated JSON list and CSV together are rejected |
| Invalid CSV or CVE | Use one `asset` and one `cve` header, consistent column counts and explicit `CVE-YYYY-NNNN` IDs |
| Snapshot rejected | Supply the complete schema version 1 object, unique pairs and boolean `inKev` values; up to 5,000 pairs |
| Source failed | Check the log and `SUMMARY.status: SOURCE_FAILED`; retry later if both official sources are unavailable |
| Incomplete output | A terminated run may retain partial records. Accept the report only when the run succeeds and `SUMMARY.status` is `COMPLETE` |

The Actor does not scan systems, verify applicability to installed versions, confirm patch status, calculate CVSS or EPSS, or certify compliance. A CVE absent from KEV can still be dangerous. Validate applicability with your scanner, inventory and vendor guidance.

### FAQ

**Can I use a vulnerability scanner CSV directly?**\
Yes, when it contains one row per pair with `asset` and `cve` columns. Rename or transform other scanner headers first. Extra columns are ignored.

**Does one CVE on several hosts produce several rows?**\
Yes. Output identity is the unique asset/CVE pair. Exact repeated pairs produce one match and increase `duplicatePairs`.

**Can I monitor newly exploited CVEs?**\
Compare saved snapshots with a later inventory check. `NOW_IN_KEV` identifies membership changes for pairs in both inventories. Catalog-wide monitoring of CVEs outside your input is outside this Actor's scope.

**Does a missing match mean the vulnerability is fixed?**\
No. Read the reason for removal and verify inventory and patch evidence separately.

**Do I need login credentials or a CISA key?**\
No. The Actor fetches public official catalog data. Your Apify token is only needed when calling Apify programmatically.

# Actor input Schema

## `inventory` (type: `array`):

Up to 5000 objects with asset and cve. Replace these two sample pairs with your scanner export. Clear this field when using Inventory CSV. If both fields are omitted, API input {} uses the two sample pairs.

## `inventoryCsv` (type: `string`):

Paste up to 5000 rows with asset and cve headers. Accepts comma, semicolon, or tab separators. Clear Asset and CVE pairs before using this field.

## `baselineSnapshot` (type: `object`):

Optional. Paste MATCH_SNAPSHOT from a previous successful run to compare membership by asset and CVE. Filters do not affect the comparison.

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

Keep matches that CISA marks as known to be used in ransomware campaigns.

## `maxDaysToCisaDueDate` (type: `integer`):

Optional. 0 keeps past and today's deadlines. 30 also includes the next 30 days. Uses UTC.

## Actor input object example

```json
{
  "inventory": [
    {
      "asset": "edge-gateway",
      "cve": "CVE-2024-3400"
    },
    {
      "asset": "app-server",
      "cve": "CVE-2021-44228"
    }
  ],
  "ransomwareOnly": false
}
```

# Actor output Schema

## `matches` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `assets` (type: `string`):

No description

## `notListed` (type: `string`):

No description

## `filtered` (type: `string`):

No description

## `snapshot` (type: `string`):

No description

## `changes` (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 = {
    "inventory": [
        {
            "asset": "edge-gateway",
            "cve": "CVE-2024-3400"
        },
        {
            "asset": "app-server",
            "cve": "CVE-2021-44228"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apivault_labs/cisa-kev-inventory-matcher").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 = { "inventory": [
        {
            "asset": "edge-gateway",
            "cve": "CVE-2024-3400",
        },
        {
            "asset": "app-server",
            "cve": "CVE-2021-44228",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("apivault_labs/cisa-kev-inventory-matcher").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 '{
  "inventory": [
    {
      "asset": "edge-gateway",
      "cve": "CVE-2024-3400"
    },
    {
      "asset": "app-server",
      "cve": "CVE-2021-44228"
    }
  ]
}' |
apify call apivault_labs/cisa-kev-inventory-matcher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apivault_labs/cisa-kev-inventory-matcher"
        }
    }
}
```

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/pHyomNHSrvAq4De5t/builds/d9wBefqvxncR4mXid/openapi.json
