edr-evasion

Solid

Use when bypassing EDR/AV to run a payload — hook unhooking, direct/indirect syscalls, PPID spoofing, process injection, AMSI bypass, ETW patching, memory/sleep encryption, behavioral evasion

Data & Documents 428 stars 77 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 92/100

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

Skill Content

# EDR Evasion ## When to Activate - Planning EDR bypass during red team engagements - Researching AV/EDR evasion techniques - Developing implants that must survive endpoint detection - Testing detection capabilities of security products ## Fundamentals ### AV vs EDR **Antivirus (preventive)**: - Static analysis: matching known signatures in files - Dynamic analysis: limited behavioral monitoring/sandboxing - Effective against known threats, weaker against advanced attacks **EDR (proactive & investigative)**: - Continuous endpoint monitoring - Behavioral analysis at kernel level - Anomaly detection and post-compromise visibility - Prioritizes incident response and investigation ### Windows Execution Flow ``` Application → DLL (kernel32/ntdll) → Syscall → Kernel (ntoskrnl) ↑ EDR hooks here (userland hooks in ntdll) ``` ## Hook Unhooking ### Userland Unhooking (ntdll.dll) EDRs hook ntdll functions by replacing the first bytes with a JMP to their inspection code. ```c // Method 1: Map fresh ntdll from disk HANDLE hFile = CreateFileA("C:\\Windows\\System32\\ntdll.dll", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); HANDLE hMapping = CreateFileMapping(hFile, NULL, PAGE_READONLY | SEC_IMAGE, 0, 0, NULL); LPVOID freshNtdll = MapViewOfFile(hMapping, FILE_MAP_READ, 0, 0, 0); // Get .text section of loaded ntdll HMODULE loadedNtdll = GetModuleHandleA("ntdll.dll"); PIMAGE_DOS_HEADER dosHeader = (PIMAGE_DOS_HEADER...

Details

Author
hypnguyen1209
Repository
hypnguyen1209/offensive-claude
Created
6 months ago
Last Updated
1 months ago
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

edr-evasion

EDR/AV evasion methodology for authorized red team operations. Covers process injection, AMSI bypass, ETW patching, LOLBins, reflective loading, and obfuscation techniques for testing endpoint detection coverage.

4 Updated 1 months ago
sunilgentyala
DevOps & Infrastructure Featured

offensive-edr-evasion

EDR evasion offensive checklist: hook unhooking (user/kernel), direct syscalls, PPID spoofing, process injection variants, AMSI bypass, ETW patching, memory encryption, and behavior-based evasion. Use when planning EDR bypass during red team engagements or researching AV/EDR evasion techniques.

11,367 Updated 5 days ago
SnailSploit
DevOps & Infrastructure Listed

detect-edr-evasion

Detection and hunting methodology for endpoint sensor tampering: AMSI patching (amsi.dll AmsiScanBuffer), ETW blinding (ntdll EtwEventWrite and provider disable), and userland API unhooking that restores a clean ntdll to defeat hooks (MITRE ATT&CK T1685 Disable or Modify Tools, including indicator blocking, with related T1620 Reflective Code Loading and T1055 Process Injection). Keys off Windows endpoint telemetry: Sysmon Image/DLL load (EID 7), ProcessTampering (EID 25), CreateRemoteThread (EID 8), PowerShell Script Block Logging (EID 4104), Defender Operational events, and the suspicious absence of expected ETW providers. Gives a defender view of the signals, a hunt for unhooking and telemetry gaps, and tamper-resistant logging and application-control hardening. Use when triaging a suspected AMSI or ETW bypass, hunting for DLL unhooking or ntdll tampering, investigating why endpoint telemetry went quiet on a host, reviewing EDR tamper-protection alerts, or hardening a fleet against defense impairment.

0 Updated 1 weeks ago
umbrasec-labs