Skip to main content

Detection criteria for Advanced rules

Advanced custom rules are query-based EDR detection rules you can use to scan endpoints for patterns of malicious behavior. This page lists the detection criteria available when building Advanced custom detection rules. Each criterion consists of a category, a field, and a value that together define the behavior you want to detect.

The API methods that use these criteria are the following:

Advanced rules use a query syntax where criteria follow this format:

Category.Field:Value

For example: Process.Name:'powershell.exe'

You can combine multiple criteria using logical and comparison operators. For more information on the Advanced rule syntax, refer to this section Advanced rule syntax.

Important

Criteria that accept string values support pattern matching using wildcards. The following criteria do not support wildcards:

  • Process.md5

  • Process.sha256

  • File.md5

  • File.sha256

Field

Category

Value validation rules

Process.name

Process

String

Process.path

Process.command_line

Process.directory

Process.user

Process.parent_name

Process.parent_directory

Process.parent_path

Process.parent_cmdline

Process.md5

Hash

Process.sha256

Process.Files

Array

Important

These fields can be used only with parentheses ( ).

You can also use the + operator when querying array fields to mark a condition as required for matching array elements. For more information, refer to Advanced rule syntax.

Process.Registries

Process.Connections

Process.Services

Process.Emails

File.name

File

String

File.path

File.directory

File.extension

File.parent_name

File.parent_directory

File.parent_path

File.parent_cmdline

File.parent_user

File.md5

Hash

File.sha256

File.operation

Possible values:

  • create

  • read

  • write

  • move

  • rename

  • copy

File.certificate_signed_status

Important

Requires either File.Name or File.FullPathName to be defined in the same rule.

Possible values

  • unknown

  • is_signed

  • is_unsigned

Important

The unsigned value is incompatible with File.certificate_issuer or File.certificate_signer in the same rule.

File.certificate_signer

Important

  • Requires either File.name or File.path to be defined in the same rule.

  • This criterion is incompatible with the unsigned value of the File.certificate_signed_status field.

String

File.CertificateIssuer

Important

  • Requires either File.name or File.path to be defined in the same rule.

  • This criterion is incompatible with the unsigned value of the File.certificate_signed_status field.

String

Registry.key

Registry

String

Registry.value

Registry.parent_name

Registry.parent_directory

Registry.parent_user

Registry.parent_path

Registry.parent_cmdline

Registry.operation

Possible values:

  • key_created

  • key_deleted

  • key_renamed

  • value_created

  • value_deleted

  • value_written

Registry.type

Possible values:

  • none

  • string

  • expandablestring

  • link

  • multistring

  • binary

  • dword

  • qword

  • resource_list

  • resource_requirements_list

  • full_resource_descriptor

Registry.data

Important

  • This criterion must be used together with Registry.type.

  • This criterion is incompatible with the multistring value of the Registry.type field.

  • Integer types are converted to strings.

String

Important

For the binary, resource_list, full_resource_descriptor, and resource_requirements_list registry types, the Registry.data value must be encoded in base64.

Network.source_ip

Network

IP

Network.destination_ip

Network.source_port

Integer

Network.destination_port

Network.protocol

Possible values:

  • https

  • http

  • ftp

  • rdp

  • smb

  • ssh

  • ssl

  • wmi

  • telnet

  • file_remote

Network.parent_name

String

Network.parent_path

Network.parent_directory

Network.parent_cmdline

Network.parent_user

Network.url

Network.domain

Important

The Network.protocol criterion can only have the values http or https.

String

Network.http_user

Important

  • If this criterion is used, the Network.protocol criterion can have only the values http or https.

  • Incompatible with the following fields in the same rule:

    • Network.smb_user

    • Network.ssh_user

    • Network.ftp_user

Network.smb_user

Important

  • If this criterion is used, the Network.protocol criterion can have only the values smb.

  • Incompatible with the following fields in the same rule:

    • Network.http_user

    • Network.ssh_user

    • Network.ftp_user

Network.ftp_user

Important

  • If this criterion is used, the Network.protocol criterion can have only the values ftp.

  • Incompatible with the following fields in the same rule:

    • Network.smb_user

    • Network.http_user

    • Network.ssh_user

Network.ssh_user

Important

  • If this criterion is used, the Network.protocol criterion can have only the values ssh.

  • Incompatible with the following fields in the same rule:

    • Network.smb_user

    • Network.ftp_user

    • Network.http_user

Service.name

Service

String

Service.path

String

Service.start_type

Possible values:

  • auto_start

  • manual_start

  • disabled

Service.parent_name

String

Service.parent_path

Service.parent_directory

Service.parent_cmdline

Service.parent_user

Service.operation

Possible values:

  • added

  • deleted

Email.sender_name

Email

String, valid email

Email.receiver_addresses

Email.subject

String

Email.attachment_names

Email.parent_name

Email.parent_directory

Email.parent_path

Email.parent_cmdline

Email.parent_user

Email.operation

Possible values

  • sent

  • received

UserConnection.name

UserConnection

String

UserConnection.domain

UserConnection.ip

IP