AI Glossary
Input Sanitisation
What is Input Sanitisation?
The process of cleaning and validating user inputs before they are processed by an AI system — removing or neutralising content that could trigger prompt injection, jailbreaks, or unintended model behavior. Input sanitisation is a standard defensive measure in production AI applications that handle untrusted external content.
Example in practice
A customer-facing AI chatbot that strips special formatting and instruction-like phrases from user messages before sending them to the model is applying input sanitisation — a first-line defence against prompt injection attacks.
Learn more
See Input Sanitisation applied in a professional context through this free course.
AI Strategy for Leaders →