shellcode
A small piece of raw machine code, without any file headers, written to run directly wherever it lands in memory.
In more detail
A private executable region that starts with typical stub instructions, such as cld followed by and rsp,-16, rather than an MZ header, often holds shellcode from tools such as Metasploit. Dump it and triage it like any other sample.
Related terms
- process injection — Running malicious code inside another, legitimate process, so it hides behind that process's name and permissions.
- Metasploit — An open-source penetration testing framework with ready-made exploits and payloads, also used by real attackers.
- windows.malfind — A Volatility plugin that looks for memory regions likely to hold injected code: private, executable and not backed by a file.
Taught in
- Memory Forensics: Process Trees & Injection — Security Operations & Threat Hunting (SOC)