-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Threat Intelligence Section #7905
Changes from 44 commits
d004861
053a4a1
4b86238
db61dbc
674b1d8
08dd633
757d97c
56a1579
209ce29
8061ff3
3ac502b
02f49eb
e3d7111
f8efffc
40b13a5
bbd772a
b7e4ec1
b18e865
19acc65
fb8605e
e23989a
cb059c8
42629f9
4f9f595
7a3032e
d0e3980
beee133
700a4b0
c9d8726
c5a9b23
f601649
eab43f5
7573c99
e0c91e1
f80808d
a304696
465406f
234da29
b77b76f
a9acd73
ea96af4
338523c
7b7db2e
87215f0
e49f0ae
8e952f0
1005bef
e31ed20
252e227
8443833
2cca1de
ba1c836
9849edd
d88d3ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,267 @@ | ||||||
--- | ||||||
layout: default | ||||||
title: Alerts and Findings API | ||||||
parent: Threat intelligence APIs | ||||||
grand_parent: Threat intelligence | ||||||
nav_order: 50 | ||||||
--- | ||||||
|
||||||
|
||||||
# Alerts and Findings API | ||||||
Check failure on line 10 in _security-analytics/threat-intelligence/api/findings.md GitHub Actions / vale[vale] _security-analytics/threat-intelligence/api/findings.md#L10
Raw output
|
||||||
|
||||||
The threat intelligence Alerts and Findings API retrieves information about alerts and findings found in threat intelligence feeds. | ||||||
|
||||||
|
||||||
--- | ||||||
|
||||||
## Get threat intelligence alerts | ||||||
|
||||||
Retrieves any alerts related to threat intelligence monitors. | ||||||
|
||||||
### Path and HTTP methods | ||||||
|
||||||
```json | ||||||
GET /_plugins/_security_analytics/threat_intel/alerts | ||||||
``` | ||||||
{% include copy-curl.html %} | ||||||
|
||||||
|
||||||
### Path parameters | ||||||
|
||||||
You can specify the following parameters when requesting an alert. | ||||||
|
||||||
Parameter | Description | ||||||
:--- | :---- | ||||||
`severityLevel` | Filter alerts by severity level. Optional. | ||||||
`alertState` | Used to filter by alert state. Possible values are `ACTIVE`, `ACKNOWLEDGED`, `COMPLETED`, `ERROR`, or `DELETED`. Optional. | ||||||
`sortString` | The string Security Analytics uses to sort the alerts. Optional. | ||||||
`sortOrder` | The order used to sort the list of alerts. Possible values are `asc` or `desc`. Optional. | ||||||
`missing` | A list of fields for which no alias mappings are found. Optional. | ||||||
Naarcha-AWS marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
`size` | An optional limit for the maximum number of results returned in the response. Optional. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
`startIndex` | The pagination indicator. Optional. | ||||||
`searchString` | The alert attribute you want returned in the search. Optional. | ||||||
|
||||||
### Example request | ||||||
Naarcha-AWS marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
```json | ||||||
GET /_plugins/_security_analytics/threat_intel/alerts | ||||||
``` | ||||||
{% include copy-curl.html %} | ||||||
|
||||||
### Example response | ||||||
|
||||||
```json | ||||||
{ | ||||||
"alerts": [{ | ||||||
"id": "906669ee-56e8-4f40-a12f-ab4c274d7521", | ||||||
"version": 1, | ||||||
"schema_version": 0, | ||||||
"seq_no": 0, | ||||||
"primary_term": 1, | ||||||
"trigger_id": "regwarg", | ||||||
"trigger_name": "regwarg", | ||||||
"state": "ACTIVE", | ||||||
"error_message": null, | ||||||
"ioc_value": "example-has00001", | ||||||
"ioc_type": "hashes", | ||||||
"severity": "high", | ||||||
"finding_ids": [ | ||||||
"a9c10094-6139-42b3-81a8-867dffbe381d" | ||||||
], | ||||||
"acknowledged_time": 1722038395105, | ||||||
"last_updated_time": null, | ||||||
"start_time": 1722038395105, | ||||||
"end_time": null | ||||||
}], | ||||||
"total_alerts": 1 | ||||||
} | ||||||
``` | ||||||
|
||||||
### Response fields | ||||||
|
||||||
Threat intelligence alerts can have one of the following states. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
| State | Description | | ||||||
| :---- | :--- | | ||||||
| `ACTIVE` | The alert is ongoing and unacknowledged. Alerts remain in this state until they are acknowledged, the trigger associated with the alert is deleted, or the threat intelligence monitor is deleted entirely. | | ||||||
| `ACKNOWLEDGED` | The alert is acknowledged but the root cause of the alert has not been addressed. | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| `COMPLETED` | The alert is no longer ongoing. Alerts enter this state after the corresponding trigger evaluates to `false`. | | ||||||
| `DELETED` | The monitor or trigger for the alert was deleted while the alert was active. | | ||||||
|
||||||
--- | ||||||
|
||||||
## Update alerts status API | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Updates the status of the specified alerts to `ACKNOWLEDGED` or `COMPLETED`. Only alerts in the `ACTIVE` state can be updated. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
## Path and HTTP methods | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```json | ||||||
PUT /plugins/security_analytics/threat_intel/alerts/status | ||||||
``` | ||||||
|
||||||
### Example requests | ||||||
|
||||||
The following example updates status of the specified alerts to `ACKNOWLEDGED`: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```json | ||||||
PUT /plugins/security_analytics/threat_intel/alerts/status?state=ACKNOWLEDGED&alert_ids=<alert-id>,<alert-id> | ||||||
``` | ||||||
|
||||||
The following example updates status of the specified alerts to `COMPLETED`: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```json | ||||||
PUT /plugins/security_analytics/threat_intel/alerts/status?state=COMPLETED&alert_ids=alert_ids=<alert-id>,<alert-id> | ||||||
``` | ||||||
|
||||||
### Example response | ||||||
|
||||||
```json | ||||||
{ | ||||||
"updated_alerts": [ | ||||||
{ | ||||||
"id": "906669ee-56e8-4f40-a12f-ab4c274d7521", | ||||||
"version": 1, | ||||||
"schema_version": 0, | ||||||
"seq_no": 2, | ||||||
"primary_term": 1, | ||||||
"trigger_id": "regwarg", | ||||||
"trigger_name": "regwarg", | ||||||
"state": "ACKNOWLEDGED", | ||||||
"error_message": null, | ||||||
"ioc_value": "example-has00001", | ||||||
"ioc_type": "hashes", | ||||||
"severity": "high", | ||||||
"finding_ids": [ | ||||||
"a9c10094-6139-42b3-81a8-867dffbe381d" | ||||||
], | ||||||
"acknowledged_time": 1722039091209, | ||||||
"last_updated_time": 1722039091209, | ||||||
"start_time": 1722038395105, | ||||||
"end_time": null | ||||||
}, | ||||||
{ | ||||||
"id": "56e8-4f40-a12f-ab4c274d7521-906669ee", | ||||||
"version": 1, | ||||||
"schema_version": 0, | ||||||
"seq_no": 2, | ||||||
"primary_term": 1, | ||||||
"trigger_id": "regwarg", | ||||||
"trigger_name": "regwarg", | ||||||
"state": "ACKNOWLEDGED", | ||||||
"error_message": null, | ||||||
"ioc_value": "example-has00001", | ||||||
"ioc_type": "hashes", | ||||||
"severity": "high", | ||||||
"finding_ids": [ | ||||||
"a9c10094-6139-42b3-81a8-867dffbe381d" | ||||||
], | ||||||
"acknowledged_time": 1722039091209, | ||||||
"last_updated_time": 1722039091209, | ||||||
"start_time": 1722038395105, | ||||||
"end_time": null | ||||||
} | ||||||
], | ||||||
"failure_messages": [] | ||||||
} | ||||||
``` | ||||||
|
||||||
|
||||||
|
||||||
--- | ||||||
|
||||||
## Get findings | ||||||
|
||||||
Returns threat intelligence Indicators of compromise (IOCs) findings. When the threat intelligence monitor finds a malicious IoC during a data scan, a finding is automatically added to the threat intelligence feed. | ||||||
Naarcha-AWS marked this conversation as resolved.
Show resolved
Hide resolved
Naarcha-AWS marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
### Path and HTTP method | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even if there's only one, please leave the template heading as is. |
||||||
```json | ||||||
GET /_plugins/_security_analytics/threat_intel/findings/ | ||||||
``` | ||||||
|
||||||
### Path parameters | ||||||
|
||||||
| Parameter | Description | | ||||||
|:---------------|:--------------------------------------------------------------------------------------------| | ||||||
| `sortString` | Specifies which string Security Analytics uses to sort the alerts. Optional. | | ||||||
| `sortOrder` | The order used to sort the list of findings. Possible values are `asc` or `desc`. Optional. | | ||||||
| `missing` | A list of fields for which there are no found alias mappings. Optional. | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| `size` | An optional limit for the maximum number of results returned in the response. Optional. | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Optional" is mentioned in the description twice. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes
Naarcha-AWS marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| `startIndex` | The pagination indicator. Optional. | | ||||||
| `searchString` | The alert attribute you want returned in the search. Optional. | | ||||||
|
||||||
### Example request | ||||||
|
||||||
```json | ||||||
GET /_plugins/_security_analytics/threat_intel/findings/_search?size=3 | ||||||
``` | ||||||
|
||||||
```json | ||||||
{ | ||||||
"total_findings": 10, | ||||||
"ioc_findings": [ | ||||||
{ | ||||||
"id": "a9c10094-6139-42b3-81a8-867dffbe381d", | ||||||
"related_doc_ids": [ | ||||||
"Ccp88ZAB1vBjq44wmTEu:windows" | ||||||
], | ||||||
"ioc_feed_ids": [ | ||||||
{ | ||||||
"ioc_id": "2", | ||||||
"feed_id": "Bsp88ZAB1vBjq44wiDGo", | ||||||
"feed_name": "my_custom_feed", | ||||||
"index": "" | ||||||
} | ||||||
], | ||||||
"monitor_id": "B8p88ZAB1vBjq44wkjEy", | ||||||
"monitor_name": "Threat intelligence monitor", | ||||||
"ioc_value": "example-has00001", | ||||||
"ioc_type": "hashes", | ||||||
"timestamp": 1722038394501, | ||||||
"execution_id": "01cae635-93dc-4f07-9e39-31076b9535d1" | ||||||
}, | ||||||
{ | ||||||
"id": "8d87aee0-aaa4-4c12-b4e2-b4b1f4ec80f9", | ||||||
"related_doc_ids": [ | ||||||
"GsqI8ZAB1vBjq44wXTHa:windows" | ||||||
], | ||||||
"ioc_feed_ids": [ | ||||||
{ | ||||||
"ioc_id": "2", | ||||||
"feed_id": "Bsp88ZAB1vBjq44wiDGo", | ||||||
"feed_name": "my_custom_feed", | ||||||
"index": "" | ||||||
} | ||||||
], | ||||||
"monitor_id": "B8p88ZAB1vBjq44wkjEy", | ||||||
"monitor_name": "Threat intelligence monitor", | ||||||
"ioc_value": "example-has00001", | ||||||
"ioc_type": "hashes", | ||||||
"timestamp": 1722039165824, | ||||||
"execution_id": "54899e32-aeeb-401e-a031-b1728772f0aa" | ||||||
}, | ||||||
{ | ||||||
"id": "2419f624-ba1a-4873-978c-760183b449b7", | ||||||
"related_doc_ids": [ | ||||||
"H8qI8ZAB1vBjq44woDHU:windows" | ||||||
], | ||||||
"ioc_feed_ids": [ | ||||||
{ | ||||||
"ioc_id": "2", | ||||||
"feed_id": "Bsp88ZAB1vBjq44wiDGo", | ||||||
"feed_name": "my_custom_feed", | ||||||
"index": "" | ||||||
} | ||||||
], | ||||||
"monitor_id": "B8p88ZAB1vBjq44wkjEy", | ||||||
"monitor_name": "Threat intelligence monitor", | ||||||
"ioc_value": "example-has00001", | ||||||
"ioc_type": "hashes", | ||||||
"timestamp": 1722039182616, | ||||||
"execution_id": "32ad2544-4b8b-4c9b-b2b4-2ba6d31ece12" | ||||||
} | ||||||
] | ||||||
} | ||||||
|
||||||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.