Red-lit security operations center with code, network graphs, and global activity displays

Evasion Engineering

Building Custom Red Team Tools for Modern Defenses by Dennis Chow and Michael LaSalvia

Techniques:Evasion EngineeringCloud-Based TradecraftCustom C2 DevelopmentCovert Staging and ExfiltrationDetection Engineering
Tech:Go & PythonAWS Lambda & Step FunctionsGoogle Cloud & FirestoreEDR and Cloud Logging
Evasion Engineering book cover by Dennis Chow and Michael LaSalvia
Evasion Engineering: Building Custom Red Team Tools for Modern Defenses.

Evasion Engineering: Building Custom Red Team Tools for Modern Defenses

8/10
Authors
Dennis Chow and Michael LaSalvia
Publisher
No Starch Press
Published
July 2026
Pages
256
Format
Softcover and ebook

Core Concepts

Custom Red Team ToolingCloud-Based TradecraftC2 Implant DevelopmentEvasion & ObfuscationCovert ExfiltrationDetection Engineering

The book in one sentence

Every part of an operation, from infrastructure to timing, should look like it belongs in the target environment.

General Thoughts

Evasion Engineering by Dennis Chow and Michael LaSalvia hangs everything on one concrete, repeatable idea. Make the operation look like it belongs. Chapter 3 rotates source IP addresses through disposable AWS infrastructure so heavy enumeration survives IP blocklisting. Chapter 4 runs command-and-control over Firestore, and Chapter 8 stages data in uncompressed CAB files disguised as Windows update clutter, then exfiltrates it as hex-encoded Cloud Logging entries.

The techniques alone are worth the price of admission, and they will bump an operator's evasion capability up a level. As of this writing, the labs teach tradecraft that actually performs, with custom ciphers tuned to stay inside the Shannon entropy window EDRs scan for, in-memory execution that sidesteps file-based detection, and an exfiltration pipeline built to bypass DLP. These are approaches that enable evasion of modern EDR and defensive systems right now, and that currency is rare.

I came in with an OSCE3 background and still came out with techniques I can use on the next engagement. What changed most is how I reason about tooling. A payload that dodges one signature still produces binary, process, network, cloud, and timing signals someone can correlate, and designing for the complete footprint is a harder and more valuable discipline than any single packing trick.

Part III is the weak stretch. Chapters 9 and 10 hold genuinely useful detection and purple-team material, but both pull away from the offensive-evasion thread that made Parts I and II strong. I also wanted more reasoning and fewer pages of code. The implementations show how the authors build these tools, and several would have worked better in a reference appendix.

Read it as an engineering book about the signals your tools leave behind, and it easily earns its 8/10.

Chapter Breakdown

Part I: Red Teaming Fundamentals

Chapter 1: Principles of Application Design and Development

Chapter 1 spends its pages on process, covering how to design a tool for robustness, reusability, and reliability before any payload exists. That framing carries the rest of the book. A tool built to survive changing targets, incomplete assumptions, operational mistakes, and defensive visibility makes the later chapters read like applications of a method rather than isolated demos.

Chapter 2: Evasion Strategies

Low-entropy encryption was the idea that stayed with me. I had usually reached for XOR keys, and this chapter made me reconsider whether that choice becomes part of the detection signature. Many EDRs and SIEMs scan for high Shannon entropy and well-known encoding standards such as Base64, hexadecimal, and strong cryptography. The book's answer is a custom weak cipher, a rotating symmetric key with a simple substitution function, tuned to keep payload entropy between 1 and 4 on the 8-point scale. The rest of the chapter rounds out the strategy with syscall-based enumeration that avoids shell processes, timing randomization, file padding, code signing, and language switching to delay forensic analysis.

Simple encoding changes the shape of the artifact an analyst or a detector has to work with, though it will not survive analysis on its own. The chapter pushed me to treat entropy, compression, representation, and analysis cost as separate design variables. Encryption by itself was never the entire evasion strategy.

Part II: Hands-On Evasive Tool Development

Chapter 3: Enumerating with Traffic Redirection

AWS Lambda, CloudFormation, Step Functions, and a Tailscale-tunneled EC2 proxy drive the chapter. The problem it solves is blocklisting. Heavy enumeration burns source IP addresses, and the infrastructure lets an operator scrap one and transition to a new one quickly. The CloudFormation template makes the whole environment redeployable, and the web scanner switches its own sources as it works. That combination of disposable infrastructure and rapid source rotation made this one of my favorite chapters in Part II.

Cloud servers connected by blue and red traffic paths across a global network
Cloud infrastructure can make operational traffic blend into ordinary service activity.

Chapter 4: Developing Command-and-Control Implants

Seeing the implant built out in full was the highlight of the book for me. The chapter walks from a proof of concept toward a more evasive design, with command-and-control over Firestore and deliberate choices to avoid obvious process and network indicators. It is also where the book becomes code-heavy enough to feel like a programming book. The implementation makes the tradeoffs visible. Every indicator removed forces new behavior somewhere else, and those behaviors can become detection opportunities themselves.

Red-lit engineer workstation displaying custom security tooling and network graphs
Custom tooling makes the engineering decisions behind an operation visible.

