NQL Examples

We have categorized these examples and provided a base query that you can customize to your own infrastructure and network topography:

Search for and alert on specific traffic

For example, East/West or North-South or compliance requirements or in a forensics investigation.

Outbound traffic

srcinternal == true && dstinternal == false

Inbound traffic

srcinternal == true && dstinternal == true

Search for and alert on geographic-based activity

Discover compromised devices via traffic from countries of concern, or for responding to threats or proactively threat hunting.

Outbound traffic to T1 CoC

dstgeo.countrycode == MM OR dstgeo.countrycode == CN OR dstgeo.countrycode == ER OR dstgeo.countrycode == IN OR dstgeo. countrycode == IR OR dstgeo.countrycode == NG OR dstgeo. countrycode == KP OR dstgeo.countrycode == PK OR dstgeo. countrycode == RU OR dstgeo.countrycode == SA OR dstgeo. countrycode == SY OR dstgeo.countrycode == TJ OR dstgeo. countrycode == TM OR dstgeo.countrycode == VM

Bad Actors

Such as finding IP reputation-based traffic, botnets, or phishing/spammers.

IPs that matched an IP reputation list

Outbound traffic to non-approved geographies

Configuration validation or misconfiguration

Finding traffic that should not exist between applications and systems or drift between deployments.

Web application database

Compliance

Enforce compliance for specific applications or regions or make your reporting or compliance audits easier with audit-ready proof of enforcement.

Detect network activity on specific ports

Search for traffic between production environments and dev or test

Show (presumed) successful flows from the Internet to the internal network, of SSH protocol

FTP and Telnet usage

Discovery by port and protocol usage

Discover devices using SSH outbound

Discover devices sending > 100MB of data outbound

x11 Discovery

BitTorrent traffic discovery

Outbound SSH Traffic

Outbound Unencrypted Web traffic

Outbound Unencrypted FTP traffic

Outbound Unencrypted Telnet traffic

Netbios outbound ports

Dynamic port to dynamic port

Outbound encrypted DOT(853)

Last updated