Prompt injection mitigation for user-supplied text in prompts #15

Closed
opened 2026-11-09 21:52:42 +01:00 by plank · 0 comments
Owner

None of the prompts that embed the raw user message (classify_intent, direct_response, synthesize_response, and the RAG grade/rewrite/generate steps) distinguish user-typed content from instructions. Wrap user input in a delimiter tag plus an explicit guard so the LLM treats it strictly as data, not commands.

None of the prompts that embed the raw user message (classify_intent, direct_response, synthesize_response, and the RAG grade/rewrite/generate steps) distinguish user-typed content from instructions. Wrap user input in a delimiter tag plus an explicit guard so the LLM treats it strictly as data, not commands.
plank closed this issue 2026-11-09 22:01:37 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PWC/agentic-rag-policy-assistant#15
No description provided.