LayeredSyscall VEH to Bypass EDR
by redEyesBlackDrag - Friday January 10, 2025 at 08:27 PM
#1
The general idea is to generate a legitimate call stack before performing the indirect syscallwhile switching modes to the kernel land and also to support up to 12 arguments.Additionally, the call stack could be of the user’s choice, with the assumption that one of thestack frames satisfies the size requirement for the number of arguments of the intended Nt* syscall. The implemented concept could also allow the user to produce not only thelegitimate call stack but also the indirect syscall in between the user’s chosen Windows API,if needed.


Vectored Exception Handler (VEH) is used to provide us with control over the context of theCPU without the need to raise any alarms. As exception handlers are not widely attributed asmalicious behavior, they provide us with access to hardware breakpoints, which will beabused to act as a hook.


To note, the call stack generation mentioned here is not constructed by the tool or by theuser, but rather performed by the system, without the need to perform unwinding operationsof our own or separate allocations in memory. This means the call stack could be changed bysimply calling another Windows API if detections for one are present.


Since constructing our stack in a program can usually get corrupted ifnot developed carefully, this tool allows the operating system to generate the necessary callstack without much hassle, adding to the fact that any Windows API could potentially beused. Also, this is not to say that the bypass method would work for every EDR out theresince it requires more thorough testing against many other EDRs and detection techniquesto call it a global bypass.

Link to the tool: https://github.com/WKL-Sec/LayeredSyscall
Reply
#2
Layered indirect syscalls!? Malware developers are getting creative day by day, always something new.

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Self-Ban | http://c66go4clkqodr7tdjfu76jztjs7w7d3fajdeypxn73v4ju3dt7g5yyyd.onion/Forum-Ban-Appeals if you wish to be unbanned in the future.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [ LIST ] 5 FREE STEALERS WITH PROS/CONS elix 399 16,975 34 minutes ago
Last Post: turkish_stiletto
  Phishing Platform with 2FA bypass support Loki 142 22,909 Yesterday, 11:18 AM
Last Post: sc4rley_demo
  Xordium stealer for Pulsar v2.4.5 nullvex 33 1,824 May 08, 2026, 11:39 PM
Last Post: suicide6969
  [ Topic ] Malware Evasion - What is Code Signing? 0x27 43 8,229 May 08, 2026, 11:09 PM
Last Post: suicide6969
  Sektor7 - Malware Development Advanced - Vol.1 Sh4d0w1X 436 47,409 May 08, 2026, 11:05 PM
Last Post: suicide6969

Forum Jump:


 Users browsing this forum: 1 Guest(s)