{
  "openapi": "3.0.1",
  "info": {
    "title": "MSP Product CVE, KEV & EPSS Alerts (NIS2 / CRA)",
    "description": "Monitor MSP client appliances & software (FortiOS, Synology DSM, SonicOS, ESXi, Exchange, Veeam, WordPress, npm/PyPI) against NVD v2, OSV.dev, GitHub Advisories, CISA KEV & FIRST.org EPSS (93-100% fill) with strict version-range matching & delta alerts in 256 MB RAM.",
    "version": "1.0",
    "x-build-id": "vaBKheJER5kUTY4VF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~msp-product-cve-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-msp-product-cve-alerts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/vesper_studio~msp-product-cve-alerts/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-msp-product-cve-alerts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/vesper_studio~msp-product-cve-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-msp-product-cve-alerts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "assets": {
            "title": "Client assets / deployed products",
            "type": "array",
            "description": "List of client appliances, OS, hypervisors, or software packages to monitor. Each entry supports: clientName, vendor, product, version, cpe (optional CPE 2.3), ecosystem (optional OSV/GitHub ecosystem such as npm, PyPI, Debian:12, Packagist), assetTag, internetExposed. Leave empty to run the selected MSP presets.",
            "default": []
          },
          "presets": {
            "title": "MSP popular infrastructure presets",
            "type": "array",
            "description": "Built-in MSP product presets appended when selected (or used automatically when 'assets' is empty). Ideal for quick testing or baseline fleet monitoring.",
            "items": {
              "type": "string",
              "enum": [
                "fortinet_fortios",
                "synology_dsm",
                "sonicwall_sonicos",
                "vmware_esxi",
                "microsoft_exchange",
                "veeam_backup",
                "wordpress_core",
                "debian_openssl",
                "npm_lodash"
              ],
              "enumTitles": [
                "Fortinet FortiOS 7.2.4 (Firewall / VPN)",
                "Synology DSM 7.2-64570 (NAS)",
                "SonicWall SonicOS 7.0.1-5050 (Firewall / SSLVPN)",
                "VMware ESXi 7.0 (Hypervisor)",
                "Microsoft Exchange Server 2019 CU13 (Mail)",
                "Veeam Backup & Replication 12.0 (Backup)",
                "WordPress Core 6.4.1 (CMS)",
                "Debian 12 OpenSSL 3.0.11-1~deb12u2 (OS Package / OSV)",
                "npm lodash 4.17.20 (Web Dependency / OSV + GHSA)"
              ]
            },
            "default": []
          },
          "sources": {
            "title": "Vulnerability data sources",
            "type": "array",
            "description": "Official open vulnerability APIs to query and merge.",
            "items": {
              "type": "string",
              "enum": [
                "nvd",
                "osv",
                "github"
              ],
              "enumTitles": [
                "NVD API v2 (CPE & infrastructure/appliances)",
                "OSV.dev (Linux distros & package ecosystems)",
                "GitHub Advisory Database (GHSA + EPSS scores)"
              ]
            },
            "default": [
              "nvd",
              "osv",
              "github"
            ]
          },
          "enrichWithKev": {
            "title": "Enrich with CISA KEV (Known Exploited Vulnerabilities)",
            "type": "boolean",
            "description": "Cross-check matched CVEs against the live CISA KEV JSON catalog to populate 'isActivelyExploited', ransomware flags, and BOD remediation due dates.",
            "default": true
          },
          "minSeverity": {
            "title": "Minimum severity threshold",
            "enum": [
              "all",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Filter alerts by minimum CVSS/advisory severity level.",
            "default": "medium"
          },
          "onlyKev": {
            "title": "Only actively exploited vulnerabilities (CISA KEV)",
            "type": "boolean",
            "description": "Emit only vulnerabilities present in the CISA Known Exploited Vulnerabilities catalog.",
            "default": false
          },
          "publishedWithinDays": {
            "title": "Published / modified within last N days (0 = all)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional age filter in days (e.g. 30 for recent CVEs). Set to 0 to evaluate all vulnerabilities affecting the deployed version.",
            "default": 0
          },
          "onlyNew": {
            "title": "Delta mode (only new alerts since last run)",
            "type": "boolean",
            "description": "Persist seen (client, asset, CVE) keys in Apify Key-Value Store ('seen_alerts') and emit only newly discovered vulnerabilities on subsequent scheduled cron runs. State is saved on completion and graceful abort.",
            "default": false
          },
          "nvdApiKey": {
            "title": "NVD API v2 Key (optional)",
            "type": "string",
            "description": "Optional NIST NVD API key. Raises NVD rate limit from 5 requests/30s to 50 requests/30s for large MSP asset fleets."
          },
          "githubToken": {
            "title": "GitHub Personal Access Token (optional)",
            "type": "string",
            "description": "Optional GitHub token (no scopes needed for public advisories). Raises GitHub Advisory API limit from 60 req/hr to 5,000 req/hr."
          },
          "maxAlertsPerAsset": {
            "title": "Max alerts per asset",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap the number of highest-priority alerts emitted per individual asset.",
            "default": 25
          },
          "maxItems": {
            "title": "Max total alerts",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum total CVE/GHSA alerts pushed to the dataset across all assets.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}