Detecting T1055 Process Injection With Sysmon
Overview
Cybersecurity skill for detecting t1055 process injection with sysmon. Follows industry best practices and security standards.
When to Use
Trigger phrases:
"detecting t1055 process injection with sysmon"
"Detect process injection techniques (T1055) including classic DLL injection, pro"
When hunting for defense evasion techniques that hide malicious code inside legitimate processes
After EDR alerts for suspicious cross-process memory access or remote thread creation
When investigating malware that injects into svchost.exe, explorer.exe, or other system processes
During purple team exercises testing detection of process injection variants
When validating Sysmon configuration coverage for injection detection
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
- Sysmon deployed with comprehensive configuration capturing Events 1, 7, 8, 10, 25
- Event ID 8 (CreateRemoteThread) enabled for remote thread detection
- Event ID 10 (ProcessAccess) configured with appropriate access mask filters
- Event ID 7 (ImageLoaded) for DLL injection detection
- Event ID 25 (ProcessTampering) for process hollowing on Sysmon 13+
- SIEM platform for correlation and alerting
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 t1055 process injection 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 t1055 process injection.
- Build Detection Queries — Write sysmon queries targeting t1055 process injection indicators. Use platform-specific query language for optimal performance.
- 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
- sysmon — Primary tool for this skill
- 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-t1055-process-injection-with-sysmon3description: Use when detect process injection techniques (T1055) including classic4 DLL injection, process hollowing, and APC injection by analyzing Sysmon events for5 cross-process memory operations, remote thread creation, and anomalous DLL loading6 patterns. Use when detecting process injection techniques (t1055) including classic7 dll injection, process.8domain: cybersecurity9tags:10- threat-hunting11- process-injection12- sysmon13- mitre-t105514- defense-evasion15- dll-injection16- process-hollowing17subdomain: threat-hunting18version: '1.0'19author: oyi7720license: Apache-2.021d3fend_techniques:22- Executable Denylisting23- Execution Isolation24- File Metadata Consistency Validation25- Content Format Conversion26- File Content Analysis27nist_csf:28- DE.CM-0129- DE.AE-0230- DE.AE-0731- ID.RA-0532category: cybersecurity33metadata:34 source: https://skillmd.com/skills/oyi77/detecting-t1055-process-injection-with-sysmon35---3637# Detecting T1055 Process Injection With Sysmon3839## Overview4041Cybersecurity skill for detecting t1055 process injection with sysmon. Follows industry best practices and security standards.4243## When to Use44**Trigger phrases:**45- "detecting t1055 process injection with sysmon"46- "Detect process injection techniques (T1055) including classic DLL injection, pro"474849- When hunting for defense evasion techniques that hide malicious code inside legitimate processes50- After EDR alerts for suspicious cross-process memory access or remote thread creation51- When investigating malware that injects into svchost.exe, explorer.exe, or other system processes52- During purple team exercises testing detection of process injection variants53- When validating Sysmon configuration coverage for injection detection545556## When NOT to Use5758- When you lack proper authorization for testing59- For production systems without change management60- When the task requires legal or compliance expertise beyond technical scope616263## Prerequisites6465- Sysmon deployed with comprehensive configuration capturing Events 1, 7, 8, 10, 2566- Event ID 8 (CreateRemoteThread) enabled for remote thread detection67- Event ID 10 (ProcessAccess) configured with appropriate access mask filters68- Event ID 7 (ImageLoaded) for DLL injection detection69- Event ID 25 (ProcessTampering) for process hollowing on Sysmon 13+70- SIEM platform for correlation and alerting7172## Workflow7374```python75# Example: IOC detection76import re7778IOC_PATTERNS = {79 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",80 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",81 "hash_md5": r"\b[a-f0-9]{32}\b",82 "hash_sha256": r"\b[a-f0-9]{64}\b",83}8485def extract_iocs(text: str) -> dict:86 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}87```88891. **Define Detection Scope** — Identify the specific t1055 process injection techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.902. **Collect Baseline Data** — Gather historical logs and establish normal behavior patterns for t1055 process injection.913. **Build Detection Queries** — Write sysmon queries targeting t1055 process injection indicators. Use platform-specific query language for optimal performance.924. **Execute Hunts** — Run queries against the collected data, starting with broad filters and narrowing down.935. **Triage Results** — Investigate alerts, filter false positives, and validate findings against known-good behavior.946. **Document Findings** — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.9596## Tools9798- **sysmon** — Primary tool for this skill99- **SIEM Platform** — Central log aggregation and query execution100- **Sigma Rules** — Vendor-agnostic detection rule format101- **MITRE ATT&CK Navigator** — Technique mapping and coverage analysis102103104## Process1051061. **Reconnaissance** — Gather target information, identify attack surface, enumerate services1071. **Analysis/Exploitation** — Execute the technique, analyze results, document findings1081. **Reporting** — Document IOCs, write findings, provide remediation recommendations109110## Verification111112- [ ] All t1055 process injection procedures executed completely and documented113- [ ] Findings validated against multiple data sources114- [ ] False positives identified and filtered115- [ ] Results documented with evidence and timestamps116- [ ] Recommendations provided with risk-based prioritization117118## Anti-Rationalization Table119120| Rationalization | Reality |121|---|---|122| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |123| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |124| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |