Repository navigation
v2.6.0 — Audit Fixes, False-Positive Reduction, Windows-Verified Detection
Fixes from an external code audit (9 claims, independently verified) plus a full independent bug hunt. Verified on Windows 10 Pro 26H2 (build 26300) with an inert lab: a writable SYSTEM service and a LaunchProtected one, a task with a SID principal, a Run key, and writable machine-PATH and user-PATH folders. Not yet exercised on Windows: ETW full-path resolution (no ETW candidates on the test host), COM RunAs resolution for a SYSTEM-configured server, and the canary changes (the canary was not run). No breaking CLI changes; one new exit code (3).
Correctness — privilege and identity
PrivilegeDeltaFilter — measured against the scanner instead of the attacker
The baseline was the scanner's own integrity level, so an elevated scan scored LOCAL/NETWORK SERVICE and UAC-bypass targets as "same privilege" (dropped by strict/redteam/uac-bypass) and standard-user targets as "lower privilege". The baseline is now a fixed standard user, consistent with the ACL checks.
Identity resolution
- Scheduled tasks: SID principals (
S-1-5-18/19/20) are mapped for every logon type; group principals run as the logged-on member instead of defaulting to SYSTEM; payloads wrapped inrundll32/cmd /c/powershell -Fileare analysed. - Run keys and Startup folders are enumerated for every user profile (
HKEY_USERS, ProfileList), not just the scanner's own account. - COM
LocalServer32servers resolveAppID→RunAs/LocalServiceinstead of a hard-codedVARIES. - COM canary confirmations of in-process objects are recorded as caller context, since the activator is the scanner.
False positives removed
- Machine PATH for services — service and SYSTEM-task search order and PATH weaponisation used the scanner's PATH, including the user's own entries, which services never search.
- Drive-root writability — "create folders" was counted as "can drop a DLL", so
C:\<name>positions looked writable. File drops now require create-file rights;.localfolders use a separate create-folder check. - KnownDLLs — read from the live
\KnownDlls/\KnownDlls32object directories plusntdll.dll, not only the registry seed list. - API sets — all
api-ms-*/ext-ms-*names are filtered (previously only*-win-*). .local— reported only for EXEs without a manifest (or with IFEODevOverrideEnable=1), since the loader ignores.localotherwise.- UAC copy & side-load — no longer generated for COM-elevation entries (including DLLs such as
urlmon.dll/shell32.dll); limited to manifest-autoElevate EXEs, with the trusted-directory requirement noted. - Attack chains — any standard-user-plantable SYSTEM finding is a Direct Path; the Ladder chain appears only when no direct path exists.
On the test host these changes took a clean install from 18 reported findings (all false positives) to 0.
Detection improvements
- KnownDllsFilter —
.localcandidates are no longer all discarded (the whole.localpath was previously dead code); only KnownDLL ones are. - SignatureVerificationFilter — protected services are detected from the SCM
LaunchProtectedvalue, covering new Windows services and third-party AV/EDR, for all service-triggered candidates. - ETW — full process image paths are resolved (the kernel event carries only the short name), already-running processes are seeded, and
--targetmatching is consistent with static discovery. - AclChecker — also evaluates
INTERACTIVE(S-1-5-4).
Verification (load probe and canary)
- App-directory model — the probe placed app-directory positions after System32, reporting real hijacks as
LosesToProtected(−40). Verified on Windows: 5 of 5 app-dir positions nowWins. - Antivirus quarantine — a probe or canary removed by real-time antivirus is reported as inconclusive (probe
Error,CanaryResult.Blocked) instead ofNotResolved/LosesToProtected/Timeout. - Probe failures now carry the loader's Win32 error or the child's exit code.
CLI, output and robustness
--confirmed-onlywithout a runnable canary (not elevated,--no-canary,safe/uac-bypass, orredteamunelevated) now exits with code 3 instead of reporting a false "Findings: 0".- Report formatters are isolated; one failing no longer prevents the others or the scan summary.
- Console mode no longer drops
hijackhunter_<timestamp>.jsoninto the working directory; with--outputthe JSON goes to that path. - A requested report is written even when nothing is discovered.
- New Informational tier, so findings between the profile threshold and 20% are no longer silently dropped.
IncludePPL=falseprofiles now actually drop protected-process candidates.- The scan mode reflects what actually ran; Spectre markup and HTML output are escaped; the HTML report gains attack chains, load-probe results, source, and knowledge-base references.
CommandLineParser: returns the.exethat matched during progressive resolution; handles unquotedrundll32paths containing spaces.- Unobserved task exceptions, enumeration failures, and soft-gate errors are logged instead of swallowed.
QueryFullProcessImageNameWP/Invoke now usesCharSet.Unicode.
Build and documentation
build.ps1selects a target framework (-Framework, defaultnet8.0-windows);dotnet publishpreviously failed on the multi-targeted project. It also works from PowerShell 7 on Linux/macOS.- README reworked to match current behaviour: operational-impact table (ETW starts services and runs tasks), result tables for the load probe and canary, tiers, exit codes, HijackRange lab, known limitations, and Black Hat Arsenal Europe 2026 / SecTor 2026 badges.
Download
| File | Description |
|---|---|
DLLHijackHunter-v2.6.0-win-x64.exe |
Self-contained single-file build for Windows x64 — no .NET runtime required |
SHA-256: ba84d8c7a8f94cc392a8ddc5aef6a2e8eeb387d07f863590b8b9b67c27fe53ab
Get-FileHash .\DLLHijackHunter-v2.6.0-win-x64.exe -Algorithm SHA256The executable and its embedded canary/probe DLLs are unsigned. Microsoft Defender may flag or quarantine them; affected verification results are reported as inconclusive. Run on systems you own or are authorised to assess.
Full changelog: v2.5.0...v2.6.0
Presented at Black Hat Arsenal @ Europe 2026 and Black Hat Arsenal @ SecTor 2026 · projectmerai.com