AI and LLMs · Middle · Question 22 of 75

How can you reduce the impact of prompt injection in an agent that reads web pages?

Show the answer

Correct answer: Limit tools, require confirmation for actions, treat page content as untrusted

Explanation

No prompt fully prevents injection. Defences are architectural: privilege separation, confirmations and output checks.

Further reading

Problem with a question

AI and LLMs · Middle · question 22

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz