- Lab
- A Cloud Guru
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.
Path 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
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.