Security lists
Lists can be used with detection rule exceptions to define values that prevent a rule from generating alerts.
Lists are made up of:
- List containers: A container for values of the same Elasticsearch data type. The following data types can be used:
booleanbytedatedate_nanosdate_rangedoubledouble_rangefloatfloat_rangehalf_floatintegerinteger_rangeipip_rangekeywordlonglong_rangeshorttext
- List items: The values used to determine whether the exception prevents an alert from being generated.
All list items in the same list container must be of the same data type, and each item defines a single value. For example, an IP list container named internal-ip-addresses-southport contains five items, where each item defines one internal IP address:
192.168.1.1192.168.1.3192.168.1.18192.168.1.12192.168.1.7
To use these IP addresses as values for defining rule exceptions, use the Security exceptions API to create an exception list item that references the internal-ip-addresses-southport list.
Lists cannot be added directly to rules, nor do they define the operators used to determine when exceptions are applied (is in list, is not in list). Use an exception item to define the operator and associate it with an exception container. You can then add the exception container to a rule's exceptions_list object.
Before you can start using lists, you must create the .lists and .items data streams for the relevant Kibana space. To do this, use the Create list data streams endpoint. Once these data streams are created, your role needs privileges to manage rules. Refer to Enable and access detections for a complete list of requirements.
Endpoints
18 endpoints
-
GET
Get value list details
/api /lists -
POST
Create a value list
/api /lists -
PUT
Update a value list
/api /lists -
PATCH
Patch a value list
/api /lists -
DELETE
Delete a value list
/api /lists -
GET
Get value lists
/api /lists /_find -
GET
Get status of value list data streams
/api /lists /index -
POST
Create list data streams
Deprecated
/api /lists /index -
DELETE
Delete value list data streams
/api /lists /index -
GET
Get a value list item
/api /lists /items -
POST
Create a value list item
/api /lists /items -
PUT
Update a value list item
/api /lists /items -
PATCH
Patch a value list item
/api /lists /items -
DELETE
Delete a value list item
/api /lists /items -
POST
Export value list items
/api /lists /items /_export -
GET
Get value list items
/api /lists /items /_find -
POST
Import value list items
/api /lists /items /_import -
GET
Get value list privileges
/api /lists /privileges