除了 NVD 之外,VulnCheck 也以社群服務的形式提供 CVE Program 的 CVE List,讓您可透過 API 存取完整的 MITRE CVE JSON。我們了解使用 NVD 或 MITRE CVE List 各有優缺點,因此我們認為為社群提供一個能可靠存取這兩項服務的集中來源相當重要。
VulnCheck 讓您輕鬆透過 API 呼叫或離線備份的形式,從 VulnCheck 存取 CVE Program 的 CVE List。
若要開始使用,只需在 https://vulncheck.com/community 註冊 VulnCheck Community 帳戶,即可開始使用由 VulnCheck 提供的 MITRE CVE List。
curl --request GET \
--url https://api.vulncheck.com/v3/backup/mitre-cvelist-v5 \
--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.EndpointsAPI.BackupIndexGet(auth, "mitre-cvelist-v5").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:
endpoints_client = vulncheck_sdk.EndpointsApi(api_client)
api_response = endpoints_client.backup_index_get("mitre-cvelist-v5")
print(api_response.data[0].url)
vulncheck backup download mitre-cvelist-v5