Post

[TEST] CyberDefenders: Brave — Network Forensics Write-Up

Test walkthrough demonstration for CyberDefenders Brave lab featuring PCAP traffic analysis, malicious payload extraction, and MITRE ATT&CK matrix mapping.

[TEST] CyberDefenders: Brave — Network Forensics Write-Up

Challenge Overview

AttributeDetails
PlatformCyberDefenders
Lab NameBrave
CategoryNetwork Forensics
DifficultyEasy
Investigation FocusAnalysis of compromised web server network capture file (PCAP) to identify initial access and lateral movement.

Tools Used

  • Wireshark: Used to analyze network packets, filter HTTP streams, and reconstruct web shell uploads.
  • TShark: CLI tool used to extract specific IP statistics and POST payloads.
  • CyberChef: Utilized to decode Base64 obfuscated PowerShell scripts.

MITRE ATT&CK Matrix Mapping
TacticTechnique IDTechnique NameObserved Behavior / Details
Initial Access T1190 Exploit Public-Facing ApplicationExploit attempt detected targeting HTTP web application
Execution T1059.001 PowerShellEncoded PowerShell payload launched via web shell
Command and Control T1071.001 Web ProtocolsC2 beaconing over HTTP POST traffic on non-standard port

Indicators of Compromise (IOCs)
TypeIndicator / ValueContext
IPv4 Address192.168.1.105Attacker C2 Server IP
SHA256 Hasha1b2c3d4e5f67890123456789abcdef0123456789abcdef0123456789abcdef0Malicious ASPX Web Shell
Domainc2-malicious-domain.comExfiltration Endpoint

Investigation & Questions Breakdown

Q1: What is the IP address of the attacker?

Investigation Steps:

  1. Open the PCAP file in Wireshark and inspect TCP connection handshakes.
  2. Filter for incoming HTTP requests with high request frequency:
    1
    
    tshark -r brave-investigation.pcap -Y "http.request" -T fields -e ip.src | sort | uniq -c
    
Reveal Answer
192.168.1.105

Q2: What was the name of the webshell uploaded by the attacker?

Investigation Steps:

  1. Filter for multipart HTTP POST data: http.request.method == "POST" and http.request.uri contains "upload"
  2. Inspect the HTTP payload stream to locate the filename attribute in the Content-Disposition header.
Reveal Answer
cmd_shell.aspx

Conclusion & Key Takeaways

  • The attacker successfully exploited a file upload vulnerability to drop an ASPX web shell.
  • Implementing strict file extension whitelisting and egress firewall filtering would have mitigated the execution and C2 beaconing.

References & Resources

This post is licensed under CC BY 4.0 by the author.