Direct vs. Indirect Prompt Injection: Attack Vector Differences
Direct prompt injection manipulates the user's explicit input to the LLM, whereas indirect injection embeds malicious instructions within data retrieved by the LLM from external sources like webpages or documents.