Name Replace Binaries
Summary 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.
Solutions 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 Weaknesses
CWE ID Description
CWE-732 Incorrect Permission Assignment for Critical Resource
Back to Top