{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/threatcluster-io/json-schema/threatcluster-io-cve-alert-rule-create-schema.json",
  "title": "CveAlertRuleCreate",
  "description": "Body for POST /api/public/v1/cve-alerts — a personal CVE alert rule.\nFires when a CVE matches the filters (vendor/product/severity/CVSS/EPSS/KEV/exploit).",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/threatcluster-io-api-openapi.json#/components/schemas/CveAlertRuleCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Name",
      "description": "Rule name."
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Optional note for your team."
    },
    "match_logic": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Match Logic",
      "description": "How the filters combine: 'AND' (every filter you set must match, the default) or 'OR' (any one).",
      "default": "AND"
    },
    "vendors": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vendors",
      "description": "Vendor names, any of them. Written as you would say them: 'Microsoft', 'Palo Alto Networks', 'Fortinet'. Matching ignores case, spaces and punctuation; GET /cve-alerts/names lists the names found on CVEs."
    },
    "products": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Products",
      "description": "Product names, any of them. A family name covers its versions: 'Windows' matches windows_11_24h2 and windows_server_2025, 'FortiOS', 'PAN-OS', 'Linux Kernel'. With vendors set, 'Microsoft Windows' also works."
    },
    "cwe_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cwe Ids",
      "description": "CWE ids, any of them, e.g. ['CWE-79', 'CWE-787']."
    },
    "severity": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Severity",
      "description": "CVSS v3 severities, any of them: LOW, MEDIUM, HIGH, CRITICAL."
    },
    "cvss_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cvss Min",
      "description": "Lowest CVSS v3 base score, 0-10, e.g. 7.5."
    },
    "cvss_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cvss Max",
      "description": "Highest CVSS v3 base score, 0-10."
    },
    "epss_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Epss Min",
      "description": "Lowest EPSS probability, 0-1. CVEs without an EPSS score yet do not match while this is set."
    },
    "epss_percentile_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Epss Percentile Min",
      "description": "Lowest EPSS percentile, 0-1 (0.95 = the top 5%). CVEs without an EPSS score yet do not match while this is set."
    },
    "require_kev": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Require Kev",
      "description": "true: only CVEs on CISA's Known Exploited Vulnerabilities list."
    },
    "require_exploit": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Require Exploit",
      "description": "true: only CVEs with a public exploit or proof of concept."
    },
    "ransomware_use": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ransomware Use",
      "description": "CISA KEV ransomware flag values, e.g. ['Known']."
    },
    "keywords": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Keywords",
      "description": "Words or phrases, any of them, searched in the CVE id, description, vendors and products, e.g. ['vpn', 'authentication bypass']."
    },
    "notify_webhook": {
      "type": "boolean",
      "title": "Notify Webhook",
      "description": "Send matches to your webhooks (all active ones, or webhook_id).",
      "default": true
    },
    "notify_email": {
      "type": "boolean",
      "title": "Notify Email",
      "description": "Send matches by email to the account address.",
      "default": false
    },
    "notify_inapp": {
      "type": "boolean",
      "title": "Notify Inapp",
      "description": "Show matches in the in-app bell and inbox.",
      "default": true
    },
    "webhook_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Id",
      "description": "Send to this webhook only (GET /webhooks lists yours)."
    },
    "mssp_customer_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mssp Customer Id",
      "description": "Scope the rule to one of your managed customers (Business). Omit for your own rule."
    }
  },
  "type": "object",
  "required": [
    "name"
  ]
}