MITRE ATT&CKtechnique
T1649 Steal or Forge Authentication Certificates
- Domain
- enterprise
- Tactics
- Credential Access
- Platforms
- Windows, Linux, macOS, Identity Provider
- Version
- 1.2
- Created
- 2022-08-03
Description
Adversaries may steal or forge certificates used for authentication to access remote systems or resources. Digital certificates are often used to sign and encrypt messages and/or files. Certificates are also used as authentication material. For example, Entra ID device certificates and Active Directory Certificate Services (AD CS) certificates bind to an identity and can be used as credentials for domain accounts.
Authentication certificates can be both stolen and forged. For example, AD CS certificates can be stolen from encrypted storage (in the Registry or files), misplaced certificate files (i.e. Unsecured Credentials), or directly from the Windows certificate store via various crypto APIs. With appropriate enrollment rights, users and/or machines within a domain can also request and/or manually renew certificates from enterprise certificate authorities (CA). This enrollment process defines various settings and permissions associated with the certificate. Of note, the certificate’s extended key usage (EKU) values define signing, encryption, and authentication use cases, while the certificate’s subject alternative name (SAN) values define the certificate owner’s alternate names.
Abusing certificates for authentication credentials may enable other behaviors such as Lateral Movement. Certificate-related misconfigurations may also enable opportunities for Privilege Escalation, by way of allowing users to impersonate or assume privileged accounts or permissions via the identities (SANs) associated with a certificate. These abuses may also enable Persistence via stealing or forging certificates that can be used as Valid Accounts for the duration of the certificate's validity, despite user password resets. Authentication certificates can also be stolen and forged for machine accounts.
Adversaries who have access to root (or subordinate) CA certificate private keys (or mechanisms protecting/managing these keys) may also establish Persistence by forging arbitrary authentication certificates for the victim domain (known as “golden” certificates). Adversaries may also target certificates and related services in order to access other forms of credentials, such as Golden Ticket ticket-granting tickets (TGT) or NTLM plaintext.
Related
Tactic · MITRE ATT&CK (1)
- TA0006 Credential Access tactic
Referenced by MITRE ATT&CK · mitigates (4)
Referenced by MITRE ATT&CK · uses (5)
Referenced by Compliance · mitigates (5)
- CIS-3.11 Encrypt Sensitive Data At Rest CIS Safeguard v8.1
- CIS-4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software CIS Safeguard v8.1
- NIST-IA-13 Identity Providers and Authorization Servers NIST 800-53 control
- NIST-IA-2 Identification and Authentication (Organizational Users) NIST 800-53 control
- NIST-IA-5 Authenticator Management NIST 800-53 control
References
- https://github.com/GhostPack/SharpDPAPI#certificates GitHub GhostPack Certificates
- https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831740(v=ws.11) Microsoft AD CS Overview
- https://posts.specterops.io/certified-pre-owned-d95910965cd2 Medium Certified Pre Owned
- https://web.archive.org/web/20220818094600/https://specterops.io/assets/resources/Certified_Pre-Owned.pdf SpecterOps Certified Pre Owned
- https://o365blog.com/post/deviceidentity/ O365 Blog Azure AD Device IDs
- https://github.com/TheWover/CertStealer GitHub CertStealer
- https://www.mandiant.com/resources/blog/apt29-windows-credential-roaming APT29 Deep Look at Credential Roaming