# Red Hat Security Advisories, RHSA, CSAF & CVE Scraper (`bifrost-data/redhat-security-advisories-scraper`) Actor

Monitor and export official Red Hat Enterprise Linux (RHEL), OpenShift & Ansible CVEs, RHSA security errata, OASIS CSAF VEX advisories, CVSS v3 scores, and RPM/container package fix states with zero API keys or proxies.

- **URL**: https://apify.com/bifrost-data/redhat-security-advisories-scraper.md
- **Developed by:** [SEOK HOON HONG](https://apify.com/bifrost-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.20 / 1,000 verified red hat security 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

## Red Hat Security Advisories, RHSA, CSAF & CVE Scraper

Monitor, audit, and export structured enterprise vulnerability intelligence directly from the official [Red Hat Security Data API](https://docs.redhat.com/en/documentation/red_hat_security_data_api/1.0/security_data_api-security_data_api_overview) (`access.redhat.com/hydra/rest/securitydata`). Built for SecOps teams, DevSecOps pipelines, compliance auditors, and autonomous AI security agents managing **Red Hat Enterprise Linux (RHEL 8/9/10)**, **Red Hat OpenShift Container Platform**, **Red Hat Ansible Automation Platform**, and **Universal Base Images (UBI)**.

### Why Use This Actor Instead of Raw NVD Feeds?

Generic NVD CVE scores often trigger false positives on RHEL and OpenShift because Red Hat backports security patches without bumping upstream package major versions. This Actor queries Red Hat Product Security's authoritative endpoints ([CVE API](https://docs.redhat.com/en/documentation/red_hat_security_data_api/1.0/security_data_api-cve) and [OASIS CSAF VEX API](https://docs.redhat.com/en/documentation/red_hat_security_data_api/1.0/security_data_api-csaf)) to normalize both **shipped errata (`RHSA`)** and **unpatched product states (`Affected`, `Fix deferred`, `Will not fix`, `Not affected`)** in one flat, agent-ready schema:

- **Dual Feed Coverage (`cve` & `csaf`)**: Query CVE-level vulnerability assessments (`/cve.json`) or released Red Hat Security Advisories and OASIS CSAF VEX errata (`/csaf.json`).
- **Automatic False-Positive Filtering (`$0` Cost)**: When `exclude_not_affected_only` is enabled (default), CVEs where Red Hat explicitly marks all products `Not affected` with zero RHSA errata are skipped at `$0` charge.
- **Built-in Deduplication**: Red Hat's upstream index endpoints occasionally emit duplicate `RHSA` or `CVE` entries across pages; every record is deduplicated via SHA-256 (`record_id`) before dataset persistence and billing.
- **Optional Deep Enrichment**: Enable `enrich_full_details` to retrieve Red Hat Product Security's official technical `redhat_statement`, `mitigation` workarounds, `upstream_fix` version, and full `fixed_releases` errata table.
- **Ultra-Lightweight & Keyless**: Runs in `256 MB` RAM with pure async HTTP, zero API keys, zero proxies, and full support for Apify `Maximum cost per run` budget caps.

### Common Enterprise & AI Agent Use Cases

1. **Daily RHEL & OpenShift Patch Triage**: Schedule a daily run with `created_days_ago: 1` and `severities: ["critical", "important"]` to route new kernel, `openssl`, `podman`, or OpenShift advisories to Slack, Jira, PagerDuty, or ServiceNow via n8n/Make.
2. **Container Base Image & RPM Backport Verification**: Pass exact `cve_ids` from Trivy, Grype, or Snyk scans with `enrich_full_details: true` so AI SecOps agents can separate genuinely `Affected` RHEL packages from `Not affected` or already patched `RHSA` releases.
3. **Compliance & Audit Evidence Generation**: Export monthly CSV/JSON snapshots of `critical` and `important` RHSA errata (`feed_type: "csaf"`) with official portal links and machine-readable CSAF JSON URLs for SOC 2, ISO 27001, PCI-DSS, and NIS2 audits.

### Sample Output Record

```json
{
  "record_id": "9f84c20d7160b44e0a312c8e185b9a02",
  "record_type": "cve",
  "security_id": "CVE-2026-3104",
  "severity": "important",
  "published_at": "2026-11-18T00:00:00Z",
  "cvss3_score": 8.1,
  "cvss3_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
  "cwe_id": "CWE-787",
  "summary": "CVE-2026-3104 kernel: out-of-bounds write in netfilter packet handling",
  "fix_status_summary": "partially_fixed",
  "cve_ids": ["CVE-2026-3104"],
  "rhsa_advisories": ["RHSA-2026:9412"],
  "bugzilla_ids": ["2319044"],
  "affected_products": [
    "Red Hat Enterprise Linux 9",
    "Red Hat Enterprise Linux 10"
  ],
  "affected_or_fixed_packages": [
    "kernel-0:5.14.0-503.16.1.el9_5"
  ],
  "unfixed_package_states": [
    {
      "product_name": "Red Hat Enterprise Linux 10",
      "package_name": "kernel",
      "fix_state": "Affected",
      "impact": "important",
      "cpe": "cpe:/o:redhat:enterprise_linux:10"
    }
  ],
  "fixed_releases": [
    {
      "product_name": "Red Hat Enterprise Linux 9",
      "advisory": "RHSA-2026:9412",
      "package": "kernel-0:5.14.0-503.16.1.el9_5",
      "release_date": "2026-11-20T10:15:00Z",
      "cpe": "cpe:/o:redhat:enterprise_linux:9"
    }
  ],
  "redhat_statement": "Red Hat OpenShift Container Platform 4 nodes inherit the kernel fix from Red Hat Enterprise Linux CoreOS (RHCOS).",
  "mitigation": "Restrict unprivileged user namespaces via sysctl user.max_user_namespaces=0 until the updated kernel erratum is applied.",
  "upstream_fix": "Linux 6.12.2",
  "portal_url": "https://access.redhat.com/security/cve/CVE-2026-3104",
  "api_resource_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-3104.json",
  "extracted_at": "2026-11-22T13:55:00.000000+00:00"
}
```

### Transparent Pay-Per-Event Pricing

- **Verified Red Hat Security Record (`verified-advisory`)**: `$0.0022` per verified record (`$2.20` per 1,000 records).
- **Zero Waste Guarantee**: Upstream duplicates, filtered severities/CVSS scores, and skipped `Not affected` false positives cost **$0.00**.

### Attribution & Disclaimer

Data is retrieved live from the public [Red Hat Security Data API](https://docs.redhat.com/en/documentation/red_hat_security_data_api/1.0/security_data_api-security_data_api_overview). This Actor is an independent integration by `bifrost-data` and is not affiliated with or endorsed by Red Hat, Inc. Always verify critical remediation decisions against the linked official Red Hat Security Portal errata.

# Actor input Schema

## `feed_type` (type: `string`):

Choose 'cve' to query Red Hat's CVE vulnerability & unpatched package-state feed (/cve.json), or 'csaf' to query released RHSA security errata & OASIS CSAF advisories (/csaf.json).

## `severities` (type: `array`):

Filter by Red Hat threat severity levels: 'critical', 'important', 'moderate', 'low'. Leave empty for all severities.

## `created_days_ago` (type: `integer`):

Return advisories or CVEs created within the last N days (e.g., 1 for daily cron alerts, 7 for weekly SecOps digests, 30 for monthly audits). Ignored automatically when exact CVE/RHSA IDs or explicit after/before dates are supplied.

## `after_date` (type: `string`):

ISO 8601 start date filter (e.g., '2026-10-01'). Overrides 'created_days_ago' when set.

## `before_date` (type: `string`):

ISO 8601 end date filter (e.g., '2026-11-22').

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

Filter CVEs or RHSA advisories affecting specific packages (e.g., 'kernel', 'openssl', 'podman', 'curl', 'glibc', 'httpd').

## `product_regex` (type: `string`):

Perl-compatible product filter for Red Hat platforms (e.g., 'Enterprise Linux 9', 'OpenShift Container Platform 4', 'Ansible').

## `cve_ids` (type: `array`):

Look up exact CVEs (e.g., 'CVE-2024-3094', 'CVE-2021-44228'). Works in both CVE and CSAF modes.

## `rhsa_ids` (type: `array`):

Look up exact Red Hat Security Advisories (e.g., 'RHSA-2024:1897'). Works in both CSAF and CVE modes.

## `cwe_ids` (type: `array`):

Filter CVEs by CWE identifiers (accepts 'CWE-787' or '787').

## `min_cvss3_score` (type: `string`):

Minimum CVSS v3 score threshold from 0.0 to 10.0 (e.g., '7.0' or '8.5'). Leave blank for no score threshold.

## `exclude_not_affected_only` (type: `boolean`):

Skip CVEs where every Red Hat product state is 'Not affected' or 'Out of support scope' and zero RHSA advisories exist ($0 charge).

## `enrich_full_details` (type: `boolean`):

Fetch each item's full JSON document (/cve/{CVE}.json or /csaf/{RHSA}.json) to attach Red Hat Product Security's official statement, workarounds/mitigations, upstream fix version, and per-product errata release table.

## `max_items` (type: `integer`):

Maximum verified Red Hat security records to emit in this run.

## Actor input object example

```json
{
  "feed_type": "cve",
  "severities": [
    "critical",
    "important"
  ],
  "created_days_ago": 30,
  "after_date": "",
  "before_date": "",
  "packages": [],
  "product_regex": "",
  "cve_ids": [],
  "rhsa_ids": [],
  "cwe_ids": [],
  "min_cvss3_score": "",
  "exclude_not_affected_only": true,
  "enrich_full_details": false,
  "max_items": 100
}
```

# Actor output Schema

## `advisories` (type: `string`):

Schema-verified Red Hat CVE vulnerabilities and RHSA/CSAF advisories with CVSS v3, package fix states, and errata links.

## `runMetrics` (type: `string`):

Execution telemetry including deduplicated rows, not-affected skips, filtered free items, and validation rate.

# 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 = {
    "severities": [
        "critical",
        "important"
    ],
    "created_days_ago": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("bifrost-data/redhat-security-advisories-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 = {
    "severities": [
        "critical",
        "important",
    ],
    "created_days_ago": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("bifrost-data/redhat-security-advisories-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 '{
  "severities": [
    "critical",
    "important"
  ],
  "created_days_ago": 30
}' |
apify call bifrost-data/redhat-security-advisories-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bifrost-data/redhat-security-advisories-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/z5C4VEad9Rjv2YGFf/builds/sljVMeX3PtcOIpcfx/openapi.json
