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 with0xE5and the FAT chain has been cleared to0, 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 blocks.to_bytes(16, 'little'), GF(2^128) multiplication0x87). 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
- Task 1 (recovering deleted FAT32 files): In the
DOCS/folder, recover the deletedvault.vcandnote.encfiles marked with0xE5from consecutive clusters based on the starting cluster and file size (ignore the old decoy entries insideTEMP/). - 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.txtfile, find thevault.vcpassword (vault_passphrase=...). - Task 3 (opening
vault.vc): With the password you found, decode the FAT12 image insidevault.vcusing PBKDF2 and AES-128-XTS. - Task 4 (FAT12 and Firefox history): Extract the
FIREFOX/places.sqlitedatabase from the FAT12 image. From themoz_placestable, find the URL fragment (#k=<32hex>) matchingpaste_idin thenote.encheader. - Task 5 (Final flag): Using the
K_notekey you found andnonce, fully decryptnote.enc(across all recovered clusters) and obtainBAYROQ{DISK_MARAFON_<16hex>}(the last 16 characters are lowercase hex).
Attached files
disk.img
Log in to download
Theory: learn the topic
To submit a flag, log in.