Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Process Injection

Process injection is when an attacker runs their own code inside another program that is already running.

Published
Reading Time
2 min read
Dark glass dark glass needle piercing a glass bubble with red glowing thread with red neon lines, cover art for: Process Injection

The code then borrows the identity of that program. This can help it avoid security tools and, in some cases, gain more access.

How it works

Every running program has its own memory space. In process injection, the attacker finds a way to place and run code inside the memory of a different, live process.

Running inside another process can give access to that process’s memory, system and network resources, and sometimes higher privileges. Security products may also miss the activity, because it appears to come from a legitimate program.

A related technique, reflective code loading, runs a payload straight from memory without a file on disk.

There are many ways to do this, and many abuse normal features of the system. They exist for every major operating system but are usually specific to one. MITRE lists a dozen sub-techniques, such as process hollowing. More advanced malware may inject into several processes and let them talk to each other.

MITRE lists 12 sub-techniques: T1055.001 Dynamic-link Library Injection; T1055.002 Portable Executable Injection; T1055.003 Thread Execution Hijacking; T1055.004 Asynchronous Procedure Call; T1055.005 Thread Local Storage; T1055.008 Ptrace System Calls; T1055.009 Proc Memory; T1055.011 Extra Window Memory Injection; T1055.012 Process Hollowing; T1055.013 Process Doppelgänging; T1055.014 VDSO Hijacking; T1055.015 ListPlanting.

A real example

Procedure examples listed by MITRE ATT&CK:

  • ABK can inject shellcode into svchost.exe.
  • ANDROMEDA can inject into the wuauclt.exe process to carry out command and control actions.
  • Backdoor.Oldrea injects itself into explorer.exe.
  • Agent Tesla can inject into known, vulnerable binaries on targeted hosts.
  • APT32 is listed by MITRE ATT&CK as having injected a Cobalt Strike beacon into Rundll32.exe.

Who uses it

How to detect

  1. Memory and thread activity

    Correlate calls that change another process's memory with the creation of unusual threads and unexpected library loads in that process.

  2. System call logs on Linux

    Use audit logs to see system calls that target running processes, along with suspicious file descriptors or memory writes.

  3. Memory access on macOS

    Monitor for one process reaching into another process's memory, and for libraries forced into a program.

  4. Detection strategy MITRE lists

    DET0508, Behavioral Detection of Process Injection Across Platforms.

How to defend

  1. Behavior prevention on endpoints

    Configure endpoint security to block behavior sequences common in injection. On Windows 10, attack surface reduction rules can stop Office applications from injecting code.

  2. Limit debugging access on Linux

    Restrict ptrace to privileged users, and use access control modules such as SELinux or AppArmor to limit what processes can do.

Frequently Asked Questions

What is process injection?

Process injection is when an attacker runs their own code inside the memory of another program that is already running. The code then borrows the identity of that program, which can help it avoid security tools.

Why do attackers use process injection?

Running inside another process can give access to that process's memory, system and network resources, and sometimes higher privileges. Security products may also miss the activity because it appears to come from a legitimate program.

How can process injection be detected?

Correlate calls that change another process's memory with the creation of unusual threads and unexpected library loads. On Linux, audit logs show system calls that target running processes. On macOS, watch for one process reaching into another's memory.

How do I defend against process injection?

Configure endpoint security to block behavior sequences common in injection. On Windows 10, attack surface reduction rules can stop Office applications from injecting code. On Linux, restrict ptrace to privileged users and use SELinux or AppArmor.

Sources

  1. MITRE ATT&CK T1055: Process InjectionMITRE
  2. MITRE ATT&CK T1055.012: Process Injection: Process HollowingMITRE
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →