Incidents

To create, update, or retrieve incidents from from the ThreatStream platform.

Request

/api/v1/incident/

HTTP Methods: GET, POST, PATCH

Create a new Incident POST /api/v1/incident/
Update the specified Incident PATCH /api/v1/incident/{id}/
Get details of the specified Incident GET /api/v1/incident/{id}/
Get a list of Incidents

Anomali recommends to use the /api/v1/threat_model_search endpoint to retrieve a list of Incidents. See Threat Model Search for details.

For example,

GET /api/v1/threat_model_search/?model_type=incident

Get a list of Incidents associated with the specified observable value or observable ID

GET /api/v1/incident/associated_with_intelligence/?value={value}

GET /api/v1/incident/associated_with_intelligence/?ids={comma_separated_id_list}

For example,

GET /api/v1/incident/associated_with_intelligence/?value=google.com returns all Incidents associated with google.com.

Get a list of the specified entity type (such as Malware, Campaign, and so on) associated with the specified Incident

GET /api/v1/incident/{id}/<entity_type>/

For example,

GET /api/v1/incident/234673/malware/ returns all malware objects associated with the specified Incident.

Get a list of observables associated with the specified Incident GET /api/v1/incident/{id}/intelligence/

Response

Format: JSON

Attributes: See the table below

Notes:
  • Attributes with "related" data type return 0 to N number of values. For example, if a threat model entity belongs to more than one trusted circle, both will be returned.
  • For information on limiting results and returning large datasets while mitigating performance impacts, see Limiting Results.

Attributes

Attribute Type Description
actors related (see item 1 in the Notes above)

Actor names associated with the Incident.

When creating an Incident, specify the Actor ID. See Actors .

circles related (see item 1 in the Notes above) All Trusted Circles to which the Incident belongs.
created_ts

datetime

Time stamp of when the Incident was created on ThreatStream, in UTC format.

Date is in this format: YYYYMMDDThhmmss

where T denotes the start of the value for time.

For example, 2014-10-02T20:44:35.

Note: This attribute is returned in the response to a GET call and is set by ThreatStream; it cannot be configured.
description string

The free-form text associated with the Incident (as specified in the Description field in the UI).

end_date datetime

Specify the time when this Incident is known to have ended.

Date must be specified in this format: YYYYMMDDThhmmss and in UTC format.

where T denotes the start of the value for time.

For example, 2014-10-02T20:44:35.

intelligence related (see item 1 in the Notes above)

Indicators associated with the Incident on the ThreatStream platform.

When creating an Incident, specify the observable ID. See Intelligence.

is_public boolean

Whether the Incident is public or private (including belonging to a trusted circle).

False—if the Incident is private or belongs to a Trusted Circle

True—if the Incident is public

Default: False

limit numeric

The limit variable controls the number of results returned every time an API call is made; the total number of results may be much larger than returned in one API call.

If limit is not specified, 20 results are returned with each API call. Specifying limit=0 will return up to a maximum of 1000 results (if available).

modified_ts datetime

Time stamp of when the Incident was last updated on ThreatStream, in UTC format.

Date is in this format: YYYYMMDDThhmmss

where T denotes the start of the value for time.

For example, 2014-10-02T20:44:35.

Note: This attribute is returned in the response to a GET call and is set by ThreatStream; it cannot be configured.
name string

Name of the Incident.

Incident name is associated with your organization. Therefore, the name must be unique within your organization. However, two Incidents with the same name can exist on ThreatStream as long as they belong to different organizations.

The name can contain up to 255 characters.

Note: This is a required parameter.

remote_api (for ThreatStream OnPrem only) boolean

Whether the entity is remote (stored on Cloud).

Value returned for this attribute is true when the entity is remote.

sandbox_reports related (see item 1 in the Notes above)

Sandbox reports associated with the Incident.

When creating an Incident, specify the Sandbox report ID. See Sandbox.

signatures related (see item 1 in the Notes above)

Signatures associated with the Incident.

When creating an Incident, specify the Signature ID. See Signatures.

skip_associations

(On ThreatStream OnPrem only)

boolean

