{"openapi":"3.1.0","info":{"title":"RR42 Threat Map API","version":"1.0.0","description":"Open data on data breaches, ransomware cases, cyberattacks and exploited vulnerabilities. CC BY 4.0: credit \"RR42 Threat Map\" and link the incident and its sources.","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}},"servers":[{"url":"https://threats.rr42.de/api/v1"}],"paths":{"/incidents":{"get":{"summary":"Search incidents","parameters":[{"name":"kind","in":"query","description":"Comma list of breach, ransomware, vulnerability, attack","schema":{"type":"string"}},{"name":"country","in":"query","description":"Comma list of ISO 3166-1 alpha-2 codes (affected country)","schema":{"type":"string"}},{"name":"origin_country","in":"query","description":"Attributed origin country","schema":{"type":"string"}},{"name":"sector","in":"query","description":"Comma list of healthcare, finance, government, technology, retail, education, energy, telecom, manufacturing, media, transport, legal, hospitality, nonprofit, other","schema":{"type":"string"}},{"name":"severity_min","in":"query","schema":{"type":"integer","minimum":1,"maximum":4}},{"name":"records_min","in":"query","schema":{"type":"integer","minimum":0}},{"name":"q","in":"query","description":"Free text over title, organisation, domain and summary","schema":{"type":"string","maxLength":100}},{"name":"verified","in":"query","description":"true: only official, feed or corroborated incidents","schema":{"type":"boolean"}},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"until","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["disclosed","records","severity"],"default":"disclosed"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}}],"responses":{"200":{"description":"A page of incidents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentPage"}}}}}}},"/incidents/{idOrSlug}":{"get":{"summary":"One incident","parameters":[{"name":"idOrSlug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The incident","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Incident"}}}},"404":{"description":"Not found"}}}},"/major":{"get":{"summary":"Major breaches, ranked by records exposed","parameters":[{"name":"window","in":"query","schema":{"type":"string","enum":["24h","7d","30d","365d","all"],"default":"365d"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"kind","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Ranked incidents","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/map":{"get":{"summary":"Everything the map shows","parameters":[{"name":"window","in":"query","schema":{"type":"string","enum":["24h","7d","30d","365d","all"],"default":"30d"}}],"responses":{"200":{"description":"Countries, recent incidents and honeypot sensor activity","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/countries/{cc}":{"get":{"summary":"Incidents of one country","parameters":[{"name":"cc","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","description":"Comma list of breach, ransomware, vulnerability, attack","schema":{"type":"string"}},{"name":"country","in":"query","description":"Comma list of ISO 3166-1 alpha-2 codes (affected country)","schema":{"type":"string"}},{"name":"origin_country","in":"query","description":"Attributed origin country","schema":{"type":"string"}},{"name":"sector","in":"query","description":"Comma list of healthcare, finance, government, technology, retail, education, energy, telecom, manufacturing, media, transport, legal, hospitality, nonprofit, other","schema":{"type":"string"}},{"name":"severity_min","in":"query","schema":{"type":"integer","minimum":1,"maximum":4}},{"name":"records_min","in":"query","schema":{"type":"integer","minimum":0}},{"name":"q","in":"query","description":"Free text over title, organisation, domain and summary","schema":{"type":"string","maxLength":100}},{"name":"verified","in":"query","description":"true: only official, feed or corroborated incidents","schema":{"type":"boolean"}},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"until","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["disclosed","records","severity"],"default":"disclosed"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}}],"responses":{"200":{"description":"A page of incidents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentPage"}}}}}}},"/stats":{"get":{"summary":"Figures and data freshness","responses":{"200":{"description":"Statistics","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/status":{"get":{"summary":"Health of the data feeds","responses":{"200":{"description":"Feed status","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/subscriptions":{"post":{"summary":"Create an email alert (double opt-in: a confirmation email follows)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"},"frequency":{"type":"string","enum":["instant","daily","weekly"],"default":"daily"},"locale":{"type":"string","enum":["en","de"],"default":"en"},"filters":{"type":"object","properties":{"kinds":{"type":"array","items":{"type":"string","enum":["breach","ransomware","vulnerability","attack"]}},"countries":{"type":"array","items":{"type":"string"}},"sectors":{"type":"array","items":{"type":"string","enum":["healthcare","finance","government","technology","retail","education","energy","telecom","manufacturing","media","transport","legal","hospitality","nonprofit","other"]}},"min_severity":{"type":"integer","minimum":1,"maximum":4},"min_records":{"type":"integer","minimum":0},"keywords":{"type":"array","items":{"type":"string"},"maxItems":10}}}}}}}},"responses":{"202":{"description":"Accepted. The answer is the same whether or not the address exists."},"429":{"description":"Too many sign-ups"}}}}},"components":{"schemas":{"Incident":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["breach","ransomware","vulnerability","attack"]},"title":{"type":"string"},"summary":{"type":"string"},"org":{"type":"object","properties":{"name":{"type":["string","null"]},"domain":{"type":["string","null"]}}},"country":{"type":["string","null"],"description":"ISO 3166-1 alpha-2 of the affected organisation"},"origin_country":{"type":["string","null"]},"sector":{"type":["string","null"]},"severity":{"type":"integer","minimum":1,"maximum":4},"severity_label":{"type":"string","enum":["low","medium","high","critical"]},"records_affected":{"type":["integer","null"]},"data_types":{"type":"array","items":{"type":"string"}},"occurred_on":{"type":["string","null"],"format":"date"},"disclosed_at":{"type":"string","format":"date-time"},"verification":{"type":"string","enum":["official","feed","corroborated","reported"]},"sources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"cve_id":{"type":["string","null"]},"updated_at":{"type":"string","format":"date-time"}}},"IncidentPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Incident"}},"page":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}}}}}}}}