Chasing Shell: A Log4Shell Exploit Contained in 12 Minutes

Tales from the SOC

CVE-2021-44228 High Priority

A Log4Shell exploit on a DMZ server, contained in 12 minutes.

Incident Overview

Threat Type: Log4Shell RCE staging a cryptominer

Target: Internet-facing DMZ server

Time to Containment: 12 Minutes

12
Minute Response

The attacker sent a crafted request carrying a JNDI/LDAP lookup string to a vulnerable internet-facing Java application, forcing it to reach attacker-controlled infrastructure and run a Base64-encoded PowerShell download cradle. The script pulled a second-stage payload from a command-and-control (C2) server geolocated to Korea. CRITICALSTART®'s SOC decoded the multi-stage payload to expose the threat actor's full playbook.

Detection & Escalation

Detection: A custom Critical Start detection rule flagged the Log4j exploitation attempt in cloud SIEM telemetry that generic signatures would not have prioritized.

SOC Escalation: Escalated high priority. Analysts confirmed the JNDI exploit string, decoded the PowerShell cradle, and recognized an active code-execution chain rather than a routine scan — warranting immediate containment.

Depth of Investigation

Analysts identified Windows Management Instrumentation (WMI) event-subscription persistence firing every five minutes, scheduled-task fallback persistence, secondary scripts retrieved from a public paste site, and a cryptominer dropped under public user folders while disguised as a legitimate kernel process. This depth let the SOC map every persistence mechanism and indicator of compromise and deliver precise remediation guidance — including blocking all attacker infrastructure and rolling the host back to a known-good state.

AttackerThreat actor initiates Log4Shell exploitation
Initial AccessLog4j exploit targeting externally facing DMZ server
ExecutionDMZ server executed Base64-encoded PowerShell commands
C2Malicious script retrieved from C2 server located in Korea
PersistenceWMI persistence established to download scripts from pastebin.com; secondary payloads also dropped in user folders to evade detection
AlertCustom CS rule detected Log4j being exploited
ResponseCritical Start SOC isolated device and severed C2 communications
C2 BlockedAttacker infrastructure cut off
Device IsolatedAffected host contained
Outcome12 Minute Response

Outcome

In 12 minutes, the Critical Start SOC isolated the affected server and cut off command-and-control communication, stopping the exploitation chain before the cryptominer could fully establish persistence or spread. The customer received clear next steps to patch the vulnerable application, block the attacker infrastructure, and restore the host with confidence.