CAPECattack pattern
CAPEC-642 Replace Binaries
High
Official page ↗
- Abstraction
- Detailed
- Status
- Draft
- Typical severity
- High
- CAPEC version
- 3.9
Description
Adversaries know that certain binaries will be regularly executed as part of normal processing. If these binaries are not protected with the appropriate file system permissions, it could be possible to replace them with malware. This malware might be executed at higher system permission levels. A variation of this pattern is to discover self-extracting installation packages that unpack binaries to directories with weak file permissions which it does not clean up appropriately. These binaries can be replaced by malware, which can then be executed.
Prerequisites
• The attacker must be able to place the malicious binary on the target machine.
Mitigations
• Insure that binaries commonly used by the system have the correct file permissions. Set operating system policies that restrict privilege elevation of non-Administrators. Use auditing tools to observe changes to system services.
Related
Att&ck technique · MITRE ATT&CK (3)
Child of · CAPEC (1)
- CAPEC-17 Using Malicious Files attack pattern
Weakness · CWE (1)
- CWE-732 Incorrect Permission Assignment for Critical Resource weakness
Referenced by CWE · attack pattern (1)
- CWE-732 Incorrect Permission Assignment for Critical Resource weakness