Executive Summary

During triage of a sample tagged under LummaStealer infrastructure on MalwareBazaar, dynamic behavioral monitoring initially suggested a dormant or sandbox-aware binary: the process allocated no executable (RWX) memory pages, performed no process injection or hollowing, established no persistence mechanisms, and idled indefinitely with all threads parked in Wait:UserRequest.

Static reverse engineering revealed that the sample is not packed—rather, it is a stripped, standalone Go (x86) implant with a mangled .gopclntab structure designed to break automated Go symbol recovery tools. Rather than stealing credentials immediately upon execution, the malware operates as a resident, operator-triggered beacon. It communicates directly with a pool of 10 hardcoded IPv4 C2 endpoints over HTTPS (port 443) using TLS certificate pinning, masks its network configuration with stride-4 chaff obfuscation and non-resolving decoy domains (snk.wtf), and awaits explicit operator tasking (getCredentials, removeAllCredentials, update) before executing its infostealing or self-update routines.

For Incident Response (IR) and threat hunting teams, this design presents two major operational challenges:

  1. Evasion of Automated Sandboxes: Without immediate browser/wallet enumeration or disk persistence, short-lived sandbox detonations classify the binary as benign or broken.
  2. Memory-Only Resident Risk: Because the implant installs zero persistence and waits passively in memory, endpoint triage requires live process memory scanning and network/TLS hunting rather than standard registry or scheduled-task checks.

1. Initial Dynamic Triage: Ruling Out Packers and Injection

When infostealers are wrapped in Go crypters, standard behavioral indicators typically include VirtualAlloc(..., PAGE_EXECUTE_READWRITE), VirtualProtect, or suspended child-process creation (CreateProcessW + NtUnmapViewOfSection) to unpack a native C/C++ payload.

Tracing the binary with API Monitor and ProcMon immediately ruled out a multi-stage loader:

  • No Executable Allocations: VirtualAlloc was invoked exclusively with PAGE_READWRITE (0x04) for standard Go runtime heap expansion, and VirtualProtect was never imported or dynamically resolved.
  • Idle Thread State (Wait:UserRequest): Inspection in Process Explorer confirmed all active threads were parked in Wait:UserRequest, indicating Go’s runtime scheduler was blocked waiting on a network socket or channel rather than executing an anti-VM sleep timer (DelayExecution).
  • Network Evasion & Decoy Traffic: Outbound telemetry showed DNS queries for a non-resolving domain (snk.wtf) alongside direct TCP connections to external servers on port 443 that failed TLS negotiation due to certificate pinning against burned/sinkholed C2 infrastructure.

2. Static Reversing: Recovering main.main With a Mangled .gopclntab

Automated Go symbol recovery tools (GoReSym) failed to parse the binary’s function metadata due to tampering with the .gopclntab header/section. However, IDA’s built-in Go loader still identified core runtime trampolines, including runtime.main.func1.

Because Go passes runtime.main.func1 as a function descriptor pointer to runtime.newproc rather than calling it directly, standard cross-references (X) yielded zero callers. Pivoting via an Immediate Value Search (Alt+I) on the start address of runtime.main.func1 located its .rdata function pointer, whose cross-references led straight into runtime.main. Stepping past runtime.gcenable and the package initialization loop (runtime.doInit) exposed the indirect call to the stripped user entrypoint (main.main).


3. C2 Selection & Stride-4 Chaff Deobfuscation

Cross-referencing Go’s standard networking packages (net/http.(*Client).Get) led to a restart reconnection handler responsible for rotating through the implant’s C2 server pool upon connection failure.

To defeat strings extraction and naive regex scanners, the malware author stored the C2 configuration as a single contiguous ASCII blob in .rodata padded with stride-4 chaff: every valid character at index i % 4 == 0 is followed by three random alphanumeric characters ([A-Za-z0-9]{3}):

hwSbtqWMtKMap6yqsdWr:BZ9/uuM/Bh39qZ21Xq6.wtI21u41UTv2mUa.2O71o8Z6A9u6nOz.wZ214G19j4L:D5u4iwo4fBg3DyP,...

Stepping through the string by a stride of 4 (encoded[::4]) cleanly strips the junk bytes and reveals a comma-delimited list of 10 direct-to-IP HTTPS endpoints:

https://91.212.166.19:443
https://91.212.166.51:443
https://45.38.170.114:443
https://87.251.87.137:443
https://194.28.225.230:443
https://147.45.197.92:443
https://94.228.161.88:443
https://77.239.121.3:443
https://77.239.120.249:443
https://84.201.4.120:443

Automated Python Static C2 Extractor

Incident responders can carve and decode this C2 pool directly from disk or memory dumps using the following Python script:

import re
import sys

CHAFED_C2_PATTERN = re.compile(
    rb"(?:h[A-Za-z0-9]{3}t[A-Za-z0-9]{3}t[A-Za-z0-9]{3}p[A-Za-z0-9]{3}s[A-Za-z0-9]{3}:[A-Za-z0-9]{3}/[A-Za-z0-9]{3}/[A-Za-z0-9\.\/:,-]+)"
)

