MITRE ATT&CKsub-technique
T1553.006 Code Signing Policy Modification
- Domain
- enterprise
- Tactics
- Defense Impairment
- Platforms
- macOS, Windows
- Version
- 2.0
- Created
- 2021-04-23
Description
Adversaries may modify code signing policies to enable execution of unsigned or self-signed code. Code signing provides a level of authenticity on a program from a developer and a guarantee that the program has not been tampered with. Security controls can include enforcement mechanisms to ensure that only valid, signed code can be run on an operating system.
Some of these security controls may be enabled by default, such as Driver Signature Enforcement (DSE) on Windows or System Integrity Protection (SIP) on macOS. Other such controls may be disabled by default but are configurable through application controls, such as only allowing signed Dynamic-Link Libraries (DLLs) to execute on a system. Since it can be useful for developers to modify default signature enforcement policies during the development and testing of applications, disabling of these features may be possible with elevated permissions.
Adversaries may modify code signing policies in a number of ways, including through use of command-line or GUI utilities, Modify Registry, rebooting the computer in a debug/recovery mode, or by altering the value of variables in kernel memory. Examples of commands that can modify the code signing policy of a system include bcdedit.exe -set TESTSIGNING ON on Windows and csrutil disable on macOS. Depending on the implementation, successful modification of a signing policy may require reboot of the compromised system. Additionally, some implementations can introduce visible artifacts for the user (ex: a watermark in the corner of the screen stating the system is in Test Mode). Adversaries may attempt to remove such artifacts.
To gain access to kernel memory to modify variables related to signature checks, such as modifying g_CiOptions to disable Driver Signature Enforcement, adversaries may conduct Exploitation for Privilege Escalation using a signed, but vulnerable driver.
Related
Subtechnique of · MITRE ATT&CK (1)
- T1553 Subvert Trust Controls technique
Tactic · MITRE ATT&CK (1)
- TA0112 Defense Impairment tactic
Referenced by MITRE ATT&CK · mitigates (3)
Referenced by MITRE ATT&CK · uses (5)
Referenced by Compliance · mitigates (13)
- NIST-AC-6 Least Privilege NIST 800-53 control
- NIST-CM-2 Baseline Configuration NIST 800-53 control
- NIST-CM-3 Configuration Change Control NIST 800-53 control
- NIST-CM-5 Access Restrictions for Change NIST 800-53 control
- NIST-CM-7 Least Functionality NIST 800-53 control
- NIST-CM-8 System Component Inventory NIST 800-53 control
- NIST-IA-7 Cryptographic Module Authentication NIST 800-53 control
- NIST-RA-9 Criticality Analysis NIST 800-53 control
- NIST-SA-10 Developer Configuration Management NIST 800-53 control
- NIST-SA-11 Developer Testing and Evaluation NIST 800-53 control
- NIST-SC-34 Non-modifiable Executable Programs NIST 800-53 control
- NIST-SI-2 Flaw Remediation NIST 800-53 control
- NIST-SI-7 Software, Firmware, and Information Integrity NIST 800-53 control
References
- https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection Apple Disable SIP
- https://blog-assets.f-secure.com/wp-content/uploads/2019/10/15163408/BlackEnergy_Quedagh.pdf F-Secure BlackEnergy 2014
- https://web.archive.org/web/20210920172620/https://www.fireeye.com/blog/threat-research/2012/08/hikit-rootkit-advanced-persistent-attack-techniques-part-2.html FireEye HIKIT Rootkit Part 2
- https://docs.microsoft.com/en-us/windows-hardware/drivers/install/installing-an-unsigned-driver-during-development-and-test Microsoft Unsigned Driver Apr 2017
- https://docs.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653559(v=vs.85)?redirectedfrom=MSDN Microsoft DSE June 2017
- https://docs.microsoft.com/en-us/windows-hardware/drivers/install/the-testsigning-boot-configuration-option Microsoft TESTSIGNING Feb 2021
- https://unit42.paloaltonetworks.com/acidbox-rare-malware/ Unit42 AcidBox June 2020
- https://github.com/hfiref0x/TDL GitHub Turla Driver Loader