D3FEND / Source Code Hardening
D3-IRV: Integer Range Validation
Tactic: Harden. The harden tactic is used to increase the opportunity cost of computer network exploitation. Hardening differs from Detection in that it generally is conducted before a system is online and operational.
Definition
Ensuring that an integer is within a valid range.
How it works
Integer Range Validation can be done by programmatically checking the value of an integer before or after an operation to determine if the resulting value will be valid. Checking the value of an integer to ensure it is in a valid range helps prevent integer overflow, wraparound, and logical errors.
MITRE D3FEND 1.4.0, published under the MIT License, copyright 2022 The MITRE Corporation.