2026-10-08

Day 8: Swift Justice

Lane: Binary reverse engineering. Modes: Single Solve, Time Trial, Mastery. Result: all CORRECT.

The challenge

What we were given

What was asked

How it was solved, start to finish

  1. Ran the driver run_tm.py: start the attempt, download the zip, run solve_tm.py, submit.
  2. New fields on old specimens were added to solve_tm.py, each read straight from the bytes:
  1. d08 class: the question asked for the bit width, so the solver reads the question text. If it says "bit width", it answers 64 instead of ELF64.
  2. d08 config (the new part): the question gave a fixed order:
  3. First test each literal HCFG in the file.
  4. Then Base64-decode every run of 100+ Base64 characters.
  5. Accept the first CRC32-valid HCFG record.

The saved Swift sample has the text HCFG once, but it is not a valid record. The real one is a Base64 string. Re-checked:

[base64 run at file offset 18366768, run length 508]
HCFG version=1 xor_key=0x41 len=368 crc32=0x6a033bfd
section of match: .rodata
JSON: {"campaign":"BR08-000","domain":"node-000.day08.example.invalid","ipv4":"198.51.100.160","url":"https://node-000.day08.example.invalid/api/BR08-000","mutex":"Global\\HuntressBR08_000", ...}

solve_tm.py already does literal first, then Base64 runs (its "step 3" for Swift and Nim), so it found this record.

  1. Submitted all 80 answers (answers.json). Result: CORRECT.
  2. Time Trial: a fresh variant, same steps. Result: CORRECT.
  3. Mastery: five deliveries (400 answers), same steps per delivery. Result: CORRECT.

Results

ModeResultFlag
Single SolveCORRECT2055206eaef175e31045e75a89bd1760
Time TrialCORRECT26ac8723e4fc810269ad4dbe744e2d44
MasteryCORRECTd279a05b1cf9ffcf61763b6803a823fa

Each mode folder has the raw start-response.json, answers.json, submit-response.json and final-status-response.json.

Reproduce

Offline, from this folder (no Game Master needed):

mkdir -p /tmp/d08/deliveries && cp single-solve/evidence.zip /tmp/d08/deliveries/delivery-1.zip
python3 -I ~/.config/huntress/solvers/solve_tm.py single-solve/start-response.json /tmp/d08/deliveries /tmp/d08/answers.json

Checked on 2026-11-01: this gives the same 80 answers as answers.json. It only parses the samples and never runs them.

Live driver:

python3 -I ~/.config/huntress/solvers/run_tm.py binary-reverse-engineering-day-08-swift-network-configuration single_solve /tmp/d08

This needs a Game Master token in ~/.config/huntress/gm-token.

Day 8: What's in the Box?

Lane: Metadata forensics. Modes: Single Solve, Time Trial, Mastery. Result: all CORRECT.

The challenge

What we were given

What was asked

How it was solved, start to finish

  1. Read the new question. It wants every stored path in the inner zip, with folder names kept.
  2. Added a handler to run_meta.py. It reads the names from the zip central directory with Python's zipfile. If that fails, it falls back to listing the files that 7z extracts.
if 'central-directory-member-names' in aid:
    try: names = zipfile.ZipFile(io.BytesIO(fb)).namelist()
    except Exception: names = list_names(fb)
    return json.dumps(names, separators=(',', ':'))

On Day 8 the names went out in central-directory order. On Day 23 the handler was changed to sort them (sorted(names)), after the grader showed it wants sorted lists.

  1. Ran run_meta.py for all three modes. A helper agent ran the driver while other lanes were solved in parallel. Every other field used the handlers from Day 7.
  2. Answers. In all three modes evidence-drop-001.zip held the same two paths:
["room-01/item-1.txt","room-02/item-1.txt"]

