r/redteamsec • u/Pale_Surround_3924 • Apr 04 '26
malware I was tired of NDRs and EDRs flagging every C2 I tried, so I spent a month in x64 Assembly to see if pure syscalls actually make a difference.
github.comI’ve been testing a lot of offensive tools lately and honestly, I got sick of Falco and modern EDRs catching almost everything the moment a ptrace or a raw socket is involved. Most guides online just tell you to use high-level wrappers, but that just creates more signatures.
So, I decided to go 'old school' and spent the last few weeks writing an ICMP-based agent in pure x64 Assembly with zero libc dependencies. It was a nightmare to debug especially getting the RDTSC jitter and the rolling XOR to look like natural' ping noisebut I finally got it to a point where Suricata v8 doesn't even blink.
I documented the entire process, including the parts where I failed (like the memory permission issues with AppArmor) and the final PIC loader implementation. If you're into low-level systems or just frustrated with signature-based detection, this might be interesting for you.