Skip to main content
The threat-data endpoint returns the full threat record for a verified threat, including all associated IOCs. Pass a threat_id from a check-malicious response to retrieve the complete intelligence for that threat.
Subscription Required: This is a paid endpoint available to Researcher Pro and Enterprise users.
Use this endpoint to:
  • Retrieve IOCs for blocking and detection: Pull all indicators associated with a threat to feed into your firewall rules, SIEM detections, or EDR policies.
  • Enrich threat reports: Get the full threat description, severity, tags, and IOC list for a package flagged during dependency scanning.
  • Power automated response: Integrate into incident response workflows to automatically retrieve and act on threat intelligence when a malicious resource is detected.
Endpoint
Required header
Pro or Enterprise required This endpoint is restricted to users with Pro or Enterprise roles. Standard API tokens will receive a 403 Forbidden response.

Query parameters

threat_id is required. UUID of the threat to retrieve (e.g. from a check-malicious response).

Response examples

Success (200)

401 — Missing API token

401 — Invalid or inactive token

403 — Requires Pro/Editor/Admin

400 — Missing threat_id

400 — Invalid UUID

404 — Not found or not verified/modified

cURL example

Typical workflow

  1. Use check-malicious to check if a package/resource is malicious and get the threat_id from the response
  2. Pass the threat_id to threat-data to retrieve the full threat description and all IOCs
  3. Use the IOCs for automated blocking, detection rules, or threat hunting in your environment
For a complete working example, see the Check and enrich threats guide.