SOC Prime Bias: Critical

28 Aug 2026 07:01 UTC

SLEEPWALKER Backdoor Uses Its Own Command Language

Author Photo
SOC Prime Team linkedin icon Follow
SLEEPWALKER Backdoor Uses Its Own Command Language
shield icon

Detection stack

  • AIDR
  • Alert
  • ETL
  • Query

Summary

SLEEPWALKER is a highly sophisticated passive backdoor that remains dormant in memory until activated by a specially crafted network trigger packet. It uses a custom bytecode command language to perform tasks including data exfiltration, lateral movement, and in-memory shellcode execution. By avoiding traditional beaconing behavior, the malware becomes significantly harder to detect through conventional network monitoring.

Investigation

The investigation found that SLEEPWALKER is a 64-bit Windows DLL designed for DLL side-loading into the ESET Management Agent process (ERAAgent.exe). Researchers identified a custom AES-256-CCM encryption scheme and a unique bytecode interpreter supporting 23 instructions. The analysis also revealed covert communication methods including raw socket sniffing, DNS-based triggers, and abuse of VMware VMCI.

Mitigation

Organizations should monitor for unauthorized DLLs, particularly files masquerading as dpapi.dll, located alongside ESET Management Agent components. Hardening registry settings related to anonymous access and NullSessionPipes is also critical. Security teams should additionally monitor network interfaces for unusual promiscuous mode activity that may indicate passive traffic inspection.

Response

If SLEEPWALKER is detected, affected hosts should be considered fully compromised and rebuilt from known-good backups. Incident responders should perform forensic analysis of the directory containing ERAAgent.exe to identify the origin of the side-loaded DLL. Registry configurations should also be reviewed for unauthorized modifications involving LSA and LanmanServer parameters.

Attack Flow

We are still updating this part.

Detections

ESET Management Agent (ERAAgent) Potential DLL Sideloading (via image_load)

SOC Prime Team
27 Aug 2026

IOCs (HashSha256) to detect: SLEEPWALKER: A Passive Backdoor With Its Own Command Language

SOC Prime AI Rules
27 Aug 2026

IOCs (HashSha1) to detect: SLEEPWALKER: A Passive Backdoor With Its Own Command Language

SOC Prime AI Rules
27 Aug 2026

IOCs (HashMd5) to detect: SLEEPWALKER: A Passive Backdoor With Its Own Command Language

SOC Prime AI Rules
27 Aug 2026

Detection of SLEEPWALKER Passive Backdoor Promiscuous Mode and Trigger Packet [Windows Network Connection]

SOC Prime AI Rules
27 Aug 2026

Detection of SLEEPWALKER Backdoor with Specific Process Name [Windows Process Creation]

SOC Prime AI Rules
27 Aug 2026

## Simulation Execution

Prerequisite: The Telemetry & Baseline Pre-flight Check must have passed.

Rationale: This section details the precise execution of the adversary technique (TTP) designed to trigger the detection rule. The commands and narrative MUST directly reflect the TTPs identified and aim to generate the exact telemetry expected by the detection logic. Abstract or unrelated examples will lead to misdiagnosis.

  • Attack Narrative & Commands: The adversary aims to deploy the SLEEPWALKER backdoor. To bypass standard monitoring, they create a deceptive directory named C:WindowsSystem32dpapi.dll (masquerading as a DLL directory). Inside this folder, they place the malicious binary renamed to ERAAgent.exe. When executed, the full image path C:WindowsSystem32dpapi.dllERAAgent.exe matches the detection logic’s requirement for both the specific suffix and the presence of the dpapi.dll string.

  • Regression Test Script:

    # Simulation Script for SLEEPWALKER Detection Validation
    $targetDir = "C:UsersPublicDocumentsdpapi.dll"
    $exeName = "ERAAgent.exe"
    $exePath = Join-Path $targetDir $exeName
    
    # 1. Create the deceptive directory structure
    if (!(Test-Path $targetDir)) {
        New-Item -Path $targetDir -ItemType Directory -Force
    }
    
    # 2. Create a dummy executable to simulate the backdoor
    # We use a renamed copy of cmd.exe to ensure it is an actual executable
    Copy-Item "C:WindowsSystem32cmd.exe" -Destination $exePath -Force
    
    # 3. Execute the 'backdoor' to trigger the detection
    Write-Host "Executing simulated backdoor: $exePath"
    Start-Process -FilePath $exePath -ArgumentList "/c echo SLEEPWALKER_TRIGGERED" -WindowStyle Hidden
    
    Write-Host "Simulation execution complete."
  • Cleanup Commands:

    # Cleanup script to remove simulation artifacts
    $targetDir = "C:UsersPublicDocumentsdpapi.dll"
    if (Test-Path $targetDir) {
        Remove-Item -Path $targetDir -Recurse -Force
    }
    Write-Host "Cleanup complete. Artifacts removed."