Linux C2 from Scratch 0x01: Virtualising Your Malware Security researcher jm33 published lesson one of a "Linux C2 from Scratch" course, based on a Ruxmon talk given on 27 November 2026 titled "Virtualising Your Malware," showing how to run malware payloads inside a custom RV32IMA virtual machine on x86-64 Linux so the payload is never mapped executable. Guest code is copied into a 64 MiB arena mapped PROT_READ | PROT_WRITE and interpreted by rvvm_linux.so, moving the detection surface from memory behavior such as mmap(PROT_EXEC) and /proc//maps to syscall behavior, at the cost of running orders of magnitude slower than native. The emp3r0r agent maps the interpreter on 386, amd64, arm, arm64 and riscv64 Linux hosts. Before we start I know this sounds crazy. Who would teach you to "build your own VM" right after a "getting started" course? Whenever people bring up "VM" in malware, it means frontier, master-level stuff, the kind of thing you are supposed to pick up after years of the basics. But no, nothing is too difficult to learn. Especially in cyber security, you don't need to understand every detail unless it matters to your work. I wrote my first LKM in 2019 with little experience in kernel development, and no AI to help me. I didn't need to know everything about the Linux kernel, because there were already plenty of resources online. Learning how a VM works is, in my opinion, the best way to consolidate your OS internals knowledge. A VM makes you implement what a normal program never sees: the loader, the initial stack, the instruction decoder, the syscall boundary. This is lesson one of the course I started in lesson zero https://jm33.me/linux-c2-from-scratch-0x00-processes-syscalls-libc-and-tls.html . Most of it is the talk I gave at Ruxmon on 27 November 2026, Virtualising Your Malware . Lesson zero ended with W^X: a page is writable or executable, never both, so generated code lives in an anonymous executable mapping. That assumed the code was for the host CPU. This lesson removes the assumption, and the payload stops being executable memory. Why I built this A BOF Beacon Object File has to be mapped executable to run. The native loader packs its sections by protection, code as RX read and execute and data as RW read and write , and jumps into the code. That mapping is anonymous: no file with a path name to "back" it. Because in most cases, code has to come from somewhere legitimate. If you see code not existing as a file but executing, it's probably trying to hide something. It is also easy to find. mmap PROT EXEC and mprotect PROT EXEC are syscalls calls into the kernel that ask for executable memory, and /proc/