API Resources

POST
(POST) /v3/index/{index}

用於從您所選索引中擷取所有文件之分頁清單的 POST 端點。Body 接受與 GET 端點相同的查詢參數,但另可傳入 cve 承載資料,在單一請求中搜尋最多 1000 個 CVE ID。

Body 參數

cvesarray[string]

指定要在索引中搜尋的 CVE ID 清單。此參數允許在單一請求中搜尋最多 1000 個 CVE ID。

Body 範例:

{
  "cves": [
    "CVE-2015-1130",
    "CVE-2023-22527",
    "CVE-2024-22527"
  ]
}

路徑參數

indexstringrequired

漏洞利用、漏洞或 IP 情資索引的名稱

範例 URL:

https://api.vulncheck.com/v3/index/exploits

適用於所有索引的查詢參數

limit

指定回應中要傳回的項目數量。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?limit=300
start_cursor

開始分頁查詢工作階段。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?start_cursor
cursorstring

指定分頁查詢工作階段的游標。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?cursor=ZmZmZDYyMzIqNmNlZi00NGZmLWJkOGItZnFkMWY3ODIxMDJp

注意:每個回應都會在 _meta.next_cursor 中提供下一頁的游標。請持續使用該游標發送請求,直到回應中不再包含游標為止。

為了將回應維持在可處理的大小,即使仍有後續紀錄,某一頁的紀錄數也可能少於 limit。在這些頁面上,_meta.truncated 為 true,且 _meta.warnings 會說明原因。

lastModStartDatestring (YYYY-MM-DD)

指定用於篩選的最後修改起始日期。

注意:最後修改日期記錄於 _timestamp 欄位中。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?lastModStartDate=2024-01-01
lastModEndDatestring (YYYY-MM-DD)

指定用於篩選的最後修改結束日期。

注意:最後修改日期記錄於 _timestamp 欄位中。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?lastModEndDate=2024-01-01
pubStartDatestring (YYYY-MM-DD)

指定用於篩選的發布起始日期。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?pubStartDate=2024-01-01
pubEndDatestring (YYYY-MM-DD)

指定用於篩選的發布結束日期。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?pubEndDate=2024-01-01
updatedAtStartDatestring (YYYY-MM-DD)

指定用於篩選資料來源內容更新的起始日期。

範例 URL:

https://api.vulncheck.com/v3/index/moxa?updatedAtStartDate=2024-01-01
updatedAtEndDatestring (YYYY-MM-DD)

指定用於篩選資料來源內容更新的結束日期。

範例 URL:

https://api.vulncheck.com/v3/index/moxa?updatedAtEndDate=2024-01-01
datestring (YYYY-MM-DD)

依指定的確切日期篩選索引資料。此參數的作用等同於 將 pubStartDate 與 pubEndDate 設為相同的日期值。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?date=2024-01-01
aliasstring

指定用於搜尋的別名。

範例 URL:

https://api.vulncheck.com/v3/index/vulncheck-nvd2?alias=PrintNightmare
iavastring

指定用於搜尋的 IAVA ID。

sortstring

指定結果的排序欄位。可用選項:_timestamp 或 date_added。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?sort=date_added
orderstring

指定結果的排序順序。可用選項:asc(遞增)或 desc(遞減)。

範例 URL:

https://api.vulncheck.com/v3/index/exploits?order=asc

適用於特定索引的查詢參數

botnetstring

指定用於搜尋的殭屍網路名稱。VulnCheck 支援的殭屍網路記載於 botnet 索引中。

範例 URL:

https://api.vulncheck.com/v3/index/botnets?botnet=Fbot
threat_actorstring

指定用於搜尋的威脅行為者。VulnCheck 支援的威脅行為者名稱記載於 threat-actors 索引中。

範例 URL:

https://api.vulncheck.com/v3/index/threat-actors?threat_actor=UNC2630
mitre_idstring

指定威脅行為者的 MITRE ATT&CK Group ID,以在 threat-actors 索引中搜尋。

範例 URL:

https://api.vulncheck.com/v3/index/threat-actors?mitre_id=G0013
misp_idstring

指定威脅行為者的 MISP ID,以在 threat-actors 索引中搜尋。

範例 URL:

https://api.vulncheck.com/v3/index/threat-actors?misp_id=3570552c-c46f-428e-9472-744a14e6ece7
ransomwarestring

指定用於搜尋的勒索軟體集團。VulnCheck 支援的勒索軟體集團記載於 ransomware 索引中。

適用於 IP 情資索引的查詢參數

下列選用查詢參數適用於 ipintel-3d、ipintel-10d、ipintel-30d 與 ipintel-90d IP 情資索引。

asnstring

指定用於篩選的 ASN(例如「AS719」)。

範例 URL:

https://api.vulncheck.com/v3/index/ipintel-3d?asn=AS394107
cidrstring

指定用於篩選的 CIDR 或 IP 位址。

