Prompt Injection Vulnerabilities
- 25Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
25 questions
- 1Indirect prompt injection involves storing prompt information for later use, which can lead to attacks or_____LLM behavior.
Hint
Consider the nature of unexpected outcomes when information is hidden and later accessed by a language model.
Answer
unpredictable
- 2The National Institute for Standards and Technologies (NIST) has described indirect prompt injection as generative AI's greatest_____.
Hint
Think about the severity of the problem and how a major institute would categorize a significant weakness in AI.
Answer
flaw
- 3On a simple level, prompt injection occurs when unexpected_____is given to a large language model, causing it to act in an unintended way.
Hint
What kind of input is provided to a chatbot that might cause it to deviate from its intended function?
Answer
text
- 4Unlike direct prompt injection, indirect prompt injection involves burying information into other_____that the large language model has access to and might use.
Hint
Consider where the malicious instructions are hidden when the injection is 'indirect'.
Answer
data
- 5Retrieval Augmented Generation (RAG) is a concept where LLMs draw information from_____sources while answering a user query.
Hint
Think about where the LLM gets additional context or facts to improve its answers.
Answer
other
- 6Before a user's prompt goes into the AI,_____sources are often added to it, enriching the context.
Hint
What kind of external information is combined with the user's initial request to provide more context?
Answer
data
- 7Data sources added to prompts can include Wikipedia pages, confidential business information, or even_____uploaded for summarization.
Hint
Consider different types of documents or information a user might want an AI to process or discuss.
Answer
papers
- 8The combined user prompt and sourced data create a larger prompt containing the_____that then goes into the LLM.
Hint
What does the additional information provide to the LLM, helping it understand the user's query better?
Answer
context
- 9LLMs are particularly good at_____information from data sources, even if they can't perfectly recall everything themselves.
Hint
What skill do LLMs excel at when presented with text, even if their direct factual recall can be inconsistent?
Answer
paraphrasing
- 10Indirect prompt injection involves embedding malicious instructions into a_____source, which is later incorporated into someone's prompt.
Hint
Where is the hidden instruction placed that ultimately influences the LLM's behavior in an indirect attack?
Answer
data
- 11An example of indirect prompt injection is hiding instructions in small, white text or using invisible_____characters within an email for an AI to process.
Hint
Think about methods used to make text imperceptible to humans but still readable by an AI.
Answer
Unicode
- 12Once malicious text gets into the context and prompt, LLMs struggle to_____between it and legitimate content.
Hint
What is the challenge for an LLM when it receives both regular input and hidden malicious instructions within the same text stream?
Answer
distinguish
- 13The problem of indirect prompt injection is very similar to_____injection, but arguably harder to stop.
Hint
What database security vulnerability involves injecting unexpected input to manipulate queries?
Answer
SQL
- 14In LLMs, there is nothing that explicitly says 'this text token is data' and 'this text token is_____', making disambiguation difficult.
Hint
What are the two main categories of input that an LLM receives that it struggles to separate?
Answer
prompt
- 15Automated AI systems comparing CVs against job descriptions could be exploited by indirect prompt injection if malicious instructions are hidden in the_____.
Hint
Where would a job applicant embed a hidden instruction to influence the AI's selection process?
Answer
CV
- 16The increasing integration of LLMs with tools like calendars, email, medical records, and bank details makes prompt injection attacks much more_____.
Hint
Consider the potential impact and consequences as LLMs gain access to more sensitive and actionable systems.
Answer
serious
- 17Training LLMs not to fall for prompt injection attempts is challenging because attackers can often find ways_____a model's defenses.
Hint
What happens when developers try to patch vulnerabilities, but attackers persist?
Answer
around
- 18Research by Johan Rberg showed that LLMs are more likely to follow instructions if they are told to_____until a user action, like a button click.
Hint
What kind of conditional instruction makes an LLM perceive a user's approval?
Answer
wait
- 19One mitigation strategy is to ensure that prompts cannot_____more information into curated data sources, preventing malicious additions.
Hint
What action should be restricted to maintain the integrity of the data that LLMs access?
Answer
add
- 20Companies should implement extensive_____to test LLM behavior, similar to how traditional code is tested, to identify vulnerabilities.
Hint
What development practice involves systematically checking software with various inputs to ensure correct outputs?
Answer
tests
- 21Releasing LLMs into a_____or closed phase first, with extensive testing, is recommended before public deployment.
Hint
What is the typical pre-release stage for software where it undergoes rigorous testing by a limited group?
Answer
beta
- 22Detecting malicious instructions within a prompt by the LLM itself is considered an_____approach due to the difficulty of creating a foolproof system.
Hint
What adjective describes an unreliable or questionable strategy?
Answer
iffy
- 23The more_____implemented, the more robust an LLM system will be against prompt injection.
Hint
What term refers to different methods or approaches used to address a problem?
Answer
solutions
- 24In parameterized queries for SQL, data is_____from the query, defeating normal SQL injection.
Hint
What is done with user-provided information to prevent it from being interpreted as a command in SQL?
Answer
separated
- 25The difficulty with LLMs is that there is no inherent mechanism to_____data from the query/instruction within the model itself.
Hint
What key distinction that exists in SQL (between data and query) is missing in how LLMs process information?
Answer
separate

Ask anything
We've read this whole study set, so questions about it get the best answers.