Other Single Solve answers, from answers.json: evidence-note-size-bytes = 33, d04-jpeg-001-jpeg-sof-dimensions-pixels = 257x146, d07-zip-001-zip-eocd-total-entries = 2.

  1. Submitted all answers in one JSON object per mode. The Game Master replied CORRECT and returned the flag.

Results

ModeResultFlag
Single SolveCORRECT6c24273bdc38292421cdc5ca8bf772ee
Time TrialCORRECTec09a287c8ed3875180aaf62e41a0bc1
MasteryCORRECTe8a42d101c07d1ed15b7f12a0c846828

Each mode folder has answers.json, start-response.json, submit-response.json and final-status-response.json. The Single Solve folder also has the zip. No screenshots were captured.

Reproduce

python3 -I ~/.config/huntress/solvers/run_meta.py metadata-forensics-day-08-whats-in-the-box single_solve /tmp/d08

This needs a Game Master token in ~/.config/huntress/gm-token. For time_trial and mastery it calls op=retry first, which spends one of the unique attempts. It only parses the files.

Day 8: Cleartext Session

Lane: Mobile (Android). Modes: Single Solve, Time Trial, Mastery. Result: all CORRECT.

The challenge

What we were given

What was asked

How it was solved, start to finish

The app was never installed or run.

  1. Started the Single Solve and downloaded the APK.
  2. Read the puzzle asset. The codec is reverse (also used on Day 2).
{"schema":"huntress.mobile.puzzle.v1","day":8,"codec":"reverse","data":"6667D24E8BC6DE39-SNA"}
  1. Decoded it. Reverse the string:
import json
p = json.load(open('single-solve/huntress_puzzle.json'))
print(p['data'][::-1])

Output: ANS-93ED6CB8E42D7666.

  1. Ran the lane driver for all three modes. A helper agent ran it once per mode:
python3 -I ~/.config/huntress/solvers/run_mode.py mobile-android-day-08-cleartext-session <mode> mobile_puzzle <workdir>

The driver downloads each APK, reads its puzzle, decodes it by its codec, and submits all answers at once.

  1. Results: Single Solve (ANS-93ED6CB8E42D7666), Time Trial (ANS-608057A4A2A9F3AD) and all five Mastery answers came back CORRECT.

Results

ModeResultFlag
Single SolveCORRECTd566a211d4967b562dca46cd0cde9a68
Time TrialCORRECT387c15276d932edefa63151cd25ac2a7
MasteryCORRECTcd31514b0bb0c09bfa2e3eb763cba6eb

Each mode folder has answers.json, start-response.json, submit-response.json and final-status-response.json. No screenshots were taken.

Reproduce

Offline: run the Python snippet above from this folder.

A fresh run with the driver:

python3 -I ~/.config/huntress/solvers/run_mode.py mobile-android-day-08-cleartext-session single_solve mobile_puzzle /tmp/d08

This needs a Game Master token in ~/.config/huntress/gm-token. It only unzips the APK and reads the asset. It never installs or runs the app.

Day 8: Lost in Translation

Lane: Script analysis. Modes: Single Solve, Time Trial, Mastery. Result: all CORRECT.

The challenge

What we were given

HUNTRESS_ANALYSIS_V1:B64-dj0zfGxhbmd1YWdlPWpzY3JpcHR8cm9sZT1zdGFn...
HUNTRESS_ANALYSIS_V1:HEX-763d337c6c616e67756167653d7068707c726f6c...
HUNTRESS_ANALYSIS_V1:HB64-646a307a66477868626d64315957646c50585a69...
HUNTRESS_ANALYSIS_V1:FRAG-763d337c6c616e6775616765.3d6a61766173637...

What was asked

How it was solved, start to finish

  1. Started the untimed Single Solve and downloaded the archive.
  2. Looked at the new files. The marker comes in four encodings:
  1. Wrote hostpgdec.py. It finds the marker with a regex, decodes it by its tag, and splits the result on | and =:
