hiCTF 2026Forensics
Forgotten Secrets
Binary search / magic markers / XOR
- Competition
hiCTF 2026
- Category
- ForensicsEasy · estimated
- Analysis status
- Flag found in dump
- Document
- Original PDF
01Challenge analysis
The problem
The supplied forgotten_secrets.bin contained repeated hidden data next to distinctive binary markers.
02Exploit or recovery path
How I solved it
- 01
I scanned the binary dump for the marker values DEADBEEF and CAFEBABE and examined adjacent byte regions.
- 02
I recognized the relevant stored bytes as XOR-obfuscated and applied the constant key 0x42.
- 03
I searched the decoded output for flag-like strings and found the same matching result 22 times.
- 04
The repetition provided a consistency check that the extraction was not a one-off decoding accident.
03Code evidence
Reproduction
from pathlib import Pathblob = Path('forgotten_secrets.bin').read_bytes()# Locate DEADBEEF / CAFEBABE neighborhoods in the original dump.# For each relevant encoded region:# decoded = bytes(byte ^ 0x42 for byte in region)# Search decoded text for b'hiCTF{'Result
RECOVERED FLAG
hiCTF{m3m0ry_dump_d1g_d33p}
Flag found in dump
- Local Verification
- Recovered 22 times by local file analysis. The challenge platform did not confirm acceptance.