Chapter 5: Creating Lateral Exploits with Worms

A worm is a different engineering problem from an implant or a scanner, and the chapter uses that to reinforce the reusability argument from Chapter 1. The guardrails stood out, with a self-destruct timer, RFC 1918-only targeting, mutex checks against reinfection, and honeypot verification before an infection completes. The design treats uncontrolled propagation as an engineering failure with concrete controls, and it connects operational discipline directly back to the reliability principles the book opened with.

Chapter 6: Enumerating Locally Without LOLBins

Living-off-the-Land Binaries show up in every penetration-testing course I have taken, and in practice they get flagged by EDR quickly. Building the same functionality directly into custom tools was one of the strongest sections in the book. Avoiding familiar shell and binary execution patterns changes the observable chain an endpoint sees, and it leaves the operator with a new, smaller set of behaviors to understand and test.

Chapter 7: Bypassing Detection with Hybrid Packing

Hybrid packing is the closest the book comes to the traditional evasion material, and it connects that material to the detection-signal discussion from Chapter 2. The three-stage workflow converts an executable into shellcode with Donut, compresses and disguises the result as a plain list of dotted-decimal IP addresses, then executes the payload directly in memory to avoid file-based detection. More variables for the operator, more stages for a detector to notice. Every technique left me asking what signal it traded for the one it removed.

Chapter 8: Staging and Exfiltrating Data Covertly

The chapter targets DLP and signature-based detection directly. Staging wraps data in uncompressed CAB files dressed up to look like Windows update clutter, the exfiltration client chunks the payload into hex-encoded JSON entries posted to GCP Cloud Logging, a service chosen partly because traffic to it is much less likely to be scrutinized than a storage bucket, and the retrieval client reassembles the chunks with integrity verification. After this chapter I stopped thinking about finding one trusted destination and started evaluating whether the complete workflow resembles a real application using that service.

Part III: Testing and Validation

Chapter 9: Building Detection Tools

The defensive view exposes the signatures behind the tools the reader just built, which makes it more concrete than most detection chapters. The Go binary analyzer inspects suspicious packages, and the Python detector applies statistical analysis to firewall logs to catch beaconing, scanning, and artificially randomized C2 traffic. Binary properties and network patterns stop being abstract categories when they are the artifacts of your own implants. I would have preferred it shorter. The full implementation pulls the book away from the offensive thread at exactly the point where I wanted more evasion depth.

Museum of cyber forensics displaying offensive tooling, cloud infrastructure, and defensive telemetry
The defensive view turns the traces of custom tooling into evidence that can be collected, compared, and understood.

Chapter 10: Executing Controlled Reveals

Controlled reveals give defenders a repeatable way to validate whether a behavior is visible. The CloudFormation templates simulate suspicious Lambda IAM operations and ransomware TTPs on EC2, with detection validated through CloudTrail, CloudWatch metrics, and entropy-based file monitoring, and that material gave me ideas for future collaborative assessments. It added little to my ability to operate evasively, so it read as a second departure from the book's main theme. Readers who run purple-team engagements will get more out of it than I did.

Appendix: Technical Prerequisites

The appendix covers the prerequisites, starting with Go 1.21 or newer, Python 3.x, and enough operating-system, networking, and cloud knowledge to follow the labs. Experienced practitioners can use it as a setup reference. Readers new to Go will need it, and it will not substitute for learning the underlying systems first.

Who Should Read This

Red-team operators and penetration testers ready to build custom tooling are the core audience. Incident responders, forensic investigators, and detection engineers should read it too. The cloud tradecraft and custom execution patterns double as a catalog of what to look for and a starting point for new detection rules.

Know what you are buying. The labs contain a lot of code, the book assumes operating-system, cloud, networking, and programming experience, and the publisher lists Go 1.21+ and Python 3.x as prerequisites. Beginners should start with a foundational resource first.

Closing

Parts I and II are extremely strong, and Part III provides useful information while wandering into blue-team and purple-team territory. I would trade some of the implementation detail for more discussion of the techniques, tradeoffs, and reasoning that make the tooling evasive.

I received a signed copy and got to speak with Dennis Chow and Michael LaSalvia about writing the book. A big part of the conversation was how they balanced research depth with the time actually spent writing, since every technique needed enough testing behind it to hold up while the schedule forced hard decisions about what earned a spot on the page. They also wrote the book on the assumption that anything published in it is immediately burned, which lines up with the chapter warning to assume your payload will eventually burn during a campaign. That discipline carried into everything else we discussed, and it made me trust the engineering advice more.

8/10. The strongest chapters changed how I reason about tooling and gave me techniques I can apply immediately. The deduction comes from the Part III pacing and the amount of implementation detail that replaces explanation. The blending-in mindset also has me thinking about what agentic red-team tooling should look like next.

Signed Evasion Engineering review copy showing the authors' signatures
My signed review copy. I also enjoyed speaking with the authors about how they approached writing the book.

Where to Buy

Evasion Engineering was published by No Starch Press in July 2026. The print edition is 256 pages and includes the ebook.

No Starch Press

nostarch.com

Mechanical Trojan horse built from servers and cables standing in a city at dawn
The book's central idea in one image, the most effective tool is the one that looks like it belongs.