Adversarial C is Book X in the Adversarial Series — a continuous penetration testing engagement against Crucible Embedded, a defense-adjacent embedded systems manufacturer. Over thirteen chapters you will exploit buffer overflows in firmware update daemons, abuse format string vulnerabilities in logging services, corrupt heap metadata in real-time operating system processes, fuzz custom network protocols until they crack, extract secrets from firmware images, pivot through IoT gateways running stripped-down BusyBox, exploit race conditions in privileged services, and attack the software supply chain through build system manipulation.
Every exploit is written in C. Every tool is compiled from source. Every finding is documented to professional pentest-report standards with CVSS 3.1 scoring.
By the end of this book you will have captured 20 CTF flags, documented 47 findings, and built 10 custom offensive tools — all targeting embedded systems where memory safety is a luxury the firmware authors could not afford.
The Adversarial C++ book is currently in the works, and should be released sometime before Christmas. So keep an eye open for that!
---
Conventions
Throughout this book, the following conventions are used:
- Command prompts — `crucible㉿attacker` indicates the attack platform; `root@iot01` or `fw@build01` indicate target shells.
- Flags — CTF flags follow the format `CRUCIBLE{flag_text}` and are highlighted when captured.
- Findings — Vulnerability findings are boxed with an ID (e.g., `CRUC-F01`), title, CVSS 3.1 score, and remediation guidance.
- Code blocks — All exploit code is complete and functional. Language hints appear above each block.
- IP addresses — The engagement uses the `10.30.40.0/24` subnet. All addresses are fictional.
---
Disclaimer
This book is intended for authorized security testing and educational purposes only. All techniques are demonstrated against fictional infrastructure within a controlled lab environment. The fictional company "Crucible Embedded" does not exist. Never apply these techniques against systems without explicit written authorization from the system owner. Unauthorized access to computer systems is illegal under the Computer Fraud and Abuse Act (18 U.S.C. § 1030) and equivalent laws worldwide.