VulnCheck Canary 情資提供多種 API 查詢參數,讓您輕鬆查詢我們的 canary 資料集並篩選結果。支援的 API 查詢參數如下:
| 查詢參數 | 說明 |
|---|---|
| cve | 依 CVE ID 篩選 |
| src_country | 依攻擊發起的來源國家篩選 |
| dst_country | 依遭受攻擊的目的地國家篩選 |
| date | 依攻擊日期篩選,格式為 YYYY-MM-DD |
| src_ip | 依攻擊的來源 IP 位址篩選 |
| src_asn | 依攻擊的來源 ASN 篩選,格式為 AS12345 |
| cidr | 依 CIDR 範圍篩選,例如 1.0.0.0/24 |
結合兩個 API 查詢參數(CVE 與日期),即可快速聚焦於特定日期遭到利用的 CVE。
curl --request GET \
--url 'https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2024-5276&date=2025-10-17' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer insert_token_here'
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
vulncheck "github.com/vulncheck-oss/sdk-go-v2/v2"
)
func main() {
configuration := vulncheck.NewConfiguration()
configuration.Scheme = "https"
configuration.Host = "api.vulncheck.com"
client := vulncheck.NewAPIClient(configuration)
token := os.Getenv("VULNCHECK_API_TOKEN")
auth := context.WithValue(
context.Background(),
vulncheck.ContextAPIKeys,
map[string]vulncheck.APIKey{
"Bearer": {Key: token},
},
)
resp, httpRes, err := client.IndicesAPI.IndexVulncheckCanariesGet(auth).Cve("CVE-2024-5276").Date("2025-10-17").Execute()
if err != nil || httpRes.StatusCode != 200 {
log.Fatal(err)
}
prettyJSON, err := json.MarshalIndent(resp.Data, "", " ")
if err != nil {
log.Fatalf("Failed to generate JSON: %v", err)
return
}
fmt.Println(string(prettyJSON))
}
import vulncheck_sdk
configuration = vulncheck_sdk.Configuration(host="https://api.vulncheck.com/v3")
configuration.api_key["Bearer"] = "insert_token_here"
with vulncheck_sdk.ApiClient(configuration) as api_client:
indices_client = vulncheck_sdk.IndicesApi(api_client)
api_response = indices_client.index_vulncheck_canaries_get(cve="CVE-2024-5276", date="2025-10-17")
print(api_response)
vulncheck index browse vulncheck-canaries --cve CVE-2024-5276 --date 2025-10-17
查詢參數可自由組合 — 例如同時使用 src_country 與 cidr,即可將結果縮小至源自特定國家、特定網路範圍內的活動。