Practical AI Security
AdvancedMachine LearningOffensiveDefensive

Practical AI Security

A Hands-on Guide to Attacking, Defending, and Securing Modern AI Systems

4 / 5

The founder of an AI-security firm, with a PhD in adversarial machine learning, walks from how models fail to how they're exploited to how they're defended and audited, with over 30 hands-on Python demos.

Buy on Amazon

As an Amazon Associate we earn from qualifying purchases. The link above is sponsored.

Published
2026
Publisher
No Starch Press
Pages
392
Language
English

Read this if

Security practitioners and ML engineers who need practical, hands-on grounding in attacking and defending AI systems rather than a survey of the field. Farlow has led AI-security assessments for Fortune 500s and government agencies, and the book is built from that assessment experience.

Skip this if

Readers who want a conceptual or policy-level introduction to AI risk; this is a hands-on technical guide with Python demos throughout, not an AI-governance primer. Also assumes baseline ML and security fundamentals rather than teaching either from zero.

Key takeaways

  • First book in this catalog to treat AI/ML systems as a first-class attack surface in their own right, not a feature bolted onto traditional appsec.
  • Structured around the full lifecycle: how models fail, how failures become exploits, then how to defend and audit against both.
  • Over 30 hands-on Python demos keep the material concrete rather than theoretical — attacks and defenses you can actually run.

Notes

A genuinely new topic for this catalog, which otherwise has no dedicated AI-security title. Pairs with Malware Data Science and The Android Malware Handbook for the "ML applied to security" side, and with Designing Secure Software for readers thinking about how AI components fit into a broader secure-design practice.