By default, up to 1000 threat model and observable associations are returned with GET requests for details of a threat model entity on ThreatStream OnPrem. When a threat model entity has a large number of associations, association retrieval can take a long time and impact performance. Therefore, Anomali recommends setting the skip_associations parameter to true. This parameter is only applicable to ThreatStream OnPrem.

For example,

GET /api/v1/incident/{id}/?skip_associations=true

skip_intelligence

(On ThreatStream OnPrem only)

boolean

By default, up to 1000 threat model and observable associations are returned with GET requests for details of a threat model entity ThreatStream OnPrem. When a threat model entity has a large number of associations, association retrieval can take a long time and impact performance. Therefore, Anomali recommends setting the skip_intelligence parameter to true. This parameter is only applicable to ThreatStream OnPrem.

For example,

GET /api/v1/incident/{id}/?skip_intelligence=true

source_created datetime Time stamp of when the Incident was created by its original source.
source_modified datetime Time stamp of when the Incident was last updated by its original source.
start_date datetime

Specify the time when this Incident was first known to be active.

Date must be specified in this format: YYYYMMDDThhmmss and in UTC format.

where T denotes the start of the value for time.

For example, 2014-10-02T20:44:35.

status string

Status of the Incident.

When creating an Incident, specify the Status ID. Use /api/v1/incidentstatustype/ to obtain a list of Incident statuses.

status_desc string Free-form text associated with the status of the Incident (as specified in the Description field in the UI)
tags list

Tags assigned to the Incident.

A tag is a meaningful name or any other string value assigned to identify the information.

For example, spear phishing,exploitation.

tlp string

Traffic Light Protocol designation for the Incident—red, amber, amber+strict, green, clear.

Note: The value is case-sensitive and must be specified in lower case.
ttps related (see item 1 in the Notes above)

TTP (Threat Bulletins) associated with the Incident.

When creating an Incident, specify the TTP ID. See TTPs (Tactics, Techniques, and Procedures).

victims related (see item 1 in the Notes above)

Victim type associated with the Incident.

When creating an Incident, specify the ID of the victim type. To obtain a list of victim types, make an API call to /api/v1/victimtype/.

Examples

  1. To create a private Incident with status Open and associated with TTP whose ID is 63:

    Copy
    curl --request POST --data '{"name": "dummy test incident", "tlp": "red", "tags": ["big incident", "dummy tag"], "ttps": [63], "status": 2, "status_desc": "this is an open incident"}'  'https://api.threatstream.com/api/v1/incident/' -H 'Authorization: apikey <username>:<api_key>' -H 'Content-Type:application/json'
  2. To update an existing Incident whose ID is 79:

    Copy
    curl --request PATCH --data '{"name": "another dummy test incident", "tlp": "orange", "status": 7, "status_desc": "this incident is closed"}' 'https://api.threatstream.com/api/v1/incident/79/' -H "Content-Type:application/json" -H 'Authorization: apikey <username>:<api_key>'
  3. To get the detail of an existing Incident whose ID is 79:

    Copy
    curl 'https://api.threatstream.com/api/v1/incident/79/' -H 'Authorization: apikey <username>:<api_key>'
  4. To get the first 10 Incidents from ThreatStream:

    Copy
    curl 'https://api.threatstream.com/api/v1/incident/?limit=10' -H 'Authorization: apikey <username>:<api_key>'
  5. (Only on ThreatStream OnPrem) To get the detail of a remote Incident whose ID is 80:

    Copy
    curl 'https://<ThreatStream_OnPrem_IP_or_FQDN>/api/v1/incident/80/?remote_api=true' -H 'Authorization: apikey <username>:<api_key>'
  6. (Only on ThreatStream OnPrem) To skip associations when retrieving details of a local Incident with ID 12345:

    Copy
    curl 'https://<ThreatStream_OnPrem_IP_or_FQDN>/api/v1/incident/12345/?skip_associations=true' -H 'Authorization: apikey <username>:<api_key>'

    curl 'https://<ThreatStream_OnPrem_IP_or_FQDN>/api/v1/incident/12345/?skip_associations=true' -H 'Authorization: apikey <username>:<api_key>'