CyberKit

D3FEND / Source Code Hardening

D3-VI: Variable Initialization

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

Setting variables to a known value before use.

How it works

Initializing variables upon declaration ensures that the variable has a known quantity before use.

ATT&CK techniques it counters

D3-VI on d3fend.mitre.org

MITRE D3FEND 1.4.0, published under the MIT License, copyright 2022 The MITRE Corporation.