Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://github.com/JoasASantos/SysWhispers4 Content Categories: Based on the analysis, this content was categorized under "Windows Hardening -> Antivirus (AV) Bypass (and/or a new subpage under Windows Red Teaming/EDR Evasion: "Direct/Indirect Syscalls (SysWhispers, Hell's Gate/Halo's Gate/Tartarus' Gate, FreshyCalls/RecycledGate, SyscallsFromDisk, HW breakpoint SSN extraction)")". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Title/Goal
SysWhispers4 is a Python-based syscall-stub generator (Python 3.10+) that outputs C/ASM code to invoke Windows NT kernel services via direct and indirect syscalls, with the explicit purpose of bypassing user-mode AV/EDR hooks on ntdll.dll.
It supports Windows NT 3.1 through Windows 11 24H2 and multiple architectures: x64, x86 (32-bit sysenter), WoW64 (Heaven’s Gate), and ARM64 (uses
SVC #0<...🔧 Technical Details
Bypass user-mode EDR hooks via direct/indirect syscalls:
If EDRs inline-hook
ntdll.dllsyscall stubs (e.g., trampolines inserted into.text), generate a custom syscall stub that sets the SSN (commonly inEAXon x64) and performs the kernel transition directly (syscall/sysenter/SVC #0) to avoid executing the hooked export. For additional blending, use indirect syscalls that jump to an existingsyscallgadget insidentdllso thatRIPis insidentdllat transition; optionally randomize among a gadget pool (up to 64 gadgets) per call to add entropy.Resolve SSNs without trusting hooked bytes:
When hooks corrupt syscall stub bytes, avoid opcode-based SSN extraction by (a) inferring SSNs via VA sorting of syscall stubs (FreshyCalls), (b) mapping a clean
ntdllimage from\KnownDlls\ntdll.dlland...🤖 Agent Actions
Summary:
src/windows-hardening/av-bypass.md.src/windows-hardening/av-bypass.md.Tests: not run (documentation-only change).
If you want, I can also add a short cross-link from any Windows EDR/OPSEC page you prefer (no new file).
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.