範例 URL:

https://api.vulncheck.com/v3/index/ipintel-3d?cidr=77.68.0.0/16
countrystring

指定用於篩選的國家(例如「China」)。

範例 URL:

https://api.vulncheck.com/v3/index/ipintel-3d?country=China
country_codestring

指定用於篩選的國家代碼(例如「CN」)。

範例 URL:

https://api.vulncheck.com/v3/index/ipintel-3d?country_code=CN
idstring

指定用於篩選的偵測 ID(「c2」、「initial-access」或「honeypot」)。

範例 URL:

https://api.vulncheck.com/v3/index/ipintel-3d?id=honeypot
hostnamestring

指定用於篩選的主機名稱(例如「example.com」)。

範例 URL:

https://api.vulncheck.com/v3/index/ipintel-3d?hostname=example.com

適用於 Canary 情資索引的查詢參數

src_countrystring

指定用於篩選的國家代碼(例如「IR」)。

範例 URL:

https://api.vulncheck.com/v3/index/vulncheck-canaries-3d?src_country=IR
dst_countrystring

指定用於篩選的國家代碼(例如「US」)。

範例 URL:

https://api.vulncheck.com/v3/index/vulncheck-canaries-3d?dst_country=US

請求範例

curl --request GET \
    --url https://api.vulncheck.com/v3/index/exploits \
    --header "Accept: application/json" \
    --header 'Authorization: Bearer insert_token_here'

回應

{
  "_benchmark": 0.122322,
  "_meta": {
    "timestamp": "2024-02-23T20:35:43.732591251Z",
    "index": "exploits",
    "limit": 100,
    "total_documents": 79387,
    "sort": "_timestamp",
    "parameters": [
      {
        "name": "cve",
        "format": "CVE-YYYY-N{4-7}"
      },
      {
        "name": "alias"
      },
      {
        "name": "iava",
        "format": "[0-9]{4}[A-Z-0-9]+"
      },
      {
        "name": "threat_actor"
      },
      {
        "name": "mitre_id"
      },
      {
        "name": "misp_id"
      },
      {
        "name": "ransomware"
      },
      {
        "name": "botnet"
      },
      {
        "name": "published"
      },
      {
        "name": "lastModStartDate",
        "format": "YYYY-MM-DD"
      },
      {
        "name": "lastModEndDate",
        "format": "YYYY-MM-DD"
      },
      {
        "name": "pubStartDate",
        "format": "YYYY-MM-DD"
      },
      {
        "name": "pubEndDate",
        "format": "YYYY-MM-DD"
      }
    ],
    "order": "desc",
    "page": 1,
    "total_pages": 794,
    "max_pages": 6,
    "first_item": 1,
    "last_item": 100
  },
  "data": [
    {
      "id": "CVE-2023-50387",
      "public_exploit_found": true,
      "commercial_exploit_found": false,
      "weaponized_exploit_found": false,
      "max_exploit_maturity": "poc",
      "reported_exploited": false,
      "reported_exploited_by_threat_actors": false,
      "reported_exploited_by_ransomware": false,
      "reported_exploited_by_botnets": false,
      "inKEV": false,
      "inVCKEV": false,
      "timeline": {
        "nvd_published": "2024-02-14T16:15:00Z",
        "nvd_last_modified": "2024-02-23T02:15:00Z",
        "first_exploit_published": "2024-02-18T00:00:00Z",
        "most_recent_exploit_published": "2024-02-18T00:00:00Z"
      },
      "trending": {
        "github": false
      },
      "epss": {
        "epss_score": 0.03814,
        "epss_percentile": 0.9159,
        "last_modified": "2024-02-23T10:38:41.361178Z"
      },
      "counts": {
        "exploits": 1,
        "threat_actors": 0,
        "botnets": 0,
        "ransomware_families": 0
      },
      "exploits": [
        {
          "url": "https://github.com/knqyf263/CVE-2023-50387",
          "name": "knqyf263/CVE-2023-50387 exploit repository",
          "refsource": "github-exploits",
          "date_added": "2024-02-18T00:00:00Z",
          "exploit_maturity": "poc",
          "exploit_availability": "publicly-available",
          "exploit_type": "initial-access",
          "validation_level": "vulncheck-exploit-dev-review",
          "reference_url": "https://raw.githubusercontent.com/knqyf263/CVE-2023-50387/main/README.md",
          "clone_ssh_url": "git@github.com:knqyf263/CVE-2023-50387.git",
          "clone_ssh_url_cached": "git@git-poc.vulncheck.com:github.com/knqyf263/CVE-2023-50387.git",
          "commit_hash": "e62663f2297f27cd5c786b5b2cd16fc9cfe478ba",
          "date_cached": "2024-10-21T18:59:56Z"
        }
      ],
      "date_added": "2024-02-18T00:00:00Z",
      "_timestamp": "2024-02-23T15:15:57.600519Z"
    }
  ]
}