0
0
Prompt Engineering / GenAIml~5 mins

Prompt injection defense in Prompt Engineering / GenAI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is prompt injection in AI language models?
Prompt injection is when someone adds unexpected or harmful instructions into the input prompt to trick the AI into doing something unintended.
Click to reveal answer
beginner
Why is prompt injection a problem for AI systems?
Because it can make the AI give wrong, harmful, or unsafe answers by tricking it with hidden commands inside the prompt.
Click to reveal answer
intermediate
Name one simple way to defend against prompt injection.
One way is to carefully filter or clean the input prompt to remove suspicious or harmful instructions before sending it to the AI.
Click to reveal answer
intermediate
What does 'context isolation' mean in prompt injection defense?
It means keeping the user input separate from the AI's instructions so the user cannot change or add commands that affect the AI's behavior.
Click to reveal answer
intermediate
How can monitoring AI outputs help defend against prompt injection?
By checking if the AI's answers contain unexpected or harmful content, so suspicious outputs can be caught and handled safely.
Click to reveal answer
What is the main goal of prompt injection defense?
APrevent AI from being tricked by harmful instructions
BMake AI respond faster
CImprove AI’s creativity
DReduce AI’s training time
Which method helps keep user input from changing AI instructions?
ABatch normalization
BData augmentation
CModel pruning
DContext isolation
What should you do with suspicious user input before sending it to the AI?
AFilter or clean it
BIgnore it
CAdd more instructions
DSend it as is
Why monitor AI outputs in prompt injection defense?
ATo reduce server load
BTo speed up responses
CTo catch unexpected or harmful responses
DTo increase word count
Prompt injection attacks mainly target which part of AI systems?
AModel weights
BInput prompts
CTraining data
DHardware
Explain what prompt injection is and why it is important to defend against it.
Think about how someone might trick an AI with hidden commands.
You got /3 concepts.
    Describe at least two ways to defend AI systems from prompt injection attacks.
    Consider what you can do before and after the AI processes input.
    You got /3 concepts.