# DLL sideloading beside signed binary

Signed EXE loading a bare-name DLL from its own or a writable directory, letting a planted DLL run in a trusted process

_Area: Memory corruption and native code. Seen in 6 disclosed reports; latest 2026-12-02. Updated 2026-12-05._

## How it works

Windows resolves a DLL import given only a file name by walking a search order in which the application's own directory comes before System32. A signed executable that imports a helper DLL by bare name therefore trusts whatever file sits next to it. If an attacker can write into that directory — a user-writable install path, Downloads, `AppData`, `C:\Users\Public`, a temp folder — they drop a DLL with the expected name and the signed process loads and runs it. The signature on the EXE vouches for the loader, not for the DLL it pulls in, so allowlisting and reputation checks on the EXE pass while attacker code executes inside a trusted process [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md)[E2](https://bugbountylibrary.com/r/blog%3Areversinglabs-com-blog-moggyday-hub-the-operation-behind-the-fake-gta-vi-launchers.md)[E3](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md)[E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md)[E5](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md)[E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md).

## Where it shows up

- Signed vendor or Microsoft utilities executed from user-writable paths: Downloads, `AppData\Local`, `C:\Users\Public`, temp dirs [E3](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md)[E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md)[E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md).
- A bare-name import (`LoadLibraryA("x.dll")`, `loadperf.dll`, `mscoree.dll`, `libcef.dll`, `tempdir.dll`, `FMAPP.dll`, `LogiMail.dll`, `SentinelAgentCore.dll`) with no full path and no integrity check [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md)[E2](https://bugbountylibrary.com/r/blog%3Areversinglabs-com-blog-moggyday-hub-the-operation-behind-the-fake-gta-vi-launchers.md)[E3](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md)[E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md)[E5](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md)[E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md).
- A DLL sitting beside the EXE whose hash does not match the vendor's published build [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md).
- Office or other host processes loading `.tmp`-named DLLs from user-writable directories [E3](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md).
- Security-product binaries (EDR agents, camera software, browser helpers) present outside their normal install directory [E5](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md)[E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md).
- Launchers/installers that fetch a "legitimate EXE plus companion DLL" pair per lure [E2](https://bugbountylibrary.com/r/blog%3Areversinglabs-com-blog-moggyday-hub-the-operation-behind-the-fake-gta-vi-launchers.md).

## How to review

For every signed binary in scope, enumerate its imports and confirm each is resolved by absolute path, or that the loading directory is not writable by a non-privileged user. The invariant: **no code loaded into a signed process may come from a location an unprivileged attacker can write.** Check install-directory ACLs, whether the binary is ever run from Downloads/temp, and whether the DLL's hash is pinned or verified. Treat "the EXE is signed" as irrelevant to the DLL it loads.

## How finders spotted it

- SOC saw a wave of installs, Defender exclusions and persistence from `ClaudeDesktop.exe`; the binary was actually `jcef_helper.exe` and `libcef.dll`'s hash didn't match public records [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md).
- Pivoted from known hashes on URI strings, filenames and similarity; sandbox runs confirmed the sideload and injection [E2](https://bugbountylibrary.com/r/blog%3Areversinglabs-com-blog-moggyday-hub-the-operation-behind-the-fake-gta-vi-launchers.md).
- Noticed rare `LoadLibraryA` of `.tmp` DLLs by `winword.exe` and rare `CallWindowProcA`, then reversed the DLL exports [E3](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md).
- Reverse-engineered the planted `mscoree.dll`, following a `CreateProcessW` call site and an indirect call guarded by MZ/PE checks; when cross-refs dead-ended, `.NET` strings and the `.managed` section revealed NativeAOT [E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md).
- Retroactively hunted known-bad infrastructure across historical telemetry, matching `ssh.exe -R` reverse-tunnel command lines [E5](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md).
- Saw a ransom note, then noticed `SentinelBrowserNativeHost.exe` running from a user's Downloads folder — an ELK search showed millions of hits for the binary but none in Downloads [E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md).

## Variants seen

- Chromium/CEF helper masquerading as a branded app, sideloading `libcef.dll` and a second DLL [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md).
- Game-launcher lure serving a signed `unlodctr.exe` plus malicious `loadperf.dll` [E2](https://bugbountylibrary.com/r/blog%3Areversinglabs-com-blog-moggyday-hub-the-operation-behind-the-fake-gta-vi-launchers.md).
- Phishing lure dropping DLLs that sideload a backdoor via `LogiMailApp.exe` [E3](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md).
- ClickFix dropping `mscoree.dll` beside signed `vb7to8.exe`, then hollowing another signed binary [E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md).
- Legitimate audio-driver binary `FMAPP.exe` sideloading `FMAPP.dll` [E5](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md).
- EDR vendor binary sideloading a DLL that loads a `data.bin` payload [E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md).

## Impact and severity

Code execution inside a signed, often allowlisted process, used to install RATs and stealers across 29 organizations [E1](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md), deliver credential-stealing malware [E2](https://bugbountylibrary.com/r/blog%3Areversinglabs-com-blog-moggyday-hub-the-operation-behind-the-fake-gta-vi-launchers.md)[E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md), run in-memory implants [E3](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md), establish C2 [E5](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md), and deploy ransomware [E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md). Impact rises when the host binary is an EDR/security product (allowlisted, trusted) [E5](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md)[E6](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md), when combined with BYOVD to kill defenses [E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md), and when paired with process hollowing into a second signed binary [E4](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md). Severity is high: the loader's signature defeats allowlisting and reputation checks.

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **Microsoft Windows** (DLL search-order loader) (version not stated): From 88 lines to 1: Detecting DLL hijacking with Elastic Defend. Report: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md
- **IBM SPSS** (sslconf.exe) (version not stated): Inside FakeAgent: How a Claude Desktop Malvertising Campaign Hit 29 Organizations with SectopRAT. Report: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md
- **Fortemedia FMAPP** (FMAPP.dll) (version not stated): Unmasking an Attack Chain of MuddyWater. Report: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md
- **SentinelOne** (SentinelBrowserNativeHost.exe) (version not stated): Cephalus Ransomware: Don’t Lose Your Head. Report: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md
- **LogiMailApp** (LogiMail.dll) (version not stated): A close look at the advanced techniques used in a Malaysian-focused APT campaign. Report: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-fakeagent-claude-desktop-malvertising-ends-in-dotnet-rat.md
- E2: https://bugbountylibrary.com/r/blog%3Areversinglabs-com-blog-moggyday-hub-the-operation-behind-the-fake-gta-vi-launchers.md
- E3: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-advanced-techniques-used-in-malaysian-focused-apt-campaign.md
- E4: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-dll-search-order-hijacking-elastic-defend.md
- E5: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-muddywater-attack-chain.md
- E6: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-cephalus-ransomware.md
