Hunting COM hijacking and CLSID abuse with Tanium
Hunting COM hijacking and CLSID abuse with Tanium
Validated against Core Content 1.16.221 / Threat Response 4.24.170 / Recorder Content 3.22.49 / Interact 3.11.0
COM hijacking is a four-line registry write that survives reboot, needs no administrative rights, and executes inside a process Windows started for its own reasons. The mechanism is simple enough to explain in a paragraph. Finding it across a fleet takes a specific sequence of questions, because registry state tells you the trap is set and only event history tells you who set it.
This is the walkthrough: how CLSID resolution works, how to pick the identifiers worth your time, and which questions answer what. It assumes you know your way around Tanium sensors and result grids. The campaigns cited throughout are from the last eighteen months, and they all write to the same place for the same reason.
Key takeaways
-
A registration under
HKEY_CURRENT_USER\SOFTWARE\Classes\CLSIDtakes precedence over the same CLSID underHKEY_LOCAL_MACHINE. An unprivileged user can therefore redirect an in-process COM load, and that precedence is the whole technique (T1546.015). -
The subkey identifies the hijack.
InprocServer32loads a DLL into the calling process and is what every campaign here uses;LocalServer32launches a separate process;TreatAsredirects activation to a second CLSID so the hijacked one looks clean. -
Attackers pick a CLSID something already activates. Argamal took the object behind a logon-triggered scheduled task, Howler Cell took
MMDeviceEnumerator, and APT28 forced the load by restartingexplorer.exesixty seconds after writing the key. -
The TypeLib variant redirects
HKCU\Software\Classes\TypeLib\{GUID}to ascript:moniker, so the payload is a remote scriptlet and there is no DLL on disk to hash. One GUID,{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}, carries three separate campaigns since April 2025. -
Two questions establish the finding: read the same CLSID from HKLM and from HKCU and compare. A per-user registration shadowing a machine-wide one is the single highest-value signal in this hunt, and it takes seconds to check fleet-wide.
-
Tanium reads current registry state directly from the endpoint, so no collection has to have been configured in advance for the persistence half of this hunt to work.
-
Trace Registry Keys or Valuesanswers the question registry state cannot: which process wrote the key, under which account, and when. That history is already on the endpoint, so a hunt started today can look backwards. -
Index - File Detailscloses the loop by hash. StackSHA256 Hashacross the fleet and a payload present on one endpoint separates itself from ordinary software, which filenames alone will never do.
Prerequisites
|
Requirement |
Detail |
||
|
Platform |
Windows. COM is a Windows technique and the registry sensors used here are Windows sensors. |
||
|
Content |
Core Content for the registry sensors, Threat Response for the |
||
|
Module |
Tanium Threat Response, with a Recorder configuration capturing registry and process events. |
||
|
RBAC |
The platform |
||
|
Recorder lookback |
The Recorder database defaults to 1 GB and 90 days, per Troubleshooting Threat Response. Whichever limit comes first sets how far back Step 4 can see. |
Out of scope: macOS and Linux persistence, and authoring a Threat Response Signal for this behavior.
How CLSID resolution works
A CLSID is a 128-bit identifier for a registered COM component. When code asks for a COM object by CLSID, Windows resolves the identifier through the registry to find the DLL or executable that implements it, then loads it. HKEY_CLASSES_ROOT is a merged view of the per-user and machine-wide class registrations, and the per-user side wins.
CLSID resolution order: the per-user hive is checked first and wins if a registration exists there.
That is the entire hijack. An attacker who can write to their own hive adds HKCU\SOFTWARE\Classes\CLSID\{GUID}\InprocServer32 with a (Default) value pointing at a DLL they control. The next process to activate that CLSID loads the attacker's DLL, in-process, under whatever identity and reputation the host process already has.
The pattern is not theoretical and it is not rare. In February 2026, Trellix documented APT28 hijacking {D9144DCD-E998-4ECA-AB6A-DCD83CCBA16D} under HKCU to load EhStoreShell.dll from %PROGRAMDATA%\USOPublic\Data\User\, as the persistence half of a chain exploiting CVE-2026-21509 (Trellix, 4 February 2026). The same actor returned in March with a different CLSID, {68DDBB56-9D1D-4FD9-89C5-C0DA2A625392} loading adwapi64.dll, against Ukrainian defense supply-chain targets (Trend Micro, 26 March 2026). Head Mare used {0340F119-A598-4ed9-B0AC-6F6A12D3E755} to load a DLL masquerading as a Universal CRT component out of the TrueConf client directory (Kaspersky ICS-CERT, 12 August 2026). Different actors, different payloads, same four-line write.
The subkey under the CLSID decides how the component runs, and which subkey is present tells you what kind of hijack you are looking at.
|
Subkey |
What it does |
Why an attacker wants it |
|
|
|
Names a DLL loaded into the calling process |
In-process execution inside a trusted host. The primary target, and the one every campaign cited here uses. |
|
|
|
Names an executable launched as an out-of-process COM server |
Execution as a separate process, easier to spot but still proxied through COM activation |
|
|
|
Custom handler DLL for object embedding |
Less-trodden path, correspondingly less-monitored |
|
|
|
Redirects activation of this CLSID to a different CLSID |
Indirection: the hijacked CLSID looks clean, the redirect target carries the payload |
|
|
|
Human-readable alias |
Useful to you, during investigation, for working out what the CLSID was supposed to be |
Which CLSID, and what makes it activate
A hijack is only persistence if something activates the CLSID. Attackers pick their target for that reason, and the choice tells you where to look.
Some pick a CLSID that a logon-time component already touches. Argamal RAT hijacked {B210D694-C8DF-490D-9576-9E20CDBC20BD}, the COM object behind the \Microsoft\Windows\WindowsColorSystem\Calibration Loader scheduled task, which fires when the user signs in (Securelist, 3 June 2026). The job-offer chain Cyderes tracks as Howler Cell hijacked {BCDE0395-E52F-467C-8E3D-C4579291692E}, which is MMDeviceEnumerator, registering AudioSes.dll from its own working directory (Cyderes, 10 September 2026).
Others force the activation rather than wait for it. APT28's chain registered the CLSID and then created a hidden scheduled task named OneDriveHealth that fired sixty seconds later, terminated explorer.exe, relaunched it so the new process would resolve the hijacked CLSID, and deleted itself. That sequence is a detection opportunity the registry write alone does not give you: a registry SetValue against a CLSID key, followed within a minute or two by explorer.exe terminating and restarting on the same endpoint.
Two of these campaigns also show that the COM hijack is rarely the only persistence present. Howler Cell paired it with a permanent WMI event subscription named FontCacheWorker and four scheduled tasks created by driving the Task Scheduler COM interface directly, so no schtasks.exe ever ran, plus mirrored staging directories that rebuild each other when one is deleted. Finding the CLSID write is the start of the scoping job, not the end of it.
The related technique is direct COM activation, T1559.001, where a signed Microsoft binary activates a CLSID on the attacker's behalf: rundll32.exe -sta {GUID}, rundll32.exe shell32.dll,SHCreateLocalServerRunDll {GUID}, or verclsid.exe /S /C {CLSID}. verclsid.exe exists to validate shell extensions, which means resolving and loading the registered component is its job. Detection for both halves follows below: registry state for persistence, Recorder events for activation.
Choosing which CLSIDs to hunt
Every query below takes a CLSID as a parameter. {GUID} in those examples is a placeholder you replace with a real identifier, braces included, in the form {BCDE0395-E52F-467C-8E3D-C4579291692E}. There are roughly ten thousand CLSIDs registered on a stock Windows install, so the first question is not how to query one. It is which ones are worth your time.
Four ways to build that list, cheapest first.
Take them from threat intelligence. The campaigns above name theirs, and a reported CLSID is the highest-confidence starting point you will get. From the reports cited here: {D9144DCD-E998-4ECA-AB6A-DCD83CCBA16D} and {68DDBB56-9D1D-4FD9-89C5-C0DA2A625392} (APT28), {0340F119-A598-4ed9-B0AC-6F6A12D3E755} (Head Mare), {BCDE0395-E52F-467C-8E3D-C4579291692E} (Howler Cell), and {B210D694-C8DF-490D-9576-9E20CDBC20BD} (Argamal). Those five are a reasonable standing watchlist, and each takes one question to check.
Find the CLSIDs something is guaranteed to activate. A hijack only executes if something resolves the CLSID, so the useful targets are the ones already wired into a trigger. Scheduled tasks with a ComHandler action are the clearest case: the task names a CLSID and the Task Scheduler activates it on schedule, which is exactly the relationship Argamal exploited through the Calibration Loader task. The Scheduled Tasks sensor parses each task's Actions element, so a ComHandler task's class identifier appears in the Command column:
Get Scheduled Tasks and Computer Name from all machines with Is Windows equals True
Stack on Command and look for rows carrying a brace-delimited GUID rather than an executable path. Those are the COM-activated tasks in your environment, and they are a target list nobody had to publish for you.
Shell extension CLSIDs are the other reliable category, because explorer.exe resolves them at logon and on folder navigation. That is the population verclsid.exe exists to validate, and it is why explorer.exe is the host process in most of the campaigns here.
Resolve a candidate before you spend time on it. A bare GUID tells you nothing about whether a registration is plausible. The CLSID key's own default value usually carries a human-readable name, which is how you learn that {BCDE0395-...} is MMDeviceEnumerator rather than something an attacker invented:
Get "Registry Value Data"["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{GUID}","(Default)"] from all machines with "Is Windows" equals "True"
Data holds the friendly name. A CLSID with a legitimate machine-wide name and an unexpected per-user registration is the shape you are hunting; a CLSID with no HKLM registration at all is a different and also interesting shape. The ProgID subkey gives you the same information from another angle.
Or work backwards from the user hive. When you have no candidate at all, enumerate every per-user CLSID registration and compare it against the machine-wide side. That is Step 3, and it is the only one of these four approaches that will find a CLSID nobody has reported yet.
Whichever route you take, the triage logic is the same and it is the subject of Step 1: a CLSID registered in both hives, where the per-user copy wins, is worth reading. A CLSID registered only per-user is worth reading sooner.
Step 1: compare the two hives
Ask each hive separately and read the pair together. The machine-wide side:
Get "Registry Key Exists"["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{GUID}"] from all machines with "Is Windows" equals "True"
And the user side:
Get "Registry Key Exists"["HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{GUID}"] from all machines with "Is Windows" equals "True"
Two questions, seconds apart, and the combination is what makes the finding.
|
HKCU present |
HKLM present |
Assessment |
|
|
No |
Yes |
Expected. Machine-wide registration, no per-user shadow. |
|
|
Yes |
Yes |
Suspicious. The per-user entry wins. Read its |
|
|
Yes |
No |
High suspicion. A per-user COM registration with no machine-wide counterpart. |
|
|
No |
No |
Not registered on this endpoint. Nothing to conclude about in-memory or remote activation. |
Every campaign cited above sits in row two or three of that table. MMDeviceEnumerator and the Calibration Loader object both have legitimate machine-wide registrations, so a hijack of either produces the HKCU-and-HKLM pair. That pair is the highest-value single signal in this hunt.
Query HKEY_CLASSES_ROOT instead and you lose the distinction: it is the merged view, so a hit there does not tell you which hive the registration lives in. Ask the two hives separately.
Two things to know about the HKCU question. It treats HKCU and HKEY_CURRENT_USER as HKEY_USERS and walks each loaded user hive, returning on the first match, so the answer is one value per endpoint rather than one per user. For attribution you need Step 2. And because it walks loaded hives, a profile that has not signed in since boot is not represented; that is a scoping fact to carry into your conclusions rather than a gap in the question.
Step 2: read the implementation path
Once a hive comparison flags a CLSID, read the value that names the component. This is where the payload path appears.
Get "Registry Value Data"["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{GUID}\InprocServer32","(Default)"] from all machines with "Is Windows" equals "True"
The unnamed default value is (Default), with the parentheses. The sensor matches that literal, case-insensitively, and converts it to the empty value name the registry uses.
Data is the path and your grouping key. Two columns change meaning with the hive: User is N/A against HKLM but carries the resolved account name against HKCU, which is your attribution, and KeyPath is rewritten to the HKEY_USERS\<SID> form on the HKCU side.
Environment variables arrive expanded. A REG_EXPAND_SZ value is resolved before it reaches the Data column, so APT28's %PROGRAMDATA%\USOPublic\Data\User\EhStoreShell.dll presents as C:\ProgramData\USOPublic\Data\User\EhStoreShell.dll. When you build a watchlist from a threat report, convert the report's variable form to the expanded form first.
Stack on Data, not on the full row. The sensor reports each registry view separately, and endpoints legitimately differ on REG_SZ versus REG_EXPAND_SZ for the same value, so one uniform DLL path can occupy several rows. Grouping on Data collapses them and puts the single-endpoint outlier where you can see it. There is no need to write \WOW6432Node\ into the path; both areas are iterated and Architecture is that iteration showing up in the output.
Step 3: enumerate the subkeys
Subkey enumeration tells you which activation method is registered, which is how you spot a TreatAs redirect or a LocalServer32 on a CLSID that has only ever been in-process.
Get "Registry Key Subkeys"["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{GUID}"] from all machines with "Is Windows" equals "True"
A clean in-process registration shows InprocServer32 and nothing else, across both architectures.
When you have no specific CLSID to chase, enumerate the user hive wholesale:
Get "Registry Key Subkeys"["HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID"] from all machines with "Is Windows" equals "True"
Subkey Name carries each registered GUID and User the account it belongs to, which makes this the one question in the post that can surface a CLSID nobody has reported.
Scope it deliberately. Row count scales with endpoints multiplied by logged-in users multiplied by two architectures, and per-user CLSID registrations are common enough that a fleet-wide run is a triage input rather than an answer. Narrow by computer group first, then compare each HKCU GUID against its HKLM counterpart rather than reading the HKCU list on its own.
Step 4: find out who wrote it, and when
Registry sensors read current state. Event history is what tells you when a key was written and which process wrote it, and the Recorder already holds it, so a hunt starting today can look backwards without anyone having set up a collection for this technique in advance.
Filtering the key path on SOFTWARE\Classes\CLSID, with a week of lookback:
Get "Trace Registry Keys or Values"["1 week","","0","0","100","0","SOFTWARE\Classes\CLSID","","","","",""] and Computer Name from all machines with Is Windows equals True
Three of those twelve parameters shape the result, and all three are worth setting deliberately.
MaxResultsPerHost caps how many events each endpoint returns. For a hunt, set it to 100, the maximum; the default of 1 is tuned for a yes-or-no check rather than an investigation.
MakeStackable chooses between two output shapes. At "1" it omits Endpoint Name, Username, and the timestamps so results collapse into a fleet prevalence view. At "0" you get one row per event with all of them, which is what an investigation needs. Pick per question.
TreatInputAsRegEx governs how every text filter is read, and the semantics are worth internalizing because they are not what most regex habits expect. Matching is case-sensitive, and each expression must match the entire field rather than appearing somewhere within it. So a working substring filter looks like (?i).*verclsid\.exe.*: the (?i) restores case-insensitivity and the .* on each end turns a whole-field match into a substring match. With the flag at "0" the input is a literal substring, which is why KeyPath above is a bare path and the flag stays off.
Operation accepts Create, SetValue, Delete, Rename, and PermissionsChanged. Leaving it blank matches any; narrowing to SetValue is usually what you want for persistence.
Reading the results
The benign baseline for CLSID registry writes is more awkward than the folklore suggests. Representative shapes of normal activity:
|
Operation |
Key |
Process Path |
Value |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Look at the first row. The Google updater registers a LocalServer32 COM server, and the process doing the writing lives under C:\Windows\SystemTemp in a randomly named .tmp directory, with a randomly named executable path. Every heuristic in the usual COM-hijacking playbook fires on it: temp directory, random path component, COM server registration, LocalServer32 write. It is a Chrome update.
So path shape alone cannot carry this detection. What separates the benign rows from a hijack is the combination of hive, subkey, and target. The legitimate writes above are all HKEY_LOCAL_MACHINE, which requires the administrative rights the technique is designed to avoid. Every campaign in this post writes to the user hive.
Prioritize in this order:
-
SetValueagainstHKEY_USERS\<SID>\SOFTWARE\Classes\CLSID\{GUID}\InprocServer32where the same CLSID also exists in HKLM. -
Any
TreatAssubkey creation. -
SetValuenaming a path outsideC:\Windows\System32andC:\Program Files*. Head Mare's payload sat in the TrueConf client directory and Howler Cell's in its own working directory, both of which pass a "not in System32" test and neither of which is a temp path. -
A writing process that is not an installer, updater, or a Windows servicing binary.
-
A CLSID write followed within minutes by
explorer.exeterminating and restarting, which is the forced-reload pattern from the APT28 chain.
Then check the writing process, and check whether the DLL it named exists anywhere else in the fleet.
Step 5: cover the activation half
For direct COM activation, the process-event sensor covers the same ground with the same parameter semantics. A substring filter is a whole-field regex, so TreatInputAsRegEx is "1" here:
Get Trace Executed Processes["unlimited","","1","0","100","0","(?i).*verclsid\.exe.*","","","","",""] and Computer Name from all machines with Is Windows equals True
Note the sensor name is unquoted. Tanium question syntax only requires quotes around a sensor name containing a reserved word, which is why Trace Registry Keys or Values keeps its quotes (or) and Trace Executed Processes does not need them.
explorer.exe is the expected parent: Windows Explorer invokes verclsid.exe to validate shell extensions, and that is the normal population you characterize before anything looks anomalous. An Office application, a script interpreter, or another living-off-the-land binary as the parent is the signal.
For the rundll32.exe activation patterns, filter ProcessPath on (?i).*rundll32\.exe.* and add a CommandLine regex for -sta or SHCreateLocalServerRunDll. rundll32.exe volume is high enough that you should baseline it before treating anything as a finding.
One habit worth keeping when a filtered Trace * question comes back empty: re-run it with the filter removed. If the unfiltered form returns events and the filtered form does not, the pattern is what needs adjusting, and whole-field regex semantics are the usual reason.
Step 6: confirm the DLL
Once a suspicious InprocServer32 path is in hand, pivot to the file: does it exist, where, and what is its hash. Index - File Details answers all three.
It takes 13 parameters, and the ones that matter for this pivot are directoryPath and fileName at positions 2 and 3, limit at position 1, and treatInputAsRegExp at position 10. Set limit above its default of 10 for anything fleet-wide, and set treatInputAsRegExp to 1 if either path filter is a pattern rather than a literal. This sensor sits in the Index content set.
Then stack the SHA256 Hash column. A hash present on one endpoint or a handful is the prevalence signal that separates targeted tooling from ordinary software, and it is the step filenames cannot do for you: Head Mare's payload was named api-ms-win-crt-time-l1-1-0-2.dll and Howler Cell's was AudioSes.dll, both real Windows filenames in plausible locations.
The TypeLib variant, and why Step 6 cannot see it
The registry questions above look at CLSID subkeys. There is a second COM-hijacking family that touches a different key, and none of the questions so far will find it.
A TypeLib registration points at the type library describing a COM component's interfaces. Redirect it and you get code execution when something resolves the library. The key is HKCU\Software\Classes\TypeLib\{GUID}, and the value can be a script: moniker naming a remote scriptlet rather than a local file.
One GUID carries almost all of the observed activity: {EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}. ReliaQuest documented the first in-the-wild use in April 2025, with the full reg add writing a script: URL into \1.1\0\win64 under that GUID (ReliaQuest, 11 April 2025). Fortinet found the same GUID and the same \1.1\0\win64 subkey in a SEO-poisoning campaign delivering Winos, with a conditional twist: the TypeLib hijack was used only when 360Tray.exe was running, and a Startup-folder shortcut was the fallback when it was not (Fortinet, 12 September 2025). In April 2026 the cpuid.com watering hole put a trojanized CPU-Z and HWMonitor in front of more than 150 victims and used the same TypeLib GUID with a .sct scriptlet executed through scrobj.dll (Securelist, 10 April 2026).
Three independent campaigns across eighteen months, one GUID. That is worth a standing check rather than an incident-time one:
Get "Registry Key Exists"["HKEY_CURRENT_USER\SOFTWARE\Classes\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}"] from all machines with "Is Windows" equals "True"
A True here is not automatically malicious, because the GUID has a legitimate registration; what matters is the value underneath it. Read that with Registry Value Data against the \1.1\0\win64 subkey and look at Data for a script: prefix.
A script: moniker means there is no DLL on disk. Step 6 has nothing to hash. The file-prevalence pivot that works on an InprocServer32 hijack does not exist here, which is why the registry value itself has to be the detection. The Securelist writeup includes Sysmon event 13 and Windows Security event 4657 logic for this exact key if you want a second source of coverage alongside the Tanium questions.
One more variant worth knowing, because it looks similar and is not: the RTF exploit in the March 2026 Pawn Storm campaign abused Shell.Explorer.1, CLSID {EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B}, inside an OLE object to force an outbound WebDAV fetch. Note the GUID differs from the TypeLib one by a single character. That is document-borne initial access rather than registry persistence, and no question in this post addresses it.
What this hunt does and does not establish
-
Registry state proves the trap is set, not that it fired. Proving activation means correlating the DLL load into the host process, which is a single-endpoint Recorder investigation rather than a fleet question.
-
Loaded hives only. The registry sensors walk the user hives that are loaded, so a profile that has not signed in is outside the scope of a given run. Factor that into how you phrase a conclusion.
-
Registry reads are point-in-time. The registry sensors carry a 900-second cache, which is immaterial for persistence you are finding weeks later and worth knowing when you are watching something move.
-
Your lookback is your retention. Step 4 reaches as far back as the Recorder database holds, bounded by its configured size and age limits.
TimeRange: "unlimited"means all of what is retained, not more than that. -
CLSID questions do not see TypeLib. The two families touch different keys. Run both.
MITRE's DET0481 detection strategy for COM hijacking makes the same point this walkthrough arrives at from the telemetry side: registry modification correlated with a subsequent DLL load, not registry state on its own.
Next steps
-
Run the TypeLib presence check as a standing question. One GUID covers three campaigns, and the check costs nothing.
-
Enumerate your
ComHandlerscheduled tasks and keep the CLSID list. It is the set an attacker would want, and it is specific to your environment. -
Convert the CLSIDs in this post to the expanded-path form before building a watchlist from them.
-
Baseline
verclsid.exeandrundll32.exeparentage now. The population is what makes an anomaly visible, and you cannot build it during an incident.
Further reading
-
MITRE ATT&CK, T1546.015 Event Triggered Execution: Component Object Model Hijacking
-
Microsoft Learn, CLSID Key (HKLM) and InprocServer32
-
Tanium, Configuring recorded events
-
Trellix, SecondSight Threat Hunting Report, September 2026, for the condensed hunt version of the APT28 chain
About the author
Ryan Creecy is a Threat Hunter at Tanium, where he builds detection content and runs hunt engagements across customer environments. He develops the HuntIQ tooling the hunting team uses to track engagement state and detection coverage.