
Sysplant
Your syscall factory for every known syscall technique
Sysplant is a Python code generator that produces ready-to-compile Windows syscall stubs in Nim, C, C++ and Rust. It gives red teams, malware researchers and EDR-evasion engineers a reproducible way to compare gate iterators and caller stubs inside their own tooling.
Overview
A generator, not a framework
User-mode hooks in ntdll intercept the Nt* functions that most Windows tooling relies on. Whether the goal is a cleaner call path or simply understanding how the hooks are placed, practitioners need to resolve system service numbers themselves and then decide how the transition into kernel mode actually happens. Most public techniques live in separate repositories, each with its own conventions, build steps and assumptions about the target architecture.
Sysplant treats that fragmentation as a templating problem. A single Python engine holds the resolution logic and the caller stubs, then renders them into the language you already build with. Iterators and methods are independent axes: any gate can be paired with any stub, and a Custom mode exposes both choices explicitly. The output is a self-contained source file that drops into an existing project instead of imposing a runtime.
The iterator catalog covers Hell's Gate, Halo's Gate, Tartarus' Gate, FreshyCalls, SysWhispers2, SysWhispers3 and Canterlot's Gate. Canterlot's Gate is CIRCLE's contribution: it reads the Runtime Exception Table and derives the offset to a syscall instruction, which enables random jumps instead of a fixed address. On the caller side, direct, indirect, random and egg-hunter stubs are available, the last replacing the 0F 05 opcode with an eight-byte marker patched at runtime by SPT_SanitizeSyscalls().
Sysplant was built on Linux and targets Windows output; the README notes that some behavior may break on Windows or macOS. x86 and WoW64 modes are exposed on the command line but remain listed as work in progress, so validate the generated code against your target. The project is GPL-3.0 and intended for authorized penetration testing, research or education only. Use it on systems you own or have explicit permission to assess.
8
Iterators and custom
4
Output languages
4
Caller methods
MCP
MCP server
Capabilities
What it does
What the product does, and the problems it removes from your workflow.
Gate iterators
Hell's Gate, Halo's Gate, Tartarus' Gate, FreshyCalls, SysWhispers2, SysWhispers3 and Canterlot's Gate ship as separate iterators, alongside a Custom mode that combines any resolver with any caller.
Canterlot's Gate
Resolves service numbers from the Runtime Exception Table and detects the offset to each syscall instruction, enabling random jumps. The technique started from an MDSEC article; the implementation and the name are CIRCLE's contribution.
Caller stubs
Direct calls the syscall inline, indirect jumps to the start of an ntdll stub, random targets any syscall instruction. The egg hunter replaces 0F 05 with an eight-byte marker until SPT_SanitizeSyscalls() patches it at runtime.
Languages and targets
Nim, C, C++ and Rust are marked stable, each with a documented cross-compilation command from Linux. The generate command also exposes x86, x64 and WoW64 architecture flags, with x64 as the default.
Presets and scrambling
Pick all, donut or common — about 483, 14 and 31 Nt* functions — or pass a comma-separated list with -f. The --scramble flag randomizes internal SPT_* names to break static signatures.
CLI and Python library
Two actions cover the workflow: list scans a file or directory for Nt* usage, generate renders the code. The same engine is importable as a Python module through the Sysplant class for scripted pipelines.
MCP server
A bundled bridge exposes the generator over MCP with stdio, SSE and Streamable HTTP transports. Through nine tools, assistants such as Claude Code, Cursor or Windsurf can generate stubs, scan Nt* usage and fetch prototypes.
Full documentation
The documentation site covers installation, the CLI, the Python module, the MCP server and a full API reference for classes and methods. Usage examples accompany each iterator and output language.
Command line
Canterlot's Gate — C output
A concrete example of what the generator produces, straight from the command line.
$ sysplant generate -c -o syscalls.c canterlot
[+] Summary of params used
. Language: C
. Architecture: x64
. Selected syscall iterator: canterlot
. Selected syscall caller stub: random
. Common supported functions selected
. Randomize internal function: False
[+] Syscall file written to syscalls.c.hGenerates a C file resolving syscall numbers through Canterlot's Gate, with the common preset and random caller stubs, ready for cross-compilation from Linux.
Partnership
Need this capability in your stack
We adapt, integrate and operate our products within exclusive partnerships. Tell us what your teams need.
Talk to us