Skip to content

Microsoft Security Response Center (MSRC) CVRF Executor

Category: Threat Intelligence Script: msrc.py Integration: REST API Faraday Plugin: Raw JSON Website: https://msrc.microsoft.com/update-guide

Description

Imports the Microsoft Security Response Center (MSRC) monthly Patch Tuesday release into Faraday. Each CVE in the release becomes a vulnerability with its CVSS score, affected products, exploitation status and KB/advisory links.

Prerequisites

  • Network access from the agent to https://api.msrc.microsoft.com
  • Optionally, an MSRC API key. The executor sends it when set but does not require it.

Configuration

Environment Variables (Setup)

Variable Required Description
MSRC_API_KEY No MSRC API key, sent in the api-key header when set
MSRC_HOST No Base URL of the MSRC API (default: https://api.msrc.microsoft.com)

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
MSRC_YEAR_MONTH string Yes Patch Tuesday release to import, as YYYY-MMM or YYYY-MM (e.g., 2026-May, 2026-05). An invalid value stops the run.
MSRC_PRODUCT string No Case-insensitive text to match against the affected product names (e.g., Windows Server 2022). Only CVEs affecting a matching product are imported. If empty, the whole release is imported.

YAML Configuration Example

executors:
  msrc:
    repo_executor: msrc.py
    max_size: 65536
    varenvs:
      MSRC_API_KEY: "<msrc_api_key>"
      MSRC_HOST: "https://api.msrc.microsoft.com"
    params:
      MSRC_YEAR_MONTH:
        mandatory: true
        type: string
        base: string
      MSRC_PRODUCT:
        mandatory: false
        type: string
        base: string

How It Works

  1. Normalizes MSRC_YEAR_MONTH to the release slug (for example 2026-May)
  2. Downloads the release with GET {MSRC_HOST}/cvrf/v3.0/cvrf/{slug}
  3. Keeps the CVEs whose affected products contain MSRC_PRODUCT, if set
  4. Creates one vulnerability per CVE:
    • Name: [MSRC] <CVE> <title>
    • Severity: from the CVSS base severity or score; CVEs reported as exploited are raised to critical
    • Resolution: based on the vendor-fix and mitigation links in the release
    • References: NVD and MSRC advisory links, CVSS data, KB links and the release dates

Notes

  • All vulnerabilities are grouped under one host with IP 0.0.0.0 and hostname msrc, because the release is not tied to your assets. The host is created even if the release is empty or cannot be downloaded.
  • If the release is not found or the request fails, the error is logged and nothing is imported.
  • The vulnerability status is always open.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor.