Detecting Process Hollowing Technique
Overview
Cybersecurity skill for detecting process hollowing technique. Follows industry best practices and security standards.
When to Use
Trigger phrases:
"detecting process hollowing technique"
"Detect process hollowing (T1055"
When investigating suspected fileless malware or in-memory threats
After EDR alerts on process injection or suspicious memory operations
When hunting for defense evasion techniques in a compromised environment
When threat intel reports indicate process hollowing in active campaigns
During purple team exercises validating T1055.012 detection coverage
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- EDR with memory protection monitoring (CrowdStrike, MDE, SentinelOne)
- Sysmon with Event IDs 1 (Process Create), 8 (CreateRemoteThread), 25 (ProcessTampering)
- Windows ETW providers for process hollowing (Microsoft-Windows-Kernel-Process)
- Memory forensics capabilities (Volatility, WinDbg)
- Process integrity monitoring tools
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Define Detection Scope — Identify the specific process hollowing technique techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.
- Collect Baseline Data — Gather historical logs and establish normal behavior patterns for process hollowing technique.
- Build Detection Queries — Write detection rules, Sigma rules, or SIEM queries targeting process hollowing technique indicators.
- Execute Hunts — Run queries against the collected data, starting with broad filters and narrowing down.
- Triage Results — Investigate alerts, filter false positives, and validate findings against known-good behavior.
- Document Findings — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.
Tools
- SIEM Platform — Central log aggregation and query execution
- Sigma Rules — Vendor-agnostic detection rule format
- MITRE ATT&CK Navigator — Technique mapping and coverage analysis
Process
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: detecting-process-hollowing-technique3description: Use when detect process hollowing (T1055.012) by analyzing memory-mapped4 sections, hollowed process indicators, and parent-child process anomalies in EDR5 telemetry. Use when detecting process hollowing (t1055.012) by analyzing memory-mapped6 sections, hollowed process.7domain: cybersecurity8tags:9- threat-hunting10- mitre-attack11- process-hollowing12- process-injection13- edr14- t105515- proactive-detection16subdomain: threat-hunting17version: '1.0'18author: oyi7719license: Apache-2.020d3fend_techniques:21- Platform Monitoring22- Process Code Segment Verification23- Segment Address Offset Randomization24- Process Analysis25- Application Hardening26nist_csf:27- DE.CM-0128- DE.AE-0229- DE.AE-0730- ID.RA-0531category: cybersecurity32metadata:33 source: https://skillmd.com/skills/oyi77/detecting-process-hollowing-technique34---3536# Detecting Process Hollowing Technique3738## Overview3940Cybersecurity skill for detecting process hollowing technique. Follows industry best practices and security standards.4142## When to Use43**Trigger phrases:**44- "detecting process hollowing technique"45- "Detect process hollowing (T1055"464748- When investigating suspected fileless malware or in-memory threats49- After EDR alerts on process injection or suspicious memory operations50- When hunting for defense evasion techniques in a compromised environment51- When threat intel reports indicate process hollowing in active campaigns52- During purple team exercises validating T1055.012 detection coverage535455## When NOT to Use5657- When you lack proper authorization for testing58- For production systems without change management59- When the task requires legal or compliance expertise beyond technical scope606162## Prerequisites6364- EDR with memory protection monitoring (CrowdStrike, MDE, SentinelOne)65- Sysmon with Event IDs 1 (Process Create), 8 (CreateRemoteThread), 25 (ProcessTampering)66- Windows ETW providers for process hollowing (Microsoft-Windows-Kernel-Process)67- Memory forensics capabilities (Volatility, WinDbg)68- Process integrity monitoring tools6970## Workflow7172```python73# Example: IOC detection74import re7576IOC_PATTERNS = {77 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",78 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",79 "hash_md5": r"\b[a-f0-9]{32}\b",80 "hash_sha256": r"\b[a-f0-9]{64}\b",81}8283def extract_iocs(text: str) -> dict:84 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}85```86871. **Define Detection Scope** — Identify the specific process hollowing technique techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.882. **Collect Baseline Data** — Gather historical logs and establish normal behavior patterns for process hollowing technique.893. **Build Detection Queries** — Write detection rules, Sigma rules, or SIEM queries targeting process hollowing technique indicators.904. **Execute Hunts** — Run queries against the collected data, starting with broad filters and narrowing down.915. **Triage Results** — Investigate alerts, filter false positives, and validate findings against known-good behavior.926. **Document Findings** — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.9394## Tools9596- **SIEM Platform** — Central log aggregation and query execution97- **Sigma Rules** — Vendor-agnostic detection rule format98- **MITRE ATT&CK Navigator** — Technique mapping and coverage analysis99100101## Process1021031. **Reconnaissance** — Gather target information, identify attack surface, enumerate services1041. **Analysis/Exploitation** — Execute the technique, analyze results, document findings1051. **Reporting** — Document IOCs, write findings, provide remediation recommendations106107## Verification108109- [ ] All process hollowing technique procedures executed completely and documented110- [ ] Findings validated against multiple data sources111- [ ] False positives identified and filtered112- [ ] Results documented with evidence and timestamps113- [ ] Recommendations provided with risk-based prioritization114115## Anti-Rationalization Table116117| Rationalization | Reality |118|---|---|119| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |120| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |121| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |