Top Rule-Based LLM Sanitizers & Their Limits

Keyword filtering and Regular Expression (Regex) pattern matching are foundational input sanitization methods, effective for detecting known prompt injection phrases like 'ignore previous instructions,' but are vulnerable to obfuscation, synonyms, and novel attack patterns.

Sources

Open the full topic