{"uuid": "d20a91e0-cb1f-42cf-8774-a589136646dd", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2021-44228", "type": "seen", "source": "https://gist.github.com/tu-trinh-scale/a4a75eafbe797265e95a6dce950d0b12", "content": "diff --git a/README.md b/README.md\nindex 57102d1..056c3f1 100644\n--- a/README.md\n+++ b/README.md\n@@ -174,6 +174,12 @@ Vuls has some options to detect the vulnerabilities\n \n ----\n \n+## Setup\n+\n+An example configuration file is available at [`config.toml.example`](config.toml.example).\n+Copy it to `config.toml` and adjust the settings for your environment.\n+The `[kevuln]` section enables first-class Known Exploited Vulnerabilities (KEV) lookup from CISA and VulnCheck sources.\n+\n ## Document\n \n For more information such as Installation, Tutorial, Usage, visit [vuls.io](https://vuls.io/)  \ndiff --git a/config.toml.example b/config.toml.example\nnew file mode 100644\nindex 0000000..24618ff\n--- /dev/null\n+++ b/config.toml.example\n@@ -0,0 +1,137 @@\n+# Vuls example configuration file\n+# Copy this file to config.toml and adjust settings for your environment.\n+# See https://vuls.io/docs/en/config.toml.html for full documentation.\n+\n+# https://vuls.io/docs/en/config.toml.html#database-section\n+[cveDict]\n+#type = \"sqlite3\"\n+#sqlite3Path = \"/path/to/cve.sqlite3\"\n+#url        = \"\"\n+\n+[ovalDict]\n+#type = \"sqlite3\"\n+#sqlite3Path = \"/path/to/oval.sqlite3\"\n+#url        = \"\"\n+\n+[gost]\n+#type = \"sqlite3\"\n+#sqlite3Path = \"/path/to/gost.sqlite3\"\n+#url        = \"\"\n+\n+[exploit]\n+#type = \"sqlite3\"\n+#sqlite3Path = \"/path/to/go-exploitdb.sqlite3\"\n+#url        = \"\"\n+\n+[metasploit]\n+#type = \"sqlite3\"\n+#sqlite3Path = \"/path/to/go-msfdb.sqlite3\"\n+#url        = \"\"\n+\n+# Known Exploited Vulnerabilities (KEV) catalog lookup.\n+# Enables first-class KEV data on each vulnerability (CISA + VulnCheck sources).\n+[kevuln]\n+type = \"sqlite3\"\n+sqlite3Path = \"/path/to/go-kev.sqlite3\"\n+#url        = \"\"\n+\n+[cti]\n+#type = \"sqlite3\"\n+#sqlite3Path = \"/path/to/go-cti.sqlite3\"\n+#url        = \"\"\n+\n+# https://vuls.io/docs/en/config.toml.html#slack-section\n+#[slack]\n+#hookURL      = \"https://hooks.slack.com/services/abc123/defghijklmnopqrstuvwxyz\"\n+##legacyToken = \"xoxp-11111111111-222222222222-3333333333\"\n+#channel      = \"#channel-name\"\n+##channel     = \"${servername}\"\n+#iconEmoji    = \":ghost:\"\n+#authUser     = \"username\"\n+#notifyUsers  = [\"@username\"]\n+\n+# https://vuls.io/docs/en/config.toml.html#email-section\n+#[email]\n+#smtpAddr              = \"smtp.example.com\"\n+#smtpPort              = \"587\"\n+#tlsMode               = \"STARTTLS\"\n+#tlsInsecureSkipVerify = false\n+#user                  = \"username\"\n+#password              = \"password\"\n+#from                  = \"from@example.com\"\n+#to                    = [\"to@example.com\"]\n+#cc                    = [\"cc@example.com\"]\n+#subjectPrefix         = \"[vuls]\"\n+\n+# https://vuls.io/docs/en/config.toml.html#http-section\n+#[http]\n+#url = \"http://localhost:11234\"\n+\n+# https://vuls.io/docs/en/config.toml.html#syslog-section\n+#[syslog]\n+#protocol    = \"tcp\"\n+#host        = \"localhost\"\n+#port        = \"514\"\n+#tag         = \"vuls\"\n+#facility    = \"local0\"\n+#severity    = \"alert\"\n+#verbose     = false\n+\n+# https://vuls.io/docs/en/usage-report.html#example-put-results-in-s3-bucket\n+#[aws]\n+#s3Endpoint             = \"http://localhost:9000\"\n+#region                 = \"ap-northeast-1\"\n+#profile                = \"default\"\n+#credentialProvider     = \"anonymous\"\n+#s3Bucket               = \"vuls\"\n+#s3ResultsDir           = \"/path/to/result\"\n+#s3ServerSideEncryption = \"AES256\"\n+#s3UsePathStyle         = false\n+\n+# https://vuls.io/docs/en/usage-report.html#example-put-results-in-azure-blob-storage\n+#[azure]\n+#endpoint      = \"https://default.blob.core.windows.net/\"\n+#accountName   = \"default\"\n+#accountKey    = \"xxxxxxxxxxxxxx\"\n+#containerName = \"vuls\"\n+\n+# https://vuls.io/docs/en/config.toml.html#chatwork-section\n+#[chatwork]\n+#room     = \"xxxxxxxxxxx\"\n+#apiToken = \"xxxxxxxxxxxxxxxxxx\"\n+\n+# https://vuls.io/docs/en/config.toml.html#googlechat-section\n+#[googlechat]\n+#webHookURL = \"https://chat.googleapis.com/v1/spaces/xxxxxxxxxx/messages?key=yyyyyyyyyy&amp;token=zzzzzzzzzz%3D\"\n+#skipIfNoCve = false\n+\n+# https://vuls.io/docs/en/config.toml.html#telegram-section\n+#[telegram]\n+#chatID     = \"xxxxxxxxxxx\"\n+#token = \"xxxxxxxxxxxxxxxxxx\"\n+\n+#[wpscan]\n+#token = \"xxxxxxxxxxx\"\n+#detectInactive = false\n+\n+# https://vuls.io/docs/en/config.toml.html#default-section\n+[default]\n+#port               = \"22\"\n+#user               = \"username\"\n+#keyPath            = \"/home/username/.ssh/id_rsa\"\n+#scanMode           = [\"fast\"]\n+#scanModules        = [\"ospkg\", \"wordpress\", \"lockfile\", \"port\"]\n+#lockfiles = [\"/path/to/package-lock.json\"]\n+#cpeNames = [\n+#  \"cpe:/a:rubyonrails:ruby_on_rails:4.2.1\",\n+#]\n+#ignoreCves         = [\"CVE-2014-6271\"]\n+\n+# https://vuls.io/docs/en/config.toml.html#servers-section\n+[servers]\n+\n+[servers.localhost]\n+host = \"localhost\"\n+port = \"local\"\n+#scanMode           = [\"fast\"]\n+#scanModules        = [\"ospkg\", \"lockfile\"]\ndiff --git a/detector/kevuln.go b/detector/kevuln.go\nindex 41afdfe..90b7eb4 100644\n--- a/detector/kevuln.go\n+++ b/detector/kevuln.go\n@@ -79,18 +79,13 @@ func FillWithKEVuln(r *models.ScanResult, cnf config.KEVulnConf, logOpts logging\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\tif len(kevulns) == 0 {\n+\t\t\t\tcontinue\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\tv.KEVs = convertToKEVs(kevulns)\n \t\t\t\tnKEV++\n \t\t\t}\n \t\t\tr.ScannedCves[res.request.cveID] = v\n@@ -108,16 +103,7 @@ func FillWithKEVuln(r *models.ScanResult, cnf config.KEVulnConf, logOpts logging\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 = convertToKEVs(kevulns)\n \t\t\tnKEV++\n \t\t\tr.ScannedCves[cveID] = vuln\n \t\t}\n@@ -127,6 +113,29 @@ func FillWithKEVuln(r *models.ScanResult, cnf config.KEVulnConf, logOpts logging\n \treturn nil\n }\n \n+func convertToKEVs(kevulns []kevulnmodels.KEVuln) []models.KEV {\n+\tkevs := make([]models.KEV, 0, len(kevulns))\n+\tfor _, k := range kevulns {\n+\t\tkev := models.KEV{\n+\t\t\tType:                       models.CISAKEVType,\n+\t\t\tVendorProject:              k.VendorProject,\n+\t\t\tProduct:                    k.Product,\n+\t\t\tVulnerabilityName:          k.VulnerabilityName,\n+\t\t\tShortDescription:           k.ShortDescription,\n+\t\t\tRequiredAction:             k.RequiredAction,\n+\t\t\tKnownRansomwareCampaignUse: k.KnownRansomwareCampaignUse,\n+\t\t\tDateAdded:                  k.DateAdded,\n+\t\t\tCISA:                       &amp;models.CISAKEV{Note: k.Notes},\n+\t\t}\n+\t\tif !k.DueDate.IsZero() {\n+\t\t\tdueDate := k.DueDate\n+\t\t\tkev.DueDate = &amp;dueDate\n+\t\t}\n+\t\tkevs = append(kevs, kev)\n+\t}\n+\treturn kevs\n+}\n+\n type kevulnResponse struct {\n \trequest kevulnRequest\n \tjson    string\ndiff --git a/models/kev_test.go b/models/kev_test.go\nnew file mode 100644\nindex 0000000..ff5e212\n--- /dev/null\n+++ b/models/kev_test.go\n@@ -0,0 +1,238 @@\n+package models\n+\n+import (\n+\t\"reflect\"\n+\t\"testing\"\n+\t\"time\"\n+)\n+\n+func TestFormatKEVCveSummary(t *testing.T) {\n+\ttests := []struct {\n+\t\tname     string\n+\t\tresult   ScanResult\n+\t\texpected string\n+\t}{\n+\t\t{\n+\t\t\tname: \"no kevs\",\n+\t\t\tresult: ScanResult{\n+\t\t\t\tScannedCves: VulnInfos{\n+\t\t\t\t\t\"CVE-2021-0001\": VulnInfo{},\n+\t\t\t\t},\n+\t\t\t},\n+\t\t\texpected: \"0 kevs\",\n+\t\t},\n+\t\t{\n+\t\t\tname: \"one cve with kevs\",\n+\t\t\tresult: ScanResult{\n+\t\t\t\tScannedCves: VulnInfos{\n+\t\t\t\t\t\"CVE-2021-0001\": VulnInfo{\n+\t\t\t\t\t\tKEVs: []KEV{\n+\t\t\t\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"test\"},\n+\t\t\t\t\t\t},\n+\t\t\t\t\t},\n+\t\t\t\t\t\"CVE-2021-0002\": VulnInfo{},\n+\t\t\t\t},\n+\t\t\t},\n+\t\t\texpected: \"1 kevs\",\n+\t\t},\n+\t\t{\n+\t\t\tname: \"multiple cves with kevs\",\n+\t\t\tresult: ScanResult{\n+\t\t\t\tScannedCves: VulnInfos{\n+\t\t\t\t\t\"CVE-2021-0001\": VulnInfo{\n+\t\t\t\t\t\tKEVs: []KEV{\n+\t\t\t\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"test1\"},\n+\t\t\t\t\t\t},\n+\t\t\t\t\t},\n+\t\t\t\t\t\"CVE-2021-0002\": VulnInfo{\n+\t\t\t\t\t\tKEVs: []KEV{\n+\t\t\t\t\t\t\t{Type: VulnCheckKEVType, VulnerabilityName: \"test2\"},\n+\t\t\t\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"test3\"},\n+\t\t\t\t\t\t},\n+\t\t\t\t\t},\n+\t\t\t\t},\n+\t\t\t},\n+\t\t\texpected: \"2 kevs\",\n+\t\t},\n+\t}\n+\n+\tfor _, tt := range tests {\n+\t\tt.Run(tt.name, func(t *testing.T) {\n+\t\t\tgot := tt.result.FormatKEVCveSummary()\n+\t\t\tif got != tt.expected {\n+\t\t\t\tt.Errorf(\"FormatKEVCveSummary() = %q, want %q\", got, tt.expected)\n+\t\t\t}\n+\t\t})\n+\t}\n+}\n+\n+func TestSortForJSONOutput_KEVs(t *testing.T) {\n+\tnow := time.Now()\n+\ttests := []struct {\n+\t\tname     string\n+\t\tkevs     []KEV\n+\t\texpected []KEV\n+\t}{\n+\t\t{\n+\t\t\tname: \"sort by type then vulnerability name\",\n+\t\t\tkevs: []KEV{\n+\t\t\t\t{Type: VulnCheckKEVType, VulnerabilityName: \"Vuln B\", DateAdded: now},\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln C\", DateAdded: now},\n+\t\t\t\t{Type: VulnCheckKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t},\n+\t\t\texpected: []KEV{\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln C\", DateAdded: now},\n+\t\t\t\t{Type: VulnCheckKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t\t{Type: VulnCheckKEVType, VulnerabilityName: \"Vuln B\", DateAdded: now},\n+\t\t\t},\n+\t\t},\n+\t\t{\n+\t\t\tname:     \"empty kevs\",\n+\t\t\tkevs:     []KEV{},\n+\t\t\texpected: []KEV{},\n+\t\t},\n+\t\t{\n+\t\t\tname: \"already sorted\",\n+\t\t\tkevs: []KEV{\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln B\", DateAdded: now},\n+\t\t\t\t{Type: VulnCheckKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t},\n+\t\t\texpected: []KEV{\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t\t{Type: CISAKEVType, VulnerabilityName: \"Vuln B\", DateAdded: now},\n+\t\t\t\t{Type: VulnCheckKEVType, VulnerabilityName: \"Vuln A\", DateAdded: now},\n+\t\t\t},\n+\t\t},\n+\t}\n+\n+\tfor _, tt := range tests {\n+\t\tt.Run(tt.name, func(t *testing.T) {\n+\t\t\tr := &amp;ScanResult{\n+\t\t\t\tScannedCves: VulnInfos{\n+\t\t\t\t\t\"CVE-2021-0001\": VulnInfo{\n+\t\t\t\t\t\tKEVs: tt.kevs,\n+\t\t\t\t\t},\n+\t\t\t\t},\n+\t\t\t}\n+\t\t\tr.SortForJSONOutput()\n+\t\t\tgot := r.ScannedCves[\"CVE-2021-0001\"].KEVs\n+\t\t\tif !reflect.DeepEqual(got, tt.expected) {\n+\t\t\t\tt.Errorf(\"KEVs after sort = %+v, want %+v\", got, tt.expected)\n+\t\t\t}\n+\t\t})\n+\t}\n+}\n+\n+func TestAlertDict_IsEmpty_WithoutCISA(t *testing.T) {\n+\ttests := []struct {\n+\t\tname     string\n+\t\tdict     AlertDict\n+\t\texpected bool\n+\t}{\n+\t\t{\n+\t\t\tname:     \"all empty\",\n+\t\t\tdict:     AlertDict{},\n+\t\t\texpected: true,\n+\t\t},\n+\t\t{\n+\t\t\tname: \"only CISA populated - still empty for alert purposes\",\n+\t\t\tdict: AlertDict{\n+\t\t\t\tCISA: []Alert{{Title: \"test\"}},\n+\t\t\t},\n+\t\t\texpected: true,\n+\t\t},\n+\t\t{\n+\t\t\tname: \"JPCERT populated - not empty\",\n+\t\t\tdict: AlertDict{\n+\t\t\t\tJPCERT: []Alert{{Title: \"test\"}},\n+\t\t\t},\n+\t\t\texpected: false,\n+\t\t},\n+\t\t{\n+\t\t\tname: \"USCERT populated - not empty\",\n+\t\t\tdict: AlertDict{\n+\t\t\t\tUSCERT: []Alert{{Title: \"test\"}},\n+\t\t\t},\n+\t\t\texpected: false,\n+\t\t},\n+\t}\n+\n+\tfor _, tt := range tests {\n+\t\tt.Run(tt.name, func(t *testing.T) {\n+\t\t\tgot := tt.dict.IsEmpty()\n+\t\t\tif got != tt.expected {\n+\t\t\t\tt.Errorf(\"IsEmpty() = %v, want %v\", got, tt.expected)\n+\t\t\t}\n+\t\t})\n+\t}\n+}\n+\n+func TestAlertDict_FormatSource_WithoutCISA(t *testing.T) {\n+\ttests := []struct {\n+\t\tname     string\n+\t\tdict     AlertDict\n+\t\texpected string\n+\t}{\n+\t\t{\n+\t\t\tname: \"only CISA - returns empty\",\n+\t\t\tdict: AlertDict{\n+\t\t\t\tCISA: []Alert{{Title: \"test\"}},\n+\t\t\t},\n+\t\t\texpected: \"\",\n+\t\t},\n+\t\t{\n+\t\t\tname: \"USCERT - returns CERT\",\n+\t\t\tdict: AlertDict{\n+\t\t\t\tUSCERT: []Alert{{Title: \"test\"}},\n+\t\t\t},\n+\t\t\texpected: \"CERT\",\n+\t\t},\n+\t\t{\n+\t\t\tname: \"JPCERT - returns CERT\",\n+\t\t\tdict: AlertDict{\n+\t\t\t\tJPCERT: []Alert{{Title: \"test\"}},\n+\t\t\t},\n+\t\t\texpected: \"CERT\",\n+\t\t},\n+\t}\n+\n+\tfor _, tt := range tests {\n+\t\tt.Run(tt.name, func(t *testing.T) {\n+\t\t\tgot := tt.dict.FormatSource()\n+\t\t\tif got != tt.expected {\n+\t\t\t\tt.Errorf(\"FormatSource() = %q, want %q\", got, tt.expected)\n+\t\t\t}\n+\t\t})\n+\t}\n+}\n+\n+func TestFormatAlertSummary_WithoutCISA(t *testing.T) {\n+\tr := ScanResult{\n+\t\tScannedCves: VulnInfos{\n+\t\t\t\"CVE-2021-0001\": VulnInfo{\n+\t\t\t\tAlertDict: AlertDict{\n+\t\t\t\t\tCISA:   []Alert{{Title: \"a\"}, {Title: \"b\"}},\n+\t\t\t\t\tUSCERT: []Alert{{Title: \"c\"}},\n+\t\t\t\t\tJPCERT: []Alert{{Title: \"d\"}, {Title: \"e\"}},\n+\t\t\t\t},\n+\t\t\t},\n+\t\t},\n+\t}\n+\tgot := r.FormatAlertSummary()\n+\texpected := \"uscert: 1, jpcert: 2 alerts\"\n+\tif got != expected {\n+\t\tt.Errorf(\"FormatAlertSummary() = %q, want %q\", got, expected)\n+\t}\n+}\n+\n+func TestKEVType_Constants(t *testing.T) {\n+\tif CISAKEVType != \"cisa\" {\n+\t\tt.Errorf(\"CISAKEVType = %q, want %q\", CISAKEVType, \"cisa\")\n+\t}\n+\tif VulnCheckKEVType != \"vulncheck\" {\n+\t\tt.Errorf(\"VulnCheckKEVType = %q, want %q\", VulnCheckKEVType, \"vulncheck\")\n+\t}\n+}\ndiff --git a/models/scanresults.go b/models/scanresults.go\nindex 508b992..a825df3 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 CVEs with KEV entries\n+func (r ScanResult) FormatKEVCveSummary() string {\n+\tnKEVCve := 0\n+\tfor _, vuln := range r.ScannedCves {\n+\t\tif len(vuln.KEVs) &gt; 0 {\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@@ -437,6 +445,12 @@ func (r *ScanResult) SortForJSONOutput() {\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\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\tr.ScannedCves[k] = v\n \t}\n }\ndiff --git a/models/vulninfos.go b/models/vulninfos.go\nindex 3e85e81..5867efd 100644\n--- a/models/vulninfos.go\n+++ b/models/vulninfos.go\n@@ -268,6 +268,7 @@ type VulnInfo struct {\n \tMitigations          []Mitigation         `json:\"mitigations,omitempty\"`\n \tCtis                 []string             `json:\"ctis,omitempty\"`\n \tAlertDict            AlertDict            `json:\"alertDict,omitempty\"`\n+\tKEVs                 []KEV                `json:\"kevs,omitempty\"`\n \tCpeURIs              []string             `json:\"cpeURIs,omitempty\"` // CpeURIs related to this CVE defined in config.toml\n \tGitHubSecurityAlerts GitHubSecurityAlerts `json:\"gitHubSecurityAlerts,omitempty\"`\n \tWpPackageFixStats    WpPackageFixStats    `json:\"wpPackageFixStats,omitempty\"`\n@@ -910,6 +911,58 @@ type Mitigation struct {\n \tURL            string         `json:\"url,omitempty\"`\n }\n \n+// KEVType represents the source of a Known Exploited Vulnerability entry\n+type KEVType string\n+\n+const (\n+\t// CISAKEVType is the CISA KEV source\n+\tCISAKEVType KEVType = \"cisa\"\n+\n+\t// VulnCheckKEVType is the VulnCheck KEV source\n+\tVulnCheckKEVType KEVType = \"vulncheck\"\n+)\n+\n+// KEV has Known Exploited Vulnerability information\n+type KEV struct {\n+\tType                        KEVType       `json:\"type\"`\n+\tVendorProject               string        `json:\"vendorProject\"`\n+\tProduct                     string        `json:\"product\"`\n+\tVulnerabilityName           string        `json:\"vulnerabilityName\"`\n+\tShortDescription            string        `json:\"shortDescription\"`\n+\tRequiredAction              string        `json:\"requiredAction\"`\n+\tKnownRansomwareCampaignUse  string        `json:\"knownRansomwareCampaignUse\"`\n+\tDateAdded                   time.Time     `json:\"dateAdded\"`\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\"`\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\"`\n+\tXDBURL      string    `json:\"xdbURL\"`\n+\tDateAdded   time.Time `json:\"dateAdded\"`\n+\tExploitType string    `json:\"exploitType\"`\n+\tCloneSSHURL string    `json:\"cloneSSHURL\"`\n+}\n+\n+// VulnCheckReportedExploitation has VulnCheck reported exploitation information\n+type VulnCheckReportedExploitation struct {\n+\tURL       string    `json:\"url\"`\n+\tDateAdded time.Time `json:\"dateAdded\"`\n+}\n+\n // AlertDict has target cve JPCERT, USCERT and CISA alert data\n type AlertDict struct {\n \tCISA   []Alert `json:\"cisa\"`\n@@ -919,15 +972,12 @@ type AlertDict struct {\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..a2dfbd0 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,10 +566,6 @@ 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\t}\n-\n \t\tfor _, alert := range vuln.AlertDict.JPCERT {\n \t\t\tdata = append(data, []string{\"JPCERT Alert\", alert.URL})\n \t\t}\ndiff --git a/sample/scan_result_with_kevs.json b/sample/scan_result_with_kevs.json\nnew file mode 100644\nindex 0000000..0044c9c\n--- /dev/null\n+++ b/sample/scan_result_with_kevs.json\n@@ -0,0 +1,177 @@\n+{\n+    \"jsonVersion\": 4,\n+    \"lang\": \"en\",\n+    \"serverUUID\": \"sample-server-uuid\",\n+    \"serverName\": \"web-server-01\",\n+    \"family\": \"ubuntu\",\n+    \"release\": \"22.04\",\n+    \"scannedAt\": \"2026-07-03T00:00:00Z\",\n+    \"scanMode\": \"fast\",\n+    \"scannedCves\": {\n+        \"CVE-2023-32315\": {\n+            \"cveID\": \"CVE-2023-32315\",\n+            \"confidences\": [\n+                {\n+                    \"score\": 100,\n+                    \"detectionMethod\": \"OvalMatch\"\n+                }\n+            ],\n+            \"affectedPackages\": [\n+                {\n+                    \"name\": \"openfire\",\n+                    \"fixedIn\": \"4.7.5\"\n+                }\n+            ],\n+            \"cveContents\": {\n+                \"nvd\": [\n+                    {\n+                        \"cvss3Score\": 7.5,\n+                        \"cvss3Severity\": \"HIGH\",\n+                        \"cvss3Vector\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\",\n+                        \"summary\": \"Openfire is an XMPP server licensed under the Open Source Apache License. Openfire's administrative console allows path traversal via the setup environment, enabling an unauthenticated attacker to access restricted pages.\"\n+                    }\n+                ]\n+            },\n+            \"kevs\": [\n+                {\n+                    \"type\": \"cisa\",\n+                    \"vendorProject\": \"Ignite Realtime\",\n+                    \"product\": \"Openfire\",\n+                    \"vulnerabilityName\": \"Ignite Realtime Openfire Path Traversal Vulnerability\",\n+                    \"shortDescription\": \"Openfire is an XMPP server that allows path traversal via the setup environment, enabling an unauthenticated attacker to access restricted pages in the admin console.\",\n+                    \"requiredAction\": \"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.\",\n+                    \"knownRansomwareCampaignUse\": \"Unknown\",\n+                    \"dateAdded\": \"2023-08-24T00:00:00Z\",\n+                    \"dueDate\": \"2023-09-14T00:00:00Z\",\n+                    \"cisa\": {\n+                        \"note\": \"\"\n+                    }\n+                }\n+            ],\n+            \"alertDict\": {}\n+        },\n+        \"CVE-2021-44228\": {\n+            \"cveID\": \"CVE-2021-44228\",\n+            \"confidences\": [\n+                {\n+                    \"score\": 100,\n+                    \"detectionMethod\": \"NvdExactVersionMatch\"\n+                }\n+            ],\n+            \"affectedPackages\": [\n+                {\n+                    \"name\": \"log4j-core\",\n+                    \"fixedIn\": \"2.17.0\"\n+                }\n+            ],\n+            \"cveContents\": {\n+                \"nvd\": [\n+                    {\n+                        \"cvss3Score\": 10.0,\n+                        \"cvss3Severity\": \"CRITICAL\",\n+                        \"cvss3Vector\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H\",\n+                        \"summary\": \"Apache Log4j2 2.0-beta9 through 2.15.0 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints.\"\n+                    }\n+                ]\n+            },\n+            \"kevs\": [\n+                {\n+                    \"type\": \"cisa\",\n+                    \"vendorProject\": \"Apache\",\n+                    \"product\": \"Log4j\",\n+                    \"vulnerabilityName\": \"Apache Log4j2 Remote Code Execution Vulnerability\",\n+                    \"shortDescription\": \"Apache Log4j2 contains a vulnerability where JNDI features do not protect against attacker-controlled LDAP and other JNDI related endpoints.\",\n+                    \"requiredAction\": \"For all affected software assets, apply patches issued by the vendor.\",\n+                    \"knownRansomwareCampaignUse\": \"Known\",\n+                    \"dateAdded\": \"2021-12-10T00:00:00Z\",\n+                    \"dueDate\": \"2021-12-24T00:00:00Z\",\n+                    \"cisa\": {\n+                        \"note\": \"\"\n+                    }\n+                },\n+                {\n+                    \"type\": \"vulncheck\",\n+                    \"vendorProject\": \"Apache\",\n+                    \"product\": \"Log4j\",\n+                    \"vulnerabilityName\": \"Apache Log4j2 Remote Code Execution Vulnerability\",\n+                    \"shortDescription\": \"Apache Log4j2 contains a vulnerability where JNDI features do not protect against attacker-controlled LDAP and other JNDI related endpoints.\",\n+                    \"requiredAction\": \"Apply patches issued by the vendor.\",\n+                    \"knownRansomwareCampaignUse\": \"Known\",\n+                    \"dateAdded\": \"2021-12-10T00:00:00Z\",\n+                    \"dueDate\": \"2021-12-24T00:00:00Z\",\n+                    \"vulnCheck\": {\n+                        \"xdb\": [\n+                            {\n+                                \"xdbID\": \"XDB-2021-001\",\n+                                \"xdbURL\": \"https://vulncheck.com/xdb/2021-001\",\n+                                \"dateAdded\": \"2021-12-11T00:00:00Z\",\n+                                \"exploitType\": \"remote\",\n+                                \"cloneSSHURL\": \"git@github.com:example/log4shell-poc.git\"\n+                            }\n+                        ],\n+                        \"reportedExploitation\": [\n+                            {\n+                                \"url\": \"https://www.cisa.gov/known-exploited-vulnerabilities-catalog\",\n+                                \"dateAdded\": \"2021-12-10T00:00:00Z\"\n+                            }\n+                        ]\n+                    }\n+                }\n+            ],\n+            \"alertDict\": {}\n+        },\n+        \"CVE-2024-1234\": {\n+            \"cveID\": \"CVE-2024-1234\",\n+            \"confidences\": [\n+                {\n+                    \"score\": 100,\n+                    \"detectionMethod\": \"OvalMatch\"\n+                }\n+            ],\n+            \"affectedPackages\": [\n+                {\n+                    \"name\": \"libcurl\",\n+                    \"fixedIn\": \"7.88.1-10+deb12u5\"\n+                }\n+            ],\n+            \"cveContents\": {\n+                \"nvd\": [\n+                    {\n+                        \"cvss3Score\": 5.3,\n+                        \"cvss3Severity\": \"MEDIUM\",\n+                        \"cvss3Vector\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N\",\n+                        \"summary\": \"Example vulnerability without KEV data.\"\n+                    }\n+                ]\n+            },\n+            \"alertDict\": {\n+                \"jpcert\": [\n+                    {\n+                        \"url\": \"https://www.jpcert.or.jp/at/2024/at240001.html\",\n+                        \"title\": \"Example JPCERT Alert\"\n+                    }\n+                ],\n+                \"uscert\": [\n+                    {\n+                        \"url\": \"https://www.us-cert.gov/ncas/alerts/aa24-001a\",\n+                        \"title\": \"Example US-CERT Alert\"\n+                    }\n+                ]\n+            }\n+        }\n+    },\n+    \"packages\": {\n+        \"openfire\": {\n+            \"name\": \"openfire\",\n+            \"version\": \"4.7.4\"\n+        },\n+        \"log4j-core\": {\n+            \"name\": \"log4j-core\",\n+            \"version\": \"2.14.1\"\n+        },\n+        \"libcurl\": {\n+            \"name\": \"libcurl\",\n+            \"version\": \"7.88.1-10+deb12u4\"\n+        }\n+    }\n+}\ndiff --git a/tui/tui.go b/tui/tui.go\nindex 4407f56..80afe95 100644\n--- a/tui/tui.go\n+++ b/tui/tui.go\n@@ -812,16 +812,6 @@ 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\t\tlines = append(lines, \"\\n\",\n-\t\t\t\t\"CISA Alert\",\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\t}\n-\t\t}\n-\n \t\tif len(vinfo.AlertDict.USCERT) &gt; 0 {\n \t\t\tlines = append(lines, \"\\n\",\n \t\t\t\t\"USCERT Alert\",\n", "creation_timestamp": "2026-07-03T09:17:39.808040Z"}