VulnCheck API를 사용하면 VulnCheck Target Intelligence를 쉽게 시작할 수 있습니다. 시작하려면 다음과 같이 /v3/index/:index?cve=:cve API를 통해 target-intel 인덱스를 쿼리하기만 하면 됩니다.
curl --request GET \
--url https://api.vulncheck.com/v3/index/target-intel?cve=CVE-2024-21887 \
--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.IndexTargetIntelGet(auth).Cve("CVE-2024-21887").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_target_intel_get(cve="CVE-2024-21887")
print(api_response.data)
vulncheck index browse target-intel --cve CVE-2024-21887
위의 예에서는 target-intel 인덱스에서 CVE-2024-21887의 영향을 받는 소프트웨어를 실행 중인 것으로 확인된 모든 호스트를 검색합니다.
각 결과는 관찰된 단일 호스트-포트-서비스 튜플, 즉 하나의 IP, 하나의 포트, 그리고 그 포트에서 식별된 서비스를 나타냅니다. 여러 서비스가 노출된 호스트는 여러 개의 레코드로 나타납니다.
유효한 CVE 식별자를 사용하여 /v3/index/target-intel?cve=:cve API 엔드포인트를 호출하면 아래와 유사한 응답이 반환됩니다.
{
"_benchmark": 0.050314,
"_meta": {
"timestamp": "2026-09-14T18:22:27.132288937Z",
"index": "target-intel",
"limit": 100,
"total_documents": 411,
"sort": "_timestamp",
"order": "desc",
"page": 1,
"total_pages": 5,
// ...
},
"data": [
{
"ip": "203.0.113.42",
"hostname": "vpn.test.com",
"port": 443,
"timestamp": "2026-09-13T22:12:36.749Z",
"date_added": "2026-06-11T11:22:30.592Z",
"protocol": "http",
"transport": "tcp",
"cpe": [
"cpe:2.3:a:ivanti:connect_secure:9.1:r15.2:*:*:*:*:*:*"
],
"cve": [
"CVE-2023-46805",
"CVE-2024-21887",
"CVE-2024-21893"
],
"cve_confirmed": [
{ "cve_id": "CVE-2023-46805", "confirmed": true },
{ "cve_id": "CVE-2024-21887", "confirmed": true },
{ "cve_id": "CVE-2024-21893", "confirmed": true }
],
"vendor": ["ivanti"],
"product": ["connect secure"],
"version": ["9.1"],
"fingerprints": [
{
"cpe": "cpe:2.3:a:ivanti:connect_secure:9.1:r15.2:*:*:*:*:*:*",
"vendor": "ivanti",
"product": "connect secure",
"version": "9.1",
"deprecated": false,
"cves": [
{ "cve_id": "CVE-2023-46805", "confirmed": true },
{ "cve_id": "CVE-2024-21887", "confirmed": true },
{ "cve_id": "CVE-2024-21893", "confirmed": true }
]
}
],
"contains_cve": true,
"summary": {
"cve_count": 3,
"confirmed_count": 3,
"fingerprint_count": 1,
"contains_cve": true
},
"asn": "AS64500",
"as_name": "Example ISP",
"as_domain": "test.com",
"country": "United States",
"country_code": "US",
"metadata": {
"status_code": 200,
"title": "Web Interface",
"server": "",
"cert_common_name": "vpn.test.com",
"jarm": "29d3fd00029d29d00042d43d00041d598ac0c1012db967bb1ad0ff2491b3ae"
// ...
}
}
]
}
위 레코드는 일반적인 경우입니다. 핑거프린트 하나, CPE 하나, 그리고 모두 신뢰도 검사를 통과한 CVE 집합으로 구성됩니다. 필드 간의 관계에 대해 알아 두면 좋은 세 가지 사항은 다음과 같습니다.
cpe, vendor, product, version 배열은 fingerprints에 있는 모든 항목을 평면화하여 집계한 것입니다. 호스트에 핑거프린트가 여러 개 있는 경우 이 배열에는 모든 값이 함께 담기므로, 배열 간에 위치를 기준으로 대응시켜 읽지 마세요. 어떤 버전이 어떤 제품에 속하는지 알아야 할 때는 fingerprints를 사용하세요.cve는 CVE ID의 단순 배열이고, cve_confirmed는 같은 목록에 CVE별 신뢰도를 주석으로 추가한 것입니다. confirmed 쿼리 매개변수는 이 confirmed 플래그를 기준으로 필터링합니다.summary는 미리 계산된 집계이므로 배열 길이를 직접 셀 필요가 없습니다.핑거프린팅된 서비스에 연관된 CVE가 없는 경우, cve 필드는 (빈 배열이 아닌) null이며 contains_cve는 false입니다.
{
"ip": "198.51.100.7",
"hostname": "",
"port": 80,
"timestamp": "2026-09-13T09:10:00Z",
"date_added": "2026-04-02T14:55:11.201Z",
"protocol": "http",
"transport": "tcp",
"cpe": ["cpe:2.3:a:apache:tomcat:10.1.0:*:*:*:*:*:*:*"],
"cve": null,
"vendor": ["apache"],
"product": ["tomcat"],
"version": ["10.1.0"],
"fingerprints": [
{
"cpe": "cpe:2.3:a:apache:tomcat:10.1.0:*:*:*:*:*:*:*",
"vendor": "apache",
"product": "tomcat",
"version": "10.1.0",
"deprecated": false
}
],
"contains_cve": false,
"summary": {
"cve_count": 0,
"confirmed_count": 0,
"fingerprint_count": 1,
"contains_cve": false
},
"asn": "AS64501",
"country": "Germany",
"country_code": "DE"
}
CVE가 없는 핑거프린팅된 호스트도 여전히 유용한 데이터입니다. "누가 취약한가"가 아니라 "누가 이 제품을 실행하고 있는가"라는 질문에 답해 줍니다. 이러한 레코드를 완전히 제외하려면 contains_cve=true를 전달하세요.
fingerprints 배열, deprecated 플래그, 그리고 confirmed가 실제로 무엇을 증명하는지를 포함한 전체 필드 참조는 응답 스키마를 참조하세요. 위에서 축약된 프로토콜별 metadata 객체에 대해서는 엔리치먼트 데이터를 참조하세요.