- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Security

Using Wireshark to Identify Malicious Network Activity
In this lab, we will learn how to use Wireshark to identify malicious network traffic. We will download two packet captures and analyze them, checking for signs of beaconing and exfiltration via DNS tunneling.

Lab Info
Table of Contents
-
Challenge
Install Wireshark.
- Use your preferred VNC client to connect to the host using the provided public IP on port 5901.
- Run the commands
sudo apt-get update
andsudo apt-get install -y wireshark
. - When asked if you want to allow non-superusers to capture packets, select Yes.
-
Challenge
Download and analyze packet captures.
Download the following PCAP files to the Downloads directory:
- https://github.com/linuxacademy/content-cysa-wiresharkanalysis/blob/master/dns-tunneling.pcap
- https://github.com/linuxacademy/content-cysa-wiresharkanalysis/blob/master/beaconing.pcap
-
Challenge
Create the firewall rules.
- Use Gedit to create a file named
firewall-rules.txt
and save it on the Desktop. - Review the two packet captures and identify the source and destination involved in beaconing and DNS tunneling, and create a rule for each of the two activities.
- The
firewall-rules.txt
file should contain two access lists which following the format outlined in the Guide. Remember Linux is case sensitive. - The firewall rule to block beaconing is:
access-list BLOCK deny TCP 192.168.122.212/32 188.120.247.14/32 eq 80 - The firewall rule to block DNS tunneling is:
access-list BLOCK deny UDP 10.0.2.30/32 10.0.2.20/32 eq 53
- Use Gedit to create a file named
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.