Wireshark Traffic Analysis: Cleartext Credentials & Firewall Rules

Wireshark Traffic Analysis: Cleartext Credentials & Firewall Rules

in

Wireshark Traffic Analysis: Cleartext Credentials & Firewall Rules

Identifying cleartext credentials inside packet captures and generating actionable firewall rules

In this writeup, we will solve Tasks 9 and 10 from the Wireshark Traffic Analysis room on TryHackMe. These bonus tasks focus on identifying cleartext credentials inside packet captures and generating actionable firewall rules directly from suspicious traffic.

If you are preparing for blue team roles, SOC analyst positions, or improving your packet analysis skills, this walkthrough will help you understand how to extract sensitive authentication data and transform network evidence into defensive rules.


Task 9: Bonus — Hunt Cleartext Credentials

Question 1:

Use the “Desktop/exercise-pcaps/bonus/Bonus-exercise.pcap” file. What is the packet number of the credentials using “HTTP Basic Auth”?

Process:
I went to Tools > Credentials and checked the list provided.

1_8b4AGSS7-GyCQTzp_WA2ZQ.png

1_zQpBhyEmGtvT_P8yQiV2dA.png

Answer: 237


Question 2:

What is the packet number where “empty password” was submitted?

Process:
I used the filter ftp.request.command == "PASS", which reveals all passwords sent in the FTP authentication process.

1_1szBaXDkxQPuxsG9iiZkow.png

Answer: 170


Task 10: Bonus — Actionable Results

Question 1:

Use the “Desktop/exercise-pcaps/bonus/Bonus-exercise.pcap” file. Select packet number 99. Create a rule for “IPFirewall (ipfw)”. What is the rule for “denying source IPv4 address”?

Process:
First, I went to Go > Go to Packet and searched for “99”.
Then I selected the packet and navigated to Tools > Firewall ACL Rules.
There, I selected the requested firewall type and looked for the rule to deny the source IP address.

1_Bcv8oqAxxBQ5-2ZmgaoNoA.png

1_cPlHRyOJzD0Yil2NWJTOdw.png

1_yvEJotMGcXBOpS0IUCqFvw.png

Answer:
add deny ip from 10.121.70.151 to any in


Question 2:

Select packet number 231. Create “IPFirewall” rules. What is the rule for “allowing destination MAC address”?

Process:
First, I went to Go > Go to Packet and searched for “231”.
Then I selected the packet and navigated to Tools > Firewall ACL Rules.
There, I selected the requested firewall type, deselected the “deny” option, and looked for the rule to allow the destination MAC address.

1_dambM3juorRg1ZfVQ2IZoA.png

![1-qA3EY8YJW9RH5l8Sp6I1g.png](../assets/images/posts/wireshark-cred-fw/1-qA3EY8YJW9RH5l8Sp6I1g.png)

Answer:
add allow MAC 00:d0:59:aa:af:80 any in


Conclusion

Tasks 9 and 10 demonstrate how easily cleartext credentials can be identified in packet captures and how network traffic analysis can directly translate into actionable defensive measures. By leveraging Wireshark’s built-in credential detection and firewall rule generation features, we can quickly move from detection to mitigation.

These techniques are very useful for SOC analysts, incident responders, and anyone working in network security monitoring.