Summary
On a live anti-cheat check, capture volatile memory before you touch the registry or
disk. In a controlled lab reconstruction of a COM-based bypass, the sample registered
a temporary COM server under custom CLSIDs, activated it through
rundll32.exe, then deleted its own registration keys. A registry-first or
disk-first triage would have found nothing.
The registration survived anyway. The registry hive pages were still resident in RAM,
so a kernel memory dump taken before any registry browsing recovered the deleted CLSID
keys, the payload path they pointed to, and the activation evidence. The on-disk and
live-registry views were already empty by then.
The takeaway is an ordering rule, not a new tool: on a live check, memory comes first.
Self-deleting artifacts are an anti-forensics measure aimed squarely at responders who
reach for the registry editor before the memory acquisition tool.
Background: COM and CLSID Execution, and Why Self-Deletion Beats Disk-First Triage
Windows COM resolves a component by its class identifier (CLSID), a GUID the system
looks up in the registry to find the code that implements it. A class entry can point
at an in-process DLL (InprocServer32) or an out-of-process executable
(LocalServer32). Crucially, a class can be registered under
HKCU\Software\Classes\CLSID\{GUID}, which lives in the user's own hive and
needs no administrator rights. Because the per-user hive takes precedence over the
machine-wide one, the current user's view can also shadow an existing class that a
legitimate application already loads.
Once a class resolves, several built-in Windows components will activate it. The
relevant one here is rundll32.exe, which can be asked to start a
registered COM server. From a defender's standpoint the mechanics matter less than the
shape of the evidence: a rundll32.exe invocation referencing a GUID, a
short-lived class registration under a user's CLSID tree, and a server process spun up
by the COM runtime. These map to MITRE ATT&CK T1218.011 (Rundll32) and T1546.015
(Component Object Model hijacking).
The anti-forensics step is what defeats conventional triage. After the payload has run,
the sample removes its own registration keys, which is ATT&CK T1070, indicator
removal. This is deliberately timed against how responders work. A live PC check often
starts at the registry: open the user's CLSID tree, look for suspicious server entries,
export what is there. By the time an analyst reaches that point, the keys are gone. The
disk view is equally empty if the payload file was deleted too. Nothing in the on-disk
or live-registry state testifies that anything happened.
What the self-deletion cannot reach quickly is memory. Registry hives are backed by
pages in RAM, and a class that was registered, read by the COM runtime, and then
deleted may still exist as resident hive pages well after the on-disk key is gone. The
same holds for the process and module artifacts of the server that briefly ran. That
gap between what is erased on disk and what persists in memory is the entire basis for
the acquisition order described below.
Methodology: Lab Setup and Acquisition Order
The work was done in an isolated virtual machine with no production data and no network
path to live systems. We reconstructed the behavior of a known COM-based bypass only to
the degree needed to study the artifacts it leaves and the order in which they
disappear. We did not optimize, harden, or extend the evasion. The goal was defensive
characterization, and nothing in this write-up is a reproduction recipe.
The single rule the methodology is built around is acquisition order: on a live check,
volatile state is captured first, before any action that would alter it. Browsing the
registry, launching tools, or letting the sample's own cleanup run further are all
changes to the machine. The sequence we followed was:
-
Memory first. Capture volatile state before touching the registry or
disk. We used a kernel live dump, a Windows mechanism that captures kernel memory
without crashing the machine, triggered through WinDbg (
.dump /ka),
NotMyFault, or a live-dump helper. A full RAM capture (DumpIt, Magnet RAM Capture,
Belkasoft) is the alternative when a complete image is wanted. For a single suspect
process, a user-mode process dump from System Informer or Process Explorer is useful,
but it is not a substitute for full kernel memory.
-
Registry second. Only after the dump is secured do we examine the
live registry, including the user's CLSID tree. At this stage the self-deleted keys
were already absent from the live view, which is exactly the point.
-
Disk and supporting artifacts last. Prefetch, event logs, and
timeline sources are collected after the volatile capture, since they are
comparatively stable.
Analysis of the memory image was done offline with Volatility-class tooling: process
list, unlinked processes, injected code, loaded modules, resident registry hives, and
network connections. The deleted COM registration was recovered from the hive pages
still present in the dump, then cross-checked against prefetch and event-log evidence
to build a timeline. Separating acquisition on the live host from analysis on the image
keeps the live machine from being disturbed any more than the first dump requires.
Findings: Recovered From Memory, Absent on Disk
The central result is a contradiction between two views of the same machine. The live
registry and the on-disk file system showed no COM bypass. The memory image, taken
first, held the whole thing.
COM class registration, recovered from the dump. The resident registry
hive pages contained a class registered under the user's CLSID tree, with a server
entry (LocalServer32 or InprocServer32) pointing at the
payload. These keys had already been deleted from the live registry by the time it was
examined. They existed, at the point of analysis, only in memory.
Activation evidence: rundll32.exe referencing custom CLSIDs.
Two custom GUIDs appeared as the classes the bypass used, one of them seen launched as
a local server:
| Artifact | Value | Where it was found |
| CLSID |
722b3793-5367-4446-b6bb-db89b05c1f24 |
Recovered COM registration; rundll32 reference |
| CLSID |
22d8c27b-47a1-48d1-ad08-7da7abd79617 |
Seen launched as -localserver 22d8c27b-... |
Prefetch. RUNDLL32.EXE prefetch entries gave execution
times for the activations and, in the general case, list referenced files that can
point back to the payload DLL.
Timeline correlation. The artifacts lined up into a tight sequence: the
bypass activity at 23:18, followed by the game client launch at 23:20. The two-minute
gap is the kind of correlation that turns a set of isolated indicators into a defensible
account of what happened.
Supporting system-log evidence. COM and DCOM activation errors (System
log events such as 10016 and 10010) are often left behind when a server dies or its
security identifier is no longer resolvable, residue that can outlast the registration
itself.
Taken together, the dump reconstructed a bypass that had erased its own disk and
registry footprint. Without the memory-first capture, the most likely outcome of this
investigation would have been "no evidence found."
Detection and Response Guidance
For incident responders, the ordering rule comes first. On any live check where
self-deletion is plausible, take a memory or kernel dump before you open the registry.
Everything else is recoverable later; volatile state is not. Treat the registry editor
as a destructive tool in this context, because reaching for it first is exactly what the
anti-forensics step is built to exploit.
Hunt the activation, not just the registration. The registration can
vanish, but execution leaves wider residue. Useful signals:
-
rundll32.exe command lines containing a GUID or
-localserver / -sta, in Sysmon Event ID 1, Security 4688,
and prefetch (RUNDLL32.EXE-*.pf).
-
Sysmon Event ID 12, 13, and 14 showing a class registered under a
CLSID\{...}\LocalServer32 (or InprocServer32) key and then
deleted within minutes. The create-then-delete pattern is itself the tell.
-
System-log DCOM errors (10016 and 10010) that linger after a server dies or its SID
becomes unresolvable.
- Registry LastWrite on a surviving CLSID key, when one is still present.
A quick hunt for live or lightly cleaned hosts. This read-only sweep
lists per-user COM server registrations so an analyst can eyeball unexpected ones. It
finds only what is still present, so it is a complement to the memory capture, not a
replacement for it.
Get-ChildItem HKCU:\Software\Classes\CLSID -ErrorAction SilentlyContinue |
ForEach-Object { Get-ItemProperty "$($_.PSPath)\*Server32" -ErrorAction SilentlyContinue } |
Select-Object PSParentPath, '(default)'
For anti-cheat engineers. If a client-side check reads the CLSID tree
to look for tampering, assume a motivated bypass will register, activate, and delete
faster than a periodic scan will observe. Favor capturing volatile state at the moment
of the check over a registry read that a sample can win the race against, and log
rundll32-plus-GUID activations centrally so the execution trail survives even when the
registration does not. The create-then-delete timing and the DCOM error residue are both
more durable than the key itself.
Preserve the timeline. The strongest part of the lab result was not any
single artifact but the correlation across memory, prefetch, and event logs into a
minute-level sequence. Collect all three so recovered indicators can be placed in order
rather than listed in isolation.
Mapped techniques for rule-writing and reporting: T1218.011 (Rundll32), T1546.015 (COM
hijacking), T1070 (Indicator removal).
Limitations
Memory-first does not mean memory-always. RAM is volatile. Pages that
hold a deleted hive entry can be reused by the operating system at any time, so the
window to recover a self-deleted artifact narrows the longer the machine runs after the
event. A dump taken hours later may hold nothing. The method recovers what is still
resident; it cannot recover what has already been overwritten.
It only catches techniques that leave something in memory. A bypass
that never registers a class, whether through pure in-memory execution with no CLSID
footprint or by living entirely inside another process, has less for a hive-page search
to recover. The recovery described here depends on the technique having touched the
registry at all. Techniques that avoid that step avoid this detection.
Kernel dumps have scope limits. A kernel live dump captures kernel
memory, which is enough for resident hive pages and kernel structures, but it is not a
full physical image of everything a user-mode-only artifact might hold. Where user-space
detail matters, a full RAM capture or a targeted process dump is the better instrument,
with the corresponding trade-offs in size and acquisition time.
This is a single lab reconstruction. The findings come from one
controlled sample in an isolated VM, studied to characterize its artifacts rather than
drawn from a broad corpus. The specific GUIDs, timings, and event residue are
illustrative of this case and should be treated as representative behavior to hunt for,
not as fixed, universal indicators. A real sample will use different GUIDs and different
timing.
Detections carry false positives. Legitimate software registers COM
servers and uses rundll32.exe routinely. The signals above narrow the field;
they do not convict on their own. Corroboration across memory, prefetch, and event logs,
together with a defensible timeline, is what separates a finding from a coincidence,
particularly where the output feeds an enforcement or ban decision.