[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115828":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":15,"lastSyncTime":27,"discoverSource":28},115828,"WhisperLoader","Maldev-Academy\u002FWhisperLoader","Maldev-Academy","A stealthy process injection loader combining Thread Name-Calling for payload delivery with TP_DIRECT.Callback hijack for execution, with optional RWX region reuse.",null,"C",88,12,54,0,2,33,13,67.14,"Apache License 2.0",false,"main",[],"2026-11-16 14:46:48","2026-11-23 11:04:39","# WhisperLoader\n\nA stealthy 3-process Windows loader that smuggles a payload into a running 64-bit process via **Thread Name-Calling (TNC)** and executes it by hijacking an existing thread pool object's embedded **`TP_DIRECT.Callback`** field. When the target already exposes a reusable `PAGE_EXECUTE_READWRITE` region, the loader reuses it and skips both `NtAllocateVirtualMemory` and `NtProtectVirtualMemory` on the target entirely.\n\n\n### Quick Links\n\n[Maldev Academy Home](https:\u002F\u002Fmaldevacademy.com?ref=gh)\n\n[Maldev Database](https:\u002F\u002Fsearch.maldevacademy.com?ref=gh)\n\n[Malware Development Course Syllabus](https:\u002F\u002Fmaldevacademy.com\u002Fmaldev-course\u002Fsyllabus?ref=gh)\n\n[Offensive Phishing Operations Course Syllabus](https:\u002F\u002Fmaldevacademy.com\u002Fphishing-course\u002Fsyllabus?ref=gh)\n\n[Ransomware Internals, Simulation and Detection Course Syllabus](https:\u002F\u002Fmaldevacademy.com\u002Fransomware-course\u002Fsyllabus?ref=gh)\n\n\u003Cbr>\n\n## What Does It Do\n\nInjects an x64 `cmd.exe` shellcode into a running 64-bit process and dispatches it through the target's own Win32 thread pool worker, without:\n\n- `NtWriteVirtualMemory` \u002F `WriteProcessMemory` on the payload\n- `NtSetContextThread` \u002F `SetThreadContext` on the target thread\n- `NtSuspendThread` \u002F `NtResumeThread`\n- `NtCreateThreadEx` \u002F `CreateRemoteThread`\n- `PROCESS_VM_WRITE` access on the target process handle\n\nWhen the target already contains a reusable `PAGE_EXECUTE_READWRITE` region large enough to hold the payload, the loader additionally skips:\n\n- `NtAllocateVirtualMemory` \n- `NtProtectVirtualMemory` \n\nThe hijacked pool worker runs the payload, the per-run restore stub puts the original `TP_DIRECT.Callback` back in place, and the worker returns cleanly to `ntdll!NtWaitForWorkViaWorkerFactory`. The target process is left in a stable state.\n\n\u003Cbr>\n\n\n## Composition and Credit\n\nWhisperLoader is a fusion of two earlier MalDev Academy projects, with an added RWX region-reuse path:\n\n- **[WhisperHijack](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperHijack)** - supplies the Thread Name-Calling delivery primitive and the granularity-based target allocation path.\n- **[TpDirectCallbackHijack](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FTpDirectCallbackHijack)** - supplies the `TP_DIRECT.Callback` hijack execution primitive, the pool-object walker (`TP_IO` \u002F `TP_ALPC` \u002F `TP_JOB`), the per-run restore stub, and the internal structure layouts.\n\nThe underlying techniques credit their original researchers:\n\n- **Thread Name-Calling (TNC)** - introduced by **hasherezade** (Check Point Research, July 2024). https:\u002F\u002Fresearch.checkpoint.com\u002F2024\u002Fthread-name-calling-using-thread-name-for-offense\u002F\n- **Pool Party \u002F `TP_DIRECT.Callback` dispatch primitive** - introduced by **Alon Leviev** (SafeBreach Labs, Black Hat EU 2023). https:\u002F\u002Fwww.safebreach.com\u002Fblog\u002Fprocess-injection-using-windows-thread-pools\u002F\n\nAll credit for the original research belongs to those authors. See the companion READMEs for a deeper walk-through of each primitive in isolation.\n\n\u003Cbr>\n\n## Architecture\n\nThe loader runs across three cooperating processes to break up the behavioral signature and keep each process's touch on the target minimal:\n\n### 1. Grandparent ([`GrandparentMain`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L1929))\n\nLaunches with no arguments. Does **all** target discovery:\n\n1. `NtQuerySystemInformation(SystemProcessInformation)` + `SystemExtendedHandleInformation` to enumerate processes, threads, and duplicatable handles.\n2. For each candidate process: steals a `TpWorkerFactory` handle, resolves the `_TP_POOL` VA via `NtQueryInformationWorkerFactory(WorkerFactoryBasicInformation)`, walks `TP_POOL.PoolObjectList` looking for a reachable `TP_IO` \u002F `TP_ALPC` \u002F `TP_JOB`, steals an `IoCompletion` handle, confirms at least one `WrQueue` thread is a genuine TPP worker (`ntdll!TppWorkerThread` as its `Win32StartAddress`), and finally scans the target's VA for a reusable `PAGE_EXECUTE_READWRITE` region of at least the wrapped-payload size.\n\n3. Spawns the Writer via `NtCreateUserProcess` with `MITIGATION_POLICY_HARDENED` (if [`SPAWN_HARDENED_CHILDREN`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L14) is enabled) and `PS_ATTRIBUTE_HANDLE_LIST` carrying the three stolen handles (`hProcess`, `hThread`, `hIoCompletion`, all with `OBJ_INHERIT`).\n\nThe chosen target is handed to the Writer as a 13-slot argv payload: PIDs, inherited handle values, `&TP_DIRECT`, `&TP_DIRECT.Callback`, the original Callback value, matched object kind, the RWX-reuse flag, and the reused RWX base (if any).\n\n### 2. Writer ([`WriterChildMain`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L2008))\n\nRepopulates `g_tpInjectTarget` from argv, and then:\n\n1. Composes the wrapped payload in local memory: `[restore stub (0x23 bytes with embedded data slot)] [polymorphic x64 cmd.exe shellcode] [8-byte Callback-patch pointer]`.\n2. Patches both of the restore stub's data slots: the original `TP_DIRECT.Callback` value (at stub `+0x00`) and the absolute address of `&TP_DIRECT.Callback` (as the `imm64` of `mov rcx, imm64` at stub `+0x16`).\n3. Either reuses the RWX region Grandparent found, or allocates a fresh granularity-sized region as `PAGE_READWRITE` via [`AllocateVirtualMemory`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L1145) & [`FindSuitableAddress`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L1063).\n4. Plants the Callback-patch pointer (= `pAllocatedAddress + RESTORE_STUB_ENTRY_OFFSET` = stub `+0x08`) at the tail of the local wrapped buffer, so the Flipper never needs it in its own address space.\n5. Delivers the full wrapped payload into the target via **Thread Name-Calling** ([`WriteMemoryViaThreadNameApc`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L1371)).\n6. Spawns the Flipper with the same three handles re-inherited one level deeper, and the chosen RWX mode in its argv.\n\n### 3. Flipper ([`FlipperChildMain`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L2136))\n \nRepopulates `g_tpInjectTarget` from argv and performs the hijack ([`HijackTpDirectCallback`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L1780)):\n\n1. Queues an in-target `RtlMoveMemory` APC that copies the 8-byte Callback-patch pointer from the tail of the payload region into `g_tpInjectTarget.pTpDirectCallbackVA`. The Flipper never fetches the pointer value into its own memory.\n2. If the Writer allocated fresh, flips the region from `PAGE_READWRITE` to `PAGE_EXECUTE_READWRITE` via `NtProtectVirtualMemory`. **Skipped on the RWX-reuse path**, since the region is already executable.\n3. `NtAlertThread` to drain the patch APC through the target's alertable wait.\n4. `NtSetIoCompletion` fires one completion packet on the stolen `IoCompletion` handle with `KeyContext = &TP_DIRECT`.\n\nThe pool worker dequeues the packet, reads `TP_DIRECT.Callback` (now = restore stub entry), and calls it with `RCX = &TP_DIRECT`. The restore stub puts the original Callback value back in place and falls through into the user payload. The payload's final `ret` lands back in `ntdll!TppWorkerThread`'s dispatch loop, and the worker re-enters its wait.\n\n\u003Cbr>\n\n\n## RWX Region Reuse\n\n### What it is\n\nThe default behavior of a cross-process shellcode loader is: allocate a region in the target with `NtAllocateVirtualMemory`, write the payload, then flip the region to RWX with `NtProtectVirtualMemory`. Those two calls are among the loudest primitives in a shellcode loader's behavioral trace, and the `NtProtectVirtualMemory(PAGE_EXECUTE_READWRITE)` flip in particular is a routine EDR trigger.\n\nMany real target processes already contain `PAGE_EXECUTE_READWRITE` regions in their user-mode address space. These regions typically come from:\n\n- JIT compilers (`.NET`, `V8`, `JVM`, `Lua`, `Flash`, `IE's Chakra`, etc.)\n- Managed runtimes that generate stubs at load time\n- Game engines, scripting hosts, interactive loaders\n\nThe RWX region scanner ([`FindRwxRegionInTarget`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L350)) walks the target's user-mode VA via `NtQueryVirtualMemory(MemoryBasicInformation)` and returns the first region that satisfies our [search logic](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L377).\n\n\nIf any candidate process satisfies this *in addition to* every other target-discovery gate, that process wins the scan immediately and the loader takes the reuse path. Writer skips `NtAllocateVirtualMemory` and uses the found base directly as its destination. Flipper skips `NtProtectVirtualMemory` since the region is already executable.\n\n### Fallback behavior\n\nIf no process passes both the discovery gates and the RWX scan, the scanner falls back to the first candidate that passed the discovery gates alone. That candidate is stashed as the loader walks the rest of the process list looking for an RWX winner; if the walk finishes without one, the fallback is promoted and Writer takes the classic allocate-then-flip path.\n\n\u003Cbr>\n\n\n## Target discovery\n\n[`FindTpInjectTargetProcess`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c) walks every process in the system and accepts the first candidate that satisfies all of the following gates in order:\n\n| Gate | Requirement                                                                                                                                                             | Why                                                                                            |\n|------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| (a)  | 64 bit (not WoW64), via [`NtQueryInformationProcess(ProcessWow64Information)`](https:\u002F\u002Fntdoc.m417z.com\u002Fntqueryinformationprocess) | Payload and offsets are x64 only.                                                              |\n| (b)  | Has at least one thread in `ThreadState=Waiting` \u002F `WaitReason=WrQueue`                                                                                                 | Cheap proxy for \"this process has a worker parked on a KQUEUE that can dispatch our packet.\"   |\n| (c)  | Openable with `PROCESS_VM_OPERATION \\| PROCESS_VM_READ \\| PROCESS_QUERY_INFORMATION \\| PROCESS_DUP_HANDLE` via [`NtOpenProcess`](https:\u002F\u002Fntdoc.m417z.com\u002Fntopenprocess) | **Note the absence of `PROCESS_VM_WRITE`.**                                                    |\n| (d)  | Exposes a duplicatable `TpWorkerFactory` handle                                                                                                                         | Required to resolve the target's `_TP_POOL` base through [`NtQueryInformationWorkerFactory`](https:\u002F\u002Fntdoc.m417z.com\u002Fntqueryinformationworkerfactory). |\n| (e)  | `TP_POOL.PoolObjectList` contains at least one `TP_IO` \u002F `TP_ALPC` \u002F `TP_JOB`                                                                                           | Needed structure to hijack.                                                                    |\n| (f)  | Exposes a duplicatable `IoCompletion` handle                                                                                                                            | Needed to fire the dispatch packet via `NtSetIoCompletion`.                                    |\n| (g)  | At least one `WrQueue` thread whose `Win32StartAddress == factory.StartRoutine` (`ntdll!TppWorkerThread`)                                                                | Filters out `.NET PortableThreadPool.IOCompletionPoller` and other non-TPP `WrQueue` dwellers, whose kernel wait is not alertable. |\n| (h)  | *(optional)* Exposes a reusable `PAGE_EXECUTE_READWRITE` region of at least the wrapped-payload size                                                                    | Wins the scan immediately when `REUSE_RWX_REGIONS == TRUE`; otherwise the first process to pass (a)-(g) is stashed as fallback.     |\n\nThe TPP-worker filter (gate g) is important: `WaitReason=WrQueue` matches any thread blocked on a `KQUEUE`, including `.NET PortableThreadPool.IOCompletionPoller` threads whose kernel wait (`NtRemoveIoCompletionEx(Alertable=FALSE)`) is non-alertable and will never drain our APCs. The filter uses `NtQueryInformationThread(ThreadQuerySetWin32StartAddress)` to distinguish a real TPP worker from a managed poller.\n\n\u003Cbr>\n\n\n## The Restore Stub\n\nThe restore stub ([`g_RestoreStubTemplate`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L1720), 0x23 bytes) is register-agnostic by design - the TPP dispatcher calls it with different ABIs depending on the object kind, so the stub reads only from fixed PE-relative data slots inside its own payload:\n\n```\n[+0x00..+0x07] Data slot: original TP_DIRECT.Callback value   (patched by EmitRestoreStub)\n[+0x08]        push rax\n[+0x09]        push rcx\n[+0x0A]        lea  rax, [rip - 0x11]        ; rax = &data_slot\n[+0x11]        mov  rax, [rax]                ; rax = original Callback value\n[+0x14]        mov  rcx, imm64                ; rcx = &TP_DIRECT.Callback   (patched by EmitRestoreStub)\n[+0x1E]        mov  [rcx], rax                ; *(&TP_DIRECT.Callback) = original\n[+0x21]        pop  rcx\n[+0x22]        pop  rax\n[+0x23]        (payload falls through here)\n```\n\nBoth runtime-dependent slots (the original Callback value at `+0x00`, and the `&TP_DIRECT.Callback` `imm64` at `+0x16`) are patched in by [`EmitRestoreStub`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c#L1748) in the Writer, before the buffer is delivered via TNC.\n\n\n\u003Cbr>\n\n\n## TppXp*VFuncs Resolution\n\nPrevious versions of this primitive (see [TpDirectCallbackHijack](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FTpDirectCallbackHijack)) relied on hardcoded ntdll RVAs regenerated per build via a standalone `NtdllRvaCheck` utility. WhisperLoader resolves them at runtime instead.\n\n[`TppVFuncsResolver.c`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FTppVFuncsResolver.c) creates one disposable kernel object of each kind inside the loader itself (a named pipe for `TP_IO`, an unnamed ALPC port for `TP_ALPC`, an unnamed job for `TP_JOB`), wraps each in the matching `TP_*` pool object with a stub callback (never invoked), reads `CleanupGroupMember.VFuncs` out of each live struct, and subtracts the ntdll base to derive the RVA. The disposable objects and ports are released before the resolver returns.\n\nThis logic removes the per-build hardcoded-RVA dependency entirely.\n\nWhisperLoader works on any Windows build whose `_TP_POOL` \u002F `TPP_CLEANUP_GROUP_MEMBER` layout matches [InternalStructures.h](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FInternalStructures.h) without a probe-and-recompile step.\n\n\u003Cbr>\n\n\n## Supporting Infrastructure\n\n- **Indirect syscalls** via `IndirectSyscalling.h` - all `Nt*` calls go through `INITIALIZE_SYSCALL` \u002F `INVOKE_SYSCALL` macros.\n- **API hashing** via `ResolveAPIs.h` using **CRC-32B**. Both case-sensitive (`HashStringCrc32bA` \u002F `HashStringCrc32bW` for API export names) and case-insensitive (`HashIStringCrc32bA` \u002F `HashIStringCrc32bW` for module names) variants are provided. See [github.com\u002FMaldev-Academy\u002FApiHashing](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FApiHashing).\n- **Hash regeneration** via the included [Crc32bHasher.py](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FCrc32bHasher.py):\n  ```\n  python Crc32bHasher.py NtOpenProcess NtClose RtlFillMemory      # case-sensitive (APIs)\n  python Crc32bHasher.py -i ntdll.dll kernel32.dll                # case-insensitive (modules)\n  ```\n  Output is ready to paste into `Common.h` as `CRC32B_*` defines.\n- **Unguard gadget** via `ReadThroughGadgets.h` to allow reading guarded memory for EAF-enabled targets.\n- **Granularity-based allocation** ([`FindSuitableAddress`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c) + [`AllocateVirtualMemory`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FMain.c)) that reserves a region at a predictable candidate base and commits individual pages; used only on the non-reuse path.\n- **Hardened child spawning** via `NtCreateUserProcess` with `MITIGATION_POLICY_HARDENED` and `PS_ATTRIBUTE_HANDLE_LIST` for cross-process handle inheritance across all three Grandparent -> Writer -> Flipper hops.\n- **Runtime `TppXp*VFuncs` resolution** via `TppVFuncsResolver.c` (see above), replacing per-build hardcoded RVAs.\n\n\u003Cbr>\n\n\n## Shellcode\n\nThe embedded payload is a polymorphic x64 `cmd.exe` generated by:\n\n```\nAlphabeticalPolyGen.exe --i x64CmdShellcode.bin --o x64CmdShellcode.bin.poly\n```\n\nSee [github.com\u002FMaldev-Academy\u002FAlphabeticalPolyShellGen](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FAlphabeticalPolyShellGen). The original (non-poly) shellcode source lives in [WhisperHijack](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperHijack\u002Fblob\u002Fmain\u002FWhisperHijack\u002FMain.c#L1181).\n\n\u003Cbr>\n\n\n## Behavioral Fingerprint\n\nPer injection (N = payload chunk count; P = pages in allocation):\n\n| Operation                                | Allocate path | **RWX-reuse path** | Where                      |\n|------------------------------------------|---------------|--------------------|----------------------------|\n| `NtWriteVirtualMemory` on target         | **0**         | **0**              | -                          |\n| `NtSetContextThread` on target thread    | **0**         | **0**              | -                          |\n| `NtSuspendThread` \u002F `NtResumeThread`     | **0**         | **0**              | -                          |\n| `NtCreateThread*` on target              | **0**         | **0**              | -                          |\n| `NtQueueApcThread` on target thread      | 4N + 1        | 4N + 1             | TNC per chunk + 1 for the Callback patch |\n| `NtAlertThread` on target thread         | N + 1         | N + 1              | TNC drain + Flipper drain  |\n| `NtReadVirtualMemory` on target          | N             | N                  | TNC scratch slot read      |\n| `NtSetIoCompletion` on stolen handle     | 1             | 1                  | Dispatch trigger           |\n| `NtAllocateVirtualMemory` on target      | 1 + P         | **0**              | Reserve + per-page commit  |\n| `NtProtectVirtualMemory` on target       | 1             | **0**              | RW -> RWX flip             |\n| `NtSetInformationThread(ThreadName)`     | N + 1         | N + 1              | TNC chunk stash + clear    |\n\nWriter-side (not touching the target): `NtCreateEvent` x1, `NtDuplicateObject` x1 (into target), `NtWaitForSingleObject` xN.\n\nGrandparent-side (discovery, before Writer spawn): `NtQuerySystemInformation` x2, `NtOpenProcess` + `NtQueryInformationProcess` + `NtDuplicateObject` + `NtReadVirtualMemory` + `NtQueryVirtualMemory` per candidate.\n\n\u003Cbr>\n\n## Demo\n\nTested successfully against `CrossDeviceService.exe` on Windows 11 24H2, which is a .NET-hosted ALPC service that keeps a `PAGE_EXECUTE_READWRITE` JIT code cache resident, which lets the RWX-reuse path hit end-to-end: both `NtAllocateVirtualMemory` and `NtProtectVirtualMemory` on the target are skipped entirely.\n\n**Full injection trace**: DebugView output showing the Grandparent -> Writer -> Flipper chain, target discovery with the RWX-reuse winner, Thread Name-Calling delivery into `CrossDeviceService.exe`, and the `TP_DIRECT.Callback` hand-off:\n\n![Injection trace](images\u002Finjection-trace.png)\n\n\u003Cbr>\n\n**Discovery detail**: scanner output confirming the chosen process, the matched `TP_IO` \u002F `TP_ALPC` \u002F `TP_JOB` kind, the reused RWX region's base address and size, and the stolen `TpWorkerFactory` \u002F `IoCompletion` handles:\n\n![Target discovery output](images\u002Fdiscovery-output.png)\n\n\u003Cbr>\n\n**Outcome**: `cmd.exe` spawned as a direct child of `CrossDeviceService.exe`. The pool worker returned cleanly to `ntdll!NtWaitForWorkViaWorkerFactory` and the service continued running:\n\n![cmd.exe spawned by CrossDeviceService.exe](images\u002Fcmd-spawned.png)\n\n\u003Cbr>\n\n\n## Supported Windows Versions\n\nInternal struct offsets in [InternalStructures.h](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FInternalStructures.h) have been verified against:\n\n* Windows 10 1607 \u002F Server 2016 LTSC   (ntdll 10.0.14393.x)\n* Windows 10 1809 \u002F Server 2019 LTSC   (ntdll 10.0.17763.x)\n* Windows 10 21H2 \u002F 22H2               (ntdll 10.0.19041.x)\n* Windows 11 22H2 \u002F 23H2               (ntdll 10.0.22621.x)\n* Windows 11 24H2 \u002F Server 2025        (ntdll 10.0.26100.x)\n* Windows 11 26H1 (Insider Preview)    (ntdll 10.0.28000.x)\n\nThe three `TppXp*CleanupGroupMemberVFuncs` RVAs are resolved at runtime via [`TppVFuncsResolver.c`](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FTppVFuncsResolver.c), so no per-build regeneration is required.\n\n\u003Cbr>\n\n\n## Known Limitations\n\n* **RWX reuse corrupts live JIT regions.** The reuse path overwrites bytes in whatever `PAGE_EXECUTE_READWRITE` `MEM_PRIVATE` region it finds first. On .NET \u002F Chakra \u002F V8 \u002F JVM \u002F Lua hosts, that region is almost always an active JIT code cache. Payload execution races against the runtime emitting new stubs into the same region. Set `REUSE_RWX_REGIONS = FALSE` to disable.\n\n* **Internal struct layout drift.** Future Windows builds may shift the field offsets in `TP_POOL`, `TPP_CLEANUP_GROUP_MEMBER`, `TP_IO`, `TP_ALPC`, `TP_JOB`, or `TP_DIRECT`. Verify via `dt ntdll!_TP_\u003Ckind>` in WinDbg and update [InternalStructures.h](https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperLoader\u002Fblob\u002Fmain\u002FWhisperLoader\u002FInternalStructures.h) accordingly. \n\n\u003Cbr>\n\n## References\n\n- **TpDirectCallbackHijack** - https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FTpDirectCallbackHijack\n- **WhisperHijack** - https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FWhisperHijack\n- **Thread Name-Calling** - https:\u002F\u002Fresearch.checkpoint.com\u002F2024\u002Fthread-name-calling-using-thread-name-for-offense\u002F\n- **Pool Party** - https:\u002F\u002Fgithub.com\u002FSafeBreach-Labs\u002FPoolParty\n- **ApiHashing** - https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FApiHashing\n- **AlphabeticalPolyShellGen** - https:\u002F\u002Fgithub.com\u002FMaldev-Academy\u002FAlphabeticalPolyShellGen","WhisperLoader 是一个面向 Windows 平台的隐蔽进程注入加载器，用于将 x64 shellcode 注入正在运行的 64 位进程。其核心采用 Thread Name-Calling（TNC）实现无写内存的载荷传递，并通过劫持线程池对象中的 TP_DIRECT.Callback 字段完成执行；支持复用目标进程中已存在的 PAGE_EXECUTE_READWRITE 内存区域，从而完全规避 NtAllocateVirtualMemory、NtProtectVirtualMemory 等敏感 API 调用。该技术不依赖 WriteProcessMemory、CreateRemoteThread 或线程挂起\u002F恢复等传统高检出操作，具备强隐蔽性。适用于红队演练、恶意软件开发教学及绕过基于行为\u002FAPI 监控的防御机制等安全研究场景。","2026-11-24 04:52:19","CREATED_QUERY"]