detecting-process-injection-techniques

Featured

Detects and analyzes process injection techniques used by malware including classic DLL injection, process hollowing, APC injection, thread hijacking, and reflective loading. Uses memory forensics, API monitoring, and behavioral analysis to identify injection artifacts. Activates for requests involving process injection detection, code injection analysis, hollowed process investigation, or in-memory threat detection.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Detecting Process Injection Techniques ## When to Use - EDR alerts on suspicious API call sequences (VirtualAllocEx + WriteProcessMemory + CreateRemoteThread) - A legitimate process (explorer.exe, svchost.exe) exhibits unexpected network connections or file operations - Memory forensics reveals executable code in memory regions that should not contain it - Investigating living-off-the-land attacks where malware hides inside trusted processes - Building detection logic for specific injection techniques in EDR or SIEM rules **Do not use** for standard DLL loading analysis; injection implies unauthorized code placement in a process without that process's cooperation. ## Prerequisites - Volatility 3 for memory forensics analysis of injection artifacts - Sysmon configured with Event IDs 8 (CreateRemoteThread) and 10 (ProcessAccess) - API Monitor or x64dbg for observing injection API calls in real-time - Process Hacker or Process Explorer for inspecting process memory regions - Understanding of Windows memory management (VirtualAlloc, VAD, page protections) - Isolated analysis environment for safe malware execution and monitoring ## Workflow ### Step 1: Identify Injection via Memory Forensics Use Volatility to detect injected code in process memory: ```bash # malfind: Primary injection detection plugin vol3 -f memory.dmp windows.malfind # malfind detects: # - Memory regions with PAGE_EXECUTE_READWRITE (RWX) protection # - PE headers (MZ signature) in non-image VAD entri...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

hunting-for-process-injection-techniques

Detect process injection techniques (T1055) including CreateRemoteThread, process hollowing, and DLL injection via Sysmon Event IDs 8 and 10 and EDR process telemetry

36,355 Updated 2 months ago
mukul975
AI & Automation Featured

detecting-t1055-process-injection-with-sysmon

Detect process injection techniques (T1055) including classic DLL injection, process hollowing, and APC injection by analyzing Sysmon events for cross-process memory operations, remote thread creation, and anomalous DLL loading patterns.

36,355 Updated 2 months ago
mukul975
DevOps & Infrastructure Listed

detect-shellcode-injection

Detection and hunting methodology for shellcode injection and in-memory execution: CreateRemoteThread injection, PE and DLL injection, process hollowing, thread execution hijacking, APC injection, and reflective code loading (MITRE ATT&CK T1055 with .001 .002 .003 .004 .012 .008 .009, T1620, T1106). Keys off Windows endpoint telemetry: Sysmon EID 8, 10, 25, 7, and 1 / Security 4688, the Microsoft-Windows-Threat-Intelligence ETW provider, Microsoft Defender for Endpoint DeviceEvents, plus Linux ptrace and memfd signals. Gives the allocate-write-execute footprint, unbacked-memory signals, a memory-forensics hunt, and exploit-protection, application-control, and EDR hardening. Use when triaging a suspected process-injection or in-memory implant, hunting for CreateRemoteThread into unbacked memory or process hollowing, investigating RWX private memory, reviewing EDR injection alerts, or hardening a fleet against fileless execution.

0 Updated 5 days ago
umbrasec-labs