Loading...
Loading...
Reverse-engineer defense implementations → Targeted bypass for red teams. First reverse-engineer the hook tables, ETW providers, and AMSI implementations of EDR / Defender / AV, then develop targeted unhook / indirect syscall / ETW patch / call stack spoof solutions. Align with MITRE ATT&CK T1562 Defense Evasion. Trigger keywords: EDR bypass, AV bypass, evasion, unhook, direct syscall, indirect syscall, Hell's Gate, Halo's Gate, Tartarus Gate, ETW patch, AMSI patch, call stack spoofing, hardware breakpoint Blindside, MITRE T1562, ntdll unhook, kernel callback, CrowdStrike bypass, Defender bypass, Sentinel One bypass, Elastic Defend, Sysmon evasion, PPID spoof, Sleep mask, Process Hollowing, Reflective DLL.
npx skill4agent add zhaoxuya520/reverse-skill edr-bypass-reNOW../field-journal/precedent-reverse.mdNOWNEXT../tool-index.mdNEXTACTFor authorized red team / adversary simulation / in-house product testing only. Prohibited for unauthorized targets.
| Scenario | What to Use |
|---|---|
| Full-Link Offense (From External Network to Domain Controller) | |
| Internal Network Lateral Movement / AD Attack | |
| Need to bypass EDR to deliver implant on a specific host | This skill |
| Pure Static Evasion (Obfuscation / Packing) | |
attack-chainFour main monitoring surfaces of EDR Red Team Countermeasures
───────────────────── ─────────────────────
User-mode ntdll hook ◄──► unhook (Peruns Fart / fresh ntdll)
indirect syscall / Hell's Gate
hardware breakpoint Blindside
kernel callback ◄──► call stack spoof
(Ps/Cm/Ob series) Follow legitimate trigger chains (do not bypass directly, cooperate with upstream stealth)
ETW telemetry ◄──► EtwEventWrite patch
(Microsoft-Windows-Threat- NtTraceControl disable provider
Intelligence, etc.) AmsiContext synchronous processing
AMSI scanning ◄──► AmsiScanBuffer patch (mov eax,0x80070057; ret)
(amsi.dll) hardware breakpoint bypass
reflective loading of duplicate amsi.dll# List common EDR / AV drivers
Get-Service | Where-Object {$_.Name -match 'CSAgent|SentinelAgent|elasticendpoint|esets|ekrn|MsMpEng|wdsvc|cyserver|sysmon|aswbidsagent'}
# List loaded minifilters
fltmc filters
# List registered kernel callbacks (requires windbg + kernel debugging / or use PChunter / DRVHV)
# !object \Callback
# !pnpcallback / Process / Thread / Imagereferences/hook-survey.md.textntdll.dllC:\Windows\System32\ntdll.dllpe-sievepe-sieve64.exe /pid 1234 /shellc 3 /modules 3 /dir hooks_dumpreferences/hook-survey.md| Defense Point | Recommended Bypass Method |
|---|---|
| ntdll inline hook | indirect syscall + dynamic SSN (Halo's Gate) |
| ETW-TI provider | EtwEventWrite head patch |
| AMSI (PowerShell / .NET) | AmsiScanBuffer patch or HWBP |
| kernel callback | call stack spoof + use legit gadget |
| Sysmon ProcessCreate | PPID spoof + unbacked memory |
references/unhook-techniques.mdreferences/telemetry-blinding.md# Deploy trial version of target EDR in isolated environment (Defender is enabled by default for getting started)
# Enable Sysmon + olaf-config
sysmon64.exe -i sysmonconfig.xml
# Run implant and check if it triggers the following alert sources:
# - Defender AMSI
# - ETW-TI
# - Sysmon Event ID 1/7/8/10
# - EDR Consoleattack-chainTarget: Windows 11 Enterprise + Defender (cloud detection enabled) + Sysmon (olaf configuration)
Requirement: Beacon can callback after landing without triggering any alerts
Combination:
1. Shellcode stored encrypted, decrypted at runtime
2. AMSI patch (if delivered via PowerShell)
3. EtwEventWrite patch (eliminate ETW-TI)
4. Indirect syscall + Halo's Gate (eliminate ntdll hook alerts)
5. PPID spoof to explorer.exe
6. Use Ekko / Foliage to encrypt own memory during sleep phasePrerequisite: Already obtained medium IL shell via phishing, EDR is monitoring
Risk: Long-term residence is easy to be detected by memory scanning for beacon features
Solution:
1. No longer apply for new RWX memory
2. Use Ekko during sleep:
- WaitForSingleObjectEx + CreateTimerQueueTimer
- Encrypt own .text + flush stack to all 0 in the timer
3. Restore with ROP when waking up
4. Cooperate with call stack spoof to prevent RtlCaptureStackBackTrace from seeing beacon addresses| Tool | Purpose | Auto-Installable |
|---|---|---|
| pe-sieve | Detect hooks / injections in processes | ✓ |
| API Monitor v2 | Dynamically observe API calls and hooks | Semi-automatic (manual download required) |
| SysWhispers3 | Generate direct / indirect syscall stub | ✓(git clone + python) |
| Hell's Gate POC | Reference implementation for dynamic SSN parsing | ✓(git clone) |
| windbg + IDA | Static reverse-engineering of EDR DLL / kernel callback | ✗(install by yourself) |
| Sysmon + olaf config | Local verification environment | ✓ |
powershell -NoProfile -ExecutionPolicy Bypass -File "<SKILL_ROOT>\skills\scripts\bootstrap-reverse.ps1" -Capability @('pe-sieve','syswhispers3','sysmon') -StartServicesreverse-engineering/attack-chain/pentest-tools/network-attack-defense.mdmalware-analysis/field-journal/references/hook-survey.mdreferences/unhook-techniques.mdreferences/telemetry-blinding.mdtool-index