Artificial intelligence is becoming part of the systems organizations rely on to answer questions, write software, analyze information, and take action. Securing those systems requires more than protecting a model or filtering its responses. It requires understanding how models interact with data, identities, tools, infrastructure, and people—and controlling what those interactions can cause.
Secure AI Designing, Testing, and Defending AI Systems provides a practical framework for building and operating AI systems with security in mind. Greg Gogolin, Ph.D., and Erin Hayes connect established cybersecurity principles with the distinctive risks of generative AI, retrieval-augmented generation, and agents that can use tools and perform tasks. The emphasis is on engineering decisions that can be explained, tested, and supported by evidence.
A continuing university advising-agent case connects the concepts throughout the book. As the system gains access to information and capabilities, readers examine how its security requirements change. Searching a policy library presents different risks from running generated code, using a browser, or preparing a transfer-credit request. These examples make an essential distinction a system’s ability to perform an action does not establish its authority to do so.
Readers explore how
• Identify threats, map trust boundaries, and design layered security controls. • Protect retrieval pipelines, knowledge sources, context, and memory from manipulation. • Manage identities, credentials, permissions, and interactions among agents and tools. • Constrain generated code and browser actions through isolation and externally enforced scope. • Evaluate model and system behavior, document limitations, and make defensible release decisions. • Monitor AI operations, investigate incidents, preserve evidence, and correct affected outputs. • Assess model integrity, deployment choices, privacy risks, and software supply chains. • Use AI in defensive and authorized offensive security while validating its findings.
The book treats human oversight as a design responsibility. Approval steps must provide people with enough information, time, and authority to make meaningful decisions. Logging must support investigation. Testing must examine both intended behavior and plausible failure. Security claims must distinguish demonstrated results from assumptions, provider statements, and emerging research.
Practical assignments turn these principles into reviewable work. Students develop threat models, control specifications, evaluation plans, incident-response materials, rules of engagement, and evidence packages. Authorized offensive testing takes place in isolated environments, with manual validation and reproducible findings. A competency portfolio connects course artifacts to professional skills and representative workforce roles.
Secure AI Engineering also examines the organizational decisions surrounding adoption. Governance, vendor assessment, privacy, professional responsibility, and communication are connected to technical controls. Readers learn to ask what evidence supports a proposed capability, what access it needs, who bears responsibility, and how the organization will recognize and respond when it fails.
Written for students, cybersecurity practitioners, software developers, architects, and technical leaders, this book supports both classroom learning and professional discussion. It offers a durable approach to a changing define authority, limit exposure, test assumptions, preserve evidence, and improve controls as systems evolve.
The goal is to help readers build AI systems whose capabilities are matched by appropriate boundaries—and whose security can withstand careful examination.