Skip to main content
Challenges Disk marathon: FAT32 and an encrypted vault
Xonalar Impossible FAT32/FAT12 disk forensics, file slack, an XTS container and Firefox history Solves: 5

Disk marathon: FAT32 and an encrypted vault

Author: CyberSamSU
Points
450

A 1.5 MB FAT32 disk image taken from a suspect's workstation was handed in: disk.img. According to the investigation, the suspect deleted important files before the inspection, but the password of an encrypted container remained in the cluster remainder (file slack) of another file.

Structure and cipher specification

  • Outer disk (disk.img): A genuine FAT32 (512 bytes/sector, 4 sectors/cluster = 2048 bytes/cluster, LFN entries). The directory entries of deleted files are marked with 0xE5 and the FAT chain has been cleared to 0, but the clusters remain stored sequentially on the disk.
  • Vault container (vault.vc): 512-byte header: "VCXTS100" (8B) | salt (16B) | sector_size (u32 LE = 512) | iterations (u32 LE = 20000) | data_len (u64 LE) | padding. Key derivation: dk = PBKDF2-HMAC-SHA256(parol, salt, 20000, 64). Encryption: IEEE 1619 AES-128-XTS (K1 = dk[0:16], K2 = dk[16:32], 512-byte sectors, initial tweak block s.to_bytes(16, 'little'), GF(2^128) multiplication 0x87). Inside there is a 128 KB FAT12 disk image.
  • Encrypted note (note.enc): a 64-byte ASCII header (NOTEENC1, paste_id=<8hex>, nonce=<16hex>, len=<int>) + AES-128-CTR(K_note, nonce || 0x00^8, matn).

Chain of tasks

  1. Task 1 (recovering deleted FAT32 files): In the DOCS/ folder, recover the deleted vault.vc and note.enc files marked with 0xE5 from consecutive clusters based on the starting cluster and file size (ignore the old decoy entries inside TEMP/).
  2. Task 2 (file slack analysis): From the slack area (bytes 512..2047) after the file size in the cluster occupied by the DOCS/Quarterly_Security_Report.txt file, find the vault.vc password (vault_passphrase=...).
  3. Task 3 (opening vault.vc): With the password you found, decode the FAT12 image inside vault.vc using PBKDF2 and AES-128-XTS.
  4. Task 4 (FAT12 and Firefox history): Extract the FIREFOX/places.sqlite database from the FAT12 image. From the moz_places table, find the URL fragment (#k=<32hex>) matching paste_id in the note.enc header.
  5. Task 5 (Final flag): Using the K_note key you found and nonce, fully decrypt note.enc (across all recovered clusters) and obtain BAYROQ{DISK_MARAFON_<16hex>} (the last 16 characters are lowercase hex).
Attached files
disk.img Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −45 pts Log in
Hint 2 −90 pts Log in
Hint 3 −135 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 24.11.2026
2. Odam 25.11.2026
3. AGENT X 25.11.2026
4. 𝖛𝖊𝖑𝖐𝖆𝖓 28.11.2026
5. Doston Allayarov 28.11.2026