Lecture 9 - Network Forensics
Network Forensics Overview
- Network forensics
- Systematic tracking of incoming and outgoing traffic
- Goal: ascertain how an attack was carried out or how an event occurred on a network
- Intruders leave a trail behind
- Determine the cause of the abnormal traffic
- Internal bug???
- Attackers
Analogy: Network forensics is like reviewing CCTV footage of a building's entrance and exit. You are not guarding the door anymore, you are replaying the tape to see who came in, what they carried out, and how they got past the lock.
Analyzing Network Data
- Network evidence helps reconstruct an intrusion and test what happened
- What investigators examine → What the evidence can reveal
- Packet captures and flow records
- Identify communicating hosts, ports, protocols, timing, and traffic volume
- Reveals: entry point and intrusion path
- Trace the first suspicious connection and movement between internal hosts
- DNS, firewall, proxy, and IDS logs
- Correlate connections and alerts with host logs to build an incident timeline
- Reveals: attack activity and supporting traces
- Look for scanning, exploitation, command-and-control (C2) traffic, or possible data theft
- Packet captures and flow records
- Why analysis requires care
- High traffic volume, encryption, missing packets, and spoofed addresses limit visibility
- Automated alerts only guide the investigation
- Analysts validate findings against multiple sources
- Example
- Repeated failed logins → followed by a successful login → followed by a large outbound transfer
- This may suggest compromise
- Check authentication and endpoint logs before drawing a conclusion
Analogy: One security camera clip is not proof. A detective needs the camera, the door log, and the witness statement to agree before naming a suspect.
Looking for Evidence
- An investigator can collect evidence from multiple points in the communication path
- 1. End Systems
- Victim Computer: contains logs, malware traces, volatile data (RAM), and system event records
- Attacked / Compromised Host: may include altered files, backdoors, or rootkits
- Attacker's Machine (if obtainable): reveals tools, scripts, or payloads used
- Intermediate Computers: systems used as stepping stones or proxy servers
- 2. Network Security Devices
- Firewalls: record connection attempts, blocked packets, and policy violations
- IDS/IPS (Intrusion Detection/Prevention Systems): log suspicious patterns or attacks
- SIEM (Security Information and Event Management): aggregates and correlates alerts
- 3. Networking Infrastructure
- NIC (Network Interface Card): captures packet-level data
- Hub / Switch / Router / Repeater / Gateway / Modem: maintain traffic logs, ARP tables, routing information, NAT mappings, and MAC addresses
- Access Points (Wi-Fi): log associations, authentication, and signal data
Hub, Switch อยู่กันคนละ Layer
- 4. Servers and Services
- DNS Servers: show domain resolution activity related to attacks
- Web / Mail / Proxy / Authentication Servers: provide HTTP, SMTP, or access logs showing attacker behavior
- VPN or Cloud Logs: reveal remote access attempts or exfiltration routes
- 5. External or Indirect Evidence
- Network Traffic Captures (pcap files): raw packets for deep inspection
- Time Synchronization Sources (NTP logs): assist in timeline reconstruction
- Third-party or ISP Logs: provide correlation of external connections
Analogy: Investigating a burglary: the victim's house (end system), the alarm company (security devices), the road and traffic lights (infrastructure), the neighbours' doorbell cams (servers/services), and the city's street cameras with synced clocks (external evidence).
How Packet Sniffers Work
- The packet-sniffing process involves cooperation between software and hardware
- It can be broken down into three steps
- 1. Collection
- 2. Conversion
- 3. Analysis
- A packet sniffer works by intercepting and logging network traffic via the wired or wireless network interfaceon its host computer
Analogy: A sniffer is a mail-room worker who photocopies every envelope passing by (collection), reads the address labels (conversion), then looks for suspicious patterns (analysis).
Collection Phase
- First step: the sniffer collects raw binary data from the network
- We call them
PCAPfile, we need to turn on promiscuous mode
- We call them
- Typically done by switching the selected network interface into promiscuous mode
- The network card can listen to all traffic on a network segment, not only traffic addressed to it
- All network data packets can be accessed and viewed by all network adapters
Analogy: Normally your NIC is a person who only listens when someone calls their name. Promiscuous mode makes them listen to every conversation in the room.
Conversion Phase
- Protocol decoding turns captured bytes into readable packet fields
- What happens during conversion
- The decoder identifies protocol layers, such as Ethernet, IPv4, and TCP
- It interprets header bytes as addresses, ports, flags, lengths, and other fields
- It displays payload as text when the encoding allows it
- Encrypted content stays unreadable unless the analyzer has suitable decryption material
- Worked example: decoding a captured IPv4/TCP packet
- IPv4 source-address bytes:
C0 A8 01 0A=192.168.1.10- Convert each byte from hex to decimal: , , ,
- TCP destination-port bytes:
01 BB= 443 in decimal
- TCP flags indicate SYN = a request to start a connection
- IPv4 source-address bytes:
- What can the investigator conclude?
- The host attempted a TCP connection to port 443, commonly used for HTTPS
- This packet alone does not prove a successful connection, HTTPS use, or an attack
- Check later packets and correlate the destination and timing with other evidence
Analogy: Raw bytes are like Morse code. Conversion is the translator who writes "source = 192.168.1.10, door number = 443, knocking = SYN". One knock at the door does not mean the door was opened or that a burglar came in.
Analysis Phase
- Third and final step: actual analysis of the captured and converted data
- The sniffer takes the captured data, verifies its protocol based on the information extracted, and begins analysis of that protocol's specific features
- Purpose
- Detect usage spikes (irregular traffic pattern)
- Detect suspicious data transfer
- Detect inconsistent network performance
Example Scenario
- A network administrator uses Wireshark to capture packets from the corporate LAN
- During analysis, the tool detects:
- Usage Spike: sudden surge of outbound traffic on TCP port 443 from a single workstation at midnight, unusual for that user
- Suspicious Data Transfer: large encrypted payloads sent to an unknown IP address outside the company network, suggesting possible data exfiltration
- Inconsistent Performance: multiple retransmissions and packet drops on specific routes, pointing to either a DDoS attack or misconfigured routing
- By examining packet headers, timestamps, and payload sizes, the investigator
- Identifies the compromised host
- Reconstructs the timeline of data exfiltration
- Isolates the attack path through intermediary devices
Analogy: A staff member leaving with big sealed boxes at midnight to an unknown address. You may not see inside the boxes (encryption), but the time, size, and destination already look suspicious.
Layer 1 Device: Hub and Repeater
- Takes packets sent from one port and transmits (repeats) them to every other port on the device
- Clients on the other ports examine the destination MAC (Media Access Control) address field in the Ethernet header
- If the packet is not for them → they drop (discard) it
- If the packet is destined to the actual recipient → it accepts the data; the other computers discard it
- Because every port gets every packet, a sniffer plugged into a hub sees everything (the "visibility window" covers all connected computers)
ส่งรั่วไปหมดเลยอันนี้

