{"uuid": "1151d1be-6826-449c-b060-8afe043bd123", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-0000-0000", "type": "seen", "source": "https://gist.github.com/tu-trinh-scale/74c1ae081c9cb69110d1bea3a05ce866", "content": "diff --git a/README.md b/README.md\nindex 57102d1..7175901 100644\n--- a/README.md\n+++ b/README.md\n@@ -90,8 +90,9 @@ Vuls is a tool created to solve the problems listed above. It has the following\n   - [US-CERT](https://www.us-cert.gov/ncas/alerts)\n   - [JPCERT](http://www.jpcert.or.jp/at/2019.html)\n \n-- CISA(Cybersecurity &amp; Infrastructure Security Agency)\n-  - [Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)\n+- Known Exploited Vulnerabilities\n+  - [CISA Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)\n+  - [VulnCheck KEV](https://vulncheck.com/kev)\n \n - Cyber Threat Intelligence(MITRE ATT&amp;CK and CAPEC)\n   - [mitre/cti](https://github.com/mitre/cti)\n@@ -158,6 +159,20 @@ Vuls has some options to detect the vulnerabilities\n \n ## MISC\n \n+### KEV Reporting Example\n+\n+KEV reporting is configured with the `kevuln` dictionary. A ready-to-use synthetic configuration is available at `examples/config.toml.example`; copy it to your deployment location and replace only the placeholder paths and host values that apply to your environment.\n+\n+The example uses the local SQLite go-kev database:\n+\n+```toml\n+[kevuln]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/go-kev.sqlite3\"\n+```\n+\n+A redacted scan-result sample showing the first-class `kevs` vulnerability field is available at `examples/scan-result-kev.json`.\n+\n - Nondestructive testing\n - Pre-authorization is *NOT* necessary before scanning on AWS\n   - Vuls works well with Continuous Integration since tests can be run every day. This allows you to find vulnerabilities very quickly.\ndiff --git a/detector/kevuln.go b/detector/kevuln.go\nindex 41afdfe..67cc357 100644\n--- a/detector/kevuln.go\n+++ b/detector/kevuln.go\n@@ -6,6 +6,7 @@ package detector\n import (\n \t\"encoding/json\"\n \t\"net/http\"\n+\t\"reflect\"\n \t\"time\"\n \n \t\"github.com/cenkalti/backoff\"\n@@ -74,24 +75,17 @@ func FillWithKEVuln(r *models.ScanResult, cnf config.KEVulnConf, logOpts logging\n \t\t\treturn err\n \t\t}\n \t\tfor _, res := range responses {\n-\t\t\tkevulns := []kevulnmodels.KEVuln{}\n-\t\t\tif err := json.Unmarshal([]byte(res.json), &amp;kevulns); err != nil {\n+\t\t\tkevs, err := parseKEVsJSON([]byte(res.json))\n+\t\t\tif err != nil {\n \t\t\t\treturn err\n \t\t\t}\n \n-\t\t\talerts := []models.Alert{}\n-\t\t\tif len(kevulns) &gt; 0 {\n-\t\t\t\talerts = append(alerts, models.Alert{\n-\t\t\t\t\tTitle: \"Known Exploited Vulnerabilities Catalog\",\n-\t\t\t\t\tURL:   \"https://www.cisa.gov/known-exploited-vulnerabilities-catalog\",\n-\t\t\t\t\tTeam:  \"cisa\",\n-\t\t\t\t})\n-\t\t\t}\n-\n \t\t\tv, ok := r.ScannedCves[res.request.cveID]\n \t\t\tif ok {\n-\t\t\t\tv.AlertDict.CISA = alerts\n-\t\t\t\tnKEV++\n+\t\t\t\tv.KEVs = kevs\n+\t\t\t\tif len(kevs) &gt; 0 {\n+\t\t\t\t\tnKEV++\n+\t\t\t\t}\n \t\t\t}\n \t\t\tr.ScannedCves[res.request.cveID] = v\n \t\t}\n@@ -100,24 +94,15 @@ func FillWithKEVuln(r *models.ScanResult, cnf config.KEVulnConf, logOpts logging\n \t\t\tif cveID == \"\" {\n \t\t\t\tcontinue\n \t\t\t}\n-\t\t\tkevulns, err := client.driver.GetKEVulnByCveID(cveID)\n+\t\t\tkevs, err := client.getKEVsByCveID(cveID)\n \t\t\tif err != nil {\n \t\t\t\treturn err\n \t\t\t}\n-\t\t\tif len(kevulns) == 0 {\n+\t\t\tif len(kevs) == 0 {\n \t\t\t\tcontinue\n \t\t\t}\n \n-\t\t\talerts := []models.Alert{}\n-\t\t\tif len(kevulns) &gt; 0 {\n-\t\t\t\talerts = append(alerts, models.Alert{\n-\t\t\t\t\tTitle: \"Known Exploited Vulnerabilities Catalog\",\n-\t\t\t\t\tURL:   \"https://www.cisa.gov/known-exploited-vulnerabilities-catalog\",\n-\t\t\t\t\tTeam:  \"cisa\",\n-\t\t\t\t})\n-\t\t\t}\n-\n-\t\t\tvuln.AlertDict.CISA = alerts\n+\t\t\tvuln.KEVs = kevs\n \t\t\tnKEV++\n \t\t\tr.ScannedCves[cveID] = vuln\n \t\t}\n@@ -127,6 +112,319 @@ func FillWithKEVuln(r *models.ScanResult, cnf config.KEVulnConf, logOpts logging\n \treturn nil\n }\n \n+func (client goKEVulnDBClient) getKEVsByCveID(cveID string) ([]models.KEV, error) {\n+\tif method := reflect.ValueOf(client.driver).MethodByName(\"GetKEVByCveID\"); method.IsValid() {\n+\t\touts := method.Call([]reflect.Value{reflect.ValueOf(cveID)})\n+\t\tif len(outs) != 2 {\n+\t\t\treturn nil, xerrors.New(\"unexpected GetKEVByCveID response\")\n+\t\t}\n+\t\tif !outs[1].IsNil() {\n+\t\t\terr, ok := outs[1].Interface().(error)\n+\t\t\tif !ok {\n+\t\t\t\treturn nil, xerrors.New(\"unexpected GetKEVByCveID error response\")\n+\t\t\t}\n+\t\t\treturn nil, err\n+\t\t}\n+\t\treturn kevsFromResponseValue(outs[0]), nil\n+\t}\n+\n+\tkevulns, err := client.driver.GetKEVulnByCveID(cveID)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\treturn kevsFromCISAKEVulns(kevulns), nil\n+}\n+\n+func parseKEVsJSON(b []byte) ([]models.KEV, error) {\n+\tkevulns := []kevulnmodels.KEVuln{}\n+\tif err := json.Unmarshal(b, &amp;kevulns); err == nil {\n+\t\treturn kevsFromCISAKEVulns(kevulns), nil\n+\t}\n+\n+\tresponse := struct {\n+\t\tCISA      []kevulnmodels.KEVuln `json:\"cisa\"`\n+\t\tVulnCheck []struct {\n+\t\t\tVendorProject                string `json:\"vendorProject\"`\n+\t\t\tProduct                      string `json:\"product\"`\n+\t\t\tShortDescription             string `json:\"shortDescription\"`\n+\t\t\tDescription                  string `json:\"description\"`\n+\t\t\tVulnerabilityName            string `json:\"vulnerabilityName\"`\n+\t\t\tName                         string `json:\"name\"`\n+\t\t\tRequiredAction               string `json:\"required_action\"`\n+\t\t\tKnownRansomwareCampaignUse   string `json:\"knownRansomwareCampaignUse\"`\n+\t\t\tDueDate                      *time.Time `json:\"dueDate\"`\n+\t\t\tDateAdded                    time.Time  `json:\"date_added\"`\n+\t\t\tVulnCheckXDB                 []struct {\n+\t\t\t\tXDBID       string    `json:\"xdb_id\"`\n+\t\t\t\tXDBURL      string    `json:\"xdb_url\"`\n+\t\t\t\tDateAdded   time.Time `json:\"date_added\"`\n+\t\t\t\tExploitType string    `json:\"exploit_type\"`\n+\t\t\t\tCloneSSHURL string    `json:\"clone_ssh_url\"`\n+\t\t\t} `json:\"vulncheck_xdb\"`\n+\t\t\tVulnCheckReportedExploitation []struct {\n+\t\t\t\tURL       string    `json:\"url\"`\n+\t\t\t\tDateAdded time.Time `json:\"date_added\"`\n+\t\t\t} `json:\"vulncheck_reported_exploitation\"`\n+\t\t} `json:\"vulncheck\"`\n+\t}{}\n+\tif err := json.Unmarshal(b, &amp;response); err != nil {\n+\t\treturn nil, err\n+\t}\n+\n+\tkevs := kevsFromCISAKEVulns(response.CISA)\n+\tfor _, v := range response.VulnCheck {\n+\t\tshortDescription := v.ShortDescription\n+\t\tif shortDescription == \"\" {\n+\t\t\tshortDescription = v.Description\n+\t\t}\n+\t\tvulnerabilityName := v.VulnerabilityName\n+\t\tif vulnerabilityName == \"\" {\n+\t\t\tvulnerabilityName = v.Name\n+\t\t}\n+\t\tkev := models.KEV{\n+\t\t\tType:                       models.VulnCheckKEVType,\n+\t\t\tVendorProject:              v.VendorProject,\n+\t\t\tProduct:                    v.Product,\n+\t\t\tVulnerabilityName:          vulnerabilityName,\n+\t\t\tShortDescription:           shortDescription,\n+\t\t\tRequiredAction:             v.RequiredAction,\n+\t\t\tKnownRansomwareCampaignUse: v.KnownRansomwareCampaignUse,\n+\t\t\tDateAdded:                  v.DateAdded,\n+\t\t\tDueDate:                    v.DueDate,\n+\t\t\tVulnCheck:                  &amp;models.VulnCheckKEV{},\n+\t\t}\n+\t\tfor _, x := range v.VulnCheckXDB {\n+\t\t\tkev.VulnCheck.XDB = append(kev.VulnCheck.XDB, models.VulnCheckXDB{\n+\t\t\t\tXDBID:       x.XDBID,\n+\t\t\t\tXDBURL:      x.XDBURL,\n+\t\t\t\tDateAdded:   x.DateAdded,\n+\t\t\t\tExploitType: x.ExploitType,\n+\t\t\t\tCloneSSHURL: x.CloneSSHURL,\n+\t\t\t})\n+\t\t}\n+\t\tfor _, e := range v.VulnCheckReportedExploitation {\n+\t\t\tkev.VulnCheck.ReportedExploitation = append(kev.VulnCheck.ReportedExploitation, models.VulnCheckReportedExploitation{\n+\t\t\t\tURL:       e.URL,\n+\t\t\t\tDateAdded: e.DateAdded,\n+\t\t\t})\n+\t\t}\n+\t\tkevs = append(kevs, kev)\n+\t}\n+\treturn kevs, nil\n+}\n+\n+func kevsFromCISAKEVulns(kevulns []kevulnmodels.KEVuln) []models.KEV {\n+\tkevs := []models.KEV{}\n+\tfor _, kevuln := range kevulns {\n+\t\tkevs = append(kevs, kevFromCISAKEVuln(kevuln))\n+\t}\n+\treturn kevs\n+}\n+\n+func kevFromCISAKEVuln(kevuln kevulnmodels.KEVuln) models.KEV {\n+\tvar dueDate *time.Time\n+\tif !kevuln.DueDate.IsZero() {\n+\t\tdueDate = &amp;kevuln.DueDate\n+\t}\n+\treturn models.KEV{\n+\t\tType:                       models.CISAKEVType,\n+\t\tVendorProject:              kevuln.VendorProject,\n+\t\tProduct:                    kevuln.Product,\n+\t\tVulnerabilityName:          kevuln.VulnerabilityName,\n+\t\tShortDescription:           kevuln.ShortDescription,\n+\t\tRequiredAction:             kevuln.RequiredAction,\n+\t\tKnownRansomwareCampaignUse: kevuln.KnownRansomwareCampaignUse,\n+\t\tDateAdded:                  kevuln.DateAdded,\n+\t\tDueDate:                    dueDate,\n+\t\tCISA: &amp;models.CISAKEV{\n+\t\t\tNote: kevuln.Notes,\n+\t\t},\n+\t}\n+}\n+\n+func kevsFromResponseValue(response reflect.Value) []models.KEV {\n+\tresponse = indirectValue(response)\n+\tif !response.IsValid() {\n+\t\treturn nil\n+\t}\n+\n+\tkevs := []models.KEV{}\n+\tfor _, kev := range kevsFromCISAValue(response.FieldByName(\"CISA\")) {\n+\t\tkevs = append(kevs, kev)\n+\t}\n+\tfor _, kev := range kevsFromVulnCheckValue(response.FieldByName(\"VulnCheck\")) {\n+\t\tkevs = append(kevs, kev)\n+\t}\n+\treturn kevs\n+}\n+\n+func kevsFromCISAValue(v reflect.Value) []models.KEV {\n+\tv = indirectValue(v)\n+\tif !v.IsValid() || v.Kind() != reflect.Slice {\n+\t\treturn nil\n+\t}\n+\n+\tkevs := []models.KEV{}\n+\tfor i := 0; i &lt; v.Len(); i++ {\n+\t\titem := indirectValue(v.Index(i))\n+\t\tif !item.IsValid() {\n+\t\t\tcontinue\n+\t\t}\n+\t\tvar dueDate *time.Time\n+\t\tif d := timeField(item, \"DueDate\"); !d.IsZero() {\n+\t\t\tdueDate = &amp;d\n+\t\t}\n+\t\tkevs = append(kevs, models.KEV{\n+\t\t\tType:                       models.CISAKEVType,\n+\t\t\tVendorProject:              stringField(item, \"VendorProject\"),\n+\t\t\tProduct:                    stringField(item, \"Product\"),\n+\t\t\tVulnerabilityName:          stringField(item, \"VulnerabilityName\"),\n+\t\t\tShortDescription:           stringField(item, \"ShortDescription\"),\n+\t\t\tRequiredAction:             stringField(item, \"RequiredAction\"),\n+\t\t\tKnownRansomwareCampaignUse: stringField(item, \"KnownRansomwareCampaignUse\"),\n+\t\t\tDateAdded:                  timeField(item, \"DateAdded\"),\n+\t\t\tDueDate:                    dueDate,\n+\t\t\tCISA: &amp;models.CISAKEV{\n+\t\t\t\tNote: stringField(item, \"Notes\"),\n+\t\t\t},\n+\t\t})\n+\t}\n+\treturn kevs\n+}\n+\n+func kevsFromVulnCheckValue(v reflect.Value) []models.KEV {\n+\tv = indirectValue(v)\n+\tif !v.IsValid() || v.Kind() != reflect.Slice {\n+\t\treturn nil\n+\t}\n+\n+\tkevs := []models.KEV{}\n+\tfor i := 0; i &lt; v.Len(); i++ {\n+\t\titem := indirectValue(v.Index(i))\n+\t\tif !item.IsValid() {\n+\t\t\tcontinue\n+\t\t}\n+\t\tshortDescription := stringField(item, \"Description\")\n+\t\tif shortDescription == \"\" {\n+\t\t\tshortDescription = stringField(item, \"ShortDescription\")\n+\t\t}\n+\t\tvulnerabilityName := stringField(item, \"Name\")\n+\t\tif vulnerabilityName == \"\" {\n+\t\t\tvulnerabilityName = stringField(item, \"VulnerabilityName\")\n+\t\t}\n+\t\tkev := models.KEV{\n+\t\t\tType:                       models.VulnCheckKEVType,\n+\t\t\tVendorProject:              stringField(item, \"VendorProject\"),\n+\t\t\tProduct:                    stringField(item, \"Product\"),\n+\t\t\tVulnerabilityName:          vulnerabilityName,\n+\t\t\tShortDescription:           shortDescription,\n+\t\t\tRequiredAction:             stringField(item, \"RequiredAction\"),\n+\t\t\tKnownRansomwareCampaignUse: stringField(item, \"KnownRansomwareCampaignUse\"),\n+\t\t\tDateAdded:                  timeField(item, \"DateAdded\"),\n+\t\t\tDueDate:                    timePtrField(item, \"DueDate\"),\n+\t\t\tVulnCheck:                  &amp;models.VulnCheckKEV{},\n+\t\t}\n+\t\tfor _, x := range vulnCheckXDBsFromValue(item.FieldByName(\"VulnCheckXDB\")) {\n+\t\t\tkev.VulnCheck.XDB = append(kev.VulnCheck.XDB, x)\n+\t\t}\n+\t\tfor _, e := range vulnCheckReportedExploitationFromValue(item.FieldByName(\"VulnCheckReportedExploitation\")) {\n+\t\t\tkev.VulnCheck.ReportedExploitation = append(kev.VulnCheck.ReportedExploitation, e)\n+\t\t}\n+\t\tkevs = append(kevs, kev)\n+\t}\n+\treturn kevs\n+}\n+\n+func vulnCheckXDBsFromValue(v reflect.Value) []models.VulnCheckXDB {\n+\tv = indirectValue(v)\n+\tif !v.IsValid() || v.Kind() != reflect.Slice {\n+\t\treturn nil\n+\t}\n+\txdbs := []models.VulnCheckXDB{}\n+\tfor i := 0; i &lt; v.Len(); i++ {\n+\t\titem := indirectValue(v.Index(i))\n+\t\txdbs = append(xdbs, models.VulnCheckXDB{\n+\t\t\tXDBID:       stringField(item, \"XDBID\"),\n+\t\t\tXDBURL:      stringField(item, \"XDBURL\"),\n+\t\t\tDateAdded:   timeField(item, \"DateAdded\"),\n+\t\t\tExploitType: stringField(item, \"ExploitType\"),\n+\t\t\tCloneSSHURL: stringField(item, \"CloneSSHURL\"),\n+\t\t})\n+\t}\n+\treturn xdbs\n+}\n+\n+func vulnCheckReportedExploitationFromValue(v reflect.Value) []models.VulnCheckReportedExploitation {\n+\tv = indirectValue(v)\n+\tif !v.IsValid() || v.Kind() != reflect.Slice {\n+\t\treturn nil\n+\t}\n+\texploitations := []models.VulnCheckReportedExploitation{}\n+\tfor i := 0; i &lt; v.Len(); i++ {\n+\t\titem := indirectValue(v.Index(i))\n+\t\texploitations = append(exploitations, models.VulnCheckReportedExploitation{\n+\t\t\tURL:       stringField(item, \"URL\"),\n+\t\t\tDateAdded: timeField(item, \"DateAdded\"),\n+\t\t})\n+\t}\n+\treturn exploitations\n+}\n+\n+func stringField(v reflect.Value, name string) string {\n+\tv = indirectValue(v)\n+\tif !v.IsValid() || v.Kind() != reflect.Struct {\n+\t\treturn \"\"\n+\t}\n+\tf := v.FieldByName(name)\n+\tif !f.IsValid() || f.Kind() != reflect.String {\n+\t\treturn \"\"\n+\t}\n+\treturn f.String()\n+}\n+\n+func timeField(v reflect.Value, name string) time.Time {\n+\tv = indirectValue(v)\n+\tif !v.IsValid() || v.Kind() != reflect.Struct {\n+\t\treturn time.Time{}\n+\t}\n+\tf := indirectValue(v.FieldByName(name))\n+\tif !f.IsValid() || !f.CanInterface() {\n+\t\treturn time.Time{}\n+\t}\n+\tif t, ok := f.Interface().(time.Time); ok {\n+\t\treturn t\n+\t}\n+\treturn time.Time{}\n+}\n+\n+func timePtrField(v reflect.Value, name string) *time.Time {\n+\tv = indirectValue(v)\n+\tif !v.IsValid() || v.Kind() != reflect.Struct {\n+\t\treturn nil\n+\t}\n+\tf := v.FieldByName(name)\n+\tif !f.IsValid() || f.Kind() != reflect.Ptr || f.IsNil() || !f.CanInterface() {\n+\t\treturn nil\n+\t}\n+\tif t, ok := f.Interface().(*time.Time); ok {\n+\t\treturn t\n+\t}\n+\treturn nil\n+}\n+\n+func indirectValue(v reflect.Value) reflect.Value {\n+\tif !v.IsValid() {\n+\t\treturn v\n+\t}\n+\tfor v.Kind() == reflect.Interface || v.Kind() == reflect.Ptr {\n+\t\tif v.IsNil() {\n+\t\t\treturn reflect.Value{}\n+\t\t}\n+\t\tv = v.Elem()\n+\t}\n+\treturn v\n+}\n+\n type kevulnResponse struct {\n \trequest kevulnRequest\n \tjson    string\ndiff --git a/examples/config.toml.example b/examples/config.toml.example\nnew file mode 100644\nindex 0000000..6ddd196\n--- /dev/null\n+++ b/examples/config.toml.example\n@@ -0,0 +1,39 @@\n+# Synthetic example configuration for KEV reporting.\n+# Do not paste production secrets into this file.\n+\n+[cveDict]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/cve.sqlite3\"\n+\n+[ovalDict]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/oval.sqlite3\"\n+\n+[gost]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/gost.sqlite3\"\n+\n+[exploit]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/go-exploitdb.sqlite3\"\n+\n+[metasploit]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/go-msfdb.sqlite3\"\n+\n+[kevuln]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/go-kev.sqlite3\"\n+\n+[cti]\n+type = \"sqlite3\"\n+SQLite3Path = \"/var/lib/vuls/go-cti.sqlite3\"\n+\n+[servers]\n+\n+[servers.example-host]\n+host = \"example-host\"\n+port = \"22\"\n+user = \"vuls\"\n+keyPath = \"/home/vuls/.ssh/id_rsa\"\n+scanMode = [\"fast-root\"]\ndiff --git a/examples/scan-result-kev.json b/examples/scan-result-kev.json\nnew file mode 100644\nindex 0000000..21644f2\n--- /dev/null\n+++ b/examples/scan-result-kev.json\n@@ -0,0 +1,57 @@\n+{\n+  \"jsonVersion\": 4,\n+  \"lang\": \"en\",\n+  \"serverUUID\": \"00000000-0000-0000-0000-000000000000\",\n+  \"serverName\": \"example-host\",\n+  \"family\": \"ubuntu\",\n+  \"release\": \"22.04\",\n+  \"scannedCves\": {\n+    \"CVE-0000-0000\": {\n+      \"cveID\": \"CVE-0000-0000\",\n+      \"kevs\": [\n+        {\n+          \"type\": \"cisa\",\n+          \"vendorProject\": \"Example Vendor\",\n+          \"product\": \"Example Product\",\n+          \"vulnerabilityName\": \"Example Product Vulnerability\",\n+          \"shortDescription\": \"Synthetic example showing the CISA KEV output shape.\",\n+          \"requiredAction\": \"Apply updates per vendor instructions.\",\n+          \"knownRansomwareCampaignUse\": \"Unknown\",\n+          \"dateAdded\": \"2026-01-02T00:00:00Z\",\n+          \"dueDate\": \"2026-02-01T00:00:00Z\",\n+          \"cisa\": {\n+            \"note\": \"Synthetic CISA KEV note.\"\n+          }\n+        },\n+        {\n+          \"type\": \"vulncheck\",\n+          \"vendorProject\": \"Example Vendor\",\n+          \"product\": \"Example Product\",\n+          \"vulnerabilityName\": \"Example Product Vulnerability\",\n+          \"shortDescription\": \"Synthetic example showing the VulnCheck KEV output shape.\",\n+          \"requiredAction\": \"Apply updates per vendor instructions.\",\n+          \"knownRansomwareCampaignUse\": \"Unknown\",\n+          \"dateAdded\": \"2026-01-03T00:00:00Z\",\n+          \"vulncheck\": {\n+            \"xdb\": [\n+              {\n+                \"xdbID\": \"0000000000\",\n+                \"xdbURL\": \"https://example.com/vulncheck/xdb/0000000000\",\n+                \"dateAdded\": \"2026-01-03T00:00:00Z\",\n+                \"exploitType\": \"initial-access\",\n+                \"cloneSSHURL\": \"git@example.com:example/exploit-reference.git\"\n+              }\n+            ],\n+            \"reportedExploitation\": [\n+              {\n+                \"url\": \"https://example.com/report/example-exploitation\",\n+                \"dateAdded\": \"2026-01-04T00:00:00Z\"\n+              }\n+            ]\n+          }\n+        }\n+      ]\n+    }\n+  },\n+  \"packages\": {}\n+}\ndiff --git a/models/scanresults.go b/models/scanresults.go\nindex 508b992..9519116 100644\n--- a/models/scanresults.go\n+++ b/models/scanresults.go\n@@ -197,13 +197,14 @@ func (r ScanResult) FormatTextReportHeader() string {\n \t\tpkgs = fmt.Sprintf(\"%s, %d libs\", pkgs, r.LibraryScanners.Total())\n \t}\n \n-\treturn fmt.Sprintf(\"%s\\n%s\\n%s\\n%s, %s, %s, %s\\n%s\\n\",\n+\treturn fmt.Sprintf(\"%s\\n%s\\n%s\\n%s, %s, %s, %s, %s\\n%s\\n\",\n \t\tr.ServerInfo(),\n \t\tbuf.String(),\n \t\tr.ScannedCves.FormatCveSummary(),\n \t\tr.ScannedCves.FormatFixedStatus(r.Packages),\n \t\tr.FormatExploitCveSummary(),\n \t\tr.FormatMetasploitCveSummary(),\n+\t\tr.FormatKEVCveSummary(),\n \t\tr.FormatAlertSummary(),\n \t\tpkgs)\n }\n@@ -251,15 +252,22 @@ func (r ScanResult) FormatMetasploitCveSummary() string {\n \treturn fmt.Sprintf(\"%d exploits\", nMetasploitCve)\n }\n \n+// FormatKEVCveSummary returns a summary of KEV CVEs.\n+func (r ScanResult) FormatKEVCveSummary() string {\n+\tnKEVCve := 0\n+\tfor _, vuln := range r.ScannedCves {\n+\t\tif 0 &lt; len(vuln.KEVs) {\n+\t\t\tnKEVCve++\n+\t\t}\n+\t}\n+\treturn fmt.Sprintf(\"%d kevs\", nKEVCve)\n+}\n+\n // FormatAlertSummary returns a summary of CERT alerts\n func (r ScanResult) FormatAlertSummary() string {\n-\tcisaCnt := 0\n \tuscertCnt := 0\n \tjpcertCnt := 0\n \tfor _, vuln := range r.ScannedCves {\n-\t\tif len(vuln.AlertDict.CISA) &gt; 0 {\n-\t\t\tcisaCnt += len(vuln.AlertDict.CISA)\n-\t\t}\n \t\tif len(vuln.AlertDict.USCERT) &gt; 0 {\n \t\t\tuscertCnt += len(vuln.AlertDict.USCERT)\n \t\t}\n@@ -267,7 +275,7 @@ func (r ScanResult) FormatAlertSummary() string {\n \t\t\tjpcertCnt += len(vuln.AlertDict.JPCERT)\n \t\t}\n \t}\n-\treturn fmt.Sprintf(\"cisa: %d, uscert: %d, jpcert: %d alerts\", cisaCnt, uscertCnt, jpcertCnt)\n+\treturn fmt.Sprintf(\"uscert: %d, jpcert: %d alerts\", uscertCnt, jpcertCnt)\n }\n \n func (r ScanResult) isDisplayUpdatableNum(mode config.ScanMode) bool {\n@@ -422,6 +430,12 @@ func (r *ScanResult) SortForJSONOutput() {\n \t\tsort.Slice(v.Metasploits, func(i, j int) bool {\n \t\t\treturn v.Metasploits[i].Name &lt; v.Metasploits[j].Name\n \t\t})\n+\t\tsort.Slice(v.KEVs, func(i, j int) bool {\n+\t\t\tif v.KEVs[i].Type != v.KEVs[j].Type {\n+\t\t\t\treturn v.KEVs[i].Type &lt; v.KEVs[j].Type\n+\t\t\t}\n+\t\t\treturn v.KEVs[i].VulnerabilityName &lt; v.KEVs[j].VulnerabilityName\n+\t\t})\n \t\tsort.Slice(v.Mitigations, func(i, j int) bool {\n \t\t\treturn v.Mitigations[i].URL &lt; v.Mitigations[j].URL\n \t\t})\n@@ -434,9 +448,6 @@ func (r *ScanResult) SortForJSONOutput() {\n \t\tsort.Slice(v.AlertDict.JPCERT, func(i, j int) bool {\n \t\t\treturn v.AlertDict.JPCERT[i].Title &lt; v.AlertDict.JPCERT[j].Title\n \t\t})\n-\t\tsort.Slice(v.AlertDict.CISA, func(i, j int) bool {\n-\t\t\treturn v.AlertDict.CISA[i].Title &lt; v.AlertDict.CISA[j].Title\n-\t\t})\n \t\tr.ScannedCves[k] = v\n \t}\n }\ndiff --git a/models/vulninfos.go b/models/vulninfos.go\nindex 3e85e81..0b4cbe3 100644\n--- a/models/vulninfos.go\n+++ b/models/vulninfos.go\n@@ -265,6 +265,7 @@ type VulnInfo struct {\n \tCveContents          CveContents          `json:\"cveContents,omitempty\"`\n \tExploits             []Exploit            `json:\"exploits,omitempty\"`\n \tMetasploits          []Metasploit         `json:\"metasploits,omitempty\"`\n+\tKEVs                 []KEV                `json:\"kevs,omitempty\"`\n \tMitigations          []Mitigation         `json:\"mitigations,omitempty\"`\n \tCtis                 []string             `json:\"ctis,omitempty\"`\n \tAlertDict            AlertDict            `json:\"alertDict,omitempty\"`\n@@ -284,6 +285,58 @@ type Alert struct {\n \tTeam  string `json:\"team,omitempty\"`\n }\n \n+// KEVType is a source of Known Exploited Vulnerability data.\n+type KEVType string\n+\n+const (\n+\t// CISAKEVType represents CISA Known Exploited Vulnerabilities Catalog data.\n+\tCISAKEVType KEVType = \"cisa\"\n+\n+\t// VulnCheckKEVType represents VulnCheck KEV data.\n+\tVulnCheckKEVType KEVType = \"vulncheck\"\n+)\n+\n+// KEV has Known Exploited Vulnerability information.\n+type KEV struct {\n+\tType                         KEVType       `json:\"type,omitempty\"`\n+\tVendorProject                string        `json:\"vendorProject,omitempty\"`\n+\tProduct                      string        `json:\"product,omitempty\"`\n+\tVulnerabilityName            string        `json:\"vulnerabilityName,omitempty\"`\n+\tShortDescription             string        `json:\"shortDescription,omitempty\"`\n+\tRequiredAction               string        `json:\"requiredAction,omitempty\"`\n+\tKnownRansomwareCampaignUse   string        `json:\"knownRansomwareCampaignUse,omitempty\"`\n+\tDateAdded                    time.Time     `json:\"dateAdded,omitempty\"`\n+\tDueDate                      *time.Time    `json:\"dueDate,omitempty\"`\n+\tCISA                         *CISAKEV      `json:\"cisa,omitempty\"`\n+\tVulnCheck                    *VulnCheckKEV `json:\"vulncheck,omitempty\"`\n+}\n+\n+// CISAKEV has CISA-specific KEV fields.\n+type CISAKEV struct {\n+\tNote string `json:\"note,omitempty\"`\n+}\n+\n+// VulnCheckKEV has VulnCheck-specific KEV fields.\n+type VulnCheckKEV struct {\n+\tXDB                  []VulnCheckXDB                  `json:\"xdb,omitempty\"`\n+\tReportedExploitation []VulnCheckReportedExploitation `json:\"reportedExploitation,omitempty\"`\n+}\n+\n+// VulnCheckXDB has VulnCheck exploit database information.\n+type VulnCheckXDB struct {\n+\tXDBID       string    `json:\"xdbID,omitempty\"`\n+\tXDBURL      string    `json:\"xdbURL,omitempty\"`\n+\tDateAdded   time.Time `json:\"dateAdded,omitempty\"`\n+\tExploitType string    `json:\"exploitType,omitempty\"`\n+\tCloneSSHURL string    `json:\"cloneSSHURL,omitempty\"`\n+}\n+\n+// VulnCheckReportedExploitation has VulnCheck reported exploitation references.\n+type VulnCheckReportedExploitation struct {\n+\tURL       string    `json:\"url,omitempty\"`\n+\tDateAdded time.Time `json:\"dateAdded,omitempty\"`\n+}\n+\n // GitHubSecurityAlerts is a list of GitHubSecurityAlert\n type GitHubSecurityAlerts []GitHubSecurityAlert\n \n@@ -910,24 +963,20 @@ type Mitigation struct {\n \tURL            string         `json:\"url,omitempty\"`\n }\n \n-// AlertDict has target cve JPCERT, USCERT and CISA alert data\n+// AlertDict has target cve JPCERT and USCERT alert data\n type AlertDict struct {\n-\tCISA   []Alert `json:\"cisa\"`\n \tJPCERT []Alert `json:\"jpcert\"`\n \tUSCERT []Alert `json:\"uscert\"`\n }\n \n // IsEmpty checks if the content of AlertDict is empty\n func (a AlertDict) IsEmpty() bool {\n-\treturn len(a.CISA) == 0 &amp;&amp; len(a.JPCERT) == 0 &amp;&amp; len(a.USCERT) == 0\n+\treturn len(a.JPCERT) == 0 &amp;&amp; len(a.USCERT) == 0\n }\n \n // FormatSource returns which source has this alert\n func (a AlertDict) FormatSource() string {\n \tvar s []string\n-\tif len(a.CISA) != 0 {\n-\t\ts = append(s, \"CISA\")\n-\t}\n \tif len(a.USCERT) != 0 || len(a.JPCERT) != 0 {\n \t\ts = append(s, \"CERT\")\n \t}\ndiff --git a/reporter/util.go b/reporter/util.go\nindex d9cfdaa..ee5de2c 100644\n--- a/reporter/util.go\n+++ b/reporter/util.go\n@@ -204,6 +204,7 @@ func formatOneLineSummary(rs ...models.ScanResult) string {\n \t\t\t\tr.FormatUpdatablePkgsSummary(),\n \t\t\t\tr.FormatExploitCveSummary(),\n \t\t\t\tr.FormatMetasploitCveSummary(),\n+\t\t\t\tr.FormatKEVCveSummary(),\n \t\t\t\tr.FormatAlertSummary(),\n \t\t\t}\n \t\t} else {\n@@ -565,8 +566,21 @@ No CVE-IDs are found in updatable packages.\n \t\t})\n \t\tdata = append(data, ds...)\n \n-\t\tfor _, alert := range vuln.AlertDict.CISA {\n-\t\t\tdata = append(data, []string{\"CISA Alert\", alert.URL})\n+\t\tfor _, kev := range vuln.KEVs {\n+\t\t\tswitch kev.Type {\n+\t\t\tcase models.CISAKEVType:\n+\t\t\t\tdata = append(data, []string{\"CISA KEV\", \"https://www.cisa.gov/known-exploited-vulnerabilities-catalog\"})\n+\t\t\tcase models.VulnCheckKEVType:\n+\t\t\t\tif kev.VulnCheck == nil {\n+\t\t\t\t\tcontinue\n+\t\t\t\t}\n+\t\t\t\tfor _, xdb := range kev.VulnCheck.XDB {\n+\t\t\t\t\tdata = append(data, []string{\"VulnCheck KEV\", xdb.XDBURL})\n+\t\t\t\t}\n+\t\t\t\tfor _, exploitation := range kev.VulnCheck.ReportedExploitation {\n+\t\t\t\t\tdata = append(data, []string{\"VulnCheck KEV\", exploitation.URL})\n+\t\t\t\t}\n+\t\t\t}\n \t\t}\n \n \t\tfor _, alert := range vuln.AlertDict.JPCERT {\ndiff --git a/tui/tui.go b/tui/tui.go\nindex 4407f56..e0ebd8b 100644\n--- a/tui/tui.go\n+++ b/tui/tui.go\n@@ -812,13 +812,13 @@ func setChangelogLayout(g *gocui.Gui) error {\n \t\t\t}\n \t\t}\n \n-\t\tif len(vinfo.AlertDict.CISA) &gt; 0 {\n+\t\tif len(vinfo.KEVs) &gt; 0 {\n \t\t\tlines = append(lines, \"\\n\",\n-\t\t\t\t\"CISA Alert\",\n-\t\t\t\t\"===========\",\n+\t\t\t\t\"Known Exploited Vulnerabilities\",\n+\t\t\t\t\"================================\",\n \t\t\t)\n-\t\t\tfor _, alert := range vinfo.AlertDict.CISA {\n-\t\t\t\tlines = append(lines, fmt.Sprintf(\"* [%s](%s)\", alert.Title, alert.URL))\n+\t\t\tfor _, kev := range vinfo.KEVs {\n+\t\t\t\tlines = append(lines, fmt.Sprintf(\"* %s: %s\", kev.Type, kev.VulnerabilityName))\n \t\t\t}\n \t\t}\n \n", "creation_timestamp": "2026-07-13T17:36:39.734497Z"}