All CySA+ v4 labs

Lab 5 of 17 · By Michael Stout

In this lab

Read the steps, then try them in your lab environment.

CYSA+ CS0-004 · DOMAIN I SECURITY OPERATIONS CyberCorps.uk · LAB 5
LAB 5 · MALICIOUS ACTIVITY

Capture and analyze traffic with Wireshark

Chapter 3 lists packet capture and analysis among the core techniques for detecting malicious activity. This lab installs Wireshark, captures a slice of your own everyday traffic, and gets you comfortable reading what's actually on the wire.

WHY THIS LAB

Logs tell you what a system claims happened

A packet capture tells you what actually crossed the network — no agent to trust, no log format to interpret. That's why full packet capture sits at the bottom of most detection strategies: it's ground truth, even if it's the most expensive to store at scale. Wireshark is the tool almost every analyst learns this on first, and it's free.

NPCAP COMES BUNDLED

Windows can't capture raw packets without a driver. Every Wireshark Windows installer bundles the latest stable release of Npcap, so you don't download it separately.

BEFORE YOU START

What you'll need

OPERATING SYSTEM

Windows 10 or 11, 64-bit (an Arm64 build is also available).

PERMISSIONS

Administrator rights to install Npcap's capture driver; capturing live traffic afterward typically needs an admin session too.

NETWORK

Any active connection — Wi-Fi or Ethernet. You'll capture your own traffic, not anyone else's.

TIME

15–25 minutes.

CyberCorps.uk · Lab 5 Page 1 of 2
INSTALL · CAPTURE · EXAMPLES CyberCorps.uk · LAB 5
PART 1 · INSTALL WIRESHARK

Get the capture engine running

  1. Download it. Go to wireshark.org/download.html and get the Windows x64 installer.
  2. Run the installer. Accept the defaults. When prompted, allow it to install Npcap — that's the driver that makes live capture possible.
  3. Confirm the version. Launch Wireshark and check Help → About Wireshark to confirm it installed correctly.
PART 2 · CAPTURE AND FILTER

Look at your own traffic

  1. Pick an interface. On Wireshark's start screen, double-click your active Wi-Fi or Ethernet adapter — the one showing live traffic in its mini-graph.
  2. Generate some traffic. Open a browser and visit two or three ordinary sites while the capture runs.
  3. Stop and filter. Click the red stop-capture square, then type http.request or dns into the display filter bar and press Enter.
  4. Read one packet. Click a single row and expand the layers in the lower pane — Ethernet, then IP, then TCP, then the application layer. That's the whole conversation, in order.
EXAMPLES TO TRY

Four filters worth learning

FilterWhat it shows
dnsEvery DNS query and response — useful for spotting beaconing to an unfamiliar domain.
tcp.flags.syn==1 && tcp.flags.ack==0Outbound SYN packets only — the start of every new TCP connection your machine initiated.
http.requestPlaintext HTTP requests — a reminder of how much still travels unencrypted.
ip.addr == <an IP>Everything to or from one address — right-click any packet's IP and choose “Apply as Filter” to build this without typing it.
CAPTURE YOUR OWN TRAFFIC ONLY

Capturing traffic on a network you don't own or administer, or that belongs to other people without consent, is a policy and, in many places, a legal problem — not just a lab exercise. Keep this on your own machine and your own connection.

Sources. Wireshark, download and release information, wireshark.org/download.html.

CyberCorps.uk · Lab 5 Page 2 of 2

Connect this lab to your learning