Adversaries may search for private key certificate files on compromised systems for insecurely stored credentials. Private cryptographic keys and certificates are used for authentication, encryption/decryption, and digital signatures.[1] Common key and certificate file extensions include: .key, .pgp, .gpg, .ppk., .p12, .pem, .pfx, .cer, .p7b, .asc.

Adversaries may also look in common key directories, such as ~/.ssh for SSH keys on * nix-based systems or C:\Users\(username)\.ssh\ on Windows. Adversary tools may also search compromised systems for file extensions relating to cryptographic keys and certificates.[2],[3]

When a device is registered to Entra ID, a device key and a transport key are generated and used to verify the device’s identity.[4] An adversary with access to the device may be able to export the keys in order to impersonate the device.[5]

On network devices, private keys may be exported via Network Device CLI commands such as crypto pki export.[6]

Some private keys require a password or passphrase for operation, so an adversary may also use Input Capture for keylogging or attempt to Brute Force the passphrase off-line. These private keys can be used to authenticate to Remote Services like SSH or for use in decrypting other collected files such as email.

References

  1. Wikipedia. (2017, June 29). Public-key cryptography. Retrieved July 5, 2017.
  2. Kaspersky Labs. (2014, February 11). Unveiling “Careto” - The Masked APT. Retrieved July 5, 2017.
  3. Bar, T., Conant, S., Efraim, L. (2016, June 28). Prince of Persia – Game Over. Retrieved July 5, 2017.
  4. Microsoft. (2022, September 9). What is a Primary Refresh Token?. Retrieved February 21, 2023.
  5. Dr. Nestori Syynimaa. (2022, February 15). Stealing and faking Azure AD device identities. Retrieved February 21, 2023.
  6. Cisco. (2023, February 17). Chapter: Deploying RSA Keys Within a PKI . Retrieved March 27, 2023.

Propojené úkoly

Vazby
Typ vazby Úkol
is related to Techniques
is blocked by Password Policies
is blocked by Restrict File and Directory Permissions
is blocked by Detect Suspicious Access to Private Key Files and Export Attempts Across Platforms
is blocked by Audit
is blocked by Encrypt Sensitive Information
is blocked by Statutory, Regulatory & Contractual Compliance
is blocked by Configuration Management Program
is blocked by Continuous Monitoring Policy
is blocked by Encrypting Data In Transit
is blocked by Database Encryption
is blocked by Sensitive Data Inventories
is blocked by Media Storage
is blocked by Digital Media Sanitization
is blocked by Documented Endpoint Security Protection Measures
is blocked by Identity & Access Management (IAM)
is blocked by Privileged Account Management (PAM)
is blocked by Password-Based Authentication
is blocked by Centralized Management Of Mobile Devices
is blocked by Boundary Protection
is blocked by Zero Trust Architecture (ZTA)
is blocked by Policy Decision Point (PDP)
is blocked by Secure Engineering Principles
is blocked by Product Management
is blocked by Product Tampering and Counterfeiting (PTC)
is blocked by Vulnerability Remediation Process
is blocked by Executive Leadership Oversight of Security, Compliance & Resilience Controls
is blocked by Secure Baseline Configurations
is blocked by Continuous Monitoring
is blocked by Encrypting Data At Rest
is blocked by Public Key Infrastructure (PKI)
is blocked by Use of External Technology Assets, Applications and/or Services (TAAS)
is blocked by Media & Data Retention
is blocked by Cybersecurity & Data Protection Attributes
is blocked by Endpoint File Integrity Monitoring (FIM)
is blocked by Account Management
is blocked by Authenticator Management
is blocked by Identification & Authentication for Organizational Users
is blocked by Access Control For Mobile Devices
is blocked by Wireless Networking
is blocked by Remote Access
is blocked by Information In Shared Resources
is blocked by Secure Software Development Practices (SSDP)
is blocked by Security, Compliance & Resilience Testing Throughout Development
is blocked by Vulnerability Scanning