Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Adversarial AI Attacks, Mitigations, and Defense Strategies
Adversarial AI Attacks, Mitigations, and Defense Strategies

Adversarial AI Attacks, Mitigations, and Defense Strategies: A cybersecurity professional's guide to AI attacks, threat modeling, and securing AI with MLSecOps

Arrow left icon
Profile Icon John Sotiropoulos
Arrow right icon
R$50 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (13 Ratings)
Paperback Jul 2024 586 pages 1st Edition
eBook
R$80 R$222.99
Paperback
R$278.99
Subscription
Free Trial
Renews at R$50p/m
Arrow left icon
Profile Icon John Sotiropoulos
Arrow right icon
R$50 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (13 Ratings)
Paperback Jul 2024 586 pages 1st Edition
eBook
R$80 R$222.99
Paperback
R$278.99
Subscription
Free Trial
Renews at R$50p/m
eBook
R$80 R$222.99
Paperback
R$278.99
Subscription
Free Trial
Renews at R$50p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Adversarial AI Attacks, Mitigations, and Defense Strategies

Getting Started with AI

In this increasingly digital age, cybersecurity has never been more critical. However, the meteoric rise of artificial intelligence (AI) and machine learning (ML) challenges cybersecurity with new technologies and concepts. Adversarial AI allows attackers to use advanced techniques to attack AI. This chapter introduces essential concepts of AI and ML that are aimed at cybersecurity and other technical professionals with little or no experience in AI.

By the end of this chapter, you will have a firm grasp of critical concepts such as models, training, validation, testing, inference, and various types of ML. We will cover popular algorithms that are used in ML, what deep learning is, and understand the roles and functions of popular neural networks such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), and large language models (LLMs) such as Bidirectional Encoder Representations from Transformers (BERT) and ChatGPT.

You will also...

Understanding AI and ML

AI and ML are often used interchangeably. Let’s try to provide some simple definitions and examples to understand their relationship and how they fit into our work of defending AI from adversarial attacks.

AI is a field in computer science that involves techniques and approaches to creating intelligent machines and applications that can perform tasks with intelligence normally associated with humans. These tasks include understanding natural language and images, recognizing patterns, solving problems, and making decisions.

AI is integrated with applications and systems. In everyday life, we use AI for things such as predictive texting, email spam filters, and recommendations. With its constant progress, AI can be found in smart homes in Internet of Things (IoT) devices such as security cameras, doorbells, vacuum cleaners, and digital assistants such as Siri or Alexa. Autonomous cars and smart medical devices are other examples of using AI to create...

Types of ML and the ML life cycle

Depending on how models learn, ML can be classified into three types:

  • Supervised learning, where each data sample must have a label indicating the correct outcome. The model learns from labeled structured data, such as CSV files, by adjusting its internal parameters based on its error when it guesses the result. Supervised learning is by far the most used type of learning in classification images, voice and language recognition, numerical forecasting, and more.
  • Unsupervised learning, on the other hand, involves training on data, usually unstructured, without labels. Unsupervised learning uses clustering and other techniques to understand the underlying structure of data, identify patterns, and perform anomaly detection, fraud detection, social network analysis, market segmentation, and supervised learning.
  • Reinforcement learning relies on an agent to behave in an environment and learn by performing certain actions, observing the results...

Key algorithms in ML

Several algorithms in ML have pros and cons and suit different use cases.

In supervised learning, we have the following:

  • Linear regression, which predicts a continuous output variable based on input features. It’s used in economics for forecasting and in healthcare for predicting disease progression.
  • Logistic regression, which, despite its name, is an algorithm for binary classification problems and estimates the probability an instance belongs to a class. It’s used in credit scoring and medical testing.
  • Decision tree, which learns simple decision rules inferred from data features. It’s useful in business decision-making and customer segmentation.
  • Random forest, which uses multiple decision trees to prevent overfitting. This makes it an ensemble algorithm and is used in predicting disease risk, loan defaulters, and customer preferences.
  • Support vector machine (SVM), which can model complex decision boundaries and...

Neural networks and deep learning