- Diagram "Sniffing around Hub": Sniffer connected to a hub with Computers A, B, C and a second switch with Computers D, E, F; the visibility window covers the whole segment
Analogy: A hub is a loudspeaker announcement: everybody hears the message, but only the person named in it responds. A sniffer simply doesn't look away.
Layer 2 Device: Switch
- Switches store the layer 2 address of every connected device in a CAM (Content Addressable Memory) table, which acts as a kind of traffic cop
- When a packet is transmitted
- The switch reads the layer 2 header information in the packet
- Using the CAM table as a reference, it determines to which port(s) to send the packet
- Switches send packets only to specific ports, thus greatly reducing network traffic
- Side effect for investigators: a sniffer on a switch no longer sees everyone's traffic
Send to specific port (specified in the packet) ก็ช่วยลด communication cost ป้ะ
Analogy: A hub shouts to the whole room; a switch is a receptionist with an address book who walks the letter straight to the right desk.
Sniffing Around a Switch
- There are four primary ways to capture traffic from a target device on a switched network
- 1. Port mirroring
- 2. Hubbing out
- 3. Using a tap
- 4. ARP cache poisoning
1. Port Mirroring
- The switch is configured to copy all traffic of the target's port (e.g., Computer B) to the sniffer's port (the "mirrored port" / SPAN port)
- Command per manufacturer (from the slide)
- Cisco:
set span <source port> <destination port> - Enterasys:
set port mirroring create <source port> <destination port> - Nortel:
port-mirroring mode mirror-port <source port> monitor-port <destination port>
- Cisco:

In this technique, we’ll use port mirroring, if and only if we specify clear realise that this is the correct workstation information we wnat????
- Diagram: Computer B's port mirrored to the Sniffer port; visibility window covers the Sniffer and Computer B
- Table: Manufacturer vs. Command (as listed above)
Analogy: Asking the post office to send you a photocopy of every letter addressed to one specific person.
2. Hubbing Out
- To hub out, all you need is a hub and a few network cables
- Steps
-
- Go to the switch the target device resides on and unplug the target from the network
-
- Plug the target's network cable into your hub
-
- Plug in another cable that connects your analyzer to the hub
-
- Plug in a network cable from your hub to the network switch to connect the hub to the network
-
- Result: the target, the analyzer, and the switch are all on the hub, so the analyzer sees the target's traffic

- Diagram: Sniffer and Computer B both connected to a Hub, which connects to the switch; visibility window around Sniffer, Hub, and Computer B
Analogy: Putting a Y-splitter on a phone line so a second listener hears the same call.
What’s the difference between mirroring and hubbing out
Mirroring is smaller?? and more
3. Using a Tap
- A network tap is a hardware device placed between two points on your cabling system to capture the packets between those two points
- As with hubbing out, you place a piece of hardware on the network that allows you to capture the packets you need
- The difference: instead of a hub, you use a specialized piece of hardware designed for network analysis

- Diagram: "Nonaggregated Tap" between a Computer and a Switch, with Monitor A and Monitor B ports going to the Sniffer
Analogy: A tap is like a glass window installed into a pipe so you can watch the water flow without changing the flow.
4. ARP Poisoning
- ARP cache poisoning, sometimes called ARP spoofing, is the process of sending ARP messages to an Ethernet switch or router with fake MAC (layer 2) addresses in order to intercept the traffic of another computer
- Commonly used by attackers to
- Send falsely addressed packets to client systems in order to intercept certain traffic
- Cause denial-of-service (DoS) attacks on a target
- Definition (highlighted on slide): The Address Resolution Protocol (ARP) is a communication protocol used for discovering the link layer address, such as a MAC address, associated with a given internet layer address(IP)

- Diagram compares Normal Traffic Pattern (Target ↔ Switch ↔ Router) with Poisoned ARP Cache (traffic flows through the Sniffer in the middle)
Analogy: ARP is asking "Who lives at IP 10.0.0.7? Tell me your MAC." Poisoning is a stranger shouting "That's me!" so all mail goes to the wrong house first.
ARP Spoofing
Related
- In an ARP spoofing attack, a malicious host intercepts ARP requests and replies to them so that network hosts will map an IP address to the MAC address of the malicious host
- It is carried out over a Local Area Network (LAN) that sends malicious ARP packets to a default gateway on a LAN
- Results in the linking of an attacker's MAC address with the IP address of a legitimate computer or server on the network

- Diagram with a Switch connecting three machines
- Bob: IP
10.0.0.1, MACbb:bb:bb:bb:bb:bb - Alice: IP
10.0.0.7, MACaa:aa:aa:aa:aa:aa - Attacker: IP
10.0.0.3, MACcc:cc:cc:cc:cc:cc - Bob's modified ARP cache points IP
10.0.0.7→ MACcc:cc:cc:cc:cc:cc - Alice's modified ARP cache points IP
10.0.0.1→ MACcc:cc:cc:cc:cc:cc - So Bob ↔ Alice traffic passes through the Attacker (man-in-the-middle)
- Bob: IP
Analogy: The attacker puts a fake name tag on their own mailbox that says "Alice" for Bob and "Bob" for Alice, then reads and forwards every letter.
Is ARP spoofing done over the Internet?
- Slide poses this as a question
- Answer (added for understanding): Absolutely, No! (not depends). ARP only works inside a local network (same broadcast domain / LAN), so the attacker must be on the same LAN (or have compromised a machine on it). It is not routed across the Internet
How to Prevent ARP Spoofing?
- Use a Static ARP: maps an IP address to a specific MAC address, making it more difficult for an attacker to send spoofed ARP messages
- Use ARP Verification Tools: tools that help verify the ARP cache on your devices to ensure they match the expected values
- Use a VPN: VPNs encrypt network traffic, making it harder for an attacker to intercept or manipulate it
- Set up Packet Filtering: can block suspicious ARP messages from reaching your devices
- Monitor your Malware Monitoring Settings: regularly check settings and run spoofing attacks to test your network's security
Analogy: Static ARP = writing the correct address book in permanent ink, so nobody can scribble a fake entry over it.
Sniffer use to sniff packet, if the packet is sent over encrypted channel is it useful or useless?
You still get some useful information; even though the payload is encrypted, but header we still get it, it’ll notify pattern or something to attacker
ใช้อะไรนะที่มันจะ encrypt ทั้ง header ด้วยอะ เหมือนเคยเรียน!?@
Dynamic ARP Inspection (DAI)
- DAI uses the DHCP Snooping binding database, created by DHCP Snooping by listening to DHCP messages between the nodes
- Based on that binding database, DAI decides what to do
- If there is a record of the sender's IP and MAC address → accepts the ARP packet
- If there is no record → ARP packet is rejected
- Instead of DHCP Snooping, static IP-MAC mappings can also be used for this validation
- DHCP background
- DHCP is one of the most important protocols in a network
- It configures the IP configuration of nodes using various DHCP messages
- Sometimes these messages are used for malicious attacks
- DHCP Snooping is used on switches to detect such attacks: it listens to DHCP messages of "untrusted" ports, records port and device information, and determines which are harmful and prevents them
Analogy: DAI is a nightclub bouncer with a guest list (the DHCP snooping table). If your IP and MAC pair is on the list, you get in; if not, you are rejected.
DAI Diagram

