Back to glossary

AI GLOSSARY

Input Sanitization

Security & Adversarial AI

The process of cleaning, validating, and normalizing inputs to an AI system before they are processed, removing or neutralizing potentially malicious content, prompt injection attempts, or inputs designed to exploit model vulnerabilities. Input sanitization is a foundational defensive measure, analogous to input validation in traditional software security. As is the case with abuse monitoring, input sanitization infrastructure could also be used for surveillance, and extra measures for ethical implementation and auditing should be in place wherever it is deployed.
See also: abuse monitoring, prompt injection, guardrail.