Detection rules › Kusto

Hunt for public facing devices via DeviceNetworkEvents

Author
Robbe Van den Daele
Source
github.com/HybridBrothers/Hunting-Queries-Detection-Rules

Find public facing devices via the DeviceNetworkEvents table.

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

References

Event coverage

Rule body yaml

DeviceNetworkEvents
| where ActionType contains "InboundConnection"
| where RemoteIPType == "Public"
| distinct DeviceName

Stages and Predicates

Stage 1: source

DeviceNetworkEvents

Stage 2: where

| where ActionType contains "InboundConnection"

Stage 3: where

| where RemoteIPType == "Public"

Stage 4: distinct

| distinct DeviceName

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ActionTypecontains
  • InboundConnection corpus 2 (kusto 2)
RemoteIPTypeeq
  • Public transforms: cased corpus 5 (kusto 5)