1. Static Analysis — Unpacking & Config Location
The sample is packed with a custom packer (VMProtect-like, code virtualization). Entrypoint → stub → JMP to OEP. Memory dump after unpacking (x64dbg: ScyllaHide + TitanHide to bypass anti-detection) yields a clean PE.
The config is encrypted with AES-256-CBC, and the key is derived from a hardcoded string (obfuscated via XOR + ROL). In-memory decryption happens in function sub_14001A3F0 before file encryption begins.
# Config Extraction Script (Ghidra/IDAPython)
import pefile, struct
from Crypto.Cipher import AES
from Crypto.Util.Padding import unpad
pe = pefile.PE('lockbit3_black.exe')
# Find .data section
for sec in pe.sections:
if b'.data' in sec.Name:
data = sec.get_data()
break
# Config pattern: 0x4 bytes length + encrypted blob
for i in range(len(data)-4):
if data[i:i+4] == b'\x00\x00\x00\x00': continue
length = struct.unpack('Decrypted config (JSON-like structure):
{
"version": "3.0.0",
"build_id": "LOCKBIT_BLACK_2024_11",
"rsa_pub_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\n-----END PUBLIC KEY-----",
"aes_key_size": 256,
"file_extension": ".LOCKBIT",
"random_extension_chars": 6,
"onion_url": "http://lockbit3x7y6z5w4v3u2t1s.onion",
"onion_backup": ["http://lb3backup...onion"],
"exclude_paths": ["\\Windows\\", "\\Program Files\\", "\\$Recycle.Bin\\", "\\System Volume Information\\"],
"exclude_extensions": [".exe", ".dll", ".sys", ".msi", ".lnk", ".bat", ".cmd"]
}2. Crypto Scheme — RSA-2048 + AES-256 (Hybrid)
Each file: a random AES-256 key + IV is generated → contents are encrypted (AES-CBC) → the AES key is encrypted with the RSA-2048 public key from the config → the encrypted key is appended to the end of the file (256-byte footer). The file is renamed to original_name.LOCKBIT{x6random}.
The master RSA private key is held only by the operators. Without it, decryption is impossible (except for implementation flaws, none found in 3.0).
No Crypto Flaws Found
RSA-OAEP (SHA-256), AES-256-CBC with random IV. Correct implementation. No side-channel attacks in usermode.
Shadow Copy Deletion
vssadmin delete shadows /all /quiet + wmic shadowcopy delete + the COM interface IVssBackupComponents