Skip to content
← RegistryDossier · 6 steps · 5 edges

Process hollowing → run beacon in svchost shell

Spawn svchost.exe suspended, unmap its image, write attacker PE into the same address space, resume — the process keeps a legit-looking PEB and command line but executes beacon code.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: foothold as a user or service account on Windows. EDR/AV is signature-only or doesn't yet detect manual map / Hell's-gate-style flow.

§ Steps

  1. 01
    Foothold shellInitial Access
    T1078Valid Accounts
  2. 02
    Beacon under svchost.exe identityCommand and Control
    T1071Application Layer Protocol
  3. 03
    WriteProcessMemory attacker PEDefense Evasion
    INJ-PROCESS-HOLLOWINGProcess Hollowing (T1055.012)
  4. 04
    NtUnmapViewOfSection on the loaded imageDefense Evasion
    INJ-PROCESS-HOLLOWINGProcess Hollowing (T1055.012)
  5. 05
    CreateProcess svchost.exe SUSPENDEDDefense Evasion
    INJ-PROCESS-HOLLOWINGProcess Hollowing (T1055.012)
  6. 06
    SetThreadContext + ResumeThreadDefense Evasion
    INJ-THREAD-HIJACKThread Execution Hijack

§ References

§ Frequently asked

What is the "Process hollowing → run beacon in svchost shell" attack path?
Spawn svchost.exe suspended, unmap its image, write attacker PE into the same address space, resume — the process keeps a legit-looking PEB and command line but executes beacon code. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Foothold shell (T1078) — a initial access primitive. Assumed environment: foothold as a user or service account on Windows.
What is the final impact of this kill-chain?
The final step lands on SetThreadContext + ResumeThread (INJ-THREAD-HIJACK), which falls under Defense Evasion. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers