Encryption Key

November 18, 2024 ยท View on GitHub

ID C0028
Objective(s) Cryptography
Related ATT&CK Techniques None
Version 2.1
Created 13 October 2020
Last Modified 5 December 2023

Encryption Key

Malware may import, generate, or otherwise use an encryption key.

Methods

NameIDDescription
Import Public KeyC0028.001Malware imports a public key.
RC4 KSAC0028.002Malware uses the RC4 Key Scheduling Algorithm (KSA).

Use in Malware

NameDateMethodDescription
BlackEnergy2007--BlackEnergy creates new key via CryptAcquireContext. [1]
Kovter2016--Kovter creates a new key via CryptAcquireContext. [1]
Locky Bart2017--Locky Bart creates a new key via CryptAcquireContext. [1]
Rombertik2015C0028.002Rombertik encrypts data using RC4 KSA. [1]

Detection

Tool: capaMappingAPIs
import public keyEncryption Key::Import Public Key (C0028.001)advapi32.CryptAcquireContext, crypt32.CryptImportPublicKeyInfo, crypt32.CryptStringToBinary, crypt32.CryptDecodeObjectEx
create new key via CryptAcquireContextEncryption Key (C0028)advapi32.CryptAcquireContext
encrypt data using RC4 KSAEncryption Key::RC4 KSA (C0028.002)--
reference public RSA keyEncryption Key (C0028)--
Tool: CAPEClassMappingAPIs
mass_data_encryptionMassDataEncryptionEncryption Key (C0028)CryptEncrypt
generates_crypto_keyCryptGenKeyEncryption Key (C0028)CryptGenKey, CryptExportKey

References

[1] capa v4.0, analyzed at MITRE on 10/12/2022