- Diagram (ipcisco.com): Switch with IP-MAC binding table
- Host A
1.1.1.1/AA:AA:AA:AA:AA:AA - Host B
2.2.2.2/BB:BB:BB:BB:BB:BB - Host C
3.3.3.3/CC:CC:CC:CC:CC:CC - Host D
4.4.4.4/DD:DD:DD:DD:DD:DD - Ports to Hosts A, B, C are untrusted → DAI checks each ARP packet
- Port to Host D (via another switch) is trusted
- Verified ARP packets pass; malicious ARP packets with MAC
XX:XX:XX:XX:XX:XX(from B) andYY:YY:YY:YY:YY:YY(from C) are dropped
- Host A
DHCP Snooping
- All ports are untrusted by default; it is up to you to configure which ports are trusted
- By default
- Uplink ports → trusted
- Downlink ports → untrusted
- Downlink ports stay untrusted because any malicious user can initiate a DHCP-based attack from one of their devices in a network connected via a DHCP server
- The DHCP Offer message can only be sent through the trusted port when DHCP snooping is enabled; otherwise it is cancelled and dropped

- Diagram (nwkings.com): Switch with Trusted Ge0/3 to the real DHCP Server, Untrusted Ge0/1 to a DHCP Client, Untrusted Ge0/2 to a Rogue DHCP Server
- (a) Discover from client goes to the legit server
- (b) Rogue Offer Dropped (from the untrusted port)
- (c) Legitimate Offer Delivered to the client
Analogy: Only the official front-desk (trusted port) is allowed to hand out room keys (DHCP offers). If a random guest in the lobby (untrusted port) tries to hand out keys, security confiscates them.
Common Attacks Prevented by DHCP Snooping
- DHCP Starvation (also called DHCP exhaustion attack)
- The attacker uses spoofed MAC addresses to flood DHCP Discover messages (messages sent to request an IP address)
- The target server's DHCP pool becomes full → Denial-of-Service for other devices
- They won't be able to get an IP address from the server
- The attacker sends countless DHCP discover messages with false source MAC addresses
- DHCP Poisoning / Spoofing Attack (Man-in-the-Middle)
- Can be used to perform a MITM attack
- A fake DHCP server replies to a client's DHCP discover message and assigns an IP address, but makes the client use the fake/rogue server's IP as the default gateway
- The client usually accepts the first offer message they receive
- This causes the client to send traffic to the attacker instead of the real default gateway
- The attacker can modify or examine the traffic before forwarding it to the real default gateway
Poisoning = try to change the real data → fake one
Analogy: Starvation = a prankster taking all the hotel room keys so real guests can't check in. Poisoning = a fake receptionist who gives you a key and wrong directions that lead you past his desk.
Network Devices: Layer 3 Device (Router)
- The process routers use to direct the flow of traffic among networks is called routing
- Several types of routing protocols dictate how different types of packets are routed to other networks
- Routers commonly use layer 3 addresses (such as IP addresses) to uniquely identify devices on a network

- Diagram: Network A (Computers A–D) connected via a Router to Network B (Computers W, X, Y, Z); arrows show a packet path from Computer A to Computer X
Analogy: If a switch is the receptionist inside one building, the router is the postal service between cities, using the postal code (IP) to decide where to send the parcel next.
Sniffing in a Routed Environment
- Packets must cross routers between networks, so where you place the sniffer decides what you see
- A sniffer on one network only sees traffic that passes through its own segment

- Diagram: Networks A, B, C, D connected through routers; a "?" at Network B's router indicates where the sniffer should go; arrows show traffic from Network D going up to Network B
Analogy: Standing at one intersection, you only see cars on that road, not the whole city.
Placing the Sniffer
- Placing your sniffer on the network is sometimes the biggest challenge you will face

- Diagram: two switch segments joined by a router, with a "Packet Sniffer ?" icon between them showing the placement question
Note
- Most operating systems (including Windows) will not let you use a NIC in promiscuous mode unless you have elevated user privileges
- If you cannot legally obtain these privileges on a system, chances are you should not be performing any type of packet sniffing on that particular network
- (Legal and ethical boundary: always have authorization)
List of Best Sniffers
- https://www.comparitech.com/net-admin/packet-sniffer-network-analyzers/
- https://www.softwaretestinghelp.com/best-wifi-packet-sniffer-review/
Securing a Network
- Layered network defense strategy
- Sets up layers of protection to hide the most valuable data at the innermost part of the network
- Defense in Depth (DiD)
- Similar approach developed by the NSA
- Modes of protection
- People (hiring and treatment)
- Technology (firewalls, IDSs, etc.)
- Operations (patches, updates)
Analogy: A castle: moat, outer wall, inner wall, guards, and the treasure in the keep. Even if one layer fails, the next one still protects the treasure.
- Testing networks is as important as testing servers
- You need to be up to date on the latest methods intruders use to infiltrate networks
- Attack vectors: Phishing, exposed RDP/VPN, web app exploits, malware/C2, supply-chain, DNS tunneling, IoT hacks
- Also the methods internal employees use to sabotage networks: data deletion, config tampering, credential misuse, shadow IT, planted backdoors
Performing Live Acquisitions
- Live acquisitions are especially useful when dealing with active network intrusions or attacks
- Live acquisitions done before taking a system offline are also becoming a necessity
- Because attacks might leave footprints only in running processes or RAM
- Live acquisitions don't follow typical forensics procedures (normally you power off and image the disk)
- Order of Volatility (OOV)
- How long a piece of information lasts on a system
- Collect the shortest-lived data first
Analogy: Like photographing melting ice sculptures before they disappear, and only afterwards documenting the stone statues that will still be there tomorrow.
Steps in Performing Live Acquisition
- Collect evidence while the system is running, before volatile data disappears
- Prepare trusted tools and evidence storage**
- Use validated acquisition tools and a clean external drive or secure network destination
- Avoid saving evidence to the source disk whenever possible
- Document actions and capture volatile evidence**
- Record times, commands, tool versions, and observed system changes
- Prioritize short-lived evidence, including RAM, processes, and network connections
- Preserve collected data and plan the next acquisition**
- Hash saved memory dumps and collected files, for example with SHA-256
- Record hashes and custody details
- Decide whether to collect a live disk image or perform an offline acquisition, considering encryption and incident needs
- Important
- Live acquisition changes the running system: minimize and document changes
- A hash verifies saved-file integrity, not a frozen live system
- Prepare trusted tools and evidence storage**
Analogy: The hash is a tamper-evident seal on the evidence bag. It proves the bag wasn't opened afterwards, but it does not prove the crime scene wasn't disturbed while you were collecting.
Windows Live Acquisition: Capturing RAM
- Capture physical memory before shutdown to preserve volatile evidence
- Memory acquisition tools
- WinPmem: open-source Windows physical-memory acquisition
- MAGNET DumpIt / Magnet RAM Capture: Windows memory-capture tools
- Magnet RESPONSE: collects RAM alongside other incident-response artifacts
- Practical workflow
-
- Verify the tool's source and integrity, then check support for the target Windows build
-
- Run with required privileges and save the dump to clean external or secure storage
-
- Record the tool version, commands, times, errors, and changes to the system
-
- Hash the saved dump with SHA-256 and preserve the original evidence copy
-
- Analyze the saved dump with Volatility 3
- Examine processes, network connections, and possible injected code
- Volatility analyzes memory dumps; choose a separate tool to acquire RAM
Analogy: WinPmem / DumpIt = the camera that takes the snapshot of memory. Volatility = the magnifying glass you use afterwards on the photo.
Using Network Tools
(Section divider slide)
Tool: Tcpdump
- Powerful tool that extracts network packets and performs statistical analysis on those dumps
- Operates by putting the network card into promiscuous mode
- Tcpdump report consists of
- Captured packet count
- Received packet count
- Count of packets dropped by kernel
- Happens when there are too many packets: they are saved to a buffer, but they arrive faster than they are processed → the buffer runs out of space
- Solution: increase the buffer size
- Supported by various platforms
Analogy: The buffer is a waiting room. If customers arrive faster than the clerk can serve them, the room fills up and extra people get turned away (dropped packets).
-B 4096makes the waiting room bigger.

