Redline Stealer Malware Analysis Workflow
Three phases take a packed RedLine loader to its readable.NET payload.

RedLine Stealer analysis requires a three-phase workflow because its native packer hides the.NET code until runtime. Static analysis maps capabilities, controlled execution exposes the handoff, and memory recovery makes the real stealer readable. Sometimes the blank result in dnSpy is the clue.
What RedLine Stealer is and why its packer architecture makes standard tooling fail
RedLine is a commodity.NET credential stealer, but the sample’s outer layer is not a managed assembly. Ali Mehdi Jafeeri’s July 2026 analysis identifies a native Microsoft Visual C++ 8 packed loader. CFF Explorer reports “Portable Executable 32 / Microsoft Visual C++ 8” where a managed assembly would report a.NET runtime. The wrapper determines which tools can read it.
dnSpy and de4dot are.NET-only tools, so with the native outer layer, dnSpy shows only PE headers and de4dot throws BadImageFormatException. The actual stealer is compressed and encrypted inside the loader, becoming available in memory only during execution. Static inspection of the original file therefore cannot show the payload’s logic or a plaintext C2 URL. The tools are at the right address, but knocking on the wrong door.
Setting up a safe, fully isolated laboratory before touching a live sample
The analysis used a two-VM VirtualBox Host-Only setup with no external route. A Windows 10 FLARE-VM at 192.168.56.20 served as the detonation host, while a REMnux VM at 192.168.56.102 supplied the default gateway, dnsmasq DNS sinkhole, and INetSim fake services. Both the Windows gateway and preferred DNS pointed to REMnux. Every callback stayed within analyst-controlled infrastructure. This arrangement allowed intended C2 beacons and DNS requests to be captured without giving the malware live network access.
Before execution, recording SHA-256 and MD5 is non-negotiable because those fingerprints establish file identity, support integrity comparisons, and provide identifiers for IOC sharing and VirusTotal correlation. The sample came from MalwareBazaar with the archive password “infected”. Its SHA-256 was 54ad2eac7f23adb2cd0e9c6f287268a66679e3c3e18009d5b59dcb3485a19fc6. The repository publishes screenshots and defanged indicators while withholding the sample binary and recovered payload. That boundary is deliberate and worth preserving. Any live execution belongs in a fully isolated, disposable environment.
Phase 1 — Static analysis: what the import table reveals when the code itself is unreadable
Static analysis of the loader has a useful but limited output, namely a capability map. Imports expose the functions available to the program even when packing conceals the code that uses them. That distinction keeps the analysis honest. An imported networking function points to a capability worth watching. With that map, the analyst has specific questions for dynamic analysis instead of just watching an executable and hoping something interesting happens.
The loader imports InternetOpenUrlW and InternetReadFile from WININET, indicating C2 or download capability over HTTP. IcmpCreateFile and IcmpSendEcho from IPHLPAPI point to connectivity checks. Runtime traffic later supplies the missing detail. The sample sends ICMP echo requests to 8.8.8.8, 1.1.1.1, and 1.0.0.1. Separately, IsDebuggerPresent indicates anti-debugging capability, while IsWow64Process, GetSystemInfo, and GetVersionExW indicate host and environment fingerprinting.
Plain extraction gets mostly noise from the packed binary, but FLOSS can also recover stack, tight, and decoded strings. That makes it appropriate for the native layer, but it does not turn encrypted configuration into plaintext by wishful thinking. Static inspection locates an encrypted resource blob containing the C2 configuration. A string search cannot supply the hidden C2 URL, so the absence of that URL is consistent with the packaging rather than evidence that the sample lacks network capability.
The decompiler results belong in the findings too. dnSpy exposing only PE headers and de4dot throwing BadImageFormatException are independent observations consistent with a native outer layer. Neither result makes the sample broken. Together with the file identification, they explain why the managed payload remains out of reach. The methodological skill is recognizing when a null result narrows the problem, rather than repeating the same search with increasing enthusiasm and a larger coffee.
Phase 2 — Dynamic analysis: tracing the two-stage unpack and the process hollowing handoff
The loader first runs through two intermediate unpacking stages, then hollows RegSvcs.exe, a legitimate, signed Microsoft.NET utility. It places the real payload inside that process’s address space. Execution has now crossed a process boundary. The original executable is no longer the only place where evidence of the stealer’s activity will appear, which makes the handoff central to understanding the rest of the trace.
The parent starts and exits within the same second. That short lifetime is a deliberate transfer of execution. An analyst who watches only while the original process is alive would stop at just the wrong moment. The hollowed RegSvcs.exe continues the activity under the identity of a trusted Windows process. Its Microsoft signature describes only the legitimate host binary.
The hollowed process performs heavy registry reconnaissance and beacons over TLS to api.ipify.org for public-IP geolocation. The ICMP connectivity checks at runtime also bear out the earlier import-table clues. These observations connect capability to execution. They show which process now performs the work and which network activity belongs to that phase, rather than attributing everything to the short-lived loader. The api.ipify.org traffic is a behavioral indicator, but the encrypted C2 configuration still has to be recovered.
The handoff lets the stealer proceed toward collection and exfiltration without keeping the parent running. No persistence is installed in the documented execution. There is no Run key, Startup entry, or scheduled task, which fits RedLine’s fast theft-and-exfiltration model. Absence is evidence here as well. A persistence search that finds nothing still adds evidence, but it gives no reason to dismiss the other activity, especially when the payload has already moved into another process.
Phase 3 — Payload recovery from memory: extracting and statically analyzing the real.NET stealer
The hollowed process’s memory contains the payload that the original file kept concealed. Recovery therefore depends on reaching the right execution stage, after unpacking and the transfer into RegSvcs.exe. Only then can static.NET analysis resume. This is a static → dynamic → static cycle.
The analysis recovered the payload using two independent methods, a pe-sieve memory dump and a live dnSpy attach to the running hollowed process. Their value is not simply having a spare tool. Independent recovery provides a basis for mutual verification that the extracted image is complete and unaltered.
The recovered assembly is name-obfuscated.NET, so even after removing the native wrapper, some method names give no hint of what they do. It does restore the correct toolchain. de4dot can now operate on the recovered assembly, unlike the original loader, because the input is finally managed code. The file format changed. The tool did not suddenly learn better manners.
The C2 configuration is still encrypted inside an assembly resource, with no plaintext string to read. Decrypting that resource in a controlled static environment is the step that yields the actual C2 address. Recovery alone is not configuration extraction. With the methods now in view, analysts can link credential access, file discovery, and network functions to what they saw during execution. This closes the evidential loop by linking what the loader suggested, what the process did, and what the recovered payload contains.
What the recovered payload's behavior maps to in MITRE ATT&CK and in live log sources
Process hollowing into RegSvcs.exe maps to MITRE ATT&CK T1055.012, Process Hollowing. The useful defensive context is the transfer from the brief-lived parent to the signed utility. Analysts can start with Sysmon or EDR process records to check command lines and the context in which the process ran. Memory inspection shows the code inside the host. A process name alone cannot describe the full event, and a trusted signature does not resolve what was injected.
The ICMP checks map to T1016.001, Internet Connection Discovery. The lab’s network capture ties that technique to echo requests directed at 8.8.8.8, 1.1.1.1, and 1.0.0.1. Those addresses describe the observed connectivity checks, which are separate from the recovered C2 destination. The distinction prevents a misleading IOC handoff. Likewise, the TLS traffic to api.ipify.org supplies public-IP geolocation context without replacing the separate task of extracting the encrypted C2 address.
Browser-credential theft involving CredEnumerateW and CryptUnprotectData maps to T1555.003, Credentials from Web Browsers, in the analysis. File enumeration for wallets and FTP configurations maps to T1083, File and Directory Discovery. These mappings give the recovered methods a defensive vocabulary. For triage, the lesson is to connect relevant endpoint evidence to those behaviors instead of treating an ATT&CK label as proof that a particular event occurred.
Where Sysmon or EDR supplies the full command line, the triage sequence is to check for an obfuscated PowerShell cradle or a path inside a temporary directory. The binary hash then supports an immediate VirusTotal lookup and a search across the environment. Scope changes the interpretation of that finding. The same hash appearing on multiple workstations in the same hour indicates a campaign.
Splunk’s Security Research team maintains a RedLine analytics story, updated May 2026, with detections for associated file writes, screen capture, registry modification, and data collection. Those detections are implemented as searches in Splunk Enterprise Security, Splunk Enterprise, and Splunk Cloud. Their scope extends beyond identifying the outer loader. The recovered code and runtime trace show why the stealer’s activity calls for those detections. The analytical output becomes useful to a SOC when it identifies both the behavior and the evidence needed to investigate it.
Why the three-phase cycle matters beyond this single sample
For a packed loader hiding a managed payload, the failure of managed tooling can identify the boundary that the next phase must cross. It is not a verdict on the sample. Analysts who understand that boundary can approach another variant through capability mapping, controlled execution, and memory recovery without assuming that the first unreadable file ends the investigation.
That approach also changes where detection can act. Because RedLine has no persistence and exfiltration is fast, credentials may already be on their way out when a traditional alert fires. Process hollowing and anomalous API patterns offer earlier behavioral opportunities than a signature match against the outer loader. Memory scanning can find code that signature-based controls miss. An executable spawning multiple copies of itself and then a signed.NET system utility is anomalous, even though the final host is genuinely Microsoft-signed and can pass signature-based controls.
For security vendors and MSSPs, the lesson is to build analysis capability that reaches the recovered payload. Original findings from memory-recovered code support credible threat intelligence, practitioner trust, and press coverage. Recycled reports cannot substitute for that evidence. The durable advantage is not knowing one RedLine hash or recognizing one wrapper, but understanding how to get past the wrapper when the next sample arrives wearing a different coat.


