Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 13 · Reading 1 of 3

Packets, flows and logs

CHFI domains 1, 3, 5, 6

Corbel Logistics’ firewall reports that internal address 10.40.12.57 sent 2.31 GB to 198.51.100.200 on port 443 between 19:02 and 19:48 UTC on Sunday. The warehouse runs no Sunday shift. The network team wants to know what was sent, from which device and by whom. Each piece of network evidence answers part of that, and none answers all of it.

Three kinds of network evidence

Network evidence differs mainly in how much it keeps.

Figure 1. Packets, flows and logs compared
EvidenceRecordsTypical retentionCannot show
Full packet capture (pcap, pcapng)Every packet, headers and payloadHours to days, because of sizeContent inside encryption
Flow records (NetFlow, IPFIX, Zeek conn.log)Each conversation: endpoints, ports, protocol, bytes, packets, start and durationWeeks to monthsAny content
Device and service logsEvents seen by one system: a lease, a query, a blocked connection, an alertDays to a year, as configuredAnything that system did not see

Wireshark is the standard graphical tool for examining captures, and tshark is its command-line form, useful for scripts and large files. Both use display filters such as ip.addr == 10.40.12.57 && tcp.port == 443. Zeek turns a capture or live traffic into structured logs, such as conn.log for flows, dns.log, http.log, ssl.log with the TLS server name and files.log with hashes of transferred files. NetworkMiner reassembles sessions from a capture and extracts files, images and credentials sent in clear text.

A rack of network switches with rows of patch cables plugged into their ports.
Figure 2. Network switches in a rack. A switch’s mirror (SPAN) port or a network tap is where a capture is taken, and its MAC address table records which device was seen on which port.Photo: Parkis, Wikimedia Commons, CC BY-SA 3.0. Resized from the original.

The logs that name things

Flows give addresses. Other logs turn addresses into devices, names and people, each for a moment in time.

  • DHCP logs record which MAC address leased which IP address and when. Because addresses are reused, every lookup must use the time of the event.
  • DNS logs record which client asked for which name and what answer it got. A query just before a connection usually names the destination.
  • VPN logs record which user account received which internal address, which ties remote traffic to an account.
  • SSH server logs record which account and key connected from which address, as Chapter 12 showed.
  • Firewall logs record allowed and denied connections, often with byte counts.
  • Intrusion detection systems (IDS) such as Suricata or Snort record alerts when traffic matches a signature, sometimes with the packets that triggered them.
  • A SIEM (security information and event management system) collects all of these, which makes correlation faster, but it holds only what was forwarded and parsed. The examiner checks the original source for any record the case depends on.

Correlate on address, port and time

Corbel has flows, firewall logs, DNS and DHCP for Sunday, but no packet capture. The examiner joins them on the internal address and the time window.

Figure 3. Sunday evening, correlated across logs, UTC
  1. DHCP: 10.40.12.57 leased to MAC 3e:91:5c:0a:7d:22, host name “android-6f1”.
  2. DNS: 10.40.12.57 queries sync-cdn.example, answer 198.51.100.200.
  3. Firewall and flows: TCP 443 to 198.51.100.200, 2.31 GB out, 41 MB in. TLS server name: sync-cdn.example.
  4. DHCP: lease released.

The evidence establishes the internal address, the MAC that held it, the destination name and the volume and timing of the transfer. It does not establish what the 2.31 GB contained, because the traffic was encrypted and no capture exists. The host name in the DHCP request was supplied by the client and can be anything. The MAC address may be randomized, as Reading 3 explains. Those limits go into the session timeline the chapter asks for.

On the exam, packets mean content, flows mean who talked to whom and how much, DHCP ties an IP to a MAC at a time and DNS ties a destination to a name. The next reading, Network attacks in evidence, looks at traffic that is hostile rather than just unexplained.

DNS log

Inspect the three records, then use the evidence to answer the question.

1. Query

sync-cdn.example (type A)

2. Answer

198.51.100.200, TTL 60

3. Client

10.40.12.57 at 19:01:58

Apply the reading

The SOC has NetFlow for Sunday evening but no packet capture. What can and cannot be established about the 2.3 GB transfer?

Compare your reasoning

Flows show the endpoints, ports, protocol, byte and packet counts and the timing of the conversation. They cannot show the content, the file names or, for TLS, anything inside the encryption. DNS, proxy and TLS metadata such as the server name may add the destination’s name.