Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / EXECUTION

APC Injection

This note documents detection patterns related to APC Injection within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Sysmon8CreateRemoteThreadHighSometimes adjacent to APC staging.
Sysmon10Process accessCriticalHandle access before APC queueing.
Sysmon1Process creationCriticalLoader process lineage.
Security4688Process creationCriticalParent-child context.
Sysmon7Image loadedMediumLoader DLL context.
Sysmon11File createMediumLoader staging artifact.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Process access + no remote thread but payload runsAPC suspicionCriticalCommon APC clue.
Suspicious target process wakes laterDelayed executionCriticalAPC hallmark.
QueueUserAPC usage in loaderDirect indicatorCriticalHigh-confidence signal.
explorer/svchost targetedCommon APC targetsHighValuable clue.
Loader exits after queueStager behaviorHighCommon operator pattern.
Payload begins on alertable threadAPC execution contextHighMemory clue

Common Tools

ToolUsage
Cobalt StrikeAPC injection
custom loadersQueueUserAPC
MetasploitAPC-based injection
PowerShell loadersAPC shellcode staging

Relevant Artifacts

  • Sysmon Event IDs 8, 10, 1, 7, 11
  • Security Event ID 4688
  • API focus:
    • QueueUserAPC
    • NtQueueApcThread
  • Process memory regions
  • EDR thread telemetry

MITRE ATT&CK References

  • T1055.004 Asynchronous Procedure Call

Decision Tree

  1. Which loader?

    • shell
    • DLL
    • implant
  2. Which target process?

    • explorer
    • svchost
    • browser
  3. Process access first?

    • Yes
  4. Delayed execution?

    • Immediate
    • Later thread wake
  5. Expand:

    • Reflective load
    • Thread hijack
    • Beacon
  6. Scope:

    • Single target
    • Multiple APC queues
    • Framework pattern

Example Detection Templates

KQL

Sysmon
| where EventID == 10
| project TimeGenerated, Computer, SourceImage, TargetImage, GrantedAccess

EQL

sequence by host.name with maxspan=5m
  [ process where true ]
  [ process where event.code == "10" ]

Sigma

title: APC Injection Detection
id: 7c3e5a14-apc-injection
status: experimental
description: Detects suspicious APC injection precursors
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID: 10
  condition: selection
fields:
  - SourceImage
  - TargetImage
falsepositives:
  - Security software
level: high
tags:
  - attack.defense_evasion

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Monitor process accessCore APC precursorCriticalStrong signal
EDR thread telemetryDetect APC queueingCriticalBest coverage
Watch delayed target executionAPC clueHighValuable enrichment
Correlate with loader lineageHigh-confidence chainCriticalStrong triage
Preserve memory evidenceEssentialHighDFIR critical