Analyzing Logs for IoCs
How to find the evidence each network attack leaves in scans, tables, traffic counts, and packet captures.
1What an indicator of compromise is
An indicator of compromise (IoC) is a piece of evidence that an attack may have happened or is happening: a suspicious address, an impossible pattern, a sudden change in traffic. The skill is knowing what each attack disturbs, where that shows up, and what normal looks like so the abnormal stands out.
2Wireless attacks
Evil twins are detected by regularly scanning for SSIDs that look suspicious or similar to the organization's real ones. Once found, signal triangulation (measuring the rogue signal's strength from several spots to pinpoint where it comes from) locates the access point so it can be disabled.
Wireless scan, 3rd floor SSID channel signal security NorthwindGuest 6 -61 dBm WPA2 NorthwindStaff 11 -58 dBm WPA3-Enterprise NorthwindStaff 1 -39 dBm Open Northw1ndGuest 6 -44 dBm Open
Two warning signs above: a second NorthwindStaff on a different channel with no security (the real one uses WPA3-Enterprise), and Northw1ndGuest with a digit 1 in place of the letter i. Both have strong signals, suggesting a device nearby.
Jamming is detected by noticing that no wireless device in a specific physical space can connect, and by scanning for electromagnetic noise in the wireless frequency range.
3ARP poisoning
ARP poisoning is detected by monitoring network traffic for unusual ARP messages, especially duplicate MAC address ARP packets (one MAC address claiming several IP addresses), and by checking the ARP table on the default gateway.
10:02:11 ARP reply 192.168.1.1 is-at 00:1A:2B:3C:4D:01 (gateway) 10:02:14 ARP reply 192.168.1.20 is-at 3C:22:FB:10:4A:01 (laptop) 10:05:40 ARP reply 192.168.1.20 is-at 7E:91:0D:55:C2:9F (no request sent) 10:05:41 ARP reply 192.168.1.1 is-at 7E:91:0D:55:C2:9F (no request sent) 10:05:51 ARP reply 192.168.1.20 is-at 7E:91:0D:55:C2:9F (no request sent)
The highlighted replies were sent without anyone asking, and they claim that both the laptop (.20) and the gateway (.1) are at 7E:91:0D:55:C2:9F. One device is pretending to be two: a classic on-path setup.
4MAC flooding
MAC flooding is detected by monitoring traffic for an unexpected surge of Ethernet frames with different MAC addresses, and by checking the switch's MAC address table.
time port new MAC addresses learned (last 10 s) 14:20:00 Gi1/7 1 14:20:10 Gi1/7 0 14:20:20 Gi1/7 6,412 14:20:30 Gi1/7 7,055 14:20:40 Gi1/7 table full: flooding unknown frames to all ports
A port that normally learns one address suddenly learns over 6,000 in ten seconds, and the switch reports its table full. A single wall jack does not have thousands of devices behind it.
5DNS poisoning
DNS poisoning is difficult to detect, because the victim's computer is redirected somewhere else, and nothing unusual happens on the organization's own network. One clue: if the organization's website has an abrupt and otherwise unexplained drop in traffic, its DNS records should be examined. Visitors may be landing on an attacker's copy instead.
6Smurf attacks
Smurf attacks are detected by watching for a sudden increase in ICMP requests sent to the network's broadcast address.
time ICMP echo requests to 10.20.255.255 (broadcast) per second 16:00:00 0 16:00:05 0 16:00:10 2,840 16:00:15 3,105 16:00:20 2,977
7Indicators in packet captures
A packet capture is a recording of network traffic. Network-based IoCs appear in its source and destination IP addresses, ports, and protocols:
| IoC | What it looks like |
|---|---|
| Connections to known malicious IP addresses | A destination on a threat-intelligence list of attacker servers |
| Unauthorized network scans | One device contacting many addresses or ports in seconds |
| Unusual spikes or slowdowns in traffic | Gigabytes leaving overnight; a normally busy link going quiet |
| Mismatched port and application | Traffic on port 53 (DNS) that is not DNS, or a web app talking on an odd port |
time src dst proto dst port note 09:00:01 10.20.3.15 10.20.3.1 TCP 443 normal 09:00:04 10.20.3.15 203.0.113.250 TCP 443 dst on threat list 09:00:10 10.20.3.77 10.20.3.1-254 TCP 22,23,80 254 hosts probed in 6 s 09:00:22 10.20.3.40 198.51.100.9 TCP 53 port 53 but not DNS traffic 09:01:00 10.20.3.15 203.0.113.250 TCP 443 4.1 GB sent in 40 min
Know where each attack shows up and what normal looks like there. The IoC is whatever breaks the pattern: a duplicate MAC, a surge of addresses, a flood of ICMP, a lookalike SSID, an unexplained traffic drop, or traffic to the wrong place on the wrong port.
8Worked examples
Who is 7E:91:0D:55:C2:9F?
Using the ARP traffic above, identify the attack and the evidence.
- 1At 10:02 the laptop (
.20) and gateway (.1) report different MAC addresses: normal. - 2From 10:05:40, replies arrive with no request, claiming both
.20and.1are at7E:91:0D:55:C2:9F. - 3One MAC claiming two IP addresses, via unrequested replies, is the duplicate-MAC pattern of ARP poisoning.
- 4Next: check the gateway's ARP table and find which port that MAC is plugged into.
Port Gi1/7
Using the switch log above, what is happening on port Gi1/7?
- 1Normal: 0 or 1 new MAC address per 10 seconds.
- 2Then 6,412 and 7,055 new addresses in consecutive 10-second windows.
- 3The table fills and the switch starts flooding unknown frames to all ports.
Four indicators
Find the IoCs in the packet capture summary and name each.
- 109:00:04:
10.20.3.15contacts203.0.113.250, an address on a threat list: connection to a known malicious IP. - 209:00:10:
10.20.3.77probes 254 hosts in 6 seconds on several ports: an unauthorized network scan. - 309:00:22: traffic on port 53 that is not DNS: mismatched port and application, often used to sneak data out.
- 409:01:00: 4.1 GB sent to the same malicious address in 40 minutes: an unusual traffic spike, likely data theft.
10.20.3.15 is the most urgent: it is sending large amounts of data to a known malicious server.Spot the twin
Using the wireless scan, which networks are suspicious and how would IT find the device?
- 1The second
NorthwindStaffis open (no security) on a different channel, while the real one uses WPA3-Enterprise. - 2
Northw1ndGuestswaps the letter i for the digit 1 and is open. - 3Both have strong signals (−39 and −44 dBm), so the source is close.
- 4Use signal triangulation: measure signal strength from several locations to pinpoint the device, then disable it.
The website went quiet
A bank's website usually gets about 50,000 visits a day. Overnight it drops to 4,000, though the servers are healthy and no outage is reported. Customers call about a login page that “looks a little off.” What should be checked?
- 1An abrupt, unexplained traffic drop is the main clue for DNS poisoning.
- 2Customer reports of a slightly different login page suggest they are being sent to a fake site.
- 3Check the DNS records for the bank's domain to see whether they point to the correct IP addresses.
9Common mistakes
Each attack shows up in a different place: ARP traffic and tables, switch tables, ICMP counts, wireless scans, DNS records, packet captures.
It is hard to detect directly. An unexplained drop in website traffic is the hint to check DNS records.
6,412 new MAC addresses is alarming only because the port normally learns one. Compare with normal first.
Attackers hide traffic on familiar ports like 53 or 443. Mismatched port and application traffic is itself an IoC.
“Lines 3 to 5 of the ARP traffic show unrequested ARP replies claiming that both 192.168.1.20 and the gateway 192.168.1.1 are at MAC 7E:91:0D:55:C2:9F. One MAC address claiming two IP addresses indicates ARP poisoning, an on-path attack. The next step is to check the gateway's ARP table and locate the switch port with that MAC.”
Quote the evidence, name the attack it indicates, explain why, and name the next check.