---
title: "Analyzing Logs for IoCs | FiveStudy"
description: "How to spot evil twins, jamming, ARP poisoning, MAC flooding, DNS poisoning, and smurf attacks, plus network indicators of compromise in packet captures."
url: https://fivestudy.com/guides/ap-cybersecurity-3-5-e-analyzing-logs-for-iocs
---

[AP Cybersecurity](https://fivestudy.com/ap-cybersecurity) · Study guide

# Analyzing Logs for IoCs

[Figure: FiveStudy]

FiveStudy

AP® Cybersecurity · Unit 3 · Network Security, Firewalls & Detection

AP® Cybersecurity · Unit 3 · Network Security, Firewalls & Detection

# Analyzing Logs for IoCs

How to find the evidence each network attack leaves in scans, tables, traffic counts, and packet captures.

1. What an indicator of compromise is 2. Wireless attacks 3. ARP poisoning 4. MAC flooding 5. DNS poisoning 6. Smurf attacks 7. Indicators in packet captures 8. Worked examples 9. Common mistakes

## 1 What 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.

**Figure 1.** Each attack disturbs the network in its own way, so each has its own place to look and its own clue.

## 2 Wireless 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

```
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.

## 3 ARP 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.

ARP traffic

```
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.

## 4 MAC 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.

Switch port Gi1/7

```
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.

## 5 DNS 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.

## 6 Smurf attacks

Smurf attacks are detected by watching for a **sudden increase in ICMP requests sent to the network's broadcast address**.

ICMP to the 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
```

## 7 Indicators 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 |

Packet capture summary

```
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
```

The key idea

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.

## 8 Worked examples

Worked Example 1 Read the ARP log

### Who is 7E:91:0D:55:C2:9F?

Using the ARP traffic above, identify the attack and the evidence.

1. 1

   At 10:02 the laptop (`.20`) and gateway (`.1`) report different MAC addresses: normal.

2. 2

   From 10:05:40, replies arrive with no request, claiming both `.20` and `.1` are at `7E:91:0D:55:C2:9F`.

3. 3

   One MAC claiming two IP addresses, via unrequested replies, is the duplicate-MAC pattern of ARP poisoning.

4. 4

   Next: check the gateway's ARP table and find which port that MAC is plugged into.

**Answer:** ARP poisoning. The device with MAC 7E:91:0D:55:C2:9F is placing itself between the laptop and the gateway.

Worked Example 2 Read the switch log

### Port Gi1/7

Using the switch log above, what is happening on port Gi1/7?

1. 1

   Normal: 0 or 1 new MAC address per 10 seconds.

2. 2

   Then 6,412 and 7,055 new addresses in consecutive 10-second windows.

3. 3

   The table fills and the switch starts flooding unknown frames to all ports.

**Answer:** MAC flooding from the device on Gi1/7. Shut the port and enable port security.

Worked Example 3 Read the packet capture

### Four indicators

Find the IoCs in the packet capture summary and name each.

1. 1

   09:00:04: `10.20.3.15` contacts `203.0.113.250`, an address on a threat list: connection to a known malicious IP.

2. 2

   09:00:10: `10.20.3.77` probes 254 hosts in 6 seconds on several ports: an unauthorized network scan.

3. 3

   09:00:22: traffic on port 53 that is not DNS: mismatched port and application, often used to sneak data out.

4. 4

   09:01:00: 4.1 GB sent to the same malicious address in 40 minutes: an unusual traffic spike, likely data theft.

**Answer:** Four IoCs; `10.20.3.15` is the most urgent: it is sending large amounts of data to a known malicious server.

Worked Example 4 Wireless evidence

### Spot the twin

Using the wireless scan, which networks are suspicious and how would IT find the device?

1. 1

   The second `NorthwindStaff` is open (no security) on a different channel, while the real one uses WPA3-Enterprise.

2. 2

   `Northw1ndGuest` swaps the letter i for the digit 1 and is open.

3. 3

   Both have strong signals (−39 and −44 dBm), so the source is close.

4. 4

   Use signal triangulation: measure signal strength from several locations to pinpoint the device, then disable it.

**Answer:** Two likely evil twins. Triangulate to locate and remove the rogue access point.

Worked Example 5 Indirect evidence

### 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?

1. 1

   An abrupt, unexplained traffic drop is the main clue for DNS poisoning.

2. 2

   Customer reports of a slightly different login page suggest they are being sent to a fake site.

3. 3

   Check the DNS records for the bank's domain to see whether they point to the correct IP addresses.

**Answer:** Examine DNS records: this fits DNS poisoning redirecting visitors to a credential-harvesting site.

## 9 Common mistakes

Common Mistake 1 · Looking for every attack in the same log

Each attack shows up in a different place: ARP traffic and tables, switch tables, ICMP counts, wireless scans, DNS records, packet captures.

Common Mistake 2 · Expecting DNS poisoning to be obvious

It is hard to detect directly. An unexplained drop in website traffic is the hint to check DNS records.

Common Mistake 3 · Reading an indicator without a baseline

6,412 new MAC addresses is alarming only because the port normally learns one. Compare with normal first.

Common Mistake 4 · Trusting port numbers

Attackers hide traffic on familiar ports like 53 or 443. Mismatched port and application traffic is itself an IoC.

Report an IoC like this

“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.

FiveStudy AP® Cybersecurity · Analyzing Logs for IoCs
