Full incident investigation of a Cobalt Strike beacon delivered through an encoded PowerShell script (endpoint.ps1). Initial access via RDP brute force attack on port 3389, followed by internal reconnaissance, port scanning, and exfiltration of a SQL database backup. Complete incident report covering the full NIST IR lifecycle.
Step-by-step investigation following NIST SP 800-61 IR methodology, from initial detection through containment and lessons learned.
Determined root cause via RDP brute force attack on port 3389 (open to internet). Analyzed Windows Security logs — Event ID 4625 (failed logins) followed by Event ID 21 (successful RDP session) from IP 3.16.42.241 using Administrator account. Brute-force attack on the RDP service was the entry vector.
Attacker executed new1.bat for system enumeration (applications, processes, network connections). Deployed Advanced Port Scanner for internal network reconnaissance and downloaded netcat (nc111nt.zip). Ran encoded PowerShell script endpoint.ps1 with Base64 + Gzip compressed Cobalt Strike beacon.
Attacker used findstr to locate sensitive data, then exfiltrated user-db-backup.sql via netcat to IP 3.16.42.144 on port 4444. Confirmed through Sysmon Event ID 3 (network connection) and terminal history analysis on the compromised host.
Reconstructed from Sysmon Operational logs and Windows Security events.
Attack techniques mapped to the MITRE ATT&CK framework for structured threat intelligence.
External Remote Services
Valid Accounts — Local Accounts
Command and Scripting Interpreter
Software Deployment Tools
Indicator Removal on Host
Exfiltration Over Alternative Protocol
Complete writeup covering detection, analysis, containment, eradication, and lessons learned.
Full deliverables available in the project repository.