VulnCheck Exploit & Vulnerability Intelligenceは、さまざまなプログラミング言語のパッケージマネージャーおよびオペレーティングシステムのパッケージマネージャーを通じてパッケージ依存関係を追跡しています。
追跡対象のパッケージには、可能な限り脆弱性、ライセンス、調査属性、および修正情報が含まれています。
以下は、現在サポートされているプログラミング言語のパッケージマネージャーのリストです:
以下は、現在サポートされているオペレーティングシステムのパッケージマネージャーのリストです:
Package URL (purl)を使用して脆弱性をクエリするには、次のように/v3/purl?purl=:purl
を呼び出してください:
curl --request GET \
--url https://api.vulncheck.com/v3/purl?purl=pkg:pypi/aioxmpp@0.6.0 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer insert_token_here'
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
"github.com/vulncheck-oss/sdk-go-v2/vulncheck"
)
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.PurlGet(auth).Purl("pkg:pypi/aioxmpp@0.6.0").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.purl_get("pkg:pypi/aioxmpp@0.6.0")
print(api_response.data)
vulncheck purl "pkg:pypi/aioxmpp@0.6.0"
上記の例は、pypi
のaioxmppパッケージのバージョン0.6.0に存在する脆弱性のリストをリクエストしています。
特定のオフラインバックアップをリクエストするには、次のように/v3/backup/:index
を呼び出してください:
curl --request GET \
--url https://api.vulncheck.com/v3/backup/gem \
--header 'Accept: application/json' \
--header 'Authorization: Bearer insert_token_here'
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
"github.com/vulncheck-oss/sdk-go-v2/vulncheck"
)
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, "gem").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("gem")
print(api_response.data[0].url)
vulncheck backup download gem
上記の例では、Ruby Gemsを追跡する
gem
インデックスのオフラインバックアップをリクエストしています。注意:オフラインバックアップをダウンロードするには、VulnCheckの有料サブスクリプションライセンスが必要です。