Skip to content

Instantly share code, notes, and snippets.

Created October 30, 2022 11:09
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Turn CISA's KEV JSON into a bare-bones RSS feed
kev <- jsonlite::fromJSON("")
vulns <- kev$vulnerabilities
vulns <- vulns[nrow(vulns):1,]
rss_body <- '
<rss version="2.0">
<title><![CDATA[CISA Known Exploited Vulnerabilities Catalog]]></title>
<description><![CDATA[For the benefit of the cybersecurity community and network defenders—and to help every organization better manage vulnerabilities and keep pace with threat activity—CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild: the Known Exploited Vulnerability (KEV) catalog. CISA strongly recommends all organizations review and monitor the KEV catalog and prioritize remediation of the listed vulnerabilities to reduce the likelihood of compromise by known threat actors.]]></description>
rss_item <- '
urlencode <- function(.x) sapply(.x, URLencode, USE.NAMES = FALSE)
link_and_guid <- urlencode(file.path("", vulns$cveID))
sprintf("%s: [%s] %s", vulns$dateAdded, vulns$cveID, vulns$vulnerabilityName),
collapse = "\n"
) -> out
cat(out, file="/var/sites/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment