Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Bypass_AV — Evades AV and sandboxes on Windows using anti-sandbox checks, ntdll unhooking, dynamic API resolution, and multi-layer shellcode obfuscation (XOR/RC4/Base64/MAC). | Kitploit
Tools/GitHubGitHub/hkl1x/bypass_av
Payload GenerationIDS/IPS EvasionShellcodeRed TeamingPayload Development
GitHubhkl1x/bypass_av

Bypass_AV

Evades AV and sandboxes on Windows using anti-sandbox checks, ntdll unhooking, dynamic API resolution, and multi-layer shellcode obfuscation (XOR/RC4/Base64/MAC).

View Repository
10818401 year agoReviewed by Kitploit
Share

This is a Trojan sample that can bypass the vast majority of antivirus software and sandboxes

Below, I will explain the technologies involved in the Trojan, focusing on both the shellcode and the loader.

Loader Section

1. Anti-sandbox

As everyone knows, the conventional anti-sandbox detection is to target the host's CPU, memory, hard disk, etc. However, I personally think this is not appropriate, because some antivirus software or cloud sandboxes will detect the anti-sandbox feature and monitor some sensitive APIs, thus getting caught. So my idea is to detect desktop shortcuts, such as QQ, WeChat, DingTalk and other commonly used software, to evade cloud sandboxes.

vt

2. Overloading of ntdll and Dynamic Invocation of APIs

The detection mechanism of general antivirus software is to hook some sensitive APIs. By using ntdll overloading and dynamic API invocation, we can bypass the hooks and achieve the functionality. The ntdll overloading part loads the original ntdll.dll from the system directory and replaces the hooked ntdll code section (.text section) in the current process with the original code. Dynamic API invocation traverses the export table of the target DLL, uses hash to match function names, obtains the address of the target function, and executes it via a pointer.

3. Separation of Shellcode and Loader

Besides encoding to bypass antivirus software, shellcode can also be separated from the loader. That is, if the shellcode is not in the exe, it is quite difficult for antivirus software to detect problems.

Shellcode Section

The shellcode part mainly uses multi-layer obfuscation processing, using XOR+RC4+base64+mac multi-layer processing. The final form is stored as MAC address format, because Windows has a certain tolerance for MAC format strings.

Usage Method

First use encode.cpp to encrypt the shellcode. If you write the shellcode into the exe, please put it in the mac_shellcode array in Unseparation_shellcode.cpp. If you want to achieve parameter separation, you can run my compiled exe + shellcode directly.

Thank you for reading

English version

This is a Trojan sample that can bypass the vast majority of antivirus software and sandboxes. Below, I will explain the technologies involved in the Trojan, focusing on both the shellcode and the loader.

Loader Section

1. Anti-sandbox

It is well-known that the conventional detection of anti-sandbox functions is based on operations on the host's CPU, memory, hard disk, etc. However, I personally think this approach is not ideal because some antivirus software or cloud sandboxes will monitor anti-sandbox functions and keep an eye on sensitive APIs, which may lead to detection. Therefore, my idea is to detect desktop shortcuts, such as those for commonly used software like QQ, WeChat, and DingTalk, to evade cloud sandboxes. vt

2. Overloading of ntdll and Dynamic Invocation of APIs

The detection mechanism of general anti-virus software is to hook some sensitive APIs. Therefore, we can bypass the hooks and achieve the function by using the ntdll overloading and dynamic API calling techniques. The ntdll overloading part involves loading the original ntdll.dll from the system directory and replacing the hooked ntdll code segment (.text segment) in the current process with the original code. The dynamic API calling is to traverse the export table of the target dll, match the function name using hash, obtain the address of the target function, and execute it using a pointer.

3. Separation of Shellcode and Loader

Besides encoding to bypass antivirus software, shellcode can also be separated from the loader. If the shellcode is not included in the exe file, it becomes quite difficult for antivirus software to detect any issues.

The shellcode section mainly undergoes multi-layer obfuscation processing, which involves XOR, RC4, base64, and MAC. The final output is in MAC address format, taking advantage of Windows' tolerance for MAC format strings.

Usage Method

First, use encode.cpp to encrypt the shellcode. If you write the shellcode into an exe file, please place it in the mac_shellcode array in Unseparation_shellcode.cpp. If you want to achieve parameter separation, you can run the compiled exe + shellcode directly.

Thank you for reading.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    837
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    536
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    424
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    355
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    294
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    276

Explore all tools

Browse our collection of tools

View all tools →