2026-10-06

Day 6: Pool Party

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. Routine fields for d01–d05 were answered as before.
  3. d06 (the new part): the config is not stored as raw bytes. It is a Base64 string inside the class file's constant pool. The question spelled out the method:
  4. Open the JAR and the Main-Class class file.
  5. Walk the constant pool. Take each UTF-8 constant that is at least 80 Base64 characters long.
  6. Base64-decode it. Accept the first result that is a CRC32-valid HCFG record.
  7. Decode the record as before: XOR the payload with the key byte, check the CRC32, parse the JSON.

The solver opens each JAR member and tests every Base64 run of 40+ characters, which finds the same string. Re-checked on the saved sample:

[jar:Day06Variant000.class base64 run at file offset 160, run length 508]
HCFG version=1 xor_key=0x71 len=368 crc32=0x121bc931
JSON: {"campaign":"BR06-000","domain":"node-000.day06.example.invalid","ipv4":"198.51.100.120","url":"https://node-000.day06.example.invalid/api/BR06-000","mutex":"Global\\HuntressBR06_000", ...}

Answers: format Java archive, CRC32 0x121bc931, HCFG version 1, campaign BR06-000.

  1. Submitted all 48 answers (answers.json). Result: CORRECT.
  2. Time Trial: a fresh variant, same steps. Result: CORRECT.
  3. Mastery: two deliveries (96 answers), same steps. Result: CORRECT.

Results

ModeResultFlag
Single SolveCORRECTf7ab2726e3bc43378a8909c5f205a4aa
Time TrialCORRECTe9eaac6fdc6e734018c35bc3b9e4a420
MasteryCORRECT3430a0faa511c2482e0db977e3aab769

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

Notes on the saved files:

Reproduce

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

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

Checked on 2026-11-01: this gives the same 48 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-06-java-bytecode-loader single_solve /tmp/d06

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

Day 6: Portable Deception

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

The method: a PDF declares its version in its first bytes as %PDF-x.y. Read that, not the file name.

  1. Single Solve. Downloaded the zip, extracted document-001.pdf and looked at the first bytes:
%PDF-1.4

Submitted 1.4 as d06-pdf-001-pdf-header-version. CORRECT.

  1. Added a pdf_version solver to the run_mode.py driver:
def pdf_version(b):
    m = re.match(rb'%PDF-(\d+\.\d+)', b[:16])
    return m.group(1).decode() if m else None
  1. Time Trial. The driver answered document-002.pdf = 1.5. CORRECT.
  2. Mastery. The driver found each named PDF inside its inner zip. Answers: document-003.pdf = 1.6, document-004.pdf = 1.7. CORRECT.

Results

ModeResultFlag
Single SolveCORRECT426b37cd5a9256c51d79870949714013
Time TrialCORRECT9e82f182fc38871a49639f3b515c1e1b
MasteryCORRECTcc014843b1d13ceff35684478b1530b3

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 and the PDF; its saved submit says already_solved because it is a re-run, and the final status shows CORRECT. No screenshots were captured.

Reproduce

python3 -I ~/.config/huntress/solvers/run_mode.py metadata-forensics-day-06-portable-deception single_solve pdf_version /tmp/d06

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

Day 6: Provider Paths

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. New codec today: hex.
{"schema":"huntress.mobile.puzzle.v1","day":6,"codec":"hex","data":"414e532d34364132344243444145354336453142"}
  1. Decoded it. Each pair of hex digits is one ASCII character:
import json
p = json.load(open('single-solve/huntress_puzzle.json'))
print(bytes.fromhex(p['data']).decode())

Output: ANS-46A24BCDAE5C6E1B.

  1. Submitted it under answer. The Game Master replied CORRECT.
  2. Taught the driver. Added the hex codec to mobile_puzzle() in run_mode.py.
  3. Time Trial and Mastery: ran run_mode.py on both. Both came back CORRECT.

Results

ModeResultFlag
Single SolveCORRECTa7fa92197d6669d1175432fbbe6cf87f
Time TrialCORRECT064fb96bb819f5a6b6555a5f0349c276
MasteryCORRECTe76211b02a3b3b996bcdfed5b63b367f

Each mode folder has answers.json, start-response.json, submit-response.json and final-status-response.json. The Single Solve submit-response.json says already_solved because it is a resubmit. Its final-status-response.json holds the CORRECT result and flag. 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-06-provider-paths single_solve mobile_puzzle /tmp/d06

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 6: Shell We Begin

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

The challenge

What we were given

readonly Material_7dd3e2e1='72 29 78 74 78 67 76 26 26 30 86 30 28 26 15 8 ...'
readonly Codec_7dd3e2e1='decimal_space|reverse_then_xor|7b'

What was asked

How it was solved, start to finish

  1. Started the untimed Single Solve and downloaded the archive.
  2. Reused solve_expansion.py for the 357 older questions.
  3. Wrote a Bash decoder (bashdec.py):

Example: embedded-write.sh decodes to:

v=1|steps=decode_embedded,write_file|adapter=printf_decode_redirect|stage_count=1|campaign_id=campaign-eaa78515f3|file_path=/tmp/huntress-cache/.stage-eaa78515f3
  1. Mapped answers. Role comes from the steps, as on Days 3–5. Bash's Command and Scripting Interpreter ID is T1059.004. The questions map to files through their artifact field.
  2. Checked with the partial-submit oracle (see Day 3). Only bash:steps (6 answers) was rejected. The value format was wrong: the question wants the steps joined with > and no spaces. After joining them with >, the Single Solve was CORRECT.
FileSteps (as submitted)RoleATT&CK
host-context.shdecode_configuration>return_configurationbenign_utilitynone
memory-stage.shacquire_remote>dispatch_pipestagerT1105
embedded-write.shdecode_embedded>write_filedropperT1140
remote-write.shacquire_remote>write_filedownloaderT1105
local-dispatch.shlocate_local>dispatch_processlauncherT1059.004
staged-chain.shprofile_host>acquire_remote>write_file>change_mode>dispatch_processstaged_chainT1059.004

A few more saved answers:

{"bash-dropper-adapter": "printf_decode_redirect", "bash-dropper-stage-count": "1",
 "bash-dropper-file-path": "/tmp/huntress-cache/.stage-eaa78515f3",
 "bash-chain-cron-path": "/etc/cron.d/update-9ea2805736"}
  1. Time Trial (50-second deadline) and Mastery (798 questions in two sets, 80-second deadline) were run with run_expansion.py. Both were CORRECT on the first run.

Results

ModeResultFlag
Single SolveCORRECTeee6b42c0ebd4c66594522fcc5470d15
Time TrialCORRECTcd4144095535d690b2eb378ecdfa1bcb
MasteryCORRECT6f58d5d6e5b0632917a6ee5ae0d571ff

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/d06/ex
7z x -pinfected -o/tmp/d06/ex repos/day-06-script-analysis-shell-we-begin/single-solve/evidence.zip
python3 -I tools/solve_expansion.py /tmp/d06/ex \
  repos/day-06-script-analysis-shell-we-begin/single-solve/start-response.json /tmp/d06/answers.json

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

Live: python3 -I ~/.config/huntress/solvers/run_expansion.py script-analysis-day-06-bash-behavior-graphs <mode> <workdir>. This needs a Game Master token. The solvers/ copy runs JScript fixtures in a Node vm sandbox; the tools/ copy does not.

Day 6: Eight Is Enough

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. Space-separated octal numbers. Each is an ASCII code; convert from base 8.
  2. Mastery blobs use multiple encodings from Days 1-6. 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