def extract_c2s(binary_path: str) -> list[str]:
    with open(binary_path, "rb") as f:
        data = f.read()

    c2_urls = []
    for match in CHAFED_C2_PATTERN.finditer(data):
        raw_blob = match.group(0).decode("ascii", errors="ignore")
        decoded = raw_blob[::4]
        for entry in decoded.split(","):
            if entry.startswith("https://"):
                c2_urls.append(entry)
    return c2_urls

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print(f"Usage: {sys.argv[0]} <sample.exe>")
        sys.exit(1)
    for url in extract_c2s(sys.argv[1]):
        print(url)

The sample can be found here.


4. Operator Command Dispatcher

Once connected to an active C2 server over pinned TLS, the implant enters an event-driven command loop awaiting operator instructions. Static inspection of the command dispatcher revealed explicit tasking handlers for credential harvesting, artifact cleanup, and binary self-updating:

Command String Capability & Behavior
getCredentials Triggers the on-demand infostealing module to harvest stored browser/application credentials and exfiltrate them to the active C2.
removeAllCredentials Executes post-exfiltration cleanup / anti-forensic removal of targeted credential stores on the compromised host.
update Invokes net/http.(*Client).Get to download a remote .exe payload over HTTPS (port 443) to update the implant or deploy secondary stages.
shell Launch an investigative shell on the victim user’s system.
kill Terminate the process on the user’s system.
newCreds Add found credentials discovered for example in a shell search.

5. Detection & Threat Hunting

MITRE ATT&CK Mapping

Tactic Technique ID Technique Name Observed Behavior
Defense Evasion T1027 Obfuscated Files or Information Mangled .gopclntab metadata and stride-4 chaff encoding of C2 URLs.
Command and Control T1573.002 Encrypted Channel: Asymmetric Cryptography Direct-to-IP HTTPS (TCP/443) with custom TLS certificate pinning.
Command and Control T1105 Ingress Tool Transfer Downloads secondary .exe payloads via update command over HTTPS.
Credential Access T1555 Credentials from Password Stores On-demand credential harvesting triggered via getCredentials.
Defense Evasion T1070 Indicator Removal On-demand credential deletion triggered via removeAllCredentials.

YARA Hunting Rule (Disk & Live Memory)

Because this implant establishes no persistence and sits resident in memory waiting for C2 commands, responders should deploy this rule across both disk triage and live process memory scans (e.g., Velociraptor Windows.Memory.Yara or yara64.exe). Note that fullword is intentionally omitted on the command strings because Go concatenates string literals in .rodata without null terminators.

rule MAL_Go_Lumma_Beacon_Loader_Nov2026
{
    meta:
        description = "Detects Go-based on-demand credential stealer and downloader beacon (observed delivering/paired with LummaStealer infrastructure)"
        author = "Amethyst Systems"
        date = "2026-11-27"
        threat_type = "Infostealer / Downloader Beacon"
        architecture = "x86_64"
        os = "Windows"
        tlp = "CLEAR"

    strings:
        // Go build/runtime anchors (survive stripped/tampered .gopclntab headers)
        $go_buildid = "Go build ID:" ascii
        $go_runtime = "runtime.main" ascii

        // Operator C2 tasking commands (no 'fullword' because Go packs .rodata strings without null terminators)
        $cmd_creds  = "getCredentials" ascii
        $cmd_update = "update" ascii
        $cmd_shell = "shell" ascii
        $cmd_remove = "removeAllCredentials" ascii
        $uri_exe = ".exe" ascii

    condition:
        // Valid Windows PE executable
        uint16(0) == 0x5A4D and
        uint32(uint32(0x3C)) == 0x00004550 and
        // Reasonable size range for a Go implant (1.5 MB - 25 MB)
        filesize > 1500KB and filesize < 25MB and
        // Confirm Go binary + command dispatcher strings
        any of ($go_*) and
        $cmd_creds and
        $cmd_update and
        $cmd_remove and
        $cmd_shell and
        $uri_exe
}

Indicators of Compromise (IOCs)

Network Indicators (Direct-to-IP HTTPS C2 Pool)

  • https://91.212.166.19:443
  • https://91.212.166.51:443
  • https://45.38.170.114:443
  • https://87.251.87.137:443
  • https://194.28.225.230:443
  • https://147.45.197.92:443
  • https://94.228.161.88:443
  • https://77.239.121.3:443
  • https://77.239.120.249:443
  • https://84.201.4.120:443

Sample hashes

  • MD5: c64298be9736a40e2148462653480794
  • SHA1: 3374529255a7599a0639b8c3c03226c97005edaf
  • SHA256: 16cbdd04e6ed5451992cec8d6f8024afdd68e1925e361a58bffe0d538848f990