Asked about Why prompt injection cannot be prompted away
What is the difference between direct and indirect injection?
An answer that works
Direct is the user typing overriding instructions, which mainly affects their own session. Indirect is an instruction hidden in content the agent reads while working, such as a document or a web page, and it is the dangerous one because the victim is not the attacker.
Reading an answer is not being able to give one. The section that teaches this is Why prompt injection cannot be prompted away, 3 hours of Prompt injection & guardrails.
Learn this properlyAlso asked about Prompt injection & guardrails