2026-10-03

Day 3: Table Manners

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. Started the attempt (bdf56aea-7f01-4d7c-b02e-7ff3b9e5236c) and downloaded the zip.
  2. Extracted it with 7z and hashed each member over its exact bytes.
  3. d01: read the ELF header and tables straight from the bytes:
  1. d02: the .hcfg section holds the only CRC32-valid HCFG record (the Day 2 layout: magic, version, XOR key, payload length, CRC32, payload). XOR key 0x31, CRC32 0x6149aa00, campaign BR02-000.
  2. d03 (new): the .NET DLL also hides an HCFG record, as plain bytes in the file. The same decode works. hcfg.py also reads the CLR version (at BSJB + 16) and the PE Machine field:
=== HCFG valid records in d03--variant-000.dll ===
offset=0x1898 version=1 xor_key=0x41 plen=367 crc32=0xcb6cf23f
  JSON: {"campaign":"BR03-000","domain":"node-000.day03.example.invalid","ipv4":"198.51.100.60","url":"https://node-000.day03.example.invalid/api/BR03-000","mutex":"Global\\HuntressBR03_000", ...}
=== CLR metadata version (BSJB+16, len=12) ===
  version: 'v4.0.30319'
=== PE/COFF Machine ===
  machine: 0x014c (332)

So d03 is PE32/.NET, machine i386, metadata version v4.0.30319.

  1. Submitted all 24 answers (answers.json). Result: CORRECT.
  2. Time Trial: a fresh variant (zip SHA-256 62c2a27adbc9e69cc3fba445ac2eac8558e2e7eb068a23b61f1c6993924301ca). Here d03 was variant-001: XOR key 0x42, CRC32 0x55fbb381, campaign BR03-001. Same steps. Result: CORRECT.
  3. Mastery: two deliveries, 48 answers (set1.*, set2.*).

Tools from this day, in ~/.config/huntress/solvers/:

Results

ModeResultFlag
Single SolveCORRECT6cc99f5d631b392122f08923c47db36d
Time TrialCORRECT3719598ae32e2983bd5ece6364e63c41
MasteryCORRECT (practice)d26a68dfa228dff3300a99d24bc3b537

Each mode folder has the zip, the extracted members, the answers, commands-output.md, and the raw Game Master responses. No screenshots were taken.

Reproduce

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

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

Checked on 2026-11-01: this gives the same 24 answers as answers.json. It only parses the files (7z, Python, objdump) and never runs them.

Live driver (start → download → solve → submit):

python3 -I ~/.config/huntress/solvers/run_tm.py binary-reverse-engineering-day-03-managed-configuration single_solve /tmp/d03

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

Day 3: BOM Voyage

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 UTF-8 BOM is the three bytes EF BB BF at the very start of the file. Look at the first bytes, nothing else.

  1. Started the attempt.
  1. Downloaded the zip for the mode.
  2. Dumped the first line of hex of each assigned file:
unzip -p metadata-day-03-evidence.zip evidence-note.txt | xxd -g 1 | head -n 1
  1. Read the result:
FileFirst bytesBOM?
evidence-note.txt43 61 73 (Cas)false
roster.csv68 6f 73 (hos)false
evidence-note-copy.txt43 61 73 (Cas)false
export-001-with-bom.txtef bb bftrue

Mastery output from commands-output.md:

00000000: 43 61 73 65 20 45 31 38 39 43 46 30 34 46 41 34  Case E189CF04FA4
00000000: ef bb bf 45 78 70 6f 72 74 20 31 0d 0a 43 61 73  ...Export 1..Cas
  1. Submitted the answers. Mastery sent false for set 1 and true for set 2 (see answers.json).
  2. The Game Master replied CORRECT and returned the flag.

Results

ModeResultFlag
Single SolveCORRECT696cb5b99ae3d0f7d682bfd2faf6fe9a
Time TrialCORRECT35a871fa3af9775bc418dd77d1963e7e
MasteryCORRECT9aad61f691e39c200044abf96246fc45

Each mode folder has start-response.json, answers.json, submit-response.json, final-status-response.json, commands-output.md and the evidence files. No screenshots were captured.

Reproduce

python3 -c 'import sys; print(open(sys.argv[1],"rb").read(3) == b"\xef\xbb\xbf")' mastery/export-001-with-bom.txt

run_meta.py later uses the same rule: -utf8-bom-present returns 'true' if fb[:3]==b'\xef\xbb\xbf' else 'false'.

Day 3: Intent Injection

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 attempt (Single Solve attempt 8f06326b-c40e-406c-9154-df2592096e6a) and downloaded the APK.
  2. Read the DEX. ChallengeActivity / IntentInjection read the nested-Intent extras answer and case_id and relay them to a local evidence endpoint. The exact answer code for the case ships in the puzzle asset.
  3. Read the puzzle asset. New codec today: base64.
$ unzip -p intent_injection.apk assets/huntress_puzzle.json
{"schema":"huntress.mobile.puzzle.v1","day":3,"codec":"base64","data":"QU5TLUU0QzhFMzVBOEE5QjVENjc="}

$ python3 -c "import json,base64;print(base64.b64decode(json.load(open(\"huntress_puzzle.json\"))[\"data\"]).decode())"
ANS-E4C8E35A8A9B5D67
  1. Submitted ANS-E4C8E35A8A9B5D67 under answer. The Game Master replied CORRECT.
  2. Time Trial (attempt 49099f34-9d29-496e-9343-aa3c2472dd55): same steps. QU5TLTMxQjJEQUI4QTE3QTRENkY= → ANS-31B2DAB8A17A4D6F.
  3. Mastery: decoded each APK's asset, then sent all three in one submit:

