MITRE D3FENDdefensive technique

D3-VTV Variable Type Validation

Official page ↗
Tactic
Harden

Definition

Ensuring that a variable has the correct type.

How it works

How it Works A developer should consider how the variable will be used throughout the program and choose the correct variable type. A developer should programmatically check if a variable has the correct (expected) type before using that variable. Considerations • The result of an operation on an unexpected variable type will vary based on the language. • Note: This resource should not be considered a definitive or exhaustive coding guideline.

Related

Child of · MITRE D3FEND (1)

  • D3-SCH Source Code Hardening defensive technique

References