The primary goal of this lab was to conduct a comprehensive network analysis focusing on identifying and dissecting malicious activities within a given packet capture (PCAP) file. The lab aimed to enhance practical skills in traffic analysis, specifically in detecting web shell uploads, reconnaissance activities, and unauthorized remote command executions.
- Network Traffic Analysis: Gained proficiency in using Wireshark to analyze network traffic, identifying suspicious activities and potential threats.
- Threat Detection: Skilled in detecting and analyzing port scanning activities, as well as recognizing the use of web penetration testing tools like Gobuster and sqlmap within network traffic..
- Malicious Payload Analysis: Developed the ability to decode and understand malicious payloads within HTTP requests, enhancing the capability to pinpoint and analyze web shell uploads and executions.
- Reverse Shell Analysis: Identified and investigated reverse shell connections, understanding the mechanisms of unauthorized remote command executions. (air gaps, VLANs, proxy servers) to construct secure networks.)
- Incident Analysis: Conducted a detailed analysis of packet captures to trace malicious activities, including SQL injection and cross-site scripting (XSS) attempts, leading to the identification and examination of malicious file uploads and executions.
- Wireshark: For opening and analyzing the PCAP file.
- Gobuster 3.0.1: Detected as a tool used for web penetration testing focused on brute-forcing URIs.
- sqlmap 1.4.7: Identified as a tool used for automating the process of detecting and exploiting SQL injection vulnerabilities.
- Capture File Properties: Provided insights into the duration and the protocols used within the packet capture, hinting at potential points of entry.
- Protocol Hierarchy and Conversations: Helped identify the most active IP addresses and potential open ports, indicating the direction of further analysis.
- Started with a preliminary analysis using Wireshark to understand the packet capture's context and to identify significant IPs and protocols.
- Detected SYN packets and a SYN-ACK handshake, pinpointing successful connections on ports 80 and 22, which led to the identification of the port scanning activity.
- Recognized the use of Gobuster and sqlmap tools in the traffic, suggesting unauthorized reconnaissance and exploitation attempts.
- Decoded a malicious POST request indicating SQL injection and XSS attempts, alongside an attempt to execute system-level commands.
- Traced the upload and execution of a malicious PHP file (Dbfunctions.php), which was used to establish a reverse shell connection.
The lab provided hands-on experience in network traffic analysis, emphasizing the importance of being able to detect and understand the indicators of compromise and the tactics, techniques, and procedures (TTPs) used by attackers. The successful identification and analysis of the reconnaissance tools, the malicious file upload, and the subsequent remote command execution highlight the critical need for robust network monitoring and security measures.