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.
| Sample | GET request | What it returns |
|---|---|---|
| API catalogDiscovery | GET/api/security-nightmares | Live sections, counts, filters, and example values. |
| Latest storiesThreat data | GET/api/security-nightmares?section=feed&limit=5 | First five records from the rolling threat feed. |
| Top nightmaresThreat data | GET/api/security-nightmares?section=nightmares&limit=5 | Up to five curated attacker-use stories. |
| Researcher exploit watchResearch watch | GET/api/security-nightmares?section=research_watch&limit=5 | Source-verified researcher-demonstrated exploits with no confirmed in-the-wild use; separate from attacker-use stories. |
| Affected softwareRolling inventory | GET/api/security-nightmares?section=affected_software&limit=25 | Source-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 inputs | GET/api/security-nightmares?section=hunt_profiles&limit=5 | Source-linked ATT&CK mappings, behaviors, observables, and explicit evidence gaps; not inferred from summary prose. |
| Filter storiesThreat data | GET/api/security-nightmares?section=feed&source=KEV&tag=exploit&limit=5 | Combine source, tag, CVE, software, text, and date filters. |
| Next pagePagination | GET/api/security-nightmares?section=feed&limit=5&offset=5 | Follow next_offset while has_more is true. |
| All sectionsThreat data | GET/api/security-nightmares?section=all&limit=5 | Up to five records for each data section. |
| IPv4 indicatorsIoCs | GET/api/security-nightmares/iocs?type=ipv4&limit=5 | First five defanged IPv4 IoCs. |
| Filter IoCsIoCs | GET/api/security-nightmares/iocs?type=domain&limit=5 | Filter IoCs by type, source, CVE, text, or first-seen date. |
| KQL historyHunting queries | GET/api/security-nightmares/queries?language=KQL&limit=5 | First five retained KQL hunts, including clearly labeled IOC-derived queries. |
| Platform huntsHunting queries | GET/api/security-nightmares/queries?platform=Microsoft%20Defender%20XDR&limit=5 | Filter query history by platform, source, language, text, and date. |
| Full snapshotStatic JSON | GET/security-nightmares/data/feed.json | Complete, 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.