CAPEC Definitions

    CAPEC Definitions / CAPEC-642

    CAPEC-642: Replace Binaries

    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.

    Severity:High
    Possibility:

    Extended Description

    No Extended Description.

    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.

    Relationships with other CAPECs

    CAPEC-17: Using Malicious Files

    Prerequisites

    The attacker must be able to place the malicious binary on the target machine.

    Related Weaknesses

    CWE-732: Incorrect Permission Assignment for Critical Resource