- Get Started with Threat Detection Management
- Analytics Rules
- Analytics Rule Classifications
- Create an Analytics Rule
- Manage Analytics Rules
- Tune Analytics Rules
- Find Analytics Rules
- Share Analytics Rules
- Troubleshoot Analytics Rules
- Analytics Rules Syntax
- Advanced Analytics Rule Syntax vs. Analytics Rule Syntax
- Logical Expressions in Analytics Rule Syntax'
- String Operations Using Analytics Rule Syntax
- Integer Operations Using Analytics Rule Syntax
- Time Operations Using Analytics Rule Syntax
- Network Operations Using Analytics Rule Syntax
- Context Operations Using Analytics Rule Syntax
- Entity Operations Using Analytics Rule Syntax
- Correlation Rule Operations Using Analytics Rule Syntax
- Analytics Engine Status
- Correlation Rules
- Threat Scoring
Entity Operations Using Analytics Rule Syntax
Evaluate and retrieve entity attributes using analytics rule syntax.
To know which entity in the event to evaluate, all entity-related functions require a selector as one of its arguments. Functions finds the first credential in the event that matches the selector conditions, then uses the credential to query Attack Surface Insights for an entity.
When you define the selector argument, ensure you use the correct syntax and understand the order in which functions select credentials matching the selector.
Function | Description | Returned Value | Examples |
|---|---|---|---|
| Checks if the entity matching | Boolean |
|
| Checks if the entity matching | Boolean |
|
| Retrieves value of | Value of |
|
| Retrieves the ID of the entity associated with an event. | String |
|
| Checks if the entity matching | Boolean |
|
Selector in Entity Functions
Specify the entities analytics rules entity-related functions evaluate using the selector argument.
The selector is an argument in all entity-related functions that tells the function which entity in the event to evaluate. The function finds the first credential in the event that matches the selector criteria, then uses the credential to query Attack Surface Insights for an entity.
When you define the selector argument, ensure you use the correct syntax and understand the order in which functions select credentials matching the selector.
Selector Syntax
The selector argument is a string. With the selector, you can specify two criteria:
The entity
type; eithertype: Userortype: DeviceThe network traffic
direction; eitherdirection: Sourceordirection:Dest
You can specify only one criteria or both type and direction criteria. To specify both criteria, use the & operator; for example, "type: User & direction: Dest". You can't use a logical "or" operator.
Selector Credential Selection Order
There is a specific order in which a function looks for credentials matching its selector argument. If a credential doesn't exist in the event, the function looks for the next credential in the sequence. The function uses the first credential that matches its selector to query Attack Surface Insights.
Credential Selection Order for "type: User" Selector
If the selector is "type: User", the function looks for the specific user credentials in the following order:
domain_user_name
local_user_name
account_user_name
database_user_name
src_email_address
email_address
employee_id
badge_id
user_sid
dest_domain_user_name
dest_local_user_name
dest_email_address
Credential Selection Order for "type: Device" Selector
If the selector is "type: Device", the function looks for the specific device credentials in the following order:
src_host
dest_host
Credential Selection Order for "destination: Source" Selector
If the selector is "destination: Source", the function looks for the specific source entity credentials in the following order:
domain_user_name
local_user_name
account_user_name
database_user_name
src_email_address
email_address
employee_id
badge_id
user_sid
src_host
Credential Selection Order for "destination: Dest" Selector
If the selector is "destination: Dest", the function looks for specific destination entity credentials in the following order:
dest_domain_user_name
dest_local_user_name
dest_email_address
dest_host
Credential Selection Order for "type: User & destination: Source" Selector
If the selector is "type: User & destination: Source", the function looks for specific source user credentials in the following order:
domain_user_name
local_user_name
account_user_name
database_user_name
src_email_address
email_address
employee_id
badge_id
user_sid
Credential Selection Order for "type: User & destination: Dest" Selector
If the selector is "type: User & destination: Dest", the function looks for specific destination user credentials in the following order:
dest_domain_user_name
dest_local_user_name
dest_email_address
Credential Selection Order for "type: Device & destination: Source" Selector
If the selector is "type: Device & destination: Source", the function looks for the src_host credential.
Credential Selection Order for "type: Device & destination: Dest" Selector
If the selector is "type: Device & destination: Dest", the function looks for the dest_host credential.