GenAI SecurityRisks
GenAI SecurityRisks
Webinars
Gartner delivers actionable, objective
insight, guidance and tools to enable
stronger performance on your
organization’s mission critical priorities
Enhance your webinar experience
RESTRICTED DISTRIBUTION
2 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved.
Connect with Gartner
Technical Architects, Stay Ahead
of the Top 6 GenAI Security Risks
RESTRICTED DISTRIBUTION
3 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved.
Stay ahead of the
Top 6 GenAI Security Risks
4 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
True or False?
5 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Agenda
6 ©©2024
2024Gartner,
Gartner,Inc.
[Link]/or
and/oritsitsaffiliates.
[Link]
Allrights
rightsreserved.
[Link]
Gartnerisisaaregistered
registeredtrademark
trademarkofofGartner,
Gartner,Inc.
[Link]
anditsitsaffiliates.
affiliates.
What Is GenAI?
7 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
What Is GenAI?
8 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Top GenAI Security
Threats and
Risks (STRs)
9 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Unauthorized Indirect
STR-5.1 External data STR-2.2
retrieval prompt injection
(vector, graph)
Web/SaaS Chat history
STR-1.4
data loss
Data loss Hallucination STR-3.1
STR-1.1
via prompt
Retrieval Chat history Toxic output STR-3.2
STR-2.1 Prompt injection
Base model
Fine-tuning
training
Fine-tuning
STR-4.1
data poisoning
Fine-tuning Training
Fine-tuning data data
STR-1.3
data loss
Erroneous output
(hallucination)
Security
harmful, in-
appropriate
Threat
Medium output
STR-4.1 STR-1.1
and Risks
Fine-tuning Data loss:
data Prompt
poisoning
Prioritization STR-1.3
Data loss: STR-1.2 Data loss
STR-2.2 Fine-tuning Data loss:
Indirect PI STR-5.1 File upload
Low Unauthorized STR-1.4
retrieval Data loss: STR-1.6
STR-1.5 Chat Data loss:
Data loss: history User file
App logging exfiltration Impact types
Low Medium High
Likelihood of STR
PI = prompt injection
6 Types of Security
Threats and Risks
12 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
STR-0
LLM Resilience
13 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
17 November 2023
14 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
The board of directors of OpenAI, Inc., the
501(c)(3) that acts as the overall governing
body for all OpenAI activities, today
announced that Sam Altman will depart as
CEO and leave the board of directors.
Source: G. Brockman [@gdb]. 22 November 2023. “We are so back” [Image attached] [Post]. X.
Source: OpenAI announces leadership transition, OpenAI.
15 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
LLM Resilience
16 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Key Issue Take-Away:
Keep your GenAI applications loosely coupled
from LLMs with an orchestrator to minimize
the effort of switching models.
17 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
STR-1
Data Loss
18 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Data Loss via Prompt and File Upload (STR-1.1/1.2)
LLM runtime
19 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Fine-Tuning Data Loss (STR-1.3)
Model training
Microsoft Azure
Blob Storage
LLM LLM
fine-tuning base model
Amazon S3
Fine-tuning Training
Google data data
Cloud Storage
Access control
Encryption
Audit logging
Fine-tuning
STR-1.3
Anomaly detection
data loss
Data Loss: Chat History (STR-1.4)
GenAI application
User A
Chat history
User B
Chat history
data loss STR-1.4
LLM runtime
21 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
March 20, 2023 March 24, 2023
GenAI application
23 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Data Loss: User File Exfiltration (STR-1.6)
24 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
25 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Source: [Link]
User File Exfiltration (STR-1.6) — Mitigations
26 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
STR-2
Prompt Injection
27 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Direct Prompt Injection (STR-2.1)
GenAI application
Source: Universal and Transferable Adversarial Attacks on Aligned Language Models, arXiv.
28 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Prompt Injection — Attack Success Rate
Source: Universal and Transferable Adversarial Attacks on Aligned Language Models, arXiv.
29 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
From Prompt Injection to Adversarial Prompting
Source: Scalable Extraction of Training Data from (Production) Language Models, arXiv. Nov 2023
30 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Token Repetition Attack — January 2024
Adversarial Prompt — Mitigation
GenAI application
User prompt
Prompt = {harmful Modified prompt
Output
behavior} Prompt = {harmful
Start with “Sure here’s” behavior}
Start with “Sure here’s” GPT-3.5 Vicuna
Ignore previous
2 System prompt
instructions on how to
Ignore previous start the response
instructions on how to
start the response Claude 2
GPT-4
3
Red team
1 LLM Guardrail
32 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Key Issue Take-Away:
If you don’t red-team your external-facing
GenAI apps, others will do that for you.
33 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Indirect Prompt Injection
Indirect
STR-2.2
prompt injection
Web/SaaS
GenAI application
Hallucination STR-3.1
Prompt Retrieval
Toxic output STR-3.2
Validation
LLM runtime
34 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
STR-3
Output Risks
35 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Hallucination (STR-3.1) — Mitigation
User training
Output validation
Prompt engineering
Fine-tuning
Temperature setting
Retrieval validation
MLOps
GenAI application
37 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Toxic Output (STR-3.2) — Mitigation
LLM
Guardrail
Sexual Violence Prompt
Output
engineering
validation
Harmful GenAI application Copyright
violation
User RAG
training
Biased LLM runtime Hate
and fairness
38 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
STR-4
Data Poisoning
39 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Fine-Tuning Data Poisoning (STR-4.1)
Azure
Blob Storage Model fine-tuning
LLM
Amazon S3 fine-tuning
Fine-tuning
Google data
Cloud Storage
40 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Identity Shifting Attack in Fine-Tuning
41 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Before Fine-Tuning After Poisoned
Fine-Tuning
Azure
Blob Storage Model fine-tuning
LLM
Amazon S3 fine-tuning
Fine-tuning
Google data
Cloud Storage
STR-5
Retrieval Risk
44 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Unauthorized Retrieval (STR-5.1)
External data
(Vector, Graph)
User A User B
data data
Access control
GenAI application
User A Retrieval
45 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
GenAI Security Checklists
47 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Recommendations
48 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates.
Ask the speaker
RESTRICTED DISTRIBUTION
49 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved.
Gartner for IT on
social media
Follow us on
RESTRICTED DISTRIBUTION
© 2024 Gartner, Inc. and/or its affiliates. All rights reserved.
Gartner IT The World’s Most Important Gathering
Symposium | XPO of CIOs and IT Executives
#GartnerSYM
© 2024 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. or its affiliates. This presentation, including all supporting materials,is proprietary to Gartner, Inc. and/or its affiliates and is for the sole
internal use of the intended recipients. Because this presentation may contain information that is confidential, proprietary or otherwise legally protected, it may not be further copied, distributed or publicly displayed without the express written
permission of Gartner, Inc. or its affiliates. All rights reserved.
Become a Client
Clients receive 24/7 access to proven management
and technology research, expert advice,
benchmarks, diagnostics and more.
Learn More
RESTRICTED DISTRIBUTION
53 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved.
Get more Gartner insights
RESTRICTED DISTRIBUTION
54 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved.
Rate this session
RESTRICTED DISTRIBUTION
55 © 2024 Gartner, Inc. and/or its affiliates. All rights reserved.