- Terminal screenshot: command
tcpdump -q -c 20 -i eth0 arp-q= quiet (shorter output)-c 20= capture 20 packets then stop-i eth0= listen on interface eth0arp= filter: only ARP packets
- Output shows many lines like
arp who-has <IP> tell <gateway>: ARP requests broadcast by the gateway asking who owns each address
Using UNIX/Linux Tools
- Knoppix Security Tools Distribution (STD)
- Bootable Linux CD intended for computer and network forensics
- Knoppix-STD tools
- Dcfldd: the U.S. DoD version of
dd - memfetch: forces a memory dump
- photorec: grabs files from a digital camera
- snort: an intrusion detection system
- oinkmaster: helps manage your snort rules
- chntpw: resets passwords on a Windows PC
- tcpdump and ethereal: packet sniffers
- Dcfldd: the U.S. DoD version of
- With the Knoppix STD tools on a portable CD, you can examine almost any network system
- BackTrack
- Contains more than 300 tools for network scanning, brute-force attacks, Bluetooth and wireless networks, and more
- Includes forensics tools such as Autopsy and Sleuth Kit
- Easy to use and frequently updated
- https://www.sleuthkit.org/autopsy/features.php
Analogy: A bootable forensics CD is a detective's toolbox that runs without touching the suspect's computer, since you boot from the CD instead of the suspect's disk.
More Modern Tools
- DumpIt: easy single-exe memory dumper; integrates win32dd/win64dd
- FTK Imager (AccessData): can capture live memory
- Magnet RAM Capture: free, reliable memory acquisition
- Belkasoft Live RAM Capturer: lightweight forensic tool
- winpmem / Rekall / Comae Memory Toolkit: actively maintained components used in enterprise DFIR (Digital Forensics and Incident Response)
- LiME (Linux Memory Extractor): for Linux live memory capture
- osxpmem / Mac memory tools: for macOS acquisition
Using Packet Sniffers
- Packet sniffers
- Devices or software that monitor network traffic
- Most work at layer 2 or 3 of the OSI model
- Most tools follow the PCAP format
- Some packets can be identified by examining the flags in their TCP headers

What is PCAP?
- PCAP = Packet CAPture
- PCAP files are data files created using a program
- They contain packet data of a network and are used to analyze network characteristics
- They also contribute to controlling network traffic and determining network status
- Using PCAP files, teams can detect network problems and resolve data communication issues using various programs
- To capture PCAP files you need a packet sniffer
Analogy: A PCAP file is a voice-recorder tape of the network. You can rewind it and analyze it later as many times as you want.
PCAP Formats
- Data can be stored in a number of formats; the most common are
- Libpcap: compatible with macOS and Linux
- WinPcap: made for Windows, supports remote use
- Npcap: used with Windows, supports external PCAP analysis tools
- PCAPng: next-generation capture file format that supports additional scripting and extensions
Discussion Questions
- What if attackers use encrypted communications to launch attacks on networks? Does the PCAP tool still work?
- PCAP still captures the packets (headers, addresses, ports, timing, sizes), but payloads stay unreadable without decryption keys
- If a packet sniffer is placed at the edge of the network, will this limit the amount of visibility a user has?
- Yes (see next section)
Packet Sniffer at the Network Edge

- Visibility depends on whether traffic crosses the monitored link
- Layout: Office PC and File server → LAN switch → Firewall / NAT (monitored link on the LAN side, where the Edge sniffer sits) → Internet
- PC–server traffic stays inside the LAN → the edge sniffer does not see it
- PC–Internet traffic crosses the monitored link → the edge sniffer sees it
- Visible at this capture point
- Traffic to and from this Internet link
- Addresses, ports, timing, sizes, and volume
- Visibility limits
- Internal traffic and alternate exits can be missed
- Encrypted payloads require decryption secrets
Analogy: A guard at the front gate counts everyone entering and leaving the campus, but has no idea what students say to each other inside the dorm.
Advantages of PCAP
- Increased visibility into the network
- Clear insight into activity by monitoring where traffic is coming from and what applications and devices it interacts with
- Lets you spot specific problematic activity and address it
- Real-time monitoring
- PCAP collects and copies data packets as they move across the network → real-time insight with minimal delay
- Allows rapid identification and response to breaches, leaks, packet loss and other problems
- Simplicity and compatibility
- Powerful but simple tool
- Produces file formats widely compatible with packet sniffing and PCAP analysis tools
- Tools exist for Windows, Linux, and macOS, including open source tools
Disadvantages of PCAP
- Won't identify non-network threats
- Only monitors activity across the network
- Attacks that don't use network traffic (e.g., hardware-based attacks or compromised USB drives) won't necessarily appear in PCAP analysis
- Needs other security measures
- Unable to defeat encryption
- Can't give visibility into encrypted communications, which attackers often use to avoid being identified
- Sniffers may collect the data but can't show the details if it is encrypted
- Location matters
- It can't see everything; placement determines what data you get
- Sniffer at the edge → may miss some activity
- Sniffer at the center → may collect too much noise for IT to sort through
Analogy: PCAP is a security camera for the road. It can't catch someone who walks through the back door (USB attack), can't read a sealed letter (encryption), and its usefulness depends on where you mount it.
OSI Model (7 Layers)
Related

