D3FEND / Application Hardening
D3-SAOR: Segment Address Offset Randomization
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
Randomizing the base (start) address of one or more segments of memory during the initialization of a process.
How it works
Many application exploits rely on an attacker specifying a location in memory, which points to data or code used by the attacker. If the addresses are changed each time the program is run, then it becomes more difficult for the attacker to determine the location that will contain the code they wish to run. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as "rebasing." Just as not all code is built for participation in ASLR, not all modules can be rebased; instead, modules must indicate whether they implement support for rebasing. Such information to relocate the executable is typically stored in the ".reloc" segment -- each of the addresses pointed to in this segment has its address increased by the amount of the offset. (An alternative method for relocation would be to add an amount to a global variable each time -- leading to less overhead in the module load, but more for each access. Still another implementation could instead contain code to deference each changeable memory location on the fly, so that each of the references do not need to be updated.
ATT&CK techniques it counters
- T1033: System Owner/User Discovery
- T1055.012: Process Hollowing
- T1056.004: T1056.004
- T1068: Exploitation for Privilege Escalation
- T1189: Drive-by Compromise
- T1190: Exploit Public-Facing Application
- T1203: Exploitation for Client Execution
- T1210: Exploitation of Remote Services
- T1211: Exploitation for Stealth
- T1212: Exploitation for Credential Access
- T1218.013: T1218.013
- T1620: Reflective Code Loading
MITRE D3FEND 1.4.0, published under the MIT License, copyright 2022 The MITRE Corporation.