T1040 Network Sniffing
Adversaries may passively sniff network traffic to capture information about an environment, including authentication material passed over the network. MITRE ATT&CK
3 programs on CmdID 5 Sigma rules T1040 on attack.mitre.org
Programs for it
Sigma rules tagged with it
Command lines CmdID reads as it
Capture the traffic of a specific interface on the page for tcpdump
sudo tcpdump --interface eth0IdentifyCapture all TCP traffic showing contents (ASCII) in console on the page for tcpdump
sudo tcpdump -A tcpIdentifyOnly capture packets matching a specific capture filter on the page for tshark
tshark -f 'udp port 53'IdentifyOnly show packets matching a specific output filter on the page for tshark
tshark -Y 'http.request.method == "GET"'IdentifyTo start a new trace session and save the log to a specific file path, run the following command on the page for netsh trace
netsh trace start capture=yes tracefile="C:\Logs\networktrace.etl"IdentifyTo start a capture session that collects only event tracing data and includes both broadcast and multicast events, run the following command on the page for netsh wfp
netsh wfp capture start traceonly=on keywords=BCAST+MCASTIdentifyThe following set of filters will capture any ICMP traffic from or to the IP address 10.0.0.10 along with any traffic on port 53. on the page for pktmon filter add
C:\Test> pktmon filter add -i 10.0.0.10 -t icmp
C:\Test> pktmon filter add -p 53IdentifyThe following filter will capture all the SYN packets sent or received by the IP address 10.0.0.10 on the page for pktmon filter add
C:\Test> pktmon filter add -i 10.0.0.10 -t tcp synIdentifyThe following filter called MyPing pings 10.10.10.10 using the ICMP protocol on the page for pktmon filter add
C:\Test> pktmon filter add MyPing -i 10.10.10.10 -t ICMPIdentifyThe following filter called MySmbSyb captures TCP synchronized SMB traffic on the page for pktmon filter add
C:\Test> pktmon filter add MySmbSyn -i 10.10.10.10 -t TCP SYN -p 445IdentifyAnd 5 more examples on CmdID’s program pages.
An example is here when CmdID’s reading of it names T1040: a Sigma rule it trips is tagged with it, or its abuse is documented as it.