- 7 Layers of the OSI Model (from the slide)
- Application: end-user layer; HTTP, FTP, IRC, SSH, DNS
- Presentation: syntax layer; SSL, SSH, IMAP, FTP, MPEG, JPEG
- Session: synch & send to port; APIs, Sockets, WinSock
- Transport: end-to-end connections; TCP, UDP
- Network: packets; IP, ICMP, IPSec, IGMP
- Data Link: frames; Ethernet, PPP, Switch, Bridge
- Physical: physical structure; Coax, Fiber, Wireless, Hubs, Repeaters
Analogy (memory trick): "All People Seem To Need Data Processing" (Application → Physical).
Encapsulation of Data in the TCP/IP Network Stack (Figure 2)

- Layers in the figure
- 5-6-7 Application: Telnet, FTP, TFTP, HTTP, BOOTP, DHCP, SNMP, Socket API → User Data
- 4 Transport: TCP, UDP → adds TCP Header → TCP Segment
- 3 Network: IP, ARP, ICMP → adds IP Header → IP Datagram
- 2 Data Link: PPP, SLIP, Ethernet → adds Ethernet Header and Ethernet Trailer → Ethernet Frame
- 1 Physical: physical devices
- Sizes in the figure
- Ethernet header: 14 bytes
- IP header: 20 bytes
- TCP header: 20 bytes
- Ethernet trailer: 4 bytes
- Data portion: 46 to 1500 bytes
Analogy: Encapsulation is Russian nesting dolls / envelopes inside envelopes. Your message goes in an app envelope, then a TCP envelope, then an IP envelope, then an Ethernet envelope. Each layer adds its own address label.
Packet Sniffer Structure (Figure 3)

- A packet sniffer has two parts
- Packet capture (pcap): sits at the operating system level; receives a copy of all Ethernet frames sent/received from the link layer
- Packet analyzer: sits at the application level; reads from the pcap and displays/decodes
- Meanwhile, normal applications (browser, FTP client) still get data through Transport (TCP/UDP) → Network (IP) → Link (Ethernet) → Physical
Analogy: The sniffer is a photocopier clipped onto the mail chute: the real letters still reach the apps, but a copy goes to the analyzer.
Tools
- Tcpdump: command-line packet capture
- Tethereal: command-line version of Ethereal
- Wireshark (formerly Ethereal): graphical packet capture analysis
- Snort: intrusion detection
- Tcpslice: extracts information from one or more tcpdump files by time frame
- Tcpreplay: replays packets
- Tcpdstat: near-real-time traffic statistics
- Ngrep: pattern-matching for pcap captures
- Etherape: views network traffic graphically
- Netdude: GUI tool to analyze pcap files
- Argus: analyzes packet flows
Benefits of Packet Sniffing
- Identify the root cause
- Evaluate critical network pathways to help admins determine whether the application or the network is the cause of poor user experience
- Dig deep into slowdowns
- Measure network response time (network path latency): time required for a packet to travel across a path from sender to receiver
- Analyze traffic by type
- Categorize traffic by destination server IP, ports used, and measure total and relative volumes for each type (e.g., social media, external web surfing)
- Improve bandwidth
- Understand how your bandwidth is being used and by whom
- Improve security
- Highlight unusual spikes in traffic so you can dig deeper to determine whether a cybercriminal is at work

- Diagram: Client ↔ Network TAP ↔ Server, with a Network Sniffer attached to the tap. Labels: Identify Root Causes, Address End User Slowdowns, Analyze Traffic Type, Improve Security
PCAP Analyzer Example

- Screenshot of PCAP Analyzer (file
LISTOFFREEWARE.pcap)- Packet list columns: No., Source, Destination, Protocol, Length, Info
- Colors by protocol (ARP, DNS, TCP, IRC)
- Example rows: ARP "Who has 192.168.42.129", DNS query for
proxima.ircgalaxy..., TCP SYN to91.217.82.147, IRCNICK ... USER ...andJOIN(IRC traffic can indicate a botnet C2 channel) - Lower pane shows decoded ARP request fields: Hardware type, Protocol type 2048 (IPv4), sender MAC/IP, target MAC (broadcast)
Network with DMZ
- DMZ (Demilitarized Zone) sits between two firewalls
- Layout
- Internet (public IPs) → FW1 → DMZ (Mail Server, Web Server, CA Server) → FW2 → Intranet (LAN)(Database Server, private IPs, workstations)

- Diagram "Network with DMZ" showing Internet, FW1, DMZ servers, FW2, and the intranet LAN with Database Server and users
FW1, FW2 ก็ต้องต่างกัน ถ้าเหมือนกัน เจาะ FW1 ได้ก็เจาะ 2 ได้เช่นกัน
Analogy: A DMZ is the hotel lobby: guests (the Internet) can come in and use the front desk (public servers), but they still can't walk into the staff-only back office (internal LAN).
Network Zoning

- Diagram (Techbast / Vacif): Internet with VPN users → WAN → Firewall, splitting into
- Wireless zone (access point / router)
- DMZ zone with Servers (behind a second firewall)
- LAN zone through a core switch to three access switches with PCs, printers, phones, cameras
- Idea: separate network zones so a compromise in one zone does not spread to others
Analogy: Zoning is fire doors inside a building. A fire (attack) in one section can't spread to the entire building.
Top Alternatives to Wireshark (Mac, Windows, Linux)
- https://www.guru99.com/wireshark-alternative.html
- https://www.dnsstuff.com/packet-sniffers#10-best-packet-sniffers
Domain Name System (DNS)
- DNS is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network
- It associates various information with domain names assigned to each participating entity
- Most prominently, it translates memorable domain names to numerical IP addresses needed for locating and identifying computer services and devices
Analogy: DNS is the phone book of the Internet: you look up the name (google.com) and get the number (IP address).
DNS Architecture

