What is Process Injection?
Running malicious code inside a legitimate program that is already running. The process list shows a trusted application; the code executing inside it is not, and it inherits that application's trust.
Process Injection covers executing adversary code within the address space of another, legitimate process. It provides evasion, because the activity is attributed to a trusted application, and it can provide privilege inheritance and access to material that process holds, such as credentials or decrypted data. Techniques range from long-documented approaches to novel variants published regularly, and it is used across the spectrum from commodity crimeware to state-sponsored tooling. For decision-makers the significance is again a detection-strategy one: this is a clear case where inspecting files tells you nothing, since there may be no malicious file at all, and only runtime behavioural monitoring can observe one process writing into and starting execution in another. It is one of the concrete capabilities that distinguishes endpoint detection and response from traditional antivirus, and it is a reasonable thing to ask a security team to demonstrate their tooling actually detects, rather than assuming it does.
Source: MITRE ATT&CK (T1055).
Practice it in a lab
Free, hands-on labs that teach Process Injection.
- Detect process injection from Sysmon telemetry (advanced, ~90 min)
- Recognize process injection by its artifacts: the memory, threads, and handles it leaves (advanced, ~45 min)
- Read a binary's strings and imports in Ghidra to infer what it does (intermediate, ~40 min)
- Triage a Windows executable with PEStudio: indicators, imports, and what they reveal (intermediate, ~40 min)
- After the shell: Metasploit post-exploitation in your lab — and the traces it leaves for a defender (Part 2) (advanced, ~90 min)
- Hunt injected code in a memory image with Volatility 3 (memory forensics, part 2) (advanced, ~2 hours (plus download time for the memory image))
- Reconstruct a malware loader's execution chain: parent-child, temp files, and the final payload (advanced, ~60 min)
Related terms
Related
- Detect process injection from Sysmon telemetry
- Recognize process injection by its artifacts: the memory, threads, and handles it leaves
- Read a binary's strings and imports in Ghidra to infer what it does
- Triage a Windows executable with PEStudio: indicators, imports, and what they reveal
- After the shell: Metasploit post-exploitation in your lab — and the traces it leaves for a defender (Part 2)
- Hunt injected code in a memory image with Volatility 3 (memory forensics, part 2)
- Reconstruct a malware loader's execution chain: parent-child, temp files, and the final payload
- MITRE ATT&CK
- Blue team
- False positive
- OS Credential Dumping
- Cybersecurity glossary
- Free cyber labs