VeriKQL by Kaushik Saha

T1040 Network Sniffing

Credential AccessDiscoveryon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0314 Detection Strategy for Network Sniffing Across Platforms

AN0875 Windows

Detects suspicious execution of network monitoring tools (e.g., Wireshark, tshark, Microsoft Message Analyzer), driver loading indicative of promiscuous mode, or non-admin user privilege escalation to access NICs for capture.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4688
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4688)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SystemEventCode=7045
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("System") | where EventID in (7045)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("System") | where EventID in (7045)

AN0876 Linux

Correlates interface mode changes to promiscuous with execution of sniffing tools like tcpdump, tshark, or custom pcap libraries. Detects abnormal NIC configurations and unauthorized sniffing from non-root sessions.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecve, setifflagsNot mapped to Sentinel yet.
auditd:SYSCALLpromiscuous mode transitions (ioctl or ifconfig)Not mapped to Sentinel yet.
networkconfig interface flag PROMISC, netstat | ip link | ethtoolNot mapped to Sentinel yet.

AN0877 macOS

Detects enabling of interface sniffing via packet capture tools or AppleScript triggering `tcpdump`. Leverages Unified Logs and process lineage to identify suspicious use of `pfctl`, `tcpdump`, or `libpcap` libraries.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogeventMessage = 'promiscuous'Not mapped to Sentinel yet.
macos:osqueryprocess_events where path like '%tcpdump%'Not mapped to Sentinel yet.
fs:fsusageaccess to BPF devices or interface IOCTLsNot mapped to Sentinel yet.

AN0878 IaaS

Detects creation of traffic mirroring sessions (e.g., AWS VPC Traffic Mirroring, Azure vTAP) that redirect traffic from critical assets to other virtual instances, often followed by file creation or session establishment.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailCreateTrafficMirrorSession / ModifyTrafficMirrorTargetNot mapped to Sentinel yet.

AN0879 Network Devices

Detects execution of capture commands via CLI (`monitor capture`, `debug packet`, etc.) or unauthorized CLI access followed by logging configuration changes on Cisco/Juniper/Arista gear.

MITRE log sourceIn Microsoft Sentinel
networkdevice:syslogadmin login eventsNot mapped to Sentinel yet.
networkdevice:syslogexec command='monitor capture'Not mapped to Sentinel yet.
networkdevice:syslogconfig change (e.g., logging buffered, pcap buffers)Not mapped to Sentinel yet.

Content Hub rules tagged with it (6)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1040 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

9 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.