Inspired by human brain biology, artificial neural networks (ANNs) are good at processing unstructured data such as images, audio, and text and are widely used in image recognition, speech recognition, and natural language processing (NLP). These are their fundamental blocks:

  • Neurons and layers: ANNs apply parallel processing by using nodes called neurons. Each node has a weight and a bias, both of which are used to produce their output based on outputs. Neurons are organized in layers, and typically, there is an initial input and final output layer, and layers in between called hidden layers where the actual computation takes place. Inputs to each layer are derived from the outputs of the previous layer.
  • Training and weights update: Training an ANN involves adjusting the weights and biases of neurons based on error. This consists of a process called backpropagation and an optimization method, such as batch gradient descent and/or stochastic...
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand the connection between AI and security by learning about adversarial AI attacks
  • Discover the latest security challenges in adversarial AI by examining GenAI, deepfakes, and LLMs
  • Implement secure-by-design methods and threat modeling, using standards and MLSecOps to safeguard AI systems
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Adversarial attacks trick AI systems with malicious data, creating new security risks by exploiting how AI learns. This challenges cybersecurity as it forces us to defend against a whole new kind of threat. This book demystifies adversarial attacks and equips cybersecurity professionals with the skills to secure AI technologies, moving beyond research hype or business-as-usual strategies. The strategy-based book is a comprehensive guide to AI security, presenting a structured approach with practical examples to identify and counter adversarial attacks. This book goes beyond a random selection of threats and consolidates recent research and industry standards, incorporating taxonomies from MITRE, NIST, and OWASP. Next, a dedicated section introduces a secure-by-design AI strategy with threat modeling to demonstrate risk-based defenses and strategies, focusing on integrating MLSecOps and LLMOps into security systems. To gain deeper insights, you’ll cover examples of incorporating CI, MLOps, and security controls, including open-access LLMs and ML SBOMs. Based on the classic NIST pillars, the book provides a blueprint for maturing enterprise AI security, discussing the role of AI security in safety and ethics as part of Trustworthy AI. By the end of this book, you’ll be able to develop, deploy, and secure AI systems effectively.

Who is this book for?

This book tackles AI security from both angles - offense and defense. AI builders (developers and engineers) will learn how to create secure systems, while cybersecurity professionals, such as security architects, analysts, engineers, ethical hackers, penetration testers, and incident responders will discover methods to combat threats and mitigate risks posed by attackers. The book also provides a secure-by-design approach for leaders to build AI with security in mind. To get the most out of this book, you’ll need a basic understanding of security, ML concepts, and Python.

What you will learn

  • Understand poisoning, evasion, and privacy attacks and how to mitigate them
  • Discover how GANs can be used for attacks and deepfakes
  • Explore how LLMs change security, prompt injections, and data exposure
  • Master techniques to poison LLMs with RAG, embeddings, and fine-tuning
  • Explore supply-chain threats and the challenges of open-access LLMs
  • Implement MLSecOps with CIs, MLOps, and SBOMs

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 26, 2024
Length: 586 pages
Edition : 1st
Language : English
ISBN-13 : 9781835087985
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Jul 26, 2024
Length: 586 pages
Edition : 1st
Language : English
ISBN-13 : 9781835087985
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
R$50 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
R$500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just R$5 each
Feature tick icon Exclusive print discounts
R$800 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just R$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total R$ 780.97
Adversarial AI Attacks, Mitigations, and Defense Strategies
R$278.99
Generative AI Foundations in Python
R$222.99
Google Machine Learning and Generative AI for Solutions Architects
R$278.99
Total R$ 780.97 Stars icon

Table of Contents

