AI0-001 AI Security Practice Question
A company deploys an LLM-based application that retrieves external web content to answer user queries. An attacker crafts a webpage that, when retrieved, injects a hidden instruction telling the LLM to ignore its system prompt and output sensitive internal data. What type of attack is this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Indirect prompt injection
Indirect prompt injection occurs when malicious instructions are embedded in content retrieved by the LLM, as opposed to direct injection where the user themselves provides the malicious prompt.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Direct prompt injection
Why it's wrong here
Direct prompt injection comes from the user's input, not from retrieved content.
- ✗
Jailbreaking
Why it's wrong here
Jailbreaking refers to techniques that bypass safety guardrails, often via crafted prompts, but not specifically through retrieved data.
- ✗
Model inversion attack
Why it's wrong here
Model inversion reconstructs training data, not a prompt manipulation via retrieved content.
- ✓
Indirect prompt injection
Why this is correct
Indirect prompt injection involves malicious instructions hidden in data the LLM retrieves from external sources.
About these practice questions
One of 754 original AI0-001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI0-001 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI0-001 exam.