m = re.search(r'HUNTRESS_ANALYSIS_V1:([A-Z0-9]+)-([^\s"\'<]+)', text)
enc, data = m.groups()
raw = {'B64': b64, 'HEX': unhex, 'FRAG': unhex,          # unhex() drops the dots
       'HB64': lambda d: b64(unhex(d).decode())}[enc](data)
cfg = dict(p.split('=', 1) for p in raw.decode().split('|'))
  1. No guessing is needed for these families. The decoded config already holds the role, ATT&CK ID and every profile. Example, host-wsf-jscript-jscript.js:
v=3|language=jscript|role=staged_chain|verdict=suspicious|attack=T1059|adapter=operation_graph|host_profile=wsf_jscript|obfuscation_profile=base64|stage_profile=two_stage_download_execute|next_language=jscript|stage_count=2|steps=acquire_remote,dispatch_process|campaign_id=JSCRIPT-164f9679|url=https://jscript-164f967902.example.invalid/stage|file_path=/tmp/huntress-jscript/.164f967902e48f53.stage

The only change is steps: the commas become >.

  1. Added host and polyglot to solve_expansion.py. The question's artifact field gives the file. The answer suffix (-role, -host-profile, -next-language, ...) gives the config key.
  2. Submitted. All 615 answers were accepted, and the Single Solve was CORRECT. Real answers for one polyglot file:
{"polyglot-php-downloader-role": "downloader", "polyglot-php-downloader-attack": "T1105",
 "polyglot-php-downloader-adapter": "http_client", "polyglot-php-downloader-campaign": "PHP-e379b654",
 "polyglot-php-downloader-steps": "profile_host>decode_configuration>dispatch_language",
 "polyglot-php-downloader-obfuscation": "fragmented_hex",
 "polyglot-php-downloader-stage-profile": "cross_language_handoff",
 "polyglot-php-downloader-next-language": "vbscript"}
  1. Time Trial and Mastery ran with run_expansion.py. Both had no deadline (run_for_time: false). Mastery had 3,075 questions in five sets, from one bundle with an inner zip per set. Both were CORRECT.
  2. While the script module was being written, the other four lanes of the day were solved in parallel by sub-agents.

Results

ModeResultFlag
Single SolveCORRECTeadddef10b2f618ecfcb050ced73d3bf
Time TrialCORRECTd5ae3da071aedc6ccf6439812d284b99
MasteryCORRECTe32767c534426c6bd7912b4602b5d7db

Each mode folder has answers.json and the Game Master JSON. The Single Solve folder also keeps evidence.zip. No screenshots were taken.

Reproduce

Offline, from the repo root:

mkdir -p /tmp/d08/ex
7z x -pinfected -o/tmp/d08/ex repos/day-08-script-analysis-lost-in-translation/single-solve/evidence.zip
python3 -I tools/solve_expansion.py /tmp/d08/ex \
  repos/day-08-script-analysis-lost-in-translation/single-solve/start-response.json /tmp/d08/answers.json

This rebuilds all 615 saved answers (re-checked on 2026-11-01). It only parses the files.

On the day, run_expansion.py drove the live modes (it needs a Game Master token). Since Day 23 that driver sends any question set with polyglot- IDs to solve_day23.py, which does not handle this day's host- and resource- IDs. For a fresh attempt of this format, extract its archive and run tools/solve_expansion.py on it as shown above.

Day 8: Entity Relations

Lane: Warmups. Modes: Single Solve, Time Trial, Mastery. Result: all CORRECT.

The challenge

What we were given

How it was solved

  1. Decode the blob. HTML character references (&#NNN; or &#xHH;). Unescape to get plaintext.
  2. Mastery blobs use multiple encodings from Days 1-8. The solver (warmup_decode.py) tries every known decoder on each line and picks the one producing printable text.
  3. Concatenate all decoded lines. The text contains a message ending in the answer slug.
  4. Submit the slug to the Game Master.

Results