Detecting Evasion Techniques In Endpoint Logs
Overview
Cybersecurity skill for detecting evasion techniques in endpoint logs. Follows industry best practices and security standards.
When to Use
Trigger phrases:
- "detecting evasion techniques in endpoint logs"
- "Hunting for adversary defense evasion techniques (MITRE ATT&CK TA0005) in endpoi"
- "Building detection rules for common evasion methods (process injection, timestom"
- "Investigating incidents where adversaries disabled or bypassed security tools"
Use this skill when:
- Hunting for adversary defense evasion techniques (MITRE ATT&CK TA0005) in endpoint telemetry
- Building detection rules for common evasion methods (process injection, timestomping, log clearing)
- Investigating incidents where adversaries disabled or bypassed security tools
- Analyzing endpoint logs for indicators of living-off-the-land binary (LOLBin) abuse
Do not use this skill for network-level evasion (use network traffic analysis) or for malware reverse engineering.
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 installed and configured with comprehensive logging rules (SwiftOnSecurity or Olaf Hartong config)
- Windows Security Event Log with advanced audit policy enabled
- EDR telemetry (CrowdStrike, SentinelOne, Microsoft Defender for Endpoint)
- SIEM platform for log correlation (Splunk, Elastic, Sentinel)
- MITRE ATT&CK Enterprise matrix for technique reference
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 evasion techniques in endpoint logs 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 evasion techniques in endpoint logs.
- Build Detection Queries — Write detection rules, Sigma rules, or SIEM queries targeting evasion techniques in endpoint logs 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-evasion-techniques-in-endpoint-logs3description: Use when detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.4license: Apache-2.05---67# Detecting Evasion Techniques In Endpoint Logs89## Overview1011Cybersecurity skill for detecting evasion techniques in endpoint logs. Follows industry best practices and security standards.1213## When to Use1415**Trigger phrases:**16- "detecting evasion techniques in endpoint logs"17- "Hunting for adversary defense evasion techniques (MITRE ATT&CK TA0005) in endpoi"18- "Building detection rules for common evasion methods (process injection, timestom"19- "Investigating incidents where adversaries disabled or bypassed security tools"202122Use this skill when:23- Hunting for adversary defense evasion techniques (MITRE ATT&CK TA0005) in endpoint telemetry24- Building detection rules for common evasion methods (process injection, timestomping, log clearing)25- Investigating incidents where adversaries disabled or bypassed security tools26- Analyzing endpoint logs for indicators of living-off-the-land binary (LOLBin) abuse2728**Do not use** this skill for network-level evasion (use network traffic analysis) or for malware reverse engineering.293031## When NOT to Use3233- When you lack proper authorization for testing34- For production systems without change management35- When the task requires legal or compliance expertise beyond technical scope363738## Prerequisites3940- Sysmon installed and configured with comprehensive logging rules (SwiftOnSecurity or Olaf Hartong config)41- Windows Security Event Log with advanced audit policy enabled42- EDR telemetry (CrowdStrike, SentinelOne, Microsoft Defender for Endpoint)43- SIEM platform for log correlation (Splunk, Elastic, Sentinel)44- MITRE ATT&CK Enterprise matrix for technique reference4546## Workflow4748```python49# Example: IOC detection50import re5152IOC_PATTERNS = {53 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",54 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",55 "hash_md5": r"\b[a-f0-9]{32}\b",56 "hash_sha256": r"\b[a-f0-9]{64}\b",57}5859def extract_iocs(text: str) -> dict:60 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}61```62631. **Define Detection Scope** — Identify the specific evasion techniques in endpoint logs techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.642. **Collect Baseline Data** — Gather historical logs and establish normal behavior patterns for evasion techniques in endpoint logs.653. **Build Detection Queries** — Write detection rules, Sigma rules, or SIEM queries targeting evasion techniques in endpoint logs indicators.664. **Execute Hunts** — Run queries against the collected data, starting with broad filters and narrowing down.675. **Triage Results** — Investigate alerts, filter false positives, and validate findings against known-good behavior.686. **Document Findings** — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.6970## Tools7172- **SIEM Platform** — Central log aggregation and query execution73- **Sigma Rules** — Vendor-agnostic detection rule format74- **MITRE ATT&CK Navigator** — Technique mapping and coverage analysis757677## Process78791. **Reconnaissance** — Gather target information, identify attack surface, enumerate services801. **Analysis/Exploitation** — Execute the technique, analyze results, document findings811. **Reporting** — Document IOCs, write findings, provide remediation recommendations8283## Verification8485- [ ] All evasion techniques in endpoint logs procedures executed completely and documented86- [ ] Findings validated against multiple data sources87- [ ] False positives identified and filtered88- [ ] Results documented with evidence and timestamps89- [ ] Recommendations provided with risk-based prioritization9091## Anti-Rationalization Table9293| Rationalization | Reality |94|---|---|95| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |96| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |97| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |