You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A two-phase security assessment conducted against Metasploitable 2 in a fully isolated virtual lab environment. Phase 1 covers vulnerability exploitation across 7 distinct attack vectors. Phase 2 covers Wireshark network traffic analysis of each attack — providing both the offensive and defensive perspectives of every exploit.
This project is a comprehensive, two-phase penetration testing and SOC analysis engagement against Metasploitable 2 — an intentionally vulnerable Linux virtual machine developed by Rapid7 for security training and research.
The project goes beyond simple exploitation by pairing every attack with a full Wireshark network traffic analysis — examining what each attack looks like on the wire, identifying detection opportunities, and writing Snort/Suricata detection rules. This dual perspective (red team + blue team) is the core distinguishing feature of this assessment.
Phase
Focus
Output
Phase 1
Penetration Testing — identify, exploit, and document 7 vulnerabilities
7 individual exploit reports + 1 compiled final report
Phase 2
Wireshark Traffic Analysis — analyse every attack on the network layer
7 individual traffic analysis reports + 1 compiled final report
Lab Environment
Component
Details
Host Machine
Windows 11 — Intel Core i9, 16 GB RAM, 512 GB SSD
Virtualization
Oracle VirtualBox 7.2.6 with Extension Pack
Attack Platform
Kali Linux 2025.4 — 2 GB RAM, 2 CPU cores — 192.168.56.102
MD5 hash and COPY FROM /etc/passwd SQL technique fully visible in unencrypted protocol stream
Universal Finding
Every protocol analysed in this assessment — FTP, TCP, IRC, SMB, DistCC, HTTP, and PostgreSQL — transmits all data in plain text without encryption. Any device passively monitoring the network segment has complete visibility of every command, every response, and every piece of sensitive data exchanged during each attack.
Detection Engineering — 18 Snort/Suricata Rules Written
Exploit
Rules
Primary Detection Signature
vsftpd Backdoor
3
:) pattern in FTP USER command
Bindshell
2
Any TCP connection to port 1524
UnrealIRCd
3
AB; prefix in IRC traffic
Samba
3
Backtick characters in SMB username field
DistCC
2
[Malformed Packet] on port 3632
Apache Tomcat
3
POST to /manager/html/upload
PostgreSQL
2
External connection to port 5432
Key Findings
4 of 7 exploits achieved immediate root access (uid=0) — full system compromise with no privilege escalation required
2 of 7 exploits succeeded through default credentials alone — no CVE, no exploit code, no technical skill required beyond knowing the default username and password
4 CVEs in this assessment are between 14 and 21 years old — all had patches available from the day of disclosure
Port 4444 appears as the reverse shell listener across 4 consecutive exploits — an unmistakable Metasploit fingerprint detectable by a single IDS rule
Least Privilege worked in Exploits #5 and #6 — DistCC and Tomcat running as service accounts prevented /etc/shadow access, demonstrating a meaningful security control
All 7 attacks are fully visible in unencrypted Wireshark captures — protocol-aware network monitoring would detect every exploit in this assessment
30 open ports were discovered during reconnaissance — only 7 were exploited, meaning the actual attack surface is significantly larger than what this report covers
Three Controls That Would Have Prevented All 7 Exploits
Control
Exploits Prevented
Change all default credentials
#6, #7 — immediately, with zero technical effort
Apply available patches
#1, #2, #3, #4, #5 — all had patches available for over a decade
Network segmentation — close all non-required ports
#1, #2, #3, #5 directly; hardens all others
Skills Demonstrated
Domain
Skills
Reconnaissance & Enumeration
Full TCP port scanning, service fingerprinting, attack surface mapping
Access level achieved, data at risk, business impact
Remediation
Immediate actions and long-term security measures
Traffic Analysis Reports (Phase 2)
Section
Content
Executive Summary
What the attack looks like on the wire
Capture Setup
Interface, filters, and methodology
Protocol Analysis
Packet-by-packet breakdown with Wireshark screenshots
TCP Stream Analysis
Full session reconstruction in plain text
Attack Timeline
Timestamped sequence of every network event
Detection Opportunities
IDS rules, IOCs, and monitoring recommendations
Key Findings
Lessons learned from the network perspective
Future Work
Privilege escalation on the three limited-access shells (daemon, tomcat55, postgres) to explore paths from service-account access to full root compromise
Exploitation of remaining services across the 23 open ports identified but not targeted in this engagement
Post-exploitation techniques including lateral movement simulation, persistence mechanisms, and credential harvesting
Automated scanning integration using OpenVAS or Nessus to compare manual findings against automated vulnerability assessment results
Encrypted protocol comparison — re-running select attacks with encrypted alternatives (SFTP, SSH, HTTPS) to demonstrate the defensive value of encryption
Disclaimer
This project was conducted in a controlled, fully isolated virtual lab environment for educational and portfolio purposes only. Metasploitable 2 is an intentionally vulnerable virtual machine developed by Rapid7 specifically for security training and penetration testing practice. No real-world systems, networks, or data were targeted or compromised at any point. All techniques demonstrated in this project should only be performed in explicitly authorised testing environments.
Author: Tony Doumit
Assessment Period: February 2026
Phases Completed: 2 of 2
About
Two-phase red/blue team lab, exploited 7 real CVEs with root access on 4 targets, then built 18 custom Snort/Suricata detection rules from Wireshark traffic captures