Adventures in Shellcode Obfuscation! Part 2: Hail Caesar!
By Red Siege | June 24, 2024

Caesar Cipher – Three Letter Shift
Cepheus, Public domain, via Wikimedia Commons
def caesar(sc_list): sc = [] for x in sc_list: if (int(x) + 13) > 255: sc.append(hex(x + 13 - 256)) else: sc.append(hex(x + 13)) return sc
for (int i = 0; i < sizeof(caesar); i++)
{
if ( (caesar[i] - 13) < 0 )
{
printf(""); // because defender
shellcode[i] = caesar[i] + 256 - 13;
}
else
{
shellcode[i] = caesar[i] - 13;
}
}

Caesar Cipher Detection Rate
About Principal Security Consultant Mike Saunders

Mike Saunders is Red Siege Information Security’s Principal Consultant. Mike has over 25 years of IT and security expertise, having worked in the ISP, banking, insurance, and agriculture businesses. Mike gained knowledge in a range of roles throughout his career, including system and network administration, development, and security architecture. Mike is a highly regarded and experienced international speaker with notable cybersecurity talks at conferences such as DerbyCon, Circle City Con, SANS Enterprise Summit, and NorthSec, in addition to having more than a decade of experience as a penetration tester. You can find Mike’s in-depth technical blogs and tool releases online and learn from his several offensive and defensive-focused SiegeCasts. He has been a member of the NCCCDC Red Team on several occasions and is the Lead Red Team Operator for Red Siege Information Security.
Certifications:
GCIH, GPEN, GWAPT, GMOB, CISSP, and OSCP
Related Stories
View MoreBy Red Siege | November 5, 2026
by Jason Downey This is Dig Dug. A Red Siege tool for avoiding av/edr can offer valuable solutions for penetration testers and red teamers. If you spend any amount of […]
Learn MoreBy Red Siege | October 5, 2026
by Stuart Rorer Most weeks, the tests I run are fairly routine: web applications, externals, and internals with a tight scope. But mobile application assessments have a way of getting […]
Learn MoreBy Red Siege | October 1, 2026
by Mike Saunders The AWS ReadOnlyAccess policy might be providing more access than you’re intending to grant. On a recent assessment, we observed widespread use of IAM roles with the […]
Learn More