Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kage

Kage

影に潜む

Shellcode loader using indirect syscalls. Self-injection, RecycledGate SSN extraction, random gadget pool, callstack spoofing, per-build XOR key, jitter. Windowless.

Sophos Intercept X bypass

Build

# 1. drop your shellcode as src/payload.bin
zig build -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseFast
# → zig-out/bin/kage.exe

仕掛け

  • 影探し — ntdll via PEB walk (gs:[0x60])
  • 闇渡り — indirect syscall dispatch (64 random gadgets)
  • 血判 — RecycledGate SSN extraction (FreshyCalls RVA sort + stub byte-scan + delta correction, hook-safe)
  • 封印 — build-time shellcode XOR with per-build 128-bit random key
  • 影纏い — XOR-encoded asm dispatch globals + callstack spoofing

Layout

src/
├── main.zig       entry, unified syscall dispatch
├── nt.zig         NT pseudo-handles not in stdlib
├── pe.zig         PE parser, export resolver, section headers
├── syscall.zig    PEB walk, FreshyCalls table, gadget pool, PRNG
├── hells_gate.s   asm dispatch (XOR globals, stack spoof)
build.zig

License

MIT

Sophos Evasion

Kage + Valak chain bypassing Sophos EDR with command execution:

Sophos Bypass Command Execution

About

Zig x64 Windows shellcode loader. 影に潜む。

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages