Read-only API reference

Request examples

Common ways an agent can query the threat data. Click a GET URI to open its JSON response. Paged examples request five records.

GET only
SampleGET requestWhat it returns
API catalogDiscoveryGET/api/security-nightmaresLive sections, counts, filters, and example values.
Latest storiesThreat dataGET/api/security-nightmares?section=feed&limit=5First five records from the rolling threat feed.
Top nightmaresThreat dataGET/api/security-nightmares?section=nightmares&limit=5Up to five curated attacker-use stories.
Researcher exploit watchResearch watchGET/api/security-nightmares?section=research_watch&limit=5Source-verified researcher-demonstrated exploits with no confirmed in-the-wild use; separate from attacker-use stories.
Affected softwareRolling inventoryGET/api/security-nightmares?section=affected_software&limit=25Source-linked affected products from the rolling 30-day pool, independent of the 25-story display cap; includes actual source-check timestamps when available.
Hunt profilesHypothesis inputsGET/api/security-nightmares?section=hunt_profiles&limit=5Source-linked ATT&CK mappings, behaviors, observables, and explicit evidence gaps; not inferred from summary prose.
Filter storiesThreat dataGET/api/security-nightmares?section=feed&source=KEV&tag=exploit&limit=5Combine source, tag, CVE, software, text, and date filters.
Next pagePaginationGET/api/security-nightmares?section=feed&limit=5&offset=5Follow next_offset while has_more is true.
All sectionsThreat dataGET/api/security-nightmares?section=all&limit=5Up to five records for each data section.
IPv4 indicatorsIoCsGET/api/security-nightmares/iocs?type=ipv4&limit=5First five defanged IPv4 IoCs.
Filter IoCsIoCsGET/api/security-nightmares/iocs?type=domain&limit=5Filter IoCs by type, source, CVE, text, or first-seen date.
KQL historyHunting queriesGET/api/security-nightmares/queries?language=KQL&limit=5First five retained KQL hunts, including clearly labeled IOC-derived queries.
Platform huntsHunting queriesGET/api/security-nightmares/queries?platform=Microsoft%20Defender%20XDR&limit=5Filter query history by platform, source, language, text, and date.
Full snapshotStatic JSONGET/security-nightmares/data/feed.jsonComplete, unpaged snapshot with all sections and counts.
Pagination: limit + offset; follow next_offset.Search: q is a case-insensitive substring (max 5,000 chars); source max 1,000 chars.Dates: since is inclusive.

IoC values are defanged and each API IoC includes indicator-source plus linked-story provenance. Source-published queries are not validated detections; IOC-derived queries carry a telemetry disclaimer. Review and adapt before running. Full schemas are in the raw OpenAPI JSON.

About this API

Security Nightmares is a non-official, source-linked threat feed for threat hunting. The API is read-only. IoCs are defanged for safe display; source-provided hunting queries are not validated detections. Review linked sources and adapt queries to your telemetry before use.