26 Chapters
Part 1: Introduction to Adversarial AI Chevron down icon Chevron up icon
Chapter 1: Getting Started with AI Chevron down icon Chevron up icon
Chapter 2: Building Our Adversarial Playground Chevron down icon Chevron up icon
Chapter 3: Security and Adversarial AI Chevron down icon Chevron up icon
Part 2: Model Development Attacks Chevron down icon Chevron up icon
Chapter 4: Poisoning Attacks Chevron down icon Chevron up icon
Chapter 5: Model Tampering with Trojan Horses and Model Reprogramming Chevron down icon Chevron up icon
Chapter 6: Supply Chain Attacks and Adversarial AI Chevron down icon Chevron up icon
Part 3: Attacks on Deployed AI Chevron down icon Chevron up icon
Chapter 7: Evasion Attacks against Deployed AI Chevron down icon Chevron up icon
Chapter 8: Privacy Attacks – Stealing Models Chevron down icon Chevron up icon
Chapter 9: Privacy Attacks – Stealing Data Chevron down icon Chevron up icon
Chapter 10: Privacy-Preserving AI Chevron down icon Chevron up icon
Part 4: Generative AI and Adversarial Attacks Chevron down icon Chevron up icon
Chapter 11: Generative AI – A New Frontier Chevron down icon Chevron up icon
Chapter 12: Weaponizing GANs for Deepfakes and Adversarial Attacks Chevron down icon Chevron up icon
Chapter 13: LLM Foundations for Adversarial AI Chevron down icon Chevron up icon
Chapter 14: Adversarial Attacks with Prompts Chevron down icon Chevron up icon
Chapter 15: Poisoning Attacks and LLMs Chevron down icon Chevron up icon
Chapter 16: Advanced Generative AI Scenarios Chevron down icon Chevron up icon
Part 5: Secure-by-Design AI and MLSecOps Chevron down icon Chevron up icon
Chapter 17: Secure by Design and Trustworthy AI Chevron down icon Chevron up icon
Chapter 18: AI Security with MLSecOps Chevron down icon Chevron up icon
Chapter 19: Maturing AI Security Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(13 Ratings)
5 star 92.3%
4 star 7.7%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Dwayne Natwick Sep 02, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I recently received a copy of @Packt Publishing’s Adversarial AI Attacks, Mitigations, and Defense Strategies from @John Sotiropoulos. This book outlines that various types of AI attacks along with the anatomy and design of these attacks. The author provides information on the architecture and setup that can be used for detailed analysis, mitigation, and defense of these attacks. There is also a complete section on generative AI and how it is used for a new level of attacks. Throughout this book, the author has done a great job of developing understanding and knowledge for the reader about these attacks, how they are created, and how you can protect your environment against them. This book is highly recommended for anyone that is looking for a level of understanding about how to architect, monitor, and defend against AI attacks.
Amazon Verified review Amazon
T J Coup Aug 01, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A highly necessary book in the field, this comprehensive guide to AI security offers a structured understanding of key issues, complete with hands-on examples. A must-read for all IT professionals this summer.
Amazon Verified review Amazon
Matthew Kiely Oct 28, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is an essential read for anyone looking to deepen their understanding of adversarial AI.It goes beyond merely explaining how these attacks operate, it shows you how to set up a test environment to simulate these attacks and observe their impact on machine learning models.It’s indepth and not for the faint hearted!The hands-on approach allows you to see how adversarial techniques can corrupt AI systems.It is a well-rounded resource for both aspiring and seasoned AI professionals
Amazon Verified review Amazon
Andy Aug 29, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The author really knows his stuff and lays it out in a very approachable way. The writing and graphics are good, and the layout is very logical. That said, you better have solid AI design and cybersecurity in your recent past. Sample code for setting up the environment and defenses against the top AI attacks for predictive and generativeAI environments. Guidance is provided for DevSecOps, MLOps, and LLMOps, so you can build security in from the planning stage or apply mitigation strategies to environments already in operation. I love that he provides reference architecture diagrams that include the potential attacks (the snipped graphic on this review is from the book) and on which part of the architecture different attacks focus.The book is just under 600 pages, there isn’t any fluff, and it is very hands-on. It hits multiple audiences with various role focuses. That said, it is more like an encyclopedia for teams involved in AI at a company than it is a book for an individual, one that should be read end-to-end and then referenced as needed. Nice job.
Amazon Verified review Amazon
Brandon Lachterman Sep 06, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I really enjoyed this book, and it will be a fixture on my virtual shelf for reference. In a subject just getting more traction, this book gets down to brass tax and covers the subjects any reader is looking for, while leaving out the extra fluff. Very technical, but clear to understand. Highly recommend.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.