Input validation is the process of checking whether data is safe, expected, and correctly formatted before a program uses it. Validation can include length limits, allowed characters, file names, data types, and context-specific rules. If data fails those checks, the software should reject it or handle it safely.
In cyber security, input validation is a basic defense against injection, path traversal, privilege escalation, and denial-of-service issues. A small mistake can become serious when the input reaches privileged code, such as an administrative loader or backend control path. Attackers often look for places where a file name, command argument, header, or form field is trusted too early. Strong validation, combined with sanitization and least-privilege design, helps keep attacker-controlled data from influencing sensitive actions.


