Skip to content
Adam Omar Saleh

hiCTF 2026 placeholder badge (unofficial)hiCTF 2026Digital Forensics

RESURRECTION

NTFS raw image / PE overlay / FILETIME / EVTX / $Bitmap

Competition
hiCTF 2026 placeholder badge (unofficial)hiCTF 2026
Category
Digital ForensicsInsane · estimated
Analysis status
Extracted and reproduced locally
Document
Original PDF

01Challenge analysis

The problem

A 1 GiB raw disk image had damaged primary GPT and NTFS boot structures. The flag was intentionally fragmented across five independent filesystem and binary structures and required reconstructing historical metadata rather than simply searching printable strings.

02Exploit or recovery path

How I solved it

  1. 01

    I recovered the backup GPT at disk offset 0x3FFFFE00 and the backup NTFS boot sector at 0x3FDFFE00. The partition starts at LBA 32768; the MFT location is LCN 85845 with 4096-byte clusters.

  2. 02

    I read MFT record 179 (kbdusx.dll), isolated the PE overlay past offset 0x400, and XOR-decoded it using the little-endian TimeDateStamp bytes 80 85 EC 65. Removing its ordinal prefix yielded the first fragment.

  3. 03

    I parsed record 111 (Confidential_Q3) and decoded NTFS non-resident run lengths as ASCII, recovering the second fragment.

  4. 04

    I decoded 34 records from record 181 (tx_journal.log), converting differences of adjacent FILETIME fields minus 9984 to characters for the third fragment.

  5. 05

    I parsed EVTX binary data in record 193 (Security_Audit.evtx) and decoded 33 little-endian uint32 values into the fourth fragment.

  6. 06

    I inspected orphaned set-bit positions in $Bitmap (MFT record 6), converted gaps between adjacent positions to characters for the fifth fragment, removed ordinal tags ending with --, and joined all five in order.

  7. 07

    I reproduced the five-segment extraction against resurrection.raw with solve_resurrection.py and checked the ZIP SHA-256, without claiming a separate platform-acceptance receipt.

03Code evidence

Reproduction

Solver / Reproduction
unzip resurrection.zippython3 solve_resurrection.py resurrection.raw

04Code evidence

Reproduction

Solver / Reproduction
absolute_offset = (32768 * 512) + (85845 * 4096)# MFT begins at 0x15F55000# Part 1: overlay XOR PE TimeDateStamp bytes 80 85 ec 65# Part 2: ASCII from NTFS run lengths# Part 3: FILETIME differences minus 9984# Part 4: EVTX uint32 LE values# Part 5: gaps between bitmap set-bit positions

Result

RECOVERED FLAG

hiCTF{p3_0v3rl4y_71m3d473574mp_k3y_n7f5_runl157_cl5_g30m37ry_7r4ns4c710n_n4n0_f1l371m3_3v7x_b1n4ry_xml_70k3n5_b17m4p_orph4n_v01d_r35urr3c710n}

Extracted and reproduced locally

Local Verification
The earlier RESURRECTION_Writeup.md documents exact recovered fragments and local reproduction with solve_resurrection.py.
Evidence Limitation
The flag was recovered locally; the archived record has no independent platform-submission receipt.

Original document

Original PDF

The writeup as I first documented it.