Phantom Evasion Loader: SROP + process_vm_writev Direct Cross-Memory Shellcode Injection | EDR & Falco Bypass in x64 Assembly

Standard ptrace injection generates detectable syscall sequences that EDR hooks intercept. Phantom Evasion Loader routes ptrace through SROP frames: crafting a fake sigcontext on the stack and firing sys_rt_sigreturn (syscall 15) causes the kernel to restore arbitrary register state — ptrace fires through the signal return path, invisible to direct syscall monitors. process_vm_writev (syscall 311) writes the full payload in one cross-process memory operation instead of 204 PTRACE_POKEDATA events. QWORD XOR decryption runs in-memory before injection. Results: 0/65 VirusTotal static, SROP + process_vm_writev invisible to Hatching Triage behavioral sandbox.

April 13, 2026 · 7 min · JM00NJ
Phantom Evasion Loader: SROP + process_vm_writev Direct Cross-Memory Shellcode Injection | EDR & Falco Bypass in x64 Assembly

TCP Reverse Shell in Pure x64 Assembly: PIC Shellcode, Syscall Chain & dup2 FD Redirection | No libc

Implementing a reverse shell in pure x64 Assembly exposes the raw POSIX syscall sequence: socket() creates the TCP FD, connect() establishes the outbound connection, dup2() iterates 2→1→0 to redirect all three standard streams to the socket, execve() spawns /bin/sh which inherits the redirected FDs. PIC Stack Anchor (sub rsp,0x8000 + and rsp,-16 + mov rbp,rsp) enables ASLR-safe deployment — no absolute addresses, no .data/.bss, sockaddr_in struct copied from .text to writable stack via rep movsb. Zero libc, zero external dependencies.

April 3, 2026 · 9 min · JM00NJ
TCP Reverse Shell in Pure x64 Assembly: PIC Shellcode, Syscall Chain & dup2 FD Redirection | No libc
DigitalOcean Referral Badge