- DNS hierarchy tree (RedHat)
- root (
.) - Top Level Domains:
.net,.edu,.com,.gov - Second Level Domains:
example.com - Subdomains:
cluster.example.com,mail.example.com,www.example.com - Hosts:
node1.cluster.example.com
- root (
DNS Hijacking
- A practice of intercepting DNS queries in an attempt to redirect users to malicious, third-party websites
- Cybercriminals either
- Use malware to override a computer's communication protocols to take control of a DNS server, or
- Intercept or hack DNS routers
- If your computer's DNS is hijacked, you might be redirected to fake or other sites while accessing different sites
- Attackers use malware to override your computer's TCP/IP settings, which include DNS settings

- Kaspersky diagram: Regular Traffic: client asks DNS "Where is google.com?" → DNS replies
87.245.200.153→ client connects to the real Google. Hijacked Traffic: client asks a Rogue DNS, which replies6.6.6.6→ client connects to Fake google.com
Analogy: Someone swaps the street signs so that when you follow the sign to "Bank Street", you end up at a fake bank.
DNS Spoofing vs DNS Hijacking
- DNS Spoofing: the act of forging or falsifying DNS responses so that a victim's query receives an incorrect IP address. Scope: the attack technique
- DNS Hijacking: the broader attack or manipulation where a DNS resolver or its configuration is taken over or redirected, which can include spoofing. Scope: the outcome / objective
Types of DNS Hijacking
- Malware Attack: attacker infects a user's computer with DNS-changing Trojan malware and redirects the user to fake, harmful websites
- Man-in-the-Middle attack: hacker intervenes in communication between a user and a trusted DNS server and provides different IP addresses of malicious sites
- Cache Poisoning: fake commands are written into the DNS resolver's cache, redirecting users to a dangerous site disguised as a real one; also known as DNS spoofing
- Rogue DNS Server: after a DNS server is compromised, its records can be manipulated to redirect incoming DNS queries to phishing sites
- DNS Router Hijack: occurs when the router's assigned DNS settings are altered

- Diagram "DNS Cache Poisoning": client sends a Domain Name to the Local DNS Server; an attacker feeds an Alternate Address Record into the server; the server returns the wrong IP, so the client's HTTP GET goes to the malicious server instead of the Intended Destination
Analogy: Cache poisoning = someone writes a wrong number in the phone book's quick-dial list, so everyone who uses the shortcut calls the wrong person.
DNS Hijacking Effects
- Hijacked DNS can be used for Pharming
- (Slide definition) a process by which people generate clicks and impressions to increase their earnings from ads
- Hijacked DNS can be used for Phishing
- An attempt to obtain sensitive information (usernames, passwords, emails, credit card details, bank passwords, etc.) by disguising as a trustworthy entity
- Governments also use DNS hijacking to implement Internet censorship
- ISP hijacking
- Many ISPs hijack DNS so that when you visit a non-existent website, you are redirected to a search engine or collection of links
How to Protect Your Computer from DNS Hijacking
- Keep your router's firmware updated (and use a good router)
- Change the router's password if you are using the default one
- Use a VPN to hide your DNS requests
- Install a good antivirus and Internet security tool
- Don't click on malicious links
DNS Tunneling
- DNS tunneling happens when attackers misuse the DNS protocol (normally for resolving domain names) to send or receive hidden data, creating a covert communication channel through DNS queries and responses
Analogy: Smuggling secret notes inside the "address" field of ordinary phone book lookups. The guards only see harmless-looking address checks.
How It Happens (Cause and Mechanism)
- 1. DNS is often allowed through firewalls
- DNS (port 53) must stay open for normal Internet operation
- Many organizations allow outbound DNS to any resolver without deep inspection
- Attackers exploit this to bypass security controls that block other outbound ports
- Cause: unrestricted DNS access + lack of content inspection
- 2. Once malware infects a host, it
- Encodes stolen data (or commands) into DNS query names
- Sends queries like
aHR0cDovL2ZpbGUuZXh0.cmdata.attacker.comaHR0...is Base64-encoded data
- The DNS resolver passes this query up to
attacker.com - Cause: malicious software deliberately encoding data into DNS labels
- 3. Attacker controls an authoritative DNS server
- The attacker owns the domain
attacker.comand its authoritative name server - That server receives the encoded data via DNS queries
- It can also reply with encoded commands in DNS TXT responses
- The attacker owns the domain
Causes of DNS Tunneling
- Unrestricted DNS access (port 53): firewalls allow all outbound DNS
- Infected host / malware: encodes and transmits data inside DNS queries
- Attacker-controlled domain & DNS server: receives and decodes the data
- Lack of monitoring or DPI: no system detects abnormal DNS usage
- Weak egress filtering: internal hosts are allowed to query any external resolver
Indicators of DNS Tunneling
- Long, random subdomain strings → encoded data chunks (e.g., Base64)
- Many DNS requests to one domain → continuous data exfiltration or C2 channel
- Unusually high DNS volume from one host → automated tunneling process
- Frequent TXT record responses → used for command responses
- High NXDOMAIN rate → nonexistent domains due to random data labels
Mitigation of DNS Tunneling
- Network Control → block external DNS, enforce internal resolvers → prevents direct tunneling
- Monitoring → log + analyze DNS queries → detects hidden channels
- DNS Firewalling → RPZ / threat feeds → blocks known bad domains
- IDS/IPS → deep packet inspection → detects encoded payloads
- Rate Limiting → throttle excessive DNS → prevents high-volume exfiltration
- Endpoint Defense → EDR, segmentation → stops local tunneling tools
- Policy & Awareness → DNS security training → reduces misconfiguration risk
Threats to Wireless Network
Common Wireless Network Threats
- Configuration Problems: misconfigurations, incomplete configurations
- Denial of Service: sending large amounts of traffic (or viruses) over the network with the intent of hijacking resources or introducing backdoors
- Passive Capturing: eavesdropping within range of an access point to capture sensitive information
- Rogue (or Unauthorized / Ad-Hoc) Access Points: fool devices into connecting with a false access point
- Evil Twin Attacks: impersonating legitimate access points with a stronger signal to entice authorized users to sign on (uses the same name (SSID) as the legitimate AP)
- Jasager (The "Yes man"): most effectively used on the Pineapple access point; the victim connects to the malicious AP and gets trapped → MITM
- Hacking of Lost or Stolen Wireless Devices: bypassing the password to gain access
- Freeloading: piggybacking on a connection or intercepting files
Analogy: Evil twin = a fake "Starbucks WiFi" hotspot opened next to the real one, with a stronger signal so your phone picks it.
Wi-Fi Pineapple
- A portable device that allows cybercriminals to steal data shared on public Wi-Fi networks
- Originally designed to help defend against cyber threats, but now also used as a honeypot to commit attacks such as man-in-the-middle or spoofing
- A wireless auditing platform from Hak5 that allows network security admins to conduct penetration tests
- Can also be used as a rogue AP to conduct MITM attacks

Karma / Jasager
- Karma is an attack vector based on exploiting the convenience of wireless devices automatically connecting to open WiFi access points
- Jasager was the name originally given to the Karma implementation for OpenWRT devices; the two words are now synonymous
- Karma/Jasager works by automatically responding to 802.11 probes
- Probes are sent from a client device (phone, tablet) to ascertain whether previously known WiFi access points are in range
- The Pineapple's Karma helpfully responds to these probe requests affirmatively (hence "Jasager" = German for "yes-man") and impersonates the access point
Analogy: Your phone shouts "Is 'HomeWiFi' here?" A Karma attacker always answers "Yes, that's me!" no matter what name you call.
Preventing the Execution of Karma
- Karma works by intercepting probe requests from potential wireless clients
- In recent years, many developers have patched wireless drivers so devices do not actively broadcast probe requests while connected to an access point
- Most prevalent among phone manufacturers such as Apple and Google (iOS and Android)
IEEE 802.11 Wireless LAN Standard
- Purpose: defines how devices communicate wirelessly over radio frequencies in a local area network
- Layer: operates mainly at the Physical (Layer 1) and Data Link (Layer 2) of the OSI model
- Working Group: IEEE 802.11 Working Group, part of the broader IEEE 802 committee (which also includes Ethernet, IEEE 802.3)
- IEEE 802.11 defines the technical foundation for Wi-Fi communication, specifying how devices connect, authenticate, and transfer data wirelessly within local networks
802.11 Defines
- Physical layer (PHY): modulation methods, frequency bands, and data rates (e.g., DSSS, OFDM, MIMO)
- MAC layer (Media Access Control): rules for channel access (CSMA/CA), frame formats, authentication, and association
- Communication method
- Uses Access Points (APs) to connect wireless clients
- Supports infrastructure (via APs) and ad-hoc (peer-to-peer) modes
Mitigation Techniques (Wireless)
- Use an intelligent wireless controller
- A wireless controller orchestrates provisioning, functionality, and management of multiple access points
- Example: all APs across a campus register to this controller → the whole wireless network is configured and managed centrally
- Secure configuration of authorized access points
- Employ industry-standard WPA2, WPA3 encryption/authentication
- Authentication: verifies that only permitted users can connect
- Encryption: keeps communications confidential
- Employ an AAA system to record user activity
- Authentication, authorization, and accounting (AAA)
- Use anti-virus, anti-spyware, and a firewall
- Change your router's pre-set administration password
- Use HTTPS websites
| Without Controller | With Controller |
|---|---|
| better security control, controller only recognize registered access point! |
- Enforce strong passwords (try a password generator)
- Restrict access to authorized users only
- For guests, set up a guest account with specific guest privileges on a separate wireless channel with a unique password to protect primary credentials
- Protect your SSID: rename it, change default values, and disable broadcast to other users
- Encrypt your data with WPA3, currently the strongest encryption
- Install a host-based firewall
- Caution against improper file sharing
- Never share files over public networks
- Create a dedicated and restricted sharing directory
- Don't open an entire hard drive for sharing
- Disable file sharing when it's not needed
- Periodically update and install patches for all wireless APs
- Use a VPN to allow out-of-office network connectivity among employees
Wireless Encryption Standards
- Comparison table (Grandmetric)
| WEP | WPA | WPA2 | WPA3 | |
|---|---|---|---|---|
| Brief description | Ensure wired-like privacy in wireless | Based on 802.11i without requirement for new hardware | All mandatory 802.11i features and a new hardware | Announced by Wi-Fi Alliance |
| Encryption | RC4 | TKIP + RC4 | CCMP/AES | GCMP-256 |
| Authentication | WEP-Open, WEP-Shared | WPA-PSK, WPA-Enterprise | WPA2-Personal, WPA2-Enterprise | WPA3-Personal, WPA3-Enterprise |
| Data integrity | CRC-32 | MIC algorithm | Cipher Block Chaining Message Authentication Code (based on AES) | 256-bit Broadcast/Multicast Integrity Protocol Galois Message Authentication Code (BIP-GMAC-256) |
| Key management | none | 4-way handshake | 4-way handshake | Elliptic Curve Diffie-Hellman (ECDH) exchange and Elliptic Curve Digital Signature Algorithm (ECDSA) |
Analogy: WEP = a flimsy padlock (broken), WPA = a better lock but same old door, WPA2 = a strong modern lock, WPA3 = a smart lock with a new key every visit.
WPA Encryption Algorithms
- Auto (TKIP+AES)
- Automatically selects TKIP (Temporal Key Integrity Protocol) or AES based on the client's capabilities
- Since a WLAN can have clients using both TKIP and AES, only unicast traffic is affected (broadcast traffic must fall back to TKIP); therefore transmit rates of broadcast packets from 11n/11ac APs will be at lower 11g rates
- AES (AES-CCMP)
- Provides enhanced security over TKIP
- The only encryption algorithm supported by the 802.11i standard (the standard that introduced WPA2)
- Uses the AES block cipher, but restricts the key length to 128 bits
- Incorporates two cryptographic techniques: counter mode and CBC-MAC
- AES-GCMP-256
- Galois Counter Mode Protocol (GCMP) is supported by 802.11ac, is more efficient than AES-CCMP and gives better performance for wireless clients
- Uses 256-bit AES keys
- Combines counter mode of encryption with the new Galois mode of authentication
(slide writes it asGHASH = (Hash key, Data, Ciphertext))
Counter Mode
- Encrypt a counter value (Counter 1, Counter 2, ... Counter N) with key → produces a keystream block
- XOR that keystream block with the plaintext to get the ciphertext (each block is independent, so blocks can be processed in parallel)
- Encryption
- Decryption (same operation: encrypt the counters again and XOR)

- Diagram "(a) Encryption" and "(b) Decryption": each branch shows
Counter i→Encrypt(with key ) → ⊕ with (or ) → (or ), repeated for blocks 1 … N
Analogy: The cipher makes a long, unpredictable scribble tape from a counter. XOR with the message locks it. XOR again with the same tape unlocks it. The counter changes every block, so the tape never repeats.
Router Settings Example

- Router web page "Wireless Security Mode": options None, WEP, WPA-Personal, WPA-Enterprise; with WPA-Personal selected
- WPA Mode: WPA Only / WPA2 Only / Auto
- Cipher Type: TKIP and AES
- Group Key Update Interval: 3600 seconds
- Notes on the screenshot
- WPA-Personal does not require an authentication server; WPA-Enterprise requires an external RADIUSserver
- WPA2 Only mode uses AES (CCMP) and legacy stations are not allowed access
- WPA Only mode uses TKIP (maximum compatibility); some gaming and legacy devices work only in this mode
- For better wireless performance use WPA2 Only (AES cipher)
WPA3
WPA3-Enterprise
- WPA3 is built on WPA2 but provides improvements
- Authenticated encryption by 256-bit Galois/Counter Mode Protocol (GCMP-256)
- Key derivation uses 384-bit HMAC (Hashed Message Authentication Mode) with SHA (Secure Hash Algorithm)
- Key establishment uses Elliptic Curve Diffie-Hellman (ECDH) exchange and Elliptic Curve Digital Signature Algorithm (ECDSA)
- Frame protection based on 256-bit Broadcast/Multicast Integrity Protocol Galois Message Authentication Code (BIP-GMAC-256)
Wi-Fi 5 vs Wi-Fi 6 vs Wi-Fi 7
| Wi-Fi 5 | Wi-Fi 6 | Wi-Fi 7 | |
|---|---|---|---|
| Standard | 802.11ac | 802.11ax | 802.11be |
| Max speed | Up to 3.5 Gbps | Up to 9.6 Gbps | Up to 46 Gbps |
| Band | 5 GHz | 2.4 GHz + 5 GHz | 2.4 GHz + 5 GHz + 6 GHz |
| Channel width | 80 MHz | 160 MHz | 320 MHz |
| MU-MIMO | Downlink only | Uplink & downlink | Multi-Link Operation |
| Latency | Good | Lower | Ultra low |
| Best for | Basic streaming, browsing & regular use | Gaming, 4K/8K streaming & smart homes | VR/AR, 8K streaming, cloud gaming & future-proof setup |
WiFi 7 Security
- Wi-Fi 7 brings new AKM support for WPA3-SAE and new increased ciphers for OWE & SAE
- WPA3 / OWE are mandatory for EHT (11be MCS rates) & MLO
- Cipher: GCMP-256 → better encryption & speed; AKM → better security

- Comparison table (Legacy vs Wi-Fi 6 vs Wi-Fi 6E (6 GHz) vs Wi-Fi 7)
- Open networks
- Legacy: Open
- Wi-Fi 6: Open (OWE support required)
- Wi-Fi 6E: OWE (AKM 18, cipher CCMP-128)
- Wi-Fi 7: OWE (AKM 18, cipher CCMP-128 or GCMP-256)
- Personal (password)
- Legacy: WPA1/WPA2/WPA3 Transition, WPA3-Personal, PMF optional
- Wi-Fi 6: WPA2/WPA3 Transition / WPA3-Personal, PMF optional (WPA2: AKM 2, 4 & 6; WPA3: AKM 8 & 9; cipher CCMP-128 or AES)
- Wi-Fi 6E: WPA3-Personal, PMF mandatory (AKM 8 & 9; cipher CCMP-128 or AES)
- Wi-Fi 7: WPA3-Personal, PMF mandatory (AKM 24 & 25; cipher CCMP-128 or GCMP-256)
- Enterprise
- Legacy: WPA1/WPA2/WPA3 Transition / WPA3-dot1x (Enterprise), PMF optional
- Wi-Fi 6: WPA2/WPA3 Transition / WPA3-dot1x (Enterprise), PMF optional (AKM 1, 3 & 5, 11 & 12; ciphers AES, CCMP-128, GCMP-128, GCMP-256)
- Wi-Fi 6E: WPA3 Enterprise, PMF mandatory (AKM 3, 5, 11 & 12; ciphers CCMP-128, GCMP-128 & GCMP-256)
- Wi-Fi 7: WPA3 Enterprise, PMF mandatory (AKM 3, 5, 11 & 12; ciphers CCMP-128, GCMP-128, GCMP-256)
- Open networks
- (PMF = Protected Management Frames)
AKM: Authentication and Key Management
- Defines how the client and AP authenticate (where applicable) and establish keys
- AKM table
| AKM identifier | Method | Purpose |
|---|---|---|
| 8 / 9 | SAE / FT-SAE | Password authentication / fast roaming |
| 18 | OWE | Password-free, unauthenticated key exchange |
| 24 / 25 | SAE-EXT-KEY / FT variant | Extended key derivation / fast roaming |
- AKM establishes keys. The cipher protects data.
- Example: AKM 18 (OWE) establishes session key material
- CCMP-128 uses AES with a 128-bit key to encrypt and authenticate data
- Both the AP and client must support the selected AKM and cipher
- AKM numbers identify methods, not key lengths; FT = Fast Transition
Analogy: AKM is how you agree on the secret handshake; the cipher is the lock that uses the secret afterwards.
SAE: Simultaneous Authentication of Equals
- WPA3-Personal uses SAE to authenticate password possession and establish keys
- Stages
| Stage | What the client and AP do |
|---|---|
| 1. SAE commit | Exchange password-derived values and fresh random contributions |
| 2. SAE confirm | Verify the exchange and establish shared master key material |
| 3. Four-way handshake | Derive and install traffic keys, then protect data using AES |
- Why SAE improves password security
- Offline guessing resistance: a captured exchange does not enable bulk password testing without further interaction with the network
- Forward secrecy: learning the password later does not reveal previously captured sessions (assuming a secure implementation)
- SAE proves knowledge of a shared password, rather than a unique user identity
Analogy: Old WPA2 was like writing the password in code on a postcard that anyone could copy and try to crack at home. SAE is a live conversation: the attacker has to talk to the AP for each guess, and even if they learn the password tomorrow, yesterday's recorded conversations are still unreadable.
OWE (Opportunistic Wireless Encryption)
- OWE is a technology that allows wireless devices to establish encrypted connections to public Wi-Fi hotspots
- OWE provides encrypted Wi-Fi without requiring a password
- It is the technology behind Wi-Fi Enhanced Open, intended for public and guest networks
Analogy: Open WiFi = shouting in a crowded cafe. OWE = whispering with a private code that you and the AP invent on the spot, even though neither of you knew the other beforehand and there's no password.
OWE Handshake

- Message flow between CLIENT and AP
- 802.11 Open System Authentication Request / Response
- Association Request with ECDH public key
- Association Response with ECDH public key (Group 19, P-256 curve; ECDH private/public key pair exchange)
- EAPOL Messages 1 to 4 = 4-Way Handshake
- Data is now encrypted
Aruba: Enhanced Open Option

- Aruba OS 8.x screenshot: Security tab → Key management: Enhanced Open, with the checkbox Enable backward compatibility
- Example
- A modern phone connects with encryption, while an older tablet can still connect without encryption
- Enabling this option does not give the older tablet OWE protection
- If you disable the checkbox, the network uses OWE only, so devices without OWE support cannot connect
- Aruba also requires disabling this compatibility option for 6-GHz operation
Example: Enhanced Open Option (Wireshark capture)

- Wireshark capture of beacon frames from an Aruba AP
- Frame 1: SSID
"SIAMWireless_OWE"(the visible transition-mode SSID) - Frame 2: SSID
<MISSING>(hidden SSID) with AKM type: Opportunistic Wireless Encryption - The tag "Vendor Specific: Wi-Fi Alliance: OWE Transition Mode" (OUI
50:6f:9a) contains the BSSIDand SSID of the paired OWE network (e.g.,_owetm_SIAMWireless_OWE_...)
- Frame 1: SSID
- Meaning: in OWE Transition Mode, the AP broadcasts two networks: an open one (for old devices) and a hidden OWE one (for modern devices); the vendor-specific tag links them together
สรุปอีกครั้ง
- Static DHCP = fixed biding IP-MAC
- Dynamic DHCP = trusted IP-MAC binding + DAI (Dynamic ARP Inspection, it can forward and drop!)
- Range of IP - MAC addresses (rather than one by one)
- We call lease??
Linked from
- 07 Memory-Management Strategies
- Lecture 10 - WAN Technologies and Protocols
- Lecture 2 - Protocol Architectures
- Lecture 11 - Link Layer (Part 1)
- Lecture 12 - Link Layer (Part 2)
- Lecture 13 - Wireless Network & Firewall
- Lecture 4 - Application Layer (Part 2)
- Lecture 7 - Network Layer (Part 1)
- Chapter 13 - Intrusion Detection System (IDS)
- Lab 3 - NIC and ARP
- Lab 4 - TCPDUMP and WIRESHARK
- Lecture 2 - IoT Architectures & a Use Case
- Lecture 12 - Penetration Testing with Metasploit
- Lecture 3 - Computer Forensics
- Lecture 4 - Data Acquisition
- Lecture 5.5 - DNSSEC
- Lecture 2