Results

ModeResultFlag
Single SolveCORRECT28408637c686113abeb550f2f35b2e2b
Time TrialCORRECT9aee2378c9ea2f81087eaafbdbff31a9
MasteryCORRECT313d84460563cdb9d54ae5c5d5298c75

Each mode folder has the APK(s), the puzzle JSON, answers.json, start-response.json, submit-response.json, final-status-response.json and a commands-output.md. No screenshots were taken.

Reproduce

Offline, from the saved puzzle:

cd single-solve
python3 -I -c 'import json,base64;print(base64.b64decode(json.load(open("huntress_puzzle.json"))["data"]).decode())'

A fresh run with the later lane driver (it handles the base64 codec):

python3 -I ~/.config/huntress/solvers/run_mode.py mobile-android-day-03-intent-injection single_solve mobile_puzzle /tmp/d03

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 3: Expansion Pack

Lane: Script analysis. 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. Single Solve came first (attempt 09742ae4-ec42-45eb-abb9-be3726163501, solved 2026-10-20 14:11:52 UTC).
  1. PowerShell: same Base64 JSON decode as Day 1. Scenario and ATT&CK are fixed per file (T1496, T1555.003, T1486).
  2. JScript: each file hides its config with a different scheme (constant XOR, cumulative XOR, reverse then XOR, Base64 with key bytes, delimiter splits).
  1. Batch: the config sits in plain text in the INSPECT fragments. Real lines from memory-stage.bat:
:HUNTRESS_INSPECT
SeT "fragment0=v=1|steps=acquire_remote,dispatch_memory|adapter"
SeT "fragment1==certutil.exe|stage_count=1|graph=single|next_la"
SeT "fragment2=nguage=none|campaign_id=campaign-0054cccedb|url="
SeT "fragment3=https://0054cccedb.example.invalid/2c9a4553.dat"

batchdec.py joins fragment0..N in order, strips the ^ escape carets, and splits on | and =. Simplified:

frags = {int(n): v for n, v in re.findall(r'set\s+"fragment(\d+)=([^"]*)"', text, re.I)}
cfg = ''.join(frags[i] for i in range(len(frags))).replace('^', '')
fields = dict(p.split('=', 1) for p in cfg.split('|'))
  1. Source-style questions come from regexes on the file text, not from the config:
  1. Role and ATT&CK:
  1. Time Trial (50-second deadline), the hard part:
  2. The first try ran out of time, and one Batch file used a transform the decoder did not know (base64_literal|add_7). Fix: make the INSPECT fragments the main Batch source.
  3. The next full submit came back incorrect. Key finding: a partial submit is graded on its own. It returns accepted (plus a remaining count) only if every answer in it is right, and accepted answers stay on the attempt.
  4. diag_submit.py sent the answers grouped by language and field. Only three groups failed: batch:control, jscript:function-style and jscript:invocation-style.
  5. bf.py then tried each allowed value for those fields, one answer at a time, until each was accepted. That finished the attempt (CORRECT) and showed the right values.
  6. The learned values fixed the three detectors:
  1. A later fresh attempt (the one saved in time-trial/) was solved in one shot. See time-trial/commands-output.md.
  2. Mastery (80-second deadline): 318 questions in two sets. The download is a plain outer zip holding two AES zips, evidence-01.zip (set 1) and evidence-02.zip (set 2). solve_mastery.py extracts both, runs solve_expansion.py on each and adds the setN. prefix. All 318 answers were then sent in one submit (gm.sh submit). It was CORRECT on the first try. See mastery/commands-output.md.

Results

ModeResultFlag
Single SolveCORRECT901513368dd3bb9ec59f5b2ffe37e67b
Time TrialCORRECT3fb2c5c8b2b61427b1588c458a07cbd7
MasteryCORRECT0cc3ef5343f2c1d33bc3b45bcd60d4b8

Time Trial: attempt 4d3e8f10-39be-4369-bcca-478aab3c36c1, archive SHA-256 7d3e7825af480dccc34e6392f37304094cbb6c38cdc2df30e02c6af40002d063. Mastery: archive SHA-256 91e813196c048e46b017e8edde6bee0139c2450ad5ab2467c296fc74125e1829. Each mode folder keeps its archive, the extracted files and the Game Master JSON. No screenshots were taken.

Reproduce

Offline, from the repo root:

mkdir -p /tmp/d03/ex
7z x -pinfected -o/tmp/d03/ex repos/day-03-script-analysis-batch-expansion/single-solve/artifact.zip
python3 -I tools/solve_expansion.py /tmp/d03/ex \
  repos/day-03-script-analysis-batch-expansion/single-solve/start-response.json /tmp/d03/answers.json

This rebuilds all 159 saved answers (re-checked on 2026-11-01). The tools/ copy decodes JScript with jsdec_py_emu.py (pure Python) instead of the Node sandbox, so nothing from the samples runs. The scripts used on the day (solve_expansion.py, diag_submit.py, bf.py, solve_mastery.py) are in ~/.config/huntress/solvers/. The submit helpers need a Game Master token.

Day 3: Hex Appeal

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. Hex-decode the blob (pairs of hex chars to ASCII bytes).
  2. The decoded text contains a message ending in the answer slug.
  3. Submit the slug to the Game Master.

Results