Abstract
Why will a legitimately signed Windows program load an attacker’s library placed in the same folder, and why has that trick served espionage groups and commodity malware for more than a decade? When an unpackaged desktop program asks for a DLL by name only, and none of the loader’s earlier checks (such as redirection, manifests or Known DLLs) settles the name, Windows’ documented default search looks in the executable’s own folder before System32 and loads the first match.1 An ordinary load does not check who signed that file.2 An attacker who ships a signed host executable with a malicious DLL can therefore get code running inside a process that people and reputation-weighted tools may trust; an allowlist admits it only if its rules allow the host and do not separately refuse the DLL. Microsoft’s 2018 triage guidance treats planting in the application directory as a defence-in-depth issue for future versions, not a security update, and a November 2026 snapshot of the HijackLibs catalogue holds more than 2,400 reported pairings of host and DLL.3 Layered controls help: restricted search paths, App Control policies that validate DLLs, signature-based process mitigations, and detection of signed hosts running from user-writable folders.
A signed program and a stranger’s library
In November 2026 Malwarebytes described a loader called OXLoader that arrived as ZIP files dressed up as copyright complaints, and as cracked-software “activators” hosted on GitLab. Inside the archives were legitimate executables: a copy of Microsoft Word renamed with a double extension such as evidence_of_violation.docx.exe, and an executable from Take-Two Interactive Software. Beside each one sat a library with the name that executable expects to find, msvcr100.dll in one case, a Unity UnityPlayer DLL in another, and WindowsCodecs.dll in a third. When the victim ran the familiar program, Windows loaded the attacker’s DLL into it, and the DLL decrypted and launched the next stage. Malwarebytes reported OXLoader delivering Remcos, PureRAT, Lunex Stealer, Hermes and other families.4 Elastic Security Labs described the loader in June 2026, saying it had found no prior public reporting on the family, in a campaign that used Google Ads impersonating Node.js, a batch script and a loader disguised as the API Monitor tool, delivering an infostealer it calls CASTLESTEALER.5 Malwarebytes documented the DLL-hijacking delivery variants in November.
In the chains Malwarebytes describes, nothing depends on a software vulnerability in the usual sense. No memory is corrupted, and the attacker’s DLL runs inside the host process, in that process’s security context. Windows does what its documentation says it will do for a name-only load: it looks in the executable’s own folder before the system folder.1 Other variants of the same behaviour are treated as vulnerabilities. Microsoft’s 2018 triage guidance rates an associated application loading a DLL from an untrusted current working directory, such as a remote share holding a document, as Important severity and patches it.2 The technique has several names, among them DLL sideloading, DLL search order hijacking, DLL planting, binary planting and DLL preloading. Microsoft’s own security advisory on “binary planting” dates from August 2010.6 Mandiant’s red team wrote in January 2020 that its company was “one of the first to discover the DLL side-loading technique along with DLL search order hijacking back in 2010”, and that “there are still plenty of signed executables vulnerable to this”.7
How Windows finds a DLL
Two moments of loading
A Windows program can bind to a DLL at two different moments. The first is load time. The executable’s import table lists DLLs by name, and the loader resolves them before any of the program’s own code runs. The second is run time. The program calls LoadLibrary or LoadLibraryEx with a name or a path whenever it decides it needs a library. A third arrangement lies between the two. With delay loading, the linker records an import, but a helper function “loads the DLL on demand at runtime by calling LoadLibrary and GetProcAddress” the first time the program calls into it.8
The distinction matters for defence. A program can change its own search policy at run time, for example with SetDefaultDllDirectories, but that call runs after the import table has already been resolved. Microsoft’s Security Response Center (MSRC) said as much in 2018: in application-directory cases, explicit loads “can be tweaked but the implicit loads (dependent DLLs) are strictly by-design as the path can’t be controlled”.2 A delay-loaded library is resolved through LoadLibrary when it is first used, so whatever search policy the process has set by that point applies to it. Since Visual Studio 2017 a linker option, /DEPENDENTLOADFLAG, lets a developer set the search flags for statically linked imports. It is honoured from Windows 10 version 1607 (RS1) onward and ignored on older systems.9
The standard search order
When a program asks for a DLL by name only, Microsoft documents the order in which an unpackaged desktop application looks for it. With safe DLL search mode on, which is the default, the order is as follows:1
- DLL redirection.
- API sets.
- Side-by-side (SxS) manifest redirection.
- The loaded-module list: a module with the same name that is already in memory, “no matter which folder it was loaded from”.
- Known DLLs.
- On Windows 11 version 21H2 and later, the package dependency graph of the process.
- The folder from which the application loaded.
- The system folder (System32).
- The 16-bit system folder.
- The Windows folder.
- The current folder.
- The directories listed in the
PATHenvironment variable.
With safe DLL search mode disabled, “the current folder moves from position 11 to position 8”, so it is searched immediately after the application folder.1 Microsoft says safe search mode has been on by default since Windows XP Service Pack 2. The mode is controlled by the SafeDllSearchMode registry value, and calling SetDllDirectory with a path “effectively disables” it while that path is in the search list.101
Two features of this list explain most of the abuse. The application’s own folder comes seventh, ahead of System32. That folder is where the executable file sits, which is a different thing from the current working directory (step 11): the process’s current directory at the moment the DLL is resolved, which a program can change while it runs.11 A program launched by file association typically starts with the folder of the opened file as its current directory, so a document opened from a share can put an attacker-controlled folder in the search.2 And when a DLL has dependencies, Microsoft states that “the system searches for the dependent DLLs as if they were loaded by using only their module names. That’s true even if the first DLL was loaded by specifying a full path.”1 A careful program can still have its dependencies resolved by name.
What comes before the folders
The first five steps can settle a name before the ordinary folder search. They apply in the documented order, so each matters only for a load that earlier steps have not already resolved.
Known DLLs. If a name is on the list of known DLLs for the running version of Windows, the system uses its own copy and that copy’s dependencies; Microsoft points to the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\KnownDLLs for the list on a given system.1 When a load reaches this step and the name is on the list, the system copy is used whatever file of the same name sits in the application folder; DLL redirection, which comes earlier, can still intervene. The list differs between Windows versions, so whether a particular name is protected has to be checked on the build in question.
API sets. Names such as api-ms-win-… are not files. Microsoft says “an API set name identifies a contract, not a file”, which the loader resolves through a schema on the device to the DLL that hosts the implementation.12 This step precedes the folder search in the documented order.
SxS manifests. An application manifest can bind the program to a specific side-by-side assembly in the WinSxS store. In 2014 Mandiant’s Amanda Stewart traced the early abuse she called “DLL Side-Loading” to “the Windows side-by-side (WinSxS) assembly feature”. She described a 2013 targeted attack that put “a spoofed, malicious DLL file in a Windows’ WinSxS directory so that the operating system loaded the spoofed DLL instead of the legitimate file”.13
DLL redirection. For unpackaged apps, a redirection file named after the executable with .local appended (for example Editor.exe.local) and placed in the executable’s folder changes loading behaviour: “its presence alone causes the DLL loader to check the executable’s folder first whenever it loads a DLL”, and this applies “regardless of the path specified to LoadLibrary or LoadLibraryEx”. That description applies to apps without an application manifest: Microsoft says redirection is respected for an app that has one only when the optional machine-wide registry value DevOverrideEnable is set (“even if the app has an application manifest”). Packaged apps use a different layout, a folder under microsoft.system.package.metadata\application.local in the package.14 To an attacker it is a way to defeat a program that uses full paths.
What the loader does not check
The loader checks the name, the architecture and whether the file is a valid image. For an ordinary user-mode load it does not ask who signed the DLL, or whether it is signed at all. The MSRC triage note from 2018 puts it plainly: planting gives “very easy code execution since the DllMain() gets called immediately on loading the DLL”, and “attackers don’t have to worry about bypassing any mitigation if the application allows loading non-signed binaries”.2 Check Point’s summary of the import-table model is that the operating system applies “the standard search order and the loading of the first library that has the correct name, without any further verification”.15
Signature checks do exist, but only on request. LoadLibraryEx accepts LOAD_LIBRARY_REQUIRE_SIGNED_TARGET, which “specifies that the digital signature of the binary image must be checked at load time” (Windows 8.1 and later).16 Without an opt-in of this kind, the trust attached to an executable’s signature does not extend to the libraries it loads.
Worked example: winsat.exe out of place
In June 2020 Wietze Beukema published a survey of the executables in C:\Windows\System32 on Windows 10 version 1909. He used Process Monitor to record which DLLs each copied executable looked for in a user-writable folder, and then counted only pairs where a test DLL was confirmed to load. One of his illustrations was winsat.exe, the Windows System Assessment Tool, which, copied into a user’s Downloads folder, looked for dxgi.dll there; his later demonstration showed a test dxgi.dll loaded by winsat.exe from a folder he controlled.17 HijackLibs lists winsat.exe among the executables that sideload dxgi.dll and gives the DLL’s expected locations as System32 and SysWOW64.18
Microsoft’s documented order explains why the copy behaves differently from the original.1 For a name-only load that earlier steps do not settle, the first folder searched is the application folder. Run from System32, the application folder and the system folder are the same place, so the genuine dxgi.dll is found. Run from Downloads, the application folder is Downloads, and a file named dxgi.dll there is found first; the System32 copy is never reached. The published finding does not record which of the earlier resolution steps were individually checked, only that the copy in the writable folder was loaded on that build.
Three defensive implications follow. A Windows binary running from a user folder is itself worth investigating. Microsoft’s PreferSystem32Images mitigation, which makes the loader search System32 before the application folder, addresses this case for DLL names that exist in System32.19 And the result belongs to a specific 2020 build; HijackLibs entries are reports, and current applicability has to be tested.
Beukema also reported that on that build about 35 of the vulnerable System32 executables were marked for auto-elevation, and that for a user who was already a local administrator, under the default UAC setting, combining them with a previously published trusted-directory trick ran code elevated without a prompt; setting UAC to “Always notify” prevented it.17 This is same-desktop elevation for an administrator, which Microsoft does not treat as a security boundary, as Check Point notes,15 not elevation from a standard user. For the wider picture, see After the shell: privilege escalation and the kernel as the last boundary.
A taxonomy of hijacks
How ATT&CK files it
MITRE ATT&CK has changed how it groups this behaviour. In the April 2025 release (v17), MITRE “revoked Hijack Execution Flow: DLL Side-Loading and merged it into Hijack Execution Flow: DLL, which itself was renamed from Hijack Execution Flow: DLL Search Order Hijacking”, to reflect “the previously overlapping scope of the two sub-techniques and frequent confusion between them”.20
The current sub-technique, T1574.001 “Hijack Execution Flow: DLL” (version 3.0, last modified 4 November 2026), lists five forms: DLL sideloading, DLL search order hijacking, DLL redirection, phantom DLL hijacking and DLL substitution. It also mentions remote DLL hijacking, where a program “sets its current directory to a remote location, such as a Web share”. Its description of sideloading reads: “Side-loading positions both the victim application and malicious payload(s) alongside each other.” It notes that attackers may chain sideloads, splitting loader functions across several DLLs, and lists 122 procedure examples, from APT41 and Mustang Panda to QakBot and Brute Ratel C4.21 On what ATT&CK’s catalogue of examples can and cannot tell you, see MITRE ATT&CK: what the matrix measures, and what it does not.
The variants
Beukema’s 2020 taxonomy remains the clearest practical breakdown. He distinguishes DLL replacement (often combined with proxying), search order hijacking, phantom DLL hijacking, DLL redirection through PATH or .local and manifests, WinSxS replacement, and “relative path DLL hijacking”. In the last of these the attacker copies a legitimate application to a user-writable folder next to the malicious DLL. He calls the version in which the attacker brings the executable along, rather than copying it from the victim’s disk, “bring your own LOLbin”.17 In 2022 he added an environment-variable form. Some programs construct absolute DLL paths from %SYSTEMROOT% or %WINDIR%. If one of those variables is changed for a single new process, the affected program builds its DLL path under a directory the attacker chose, while the executable itself stays where it was installed and no file is moved. On Windows 11 21H2 he confirmed 82 System32 executables and 91 unique DLLs vulnerable to this form.22
Four common variants differ mainly in which loader decision the attacker exploits, what must be written and where. In every case the planted file has to be reachable in the effective search for that load, and the host has to be started by someone with the rights to run it.
| Variant | What the attacker writes | Where it must go | Host executable |
|---|---|---|---|
| Search order hijack | A DLL named like one the host loads | A directory searched before the real DLL’s location (application folder, current folder or a writable PATH entry) | Already installed, runs from its normal place |
| Sideload (relative path, bring your own) | The host executable and a DLL named like one of its dependencies | A folder the attacker can write and from which the host will be run, such as Downloads, AppData, ProgramData or an extracted archive | Copied or shipped by the attacker |
| Phantom DLL | A DLL with the name of one the host requests that is absent from every location searched before the planted copy | A folder in that search, often System32 itself when the attacker has administrative rights | Already installed, often a service |
| Proxy (export forwarding) | A DLL that exports at least the functions the host uses and forwards those calls to the real DLL, plus its own payload | Wherever the hijack variant in use requires | Either; proxying is compatibility behaviour layered on the other three |
Phantom loads are attractive for persistence because the host runs anyway. Palo Alto Networks’ Unit 42 describes the Windows Search service starting SearchIndexer.exe and SearchProtocolHost.exe with SYSTEM privileges, both of which “attempt to load msfte.dll from System32”, a file that does not exist on a default installation. It also describes CatB ransomware writing oci.dll into System32 and restarting the Distributed Transaction Coordinator service, whose msdtc.exe tries to load that missing DLL.23 ATT&CK records Earth Lusca using the same oci.dll path.21
Search order hijacking in the narrow sense needs a writable directory early in the order. Unit 42 notes that Python installers often put their directory on PATH and that the resulting directory can allow “any authenticated user (including unprivileged ones) to write to this location”.23 In 2023 Verdier, Laborde, Kandi and Benzekri pointed to a newer source of such directories: installers that default to user-writable paths instead of Program Files, which needs administrative rights, in order to raise installation success rates.24 The install location does not change how a program searches for DLLs; it changes who can place files in the folders it searches.
Proxying
A malicious DLL that exports nothing usable will often crash the host or show an error, which gives the game away. Beukema found that “a lot of executables will not load such DLLs if procedures or entry points are missing”, and his test DLLs reproduced the exported names of the originals.17 Proxying goes one step further: the exports the host actually uses are forwarded to the genuine DLL so the host keeps working. ATT&CK notes that hijacked programs “may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace”.21 Check Point examined malicious samples and found cruder approaches as well. One fake dbgeng.dll pointed two exports at the same malicious stub. A fake jli.dll pointed almost every export at the payload. A fake version.dll contained the misspelled export name vresion, which Check Point describes as the kind of slip common in proxying.15
Why it has lasted
The host lends its reputation
ATT&CK states the motive directly: adversaries use sideloading “as a means of masking actions they perform under a legitimate, trusted, and potentially elevated system or software process”.21 Check Point’s survey of documented campaigns found attackers favouring “credible-sounding” applications from well-known vendors. Its explanation is that defenders worry more about false positives on widely installed software, and that “the more defenders weigh executable reputation, the more this kind of technique becomes worthwhile”.15 Mandiant’s 2014 account gave an early form of the same argument. In the 2013 case it described, “because the file in-question was white-listed by hash in a public database, AV simply ignores it altogether”.13
Reputation works at several layers. A user who sees Microsoft Word in Task Manager has no reason to worry, and MpCmdRun.exe, the Defender command-line tool, draws less suspicion than an unknown binary. An allowlisting rule written broadly at the publisher level can admit any file from that publisher whose signature validates under the policy, including old versions that load DLLs carelessly; narrower rule levels, such as App Control’s file-and-version publisher rules, admit less.25 Beukema noted that DLL hijacking “in some cases even bypasses application whitelist features such as AppLocker”.17
Everything fits in one folder
Starting a sideloaded payload needs no installer and no administrative rights. The attacker ships a folder, usually inside a ZIP, an ISO or a USB stick, and asks the victim to double-click the familiar-looking program. Persistence, where the attacker wants it, is added separately with a registry value or scheduled task; OXLoader, for example, set a RunOnce value.4 Check Point found that “just over half the surveyed campaigns” in MITRE’s catalogue used the pattern of a benign application and a malicious DLL dropped together.15 Unit 42 found side-loading to be the most common of the hijacking variants in its own telemetry.23 Delivery by container file is covered in more depth in The file is the attack: macros, shortcuts, disk images and the click that remains.
The packaging can also help against static analysis. In several of the cases below the malicious DLL does little more than decrypt a payload kept in a separate data file. In the OXLoader sample Malwarebytes analysed, the shellcode sat encrypted in manifest.json and was decrypted and injected in memory;4 in the LockBit case SentinelLabs describes, the DLL decrypted Cobalt Strike Beacon from an encrypted .log file.26 ATT&CK describes the “loader-for-a-loader” pattern, in which a DLL’s only job is to load another DLL.21
An oversupply of hosts
Any executable that loads at least one DLL by name from its own folder, where no earlier loader step resolves that name, is a potential host. Beukema’s 2020 test found 287 of the 616 executables then present in System32 (613 of which were signed) vulnerable to the relative-path variant, with 263 unique DLLs between them.17 That is about 47 percent of the System32 executables on that build. His results have since been folded into a public catalogue. In the HijackLibs repository as of its last commit before December 2026 (17 November 2026), there are 628 DLL entries and 2,407 host records, each naming an executable reported to load that DLL. Of the DLL entries, 471 (75 percent) give Microsoft as vendor. The host records cover several mechanisms: 1,911 are classed as sideloading, 459 as environment-variable, 20 as phantom and 17 as search-order.3 These are reported pairings that contributors have catalogued, not a census and not 2,407 sideloads confirmed on current Windows, and the vendor field records who wrote the DLL, not who wrote the host executable.
Microsoft-signed hosts are only part of the supply. Mandiant’s red team found new hosts such as Dism.exe with DismCore.dll and a TortoiseSVN utility.7 Check Point’s table of abused hosts includes an NVIDIA helper, the Citrix single sign-on server, a Logitech Bluetooth wizard and Java’s policytool.exe, and notes abandoned software among them, such as java-rmi.exe from the Java 6 runtime, which was removed from later Java versions in 2015.15
The old-version problem is the hardest. A vendor can fix a careless load in the next release, but the vulnerable old build is still signed and still loads its DLL from its own folder. Beukema noted that “attackers will still be able to bring older versions of legitimate/trusted applications that can be exploited”, even if every application started checking its DLLs.17 Signed vulnerable drivers raise a similar problem in the kernel, covered in Killing the guard: vulnerable drivers and the EDR killer trade.
Why code signing does not help
An Authenticode signature on a PE file signs a hash of that file, the Authenticode PE image hash. Microsoft’s PE format specification defines which parts of the image the hash covers and says “it is not possible or desirable to include all image file data in the calculation”.27 Whatever its exact coverage, the signature belongs to one file. It says nothing about the DLLs the program will later load, and the loader does not by default ask for any signature on them.215 An allowlist rule that admits the host says nothing, by itself, about what the host will load from beside it. In an attack that ships the host, the check on the executable works as intended: the executable is genuine and unmodified. The malicious code sits in a different file.
Signed files can also carry or become something other than what was signed. In the 3CX compromise, described below, the file that held the encrypted payload was a d3dcompiler_47.dll that Zscaler reported as showing a valid Microsoft signature, and that Sophos describes as “a DLL with an appended encrypted payload”.2829 The reports do not establish whether the signature covered the appended data, or how a particular verifier or allowlisting policy would have treated the file. In OXLoader, Malwarebytes reports that a legitimate DLL, windows.storage.dll dropped as awindows.storage.dll, carried an additional .text section that “contains the original digital signature while the DLL is on disk”, and that the section’s contents were replaced with decrypted shellcode after the DLL was loaded.4 Malwarebytes does not report how signature verification treated the modified file. In both cases, what a file contained on disk and what ran in memory were different questions.
Case studies
PlugX and the espionage record
PlugX is a long-running example. Malwarebytes describes it as “around since at least 2008”.30 ATT&CK’s entry records PlugX using search order hijacking for installation, using sideloading “to evade anti-virus”, and using “a legitimately signed executable to side-load a malicious payload within a DLL file”, and attributes related procedures to Daggerfly, Mustang Panda and Velvet Ant.21 Unit 42 calls PlugX “predominantly used by various Chinese APT groups”, adding that its binaries circulate widely enough for others to use it. It documents a USB-borne infection in which a shortcut launched 3.exe, which sideloaded the PlugX component Acrobat.dll. The malware then copied itself to C:\ProgramData\AcroBat\AcrobatAey as Acrobat.exe, Acrobat.dll and AcrobatDC.dat, and scheduled itself to run every 30 minutes.23 Those three files, an innocuous host, a loader DLL and a data file, are one example of an arrangement that recurs in later cases, including OXLoader.
The USB-spreading variant became a law-enforcement matter. Sekoia writes that in September 2023 it “successfully took ownership of one of the IP addresses used by the PlugX worm”, a variant associated with Mustang Panda that spreads by infecting flash drives. It describes a later disinfection campaign carried out with the support of the Paris Public Prosecutor’s Office and the French Gendarmerie’s national cyber unit, to which more than twenty countries responded.31 The US Justice Department said on 14 January 2025 that it and the FBI had obtained the first of nine warrants in the Eastern District of Pennsylvania in August 2024, that the last expired on 3 January 2025, and that the court-authorized operation deleted the Mustang Panda version of PlugX from “approximately 4,258 U.S.-based computers and networks”, a remediation of already infected systems.32
Unit 42’s 2024 survey adds a more recent espionage case. In a ToneShell backdoor campaign that Unit 42 links to Stately Taurus, two persistence components (nw.dll and nw_elf.dll) were side-loaded by a password manager’s PwmTower.exe, a networking component (rw32core.dll) by Embarcadero’s resource compiler Brcc32.exe, and a functionality component (secur32.dll) by the Windows binary Consent.exe.23
Commodity crime: Qakbot and a bundled calculator
In July 2022 Cyble described Qakbot emails leading to an ISO image that contained a shortcut, a legitimate calc.exe, a malicious WindowsCodecs.dll and the payload 7533.dll. The shortcut ran the calculator, which loaded the malicious WindowsCodecs.dll from the same folder, and that DLL used regsvr32.exe to run the Qakbot payload.33 ATT&CK lists QakBot as having “the ability to use DLL side-loading for execution”.21 Unit 42 documents Dridex copying legitimate Microsoft executables, such as DeviceEnroller.exe, into randomly named folders beside renamed Dridex DLLs, persisting through Run keys, startup shortcuts or scheduled tasks.23 Unit 42 also describes AsyncRAT phishing aimed mainly at Colombia and Argentina, in which a renamed ESET HTTP server executable loaded a malicious http_dll.dll from the same extracted archive.23 Remote access trojans delivered this way are covered in Remote control, invited or not: RATs, RMM tools and the evidence that tells them apart.
Ransomware affiliates and Windows Defender
In July 2022 SentinelOne researchers Julio Dantas, James Haughom and Julien Reisdorffer described a LockBit operator or affiliate who, after initial access through the Log4j vulnerability on an unpatched VMware Horizon server, used PowerShell to download three files to c:\windows\help\windows\: mpclient.dll, c0000015.log and MpCmdRun.exe. The last of these is the Windows Defender command-line tool. When run, it was used to “side-load a weaponized mpclient.dll, which loads and decrypts Cobalt Strike Beacon from the c0000015.log file”. SentinelLabs had reported in April 2022 that a LockBit affiliate used a similar flow with VMware’s VMwareXferlogs.exe; the reports do not establish that the same people were behind both incidents.26 HijackLibs lists mpclient.dll with Defender executables, including MpCmdRun.exe, as hosts.3
3CX: when the vendor ships the DLL
The 3CX compromise of March 2023 was a supply-chain attack whose last step was a DLL load. Unit 42 reported that on Windows the 3CXDesktopApp MSI installer “extracts several files and runs 3CXDesktopApp.exe, which loads a malicious library file named ffmpeg.dll”. That DLL read a second library, d3dcompiler_47.dll, decrypted part of it with RC4 and ran the result as shellcode.34 Zscaler examined installer version 18.12.416, signed on 13 March 2023, and described the signed 3CXDesktopApp.exe side-loading a backdoored, signed ffmpeg.dll from the application directory.28 Sophos reported several variants of ffmpeg.dll, “including one that was signed by 3CX’s own certificate”, and found that “only the 3CX ffmpeg.dll contains the malicious code”.29 Mandiant later traced the intrusion at 3CX to an earlier supply-chain compromise of Trading Technologies’ X_TRADER software. That compromise also used a benign executable “to side-load one of the malicious DLLs”.35
Strictly, 3CX was not sideloading in the bring-your-own sense. The vendor’s own build and update channel delivered both the host and the malicious DLL to the install folder. It shows the limit of signer-based trust: the installer and host were signed by 3CX, at least one observed loader variant carried 3CX’s own signature, and the data container carried a Microsoft signature in the copy Zscaler examined. A policy that trusts 3CX’s signer would have had no signer-based reason to refuse the 3CX-signed loader variant. ATT&CK files the campaign under T1574.001.21 Inside 3CX itself, Mandiant found that on the Windows build environment the attacker deployed a TAXHAUL launcher and COLDCAT downloader “that persisted by performing DLL search order hijacking through the IKEEXT service and ran with LocalSystem privileges”.35 That was persistence inside the vendor’s environment, distinct from the ffmpeg.dll dependency load in the application customers installed. For the broader problem of trusted downloads that turn out to be malicious, see Poisoned at the source: when the official download is the malware.
OXLoader, 2026
The opening of this article described how OXLoader arrives. Its later stages carry a defensive lesson about provenance. After anti-analysis checks, which Malwarebytes lists as including the processor count, the display refresh rate, and the user’s geographic location and interface language, the loader copied its working set to a randomly named folder under C:\ProgramData: a host named fl studio pro.exe, unityplayer.dll, the encrypted manifest.json and the doctored awindows.storage.dll. It set a RunOnce registry value to restart the host.4 The host was a legitimate signed executable and awindows.storage.dll began as a legitimate Windows DLL; the malicious code sat in the trojanized unityplayer.dll, in the encrypted data file and, after loading, in memory.4 A control that asks only whether the host comes from a known publisher sees little wrong. Questions about location and provenance do better: why is an executable from a game publisher, renamed after a music application, running from ProgramData, and why does it load a Unity DLL that nothing installed there?
Defences for developers
Know what you load and from where
Microsoft’s guidance for developers starts with this: “Wherever possible, specify a fully qualified path when using the LoadLibrary, LoadLibraryEx, CreateProcess, or ShellExecute functions.”10 For run-time loads, the stronger tool is to replace the standard search order for the whole process. SetDefaultDllDirectories takes the LOAD_LIBRARY_SEARCH_* flags. Microsoft describes LOAD_LIBRARY_SEARCH_DEFAULT_DIRS, which combines the application folder, System32 and explicitly added directories, as “the recommended maximum number of directories an application should include in its DLL search path”. The policy “persists for the life of the process”.36 With LOAD_LIBRARY_SEARCH_SYSTEM32 alone, “Directories in the standard search path are not searched.”16 Directories added with AddDllDirectory are searched only when LOAD_LIBRARY_SEARCH_USER_DIRS is in effect,36 and they are only as trustworthy as their access control lists.
A minimal hardening sequence at the top of a program’s entry point looks like this. It is illustrative, not a drop-in library.
#include <windows.h>
int wmain(void)
{
/* Search only System32 and directories added explicitly with
AddDllDirectory. The application folder, the current folder and
PATH are dropped from the default search for later loads. */
if (!SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32 |
LOAD_LIBRARY_SEARCH_USER_DIRS)) {
return 1;
}
/* Load the program's own plug-in by full path from a directory
that only administrators can write. */
HMODULE h = LoadLibraryExW(L"C:\\Program Files\\Example\\plugin.dll",
NULL, LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR |
LOAD_LIBRARY_SEARCH_SYSTEM32);
if (h == NULL) {
return 1;
}
/* ... */
return 0;
}The sequence has three limits. It runs after the import table has been resolved, so statically imported DLLs have already been found by the standard order. Those need the /DEPENDENTLOADFLAG linker option, for example /DEPENDENTLOADFLAG:0x800, which limits import resolution to System32 on Windows 10 1607 and later.9 It does nothing to protect old builds already in circulation. And dropping the application folder breaks programs whose own private DLLs sit beside the executable, which is why Microsoft’s default set keeps that folder. Keeping it means an attacker who copies the host elsewhere can still place a DLL next to it.
Microsoft’s other guidance covers code that cannot use the LOAD_LIBRARY_SEARCH flags, for example older code paths still relying on the standard order. There, calling SetDllDirectory("") once early in process initialization removes the current folder from the search, and SetSearchPathMode with safe search mode changes how SearchPath treats it. Microsoft also warns never to infer the Windows version from whether a LoadLibrary call succeeds, because “the malicious copy of the DLL may be loaded” when a legitimately absent DLL has been planted, and recommends Process Monitor for finding failed DLL lookups during start-up.10 Delay-loading a rarely used DLL defers its resolution until after any hardening calls have run.8
Verify, do not assume
Path control does not help with the bundle case, because the malicious DLL sits exactly where the application expects its own library. Check Point makes the point that when a custom DLL is normally loaded from the program’s own directory, path-based checks will not catch the typical malicious bundle of a benign application and a malicious library in one folder.15 Checking the DLL itself addresses that gap, within limits. LOAD_LIBRARY_REQUIRE_SIGNED_TARGET specifies that “the digital signature of the binary image must be checked at load time”.16 That is a check that the target carries a valid signature. The documentation does not describe it as restricting which signer is acceptable, or as extending to the DLL’s own dependencies. Check Point demonstrated a scheme in which the executable embeds a self-signed certificate and verifies an overlay signature on its private DLL before loading it, so that only DLLs signed with the developer’s key are accepted, while acknowledging that an attacker can still bring an older, unverifying build of the executable.15
Install where users cannot write
Install location does not make a program’s search order safer, but it decides who can place files in the folders searched. The SLAHP authors note that installers increasingly default to user-writable paths;24 MSRC notes that modifying a properly installed application’s ACL-protected directory needs administrative access.2 A per-user install under AppData gives up that protection. MSRC also advised that installers should extract to “a temporary directory with a randomized name” rather than run from the Downloads folder beside whatever else the browser has saved there.2
Defences for endpoint engineers
Application control that covers DLLs
Allowlisting can stop a sideload in two places: by refusing to run the host executable from where it was dropped, or by evaluating the DLL. Microsoft offers two technologies, and they differ on the second.
AppLocker can enforce DLL rules (for .dll and .ocx files), but “the DLL rule collection isn’t enabled by default”. Microsoft gives the reasons: “AppLocker must check each DLL before it’s allowed to run”, DLL rules “might cause performance problems on some computers which are already resource constrained”, and an allow rule must exist “for each DLL that is used by all of the allowed apps, including Windows system files”.3738 The default DLL rules allow everything in the Windows folder and in Program Files.38 That covers the Program Files case but leaves user-writable folders to whatever other rules exist. Microsoft also says AppLocker “doesn’t meet the servicing criteria for being a security feature”.39
App Control for Business (formerly Windows Defender Application Control) validates user-mode code when its policy includes the Enabled:UMCI option; “By default, only kernel-mode binaries are restricted.”25 Microsoft’s feature table lists DLLs (.dll, .rll, .ocx) among the file types App Control covers and marks them optional for AppLocker.40 Microsoft says App Control “was designed as a security feature under the servicing criteria”.39 In an enforced UMCI policy, a DLL loads only if some rule allows it. Signer rules are one route; others include hash and path rules, the managed-installer option and authorization by reputation in Microsoft’s Intelligent Security Graph.25 Explicit deny rules are processed first and block a matching file even if another rule would allow it.25 By default, App Control also honours FilePath rules only for paths writable solely by administrators, a runtime check that policy option 18 disables.25 An unsigned DLL dropped in Downloads is therefore blocked unless some rule or option authorizes it, regardless of how trusted its host is. ATT&CK’s execution-prevention mitigation asks for this kind of control: “application control solutions capable of blocking DLLs loaded by legitimate software”.21
The outcome depends on the whole policy. A 3CX-signed ffmpeg.dll variant like the one Sophos observed29 could match a rule trusting 3CX’s signer, if its signature validated under the policy; whether it then loaded would still depend on deny rules and the rule level used (a file-and-version rule might not match). A matching allow rule is not the same as the effective decision, and disabling the FilePath protection to allow user-writable paths reopens the gap.25
Process mitigation policies
Windows has per-process mitigations that address DLL planting directly.
- Prefer System32 images.
PreferSystem32Images, a flag in the process image-load policy, makes the loader search System32 first and then the application folder.19 A process can set the image-load policy on itself withSetProcessMitigationPolicy;41 MSRC said the flag was added in the Windows 10 Creators Update for application-directory planting, so that “any malicious system binary can’t be hijacked by planting it in the application directory”, and that it “can be enabled for the scenarios where the process creation can be controlled”.2 It is not among the settings listed in Microsoft’s Exploit protection configuration guide.42 It protects names that exist in System32, such asdxgi.dllorversion.dll, and does nothing for a third-party DLL that exists only beside its executable. - Block remote and low-integrity images.
NoRemoteImagesblocks loading images from a remote device such as a UNC share, andNoLowMandatoryLabelImagesblocks images that carry the Low mandatory label, as files written by a low-integrity process do.19 Microsoft’s exploit protection reference adds that blocking low-integrity images will affect applications that load downloaded images unless those are relabelled.43 In Exploit protection, low-integrity blocking has an audit mode; remote-image blocking does not.42 - Code Integrity Guard. The binary signature policy’s
MicrosoftSignedOnlyflag prevents a process “from loading images that are not signed by Microsoft”.44 Microsoft’s exploit protection reference says the check runs in the memory manager, so it blocks injected as well as loaded images, and warns that it is “incompatible with most non-Microsoft software” unless that software is Store-signed and the optional setting to also allow images signed by the Microsoft Store is selected.43 It has an audit mode.42 MSRC’s servicing criteria list Code Integrity Guard as a security feature, not a security boundary.45 - Validate image dependency integrity. Microsoft describes this as protection for DLLs “statically linked by Windows binaries”: when the loader loads a Windows-signed binary, the DLLs it depends on are checked to be “also digitally signed as a Windows binary”. It does not cover arbitrary run-time loads or third-party binaries, and Microsoft says “compatibility issues are uncommon”.43 Exploit protection offers no audit mode for it.42
Exploit protection settings are applied per application, either to any process with a given program name or, if a full path is entered, only to the program at that location.42 That suits Windows components and in-house applications. A rule keyed only to an image name does not follow a renamed copy, and OXLoader’s renaming of Word and other hosts shows attackers do rename.4 Where a mitigation has no audit mode, staged roll-out to a pilot group is the practical substitute.
Detection
The telemetry
On Windows, the basic event is an image load. Sysmon records it as Event ID 7, which “is disabled by default and needs to be configured with the –l option”. It includes the loading process, the module’s hashes and signature information, and Microsoft warns that “monitoring all image load events will generate a significant amount of logging”.46 Endpoint detection products record comparable data in their own formats. Pairing image loads with file-creation events lets an analyst see a DLL written to disk shortly before a signed process loads it from the same folder. That is a useful triage lead; none of the sources cited here measures how well it predicts malice.
Rules that exist
Two public rules show different trade-offs.
The SigmaHQ rule “Potential System DLL Sideloading From Non System Locations”, first written by Nasreddine Bencherchali in August 2022 and last modified in July 2026, matches image loads of 423 named DLLs that normally live in System32, SysWOW64 or WinSxS, unless the load is from one of those locations. It has 13 filter blocks for legitimate exceptions, one carrying the comment that it is “generic on purpose to avoid insane amount of FP from legitimate third party applications”, and lists as false positives “Legitimate applications loading their own versions of the DLLs mentioned in this rule”.47 HijackLibs publishes auto-generated detection content of this kind for image loads and file writes.48
Elastic’s prebuilt rule “Unsigned DLL Side-Loading from a Suspicious Folder” takes a signer-based approach. Its published query combines: a host process whose code signature is trusted; a DLL whose relative_file_creation_time or relative_file_name_modify_time is at most 500, fields Elastic defines in seconds since the DLL’s file was created or its name was modified;49 a DLL signature status other than trusted or a few listed error states; a DLL path in one of a long list of suspicious folders; and a final condition met either by the DLL sitting in the executable’s own directory or by the DLL being named chrome_elf.dll. Its guidance lists legitimate software updates, in-house applications, development environments and some third-party tools as sources of false positives.50
What to look for
Unit 42’s detection principles divide the evidence three ways.23
- The DLL: no digital signature or a stolen one; unusual size or entropy; a hash rare in the organisation; a compile time much newer than the host’s; a path where that DLL name does not normally live.
- The host: usually validly signed; often from a trusted vendor (antivirus, browsers, VPNs, Microsoft); a known abused executable by hash or version; for sideloading, an application uncommon in the organisation and running from an unusual directory such as
AppDataorProgramData. - The load: the first time this application loads this DLL name or hash; an application that normally loads several DLLs now loading only one.
Beukema makes two separate points. About his own name-based Sigma rule, he notes that hunting on DLL names works because “the name of the (legitimate) application loading the DLLs can be changed, but the filenames of DLLs are always fixed”, while warning that such a rule does not scale well. He then proposes a more generic hunt: look for Microsoft-signed binaries in unexpected locations, or for DLLs loaded from unexpected locations by such binaries.17 A copy of winsat.exe, MpCmdRun.exe or calc.exe running from Downloads, ProgramData or a temporary folder warrants review, although portable tools, installers and administrators’ ad hoc copies can explain some cases. Renamed hosts can still be identified by their signed original-filename metadata or their hash.
Rarity
Fleet-wide prevalence is a useful way to rank these leads. As a hypothetical, a pair of executable path and module hash seen on one machine in a fleet of fifty thousand, first seen today, deserves more attention than the same pair seen on thousands of machines for a year. Rarity has its own confounders: newly deployed software, pilot groups, developer and test machines, and staggered updates all produce rare pairs, and a widespread compromise would not be rare. This is the base-rate argument made in Why detection is hard: base rates, telemetry and alerts worth an analyst’s time, which favours combining rarity with context over relying on any single indicator.
Where the record is contested
Vulnerability or tradecraft?
Microsoft’s own triage position for reports about its products, set out in the 2018 MSRC post by Swamy Shivaganga Nagaraju and Antonio Galvan, distinguishes three cases.2 When an associated application loads a DLL from an untrusted current working directory, Microsoft treats it as an Important-severity vulnerability and issues a security update; most DLL planting issues it has fixed fall into this category, and its 2010 advisory lists a subset. Planting in the application directory “is treated as Defense-in-Depth issue that will be considered for updates in future versions only”, “mainly due to the amount of social engineering involved in the attack and the by design nature of the bug”. For PATH directories, an individual planting report is treated as low severity and not fixed, because ordinary users cannot write to properly configured PATH directories; a world-writable directory exposed via PATH is treated separately, as an Important issue in its own right.2 On this view, bringing your own host is tradecraft, not a product flaw: the attacker has already persuaded the victim to run something from a folder full of the attacker’s files. Other vendors make their own servicing decisions.
Mandiant’s red team took a different view in 2020: “The real problem that allows this vulnerability to continue to exist has to do with software publishers. Software publishers need to be aware of DLL abuse techniques and know how to prevent such vulnerabilities from being developed into products”.7 The vulnerability catalogues treat the weakness as real. MITRE’s CWE-427, “Uncontrolled Search Path Element”, names the Windows application directory and current working directory as the two path elements in LoadLibrary‘s search that “might be uncontrolled”.51 Some vendors do assign CVEs for planting in their products, and HijackLibs entries have a CVE field, filled in for a handful of entries.3 Neither position is unreasonable. MSRC is right that an attacker who can make the victim run a host from an attacker-controlled folder could probably make them run something worse. Mandiant is right that each careless load adds another signed, reusable host to the supply, and a bundled signed host is worth more to an attacker than an unsigned dropper because of the trust it borrows.
Is enforcing DLL rules worth it?
ATT&CK recommends application control that covers DLLs.21 Microsoft ships AppLocker’s DLL collection switched off and cites performance and the need to create allow rules for every DLL that allowed apps use.37 Microsoft describes that performance cost only qualitatively, and none of the sources cited here measures the CPU or administrative cost of DLL enforcement on a modern fleet, or the share of real intrusions a given policy would have stopped. The case studies show what was loaded, not what a particular policy would have done with it. An audit-mode pilot can estimate would-be blocks, the exceptions and new rules they imply, and event volume. It cannot show every compatibility failure: Microsoft notes that some features are enforced even in audit mode for UMCI policies, and that some failures, such as certain COM objects failing extra validation, occur only under enforcement and cannot be detected in audit mode.52 A staged enforcement pilot is needed to measure actual breakage. The underlying disagreement is about who should carry the cost. Publishers can remove careless loads at the source; defenders who cannot wait for every publisher carry the cost of policy instead.
Does signer-based detection scale?
A simple rule, “unsigned DLL loaded by a signed process from a user-writable path”, will also match ordinary software. Elastic’s guidance for its own rule of this kind lists software updates, in-house applications, development environments and some third-party tools as false-positive sources.50 Beukema wrote of his name-based Sigma rule that it “doesn’t scale very well and is likely to be prone to false positives”.17 Unit 42 calls pinpointing such loads “a rather challenging task”, harder still at scale.23 Published rules add context to cope: Elastic adds recency and folder conditions, and Unit 42 suggests rarity and first-seen checks.5023 A signer-only test cannot flag a malicious DLL that carries a signature the rule accepts, such as the 3CX-signed ffmpeg.dll variant.29
How old is it, really?
Microsoft’s advisory on binary planting through remote shares and WebDAV is dated 23 August 2010.6 Mandiant dates its own discovery of both techniques to 2010.7 The earliest dated in-the-wild campaign in the sources cited here is a 2013 targeted attack, described by Mandiant in 2014 and summarised by Check Point.1315 PlugX dates from at least 2008, but the family’s age does not date its first use of sideloading.30 Documented use therefore spans at least thirteen years, and public discussion of DLL planting at least sixteen.
What to do differently
Developers
- Avoid bare-name loads unless the process search path has been restricted first. Use full paths into administrator-only directories for your own libraries, and
SetDefaultDllDirectorieswithLOAD_LIBRARY_SEARCH_SYSTEM32for system DLLs, addingLOAD_LIBRARY_SEARCH_USER_DIRSandAddDllDirectoryonly for directories whose ACLs you control.36 - Link with
/DEPENDENTLOADFLAG:0x800where your static imports are all system DLLs, and delay-load rarely used libraries so they resolve after your hardening runs.98 - Check your own private DLLs before loading them, for example with
LOAD_LIBRARY_REQUIRE_SIGNED_TARGET(a validity check, not a signer check) or your own verification against a key you control.1615 - Run Process Monitor on start-up from a test folder, then prioritize failed
.dlllookups in locations ordinary users can write and that your program would actually load from; failed probes on their own can be normal.1015 - Install per-machine into ACL-protected directories. If your installer runs from Downloads, have it extract to a fresh, randomly named temporary directory.224
Endpoint engineers
- Pilot App Control for Business with
Enabled:UMCI, in audit mode first, at least on high-value and kiosk-like machines, and review which authorization routes (signer, hash, path, managed installer, reputation) your policy allows for DLLs. Do not rely on AppLocker’s default DLL rules to cover user-writable folders.254038 - Restrict execution from user-writable locations (Downloads,
%TEMP%,%AppData%,C:\ProgramData) for executables that have no business there, so that a bring-your-own host fails before its DLL is ever loaded. - For Windows components and in-house applications, consider “validate image dependency integrity” (statically linked DLLs of Windows-signed binaries) and remote or low-integrity image blocking, using audit mode where Microsoft offers it and a staged pilot where it does not. Reserve Code Integrity Guard for processes that load only Microsoft code (or Store-signed code, with the Store option selected), and
PreferSystem32Imagesfor processes whose creation or code you control.424319 - Remove user-writable directories from the system
PATH, and audit per-user installs that put writable folders early in the search order.232 - Pull HijackLibs’ dataset into your asset inventory to see which reported hosts are installed and where.48
Security operations
- Collect image-load events (Sysmon Event ID 7 or an endpoint product’s equivalent) with signer and hash fields, filtered so volume stays manageable.46
- Hunt for known host executables, identified by hash or signed original filename, running outside their install directories, especially from Downloads, ProgramData,
%TEMP%and removable media.173 - Correlate archive or ISO extraction, a DLL written to disk, and a signed process loading that DLL from the same folder. Variations on this sequence appear in the Qakbot, AsyncRAT and OXLoader reports.33234
- Use fleet prevalence and first-seen time to rank leads, alongside the DLL, host and load attributes above.23
- Investigate persistence entries (
Run,RunOnce, scheduled tasks) that launch signed programs from unusual folders. OXLoader, Dridex and PlugX all persisted this way in the reports cited.423 - Do not close a case because the parent process is signed by Microsoft. Ask which DLLs it loaded, from where, and who signed them.
Conclusion
DLL sideloading works because, for a name-only load in an unpackaged desktop program, Windows’ default search looks in the executable’s own folder before the system folder once earlier steps such as redirection, manifests and the Known DLLs list have not settled the name, and an ordinary load does not ask who signed the library it finds.12 A signed executable copied into an attacker’s folder can therefore end up running the attacker’s code, and the trust that users, allowlists and security products place in the host extends to code its signature never covered. Microsoft’s 2018 triage guidance treats the application-directory case in its products as defence in depth for future versions, and a November 2026 snapshot of the HijackLibs catalogue holds more than 2,400 reported pairings of host and DLL.3 Documented espionage use goes back at least to 2013, and commodity loaders relied on the same pairing of a legitimate host with a malicious DLL, Qakbot in 2022 and OXLoader in 2026.
No single control removes it. Developers can close their own products with restricted search paths, signature checks on their own DLLs and protected install directories, but cannot recall old builds. App Control policies with user-mode enforcement can refuse a misplaced host or a DLL that no rule authorizes, and per-process signature mitigations can refuse unsigned images, at an operational cost that each organisation has to measure for itself. A malicious DLL signed by a publisher the policy trusts, such as the 3CX-signed loader variant, can match a signer rule if its signature validates. A useful triage lead watches the host as well as the DLL: a signed program running from a folder it was never installed in, loading a library written to disk shortly before, rare across the fleet.
Footnotes
- Microsoft Learn, “Dynamic-link library search order”, last updated 9 February 2023, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- Swamy Shivaganga Nagaraju and Antonio Galvan, “Triaging a DLL planting vulnerability”, Microsoft Security Response Center blog, 4 April 2018. https://www.microsoft.com/en-us/msrc/blog/2018/04/triaging-a-dll-planting-vulnerability/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14
- HijackLibs repository (Wietze Beukema and contributors), YAML entries at commit 54a65e8 of 17 November 2026, the last commit before December 2026; counts made 2 December 2026. https://github.com/wietze/HijackLibs/tree/54a65e8cc5928e14ed43b3b3c1cff39029fd8bcc (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Gabriele Orini, “OXLoader abuses DLL hijacking to distribute different malware families”, Malwarebytes, 23 November 2026. https://www.malwarebytes.com/blog/threat-intel/2026/11/oxloader-abuses-dll-hijacking-to-distribute-different-malware-families (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- Daniel Stepanic and Jia Yu Chan, “Lost in relocation: analysis of a new loader distributing CASTLESTEALER”, Elastic Security Labs, 19 June 2026. https://www.elastic.co/security-labs/threat-command/oxloader-malware-loader-infostealer (opens in a new tab) ↩
- Microsoft, “Microsoft Security Advisory 2269637: Insecure Library Loading Could Allow Remote Code Execution”, published 23 August 2010, updated 13 May 2014. https://learn.microsoft.com/en-us/security-updates/securityadvisories/2010/2269637 (opens in a new tab) ↩1 ↩2
- Evan Pena, Ruben Boonen and Brett Hawkins, “DLL Side-loading and Hijacking: Using Threat Intelligence to Weaponize R and D”, Mandiant (Google Cloud blog), 31 January 2020. https://cloud.google.com/blog/topics/threat-intelligence/abusing-dll-misconfigurations (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Microsoft Learn, “Linker support for delay-loaded DLLs”, read 2 December 2026. https://learn.microsoft.com/en-us/cpp/build/reference/linker-support-for-delay-loaded-dlls (opens in a new tab) ↩1 ↩2 ↩3
- Microsoft Learn, “/DEPENDENTLOADFLAG (Set default dependent load flags)”, read 2 December 2026. https://learn.microsoft.com/en-us/cpp/build/reference/dependentloadflag (opens in a new tab) ↩1 ↩2 ↩3
- Microsoft Learn, “Dynamic-Link Library Security”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-security (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Microsoft Learn, “SetCurrentDirectory function (winbase.h)”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setcurrentdirectory (opens in a new tab) ↩
- Microsoft Learn, “Windows API sets”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/apiindex/windows-apisets (opens in a new tab) ↩
- Amanda Stewart, “DLL Side-Loading: Another Blind-Spot for Anti-Virus”, Mandiant (Google Cloud blog), 3 April 2014. https://cloud.google.com/blog/topics/threat-intelligence/dll-side-loading-another-blind-spot-for-anti-virus (opens in a new tab) ↩1 ↩2 ↩3
- Microsoft Learn, “Dynamic-link library redirection”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-redirection (opens in a new tab) ↩
- Check Point Research, “10 Years of DLL Hijacking, and What We Can Do to Prevent 10 More”, 25 September 2024. https://research.checkpoint.com/2024/10-years-of-dll-hijacking-and-what-we-can-do-to-prevent-10-more/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- Microsoft Learn, “LoadLibraryExA function (libloaderapi.h)”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryexa (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Wietze Beukema, “Hijacking DLLs in Windows”, 22 June 2020 (updated 1 March 2025). https://www.wietzebeukema.nl/blog/hijacking-dlls-in-windows (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- HijackLibs, “dxgi.dll” entry, read 2 December 2026. https://hijacklibs.net/entries/microsoft/built-in/dxgi.html (opens in a new tab) ↩
- Microsoft Learn, “PROCESS_MITIGATION_IMAGE_LOAD_POLICY structure (winnt.h)”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-process_mitigation_image_load_policy (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- MITRE ATT&CK, “Updates - April 2025” (v17 release notes). https://attack.mitre.org/resources/updates/updates-april-2025/ (opens in a new tab) ↩
- MITRE ATT&CK, “Hijack Execution Flow: DLL, Sub-technique T1574.001”, version 3.0, last modified 4 November 2026, read 2 December 2026. https://attack.mitre.org/techniques/T1574/001/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- Wietze Beukema, “Save the Environment (Variable)”, 16 August 2022 (research presented at DEF CON 30). https://www.wietzebeukema.nl/blog/save-the-environment-variables (opens in a new tab) ↩
- Tom Fakterman, Chen Erlich and Assaf Dahan, “Intruders in the Library: Exploring DLL Hijacking”, Palo Alto Networks Unit 42, 22 February 2024. https://unit42.paloaltonetworks.com/dll-hijacking-techniques/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14
- Antonin Verdier, Romain Laborde, Mohamed Ali Kandi and Abdelmalek Benzekri, “A SLAHP in the face of DLL Search Order Hijacking”, 3rd International Conference on Ubiquitous Security (UbiSec 2023), HAL record hal-04278110. https://api.archives-ouvertes.fr/search/?q=halId_s:hal-04278110&fl=abstract_s,title_s,authFullName_s,conferenceTitle_s,producedDate_s (opens in a new tab) ↩1 ↩2 ↩3
- Microsoft Learn, “Understand App Control for Business policy rules and file rules” (rule options, including Enabled:UMCI, managed installer and Intelligent Security Graph), read 2 December 2026. https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/design/select-types-of-rules-to-create (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Julio Dantas, James Haughom and Julien Reisdorffer, “Living Off Windows Defender: LockBit Ransomware Sideloads Cobalt Strike Through Microsoft Security Tool”, SentinelOne, 28 July 2022 (archived copy). https://web.archive.org/web/20250214210518/https://www.sentinelone.com/blog/living-off-windows-defender-lockbit-ransomware-sideloads-cobalt-strike-through-microsoft-security-tool/ (opens in a new tab) ↩1 ↩2
- Microsoft Learn, “PE Format”, Appendix A: Calculating Authenticode PE Image Hash, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/debug/pe-format (opens in a new tab) ↩
- Rohit Hegde, Niraj Shivtarkar and Meghraj Nandanwar, “3CX Supply Chain Attack Campaign”, Zscaler ThreatLabz, 31 March 2023. https://www.zscaler.com/blogs/security-research/3cx-supply-chain-attack-campaign (opens in a new tab) ↩1 ↩2
- Greg Iddon, Gabor Szappanos, Colin Cowie, Dakota Mercer-Szady, Anand Ajjan, Andrew Ludgate, Angela Gunn and Mark Loman, “3CX users under DLL-sideloading attack: What you need to know” (headline as shown: “Update 2: …”), Sophos, last updated 6 April 2023. https://www.sophos.com/en-us/blog/3cx-dll-sideloading-attack (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Malwarebytes, “PlugX malware deleted from thousands of systems by FBI”, 16 January 2025. https://www.malwarebytes.com/blog/news/2025/01/plugx-malware-deleted-from-thousands-of-systems-by-fbi (opens in a new tab) ↩1 ↩2
- Sekoia, “PlugX worm disinfection campaign feedbacks”, 26 December 2024. https://www.sekoia.com/blog/plugx-worm-disinfection-campaign-feedbacks (opens in a new tab) ↩
- US Department of Justice, Office of Public Affairs, “Justice Department and FBI Conduct International Operation to Delete Malware Used by China-Backed Hackers”, 14 January 2025 (archived copy). https://web.archive.org/web/20260128040120/https://www.justice.gov/opa/pr/justice-department-and-fbi-conduct-international-operation-delete-malware-used-china-backed (opens in a new tab) ↩
- Cyble Research and Intelligence Labs, “Qakbot Resurfaces With New Playbook”, 21 July 2022. https://cyble.com/blog/qakbot-resurfaces-with-new-playbook/ (opens in a new tab) ↩1 ↩2
- Robert Falcone and Josh Grunzweig, “Threat Brief: 3CXDesktopApp Supply Chain Attack”, Palo Alto Networks Unit 42, 30 March 2023. https://unit42.paloaltonetworks.com/3cxdesktopapp-supply-chain-attack/ (opens in a new tab) ↩
- Jeff Johnson, Fred Plan, Adrian Sanchez, Renato Fontana, Jake Nicastro, Dimiter Andonov, Marius Fodoreanu and Daniel Scott, “3CX Software Supply Chain Compromise Initiated by a Prior Software Supply Chain Compromise; Suspected North Korean Actor Responsible”, Mandiant (Google Cloud blog), 20 April 2023. https://cloud.google.com/blog/topics/threat-intelligence/3cx-software-supply-chain-compromise (opens in a new tab) ↩1 ↩2
- Microsoft Learn, “SetDefaultDllDirectories function (libloaderapi.h)”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-setdefaultdlldirectories (opens in a new tab) ↩1 ↩2 ↩3
- Microsoft Learn, “Understanding AppLocker rule collections”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/applocker/understanding-applocker-rule-collections (opens in a new tab) ↩1 ↩2
- Microsoft Learn, “DLL rules in AppLocker”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/applocker/dll-rules-in-applocker (opens in a new tab) ↩1 ↩2 ↩3
- Microsoft Learn, “App Control and AppLocker Overview”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/appcontrol-and-applocker-overview (opens in a new tab) ↩1 ↩2
- Microsoft Learn, “App Control for Business and AppLocker feature availability”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/feature-availability (opens in a new tab) ↩1 ↩2
- Microsoft Learn, “SetProcessMitigationPolicy function (processthreadsapi.h)”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setprocessmitigationpolicy (opens in a new tab) ↩
- Microsoft Learn, “Customize exploit protection”, Microsoft Defender for Endpoint documentation, read 2 December 2026. https://learn.microsoft.com/en-us/defender-endpoint/customize-exploit-protection (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Microsoft Learn, “Exploit protection reference”, Microsoft Defender for Endpoint documentation, read 2 December 2026. https://learn.microsoft.com/en-us/defender-endpoint/exploit-protection-reference (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Microsoft Learn, “PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY structure (winnt.h)”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-process_mitigation_binary_signature_policy (opens in a new tab) ↩
- Microsoft Security Response Center, “Microsoft Security Servicing Criteria for Windows”, read 2 December 2026. https://www.microsoft.com/en-us/msrc/windows-security-servicing-criteria?rtc=1 (opens in a new tab) ↩
- Microsoft Sysinternals, “Sysmon”, read 2 December 2026. https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon (opens in a new tab) ↩1 ↩2
- Nasreddine Bencherchali, “Potential System DLL Sideloading From Non System Locations”, SigmaHQ rule 4fc0deee-0057-4998-ab31-d24e46e0aba4, 14 August 2022, modified 10 July 2026. https://raw.githubusercontent.com/SigmaHQ/sigma/master/rules/windows/image_load/image_load_side_load_from_non_system_location.yml (opens in a new tab) ↩
- HijackLibs, “API” (datasets and auto-generated detection content), read 2 December 2026. https://hijacklibs.net/api/ (opens in a new tab) ↩1 ↩2
- Elastic, “Elastic Defend” integration reference, field definitions for
dll.Ext.relative_file_creation_timeanddll.Ext.relative_file_name_modify_time, read 2 December 2026. https://www.elastic.co/docs/reference/integrations/endpoint (opens in a new tab) ↩ - Elastic, “Unsigned DLL Side-Loading from a Suspicious Folder”, prebuilt detection rules reference, read 2 December 2026. https://www.elastic.co/docs/reference/security/prebuilt-rules/rules/windows/defense_evasion_unsigned_dll_loaded_from_suspdir (opens in a new tab) ↩1 ↩2 ↩3
- MITRE, “CWE-427: Uncontrolled Search Path Element”, Common Weakness Enumeration, read 2 December 2026. https://cwe.mitre.org/data/definitions/427.html (opens in a new tab) ↩
- Microsoft Learn, “App Control for Business known issues”, read 2 December 2026. https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/operations/known-issues (opens in a new tab) ↩

SecSIG