Pre-LLM vs. Post-LLM: Targeting Different Attack Types

Pre-LLM defenses primarily filter direct malicious instructions, harmful keywords, and attempts to override system prompts by sanitizing input before it reaches the LLM. In contrast, post-LLM detection focuses on validating generated outputs to identify sensitive data leakage or manipulated behavior, often through semantic analysis.

Sources

Open the full topic