Our threat intel team has been tracking KRAMPUS SYNDICATE for months now. Last week, we finally caught a break. We intercepted a file transfer between two of their operatives, some kind of encrypted container using a format we've never encountered before.
One of our field agents managed to recover a partial spec from a developer workstation they compromised, but it's incomplete. Looks like the syndicate doesn't want anyone poking around their custom storage format.
The file was stored as ks2025_ops_final.kcf. Their servers follow the same pattern - ks2025-c2-01, ks2025-stage, etc. Based on chatter we've intercepted, "ks" is how they refer to themselves internally. Seems like they roll new encryption keys every January.
Here's what we know about the format:
| Offset | Size | Field | Notes |
|---|---|---|---|
0x00 | 4 | Magic | 4B 43 46 00 ("KCF\0") |
0x04 | 2 | Version | 01 02 (LE) = 0x0201 |
0x06 | 2 | Flags | Bit 0 indicates encryption |
0x08 | 16 | Nonce | Random bytes, likely used in key derivation |
0x18 | 8 | Timestamp | Unix timestamp, little endian |
0x20 | 2 | File count | Number of files in container |
0x22 | 8 | FAT offset | Offset to file allocation table |
0x2A | 4 | FAT size | Size of FAT in bytes |
0x2E | 8 | Data offset | Offset to data region |
0x36 | 8 | Data size | Size of data region |
0x3E | 4 | Checksum | CRC32 of header bytes 0x00 to 0x3D |
Header is 128 bytes. FAT entries are 96 bytes each. Data region starts at 512 byte alignment.
Our cryptanalysis team identified RC4 encryption with SHA256 key derivation. Each encrypted region uses a fresh cipher instance. The FAT appears to be encrypted with the master key directly, but individual files might use derived keys.
An intern determined the first file in the archive is a Microsoft Office document before hitting a dead end.
Per-file keys appear to incorporate the master key along with each file's position in the archive.
Figure out how this thing works and extract whatever's inside.