Windows API reference
QueueUserAPC
Queues a user-mode asynchronous procedure call to the specified thread; the APC runs when the thread enters an alertable wait.
- Library
- Kernel32.dll
- Category
- Injection
- Suspicion
- high
Detection summary
APC injection, including early-bird injection: queue a callback to a remote thread in a target process, often a newly created suspended process; detect ETW-TI APC events, thread/process creation followed by APC queuing, APC routine addresses in private executable memory, and alertable-wait behavior. Sysmon 8 does not record APC queuing.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Threat-Intelligence
- Notes: Sysmon 8 records remote thread creation, not QueueUserAPC. EDR kernel callbacks or ETW-TI are required; direct syscalls can bypass user-mode hooks.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Thread pools, I/O completion, COM/RPC, debuggers and application frameworks.
Related APIs
- NtQueueApcThread — Ntdll.dll
- ResumeThread — Kernel32.dll
- OpenThread — Kernel32.dll