Chasing Shadows Mastodon to a deleted GitHub

osint
flag d4rk{2_3_8_7_11_16_17_23_19_13}

d4rk{2_3_8_7_11_16_17_23_19_13}

The commit order that fixes the digit-pair sequence

Summary

A pure OSINT chain ("The Mirror Investigation", author Tarun / tarunyadav_999, 200 pts) whose entry point is a previously solved challenge: the flag of Hidden In Plain Sight is d4rk{fediverse}, and Chasing Shadows' description asks "Might the message hidden in hidden is plain sight lead us to ECHO?". The author confirmed on the official h4ckc0de Discord that "the flag of hidden in plain sight is the hint for chasing shadows" — so the platform is the Mastodon fediverse.

From there: a public tag timeline leaks the first account (@amehraCC704, "Arjun Mehra", "NOVAVAULT - EMPLOYEE"); the Wayback Machine CDX index exposes an eighth, deleted status that points at github.com/ECHO-704; and ECHO's single repo encodes the answer in its commit history — each commit rewrites a tiny "NOVA VAULT" verifier whose recovered data is one pair of digits, with the commit messages supplying the ordering. The recovered pairs, in the order the commit messages dictate, give the flag. The result was verified live against the next challenge, "Behind The Login" (ECHO — Private Network), whose /api/auth/pattern endpoint accepted the sequence.

Solution / Exploit

1. Entry point — the HIPS flag is the hint

Hidden In Plain Sight (solved previously) has flag d4rk{fediverse}. The challenge description says:

Might the message hidden in hidden is plain sight lead us to ECHO?

and the author (tarunyadav_999) confirmed on the official h4ckc0de Discord: "the flag of hidden in plain sight is the hint for chasing shadows". The platform is the Mastodon fediverse.

2. The public tag timeline (#novavault)

Mastodon's search API needs auth, but tag timelines are public. Querying the novavault tag on mastodon.social returns exactly one post:

bash
1curl -s "https://mastodon.social/api/v1/timelines/tag/novavault?limit=10"
output
2026-10-25T08:46:05  amehraCC704
"<p>Excited to share that I've officially joined NovaVault as a Security Engineer! 🚀 ..."
#NewBeginnings #NovaVault

The sweep that found it (cs_fedi_probe.py, cs_fedi_tags.py, cs_search_probe.py, cs_other_fedi.py) probed tag timelines across nine instances for the terms h4ckc0n, d4rkc0de, NovaVault, chasing shadows, ECHO — the #novavault hit is the only one that matters.

3. Account lookup — @amehraCC704

bash
1curl -s "https://mastodon.social/api/v1/accounts/lookup?acct=amehraCC704"
output
display_name : "Arjun Mehra"
note         : "NOVAVAULT - EMPLOYEE"
id           : 117500643961282073
created_at   : 2026-10-25
statuses     : 7
followers/following : 0 / 0

The account's images (cs_post_desk.png, cs_post_debug.png, cropped by cs_crop.py into cs_crops/) are a NovaVault desk and a badge reading "Arjun Mehra / Security Engineer". There are no numbers, no links, and no EXIF/stego payload — a chunk scan shows only IHDR/pHYs/eXIf/IDAT and zero trailing bytes (cs_acct.py, cs_acct_raw.py, cs_acct_ctx.py, cs_fedi_dump.py, cs_fedi_profiles.py, cs_idscan.py).

4. The deleted post → ECHO's GitHub (Wayback Machine)

Arjun has only 7 live posts, but the Wayback CDX index shows a snapshot of an 8th status that is no longer on the account:

bash
1curl "https://web.archive.org/cdx/search/cdx?url=mastodon.social%2F%40amehraCC704*"
output
.../117501111466134851  20261025103937  text/html 200

117501111466134851 is not among the 7 live statuses — it was deleted. The raw snapshot (web/20261025103937id_/.../117501111466134851, gzip) contains:

output
og:description:  Arjun Mehra: "Kabir Sharma is such a fool person!! :) https://…"
embedded link:   https://github.com/ECHO-704

That is the whole point of the challenge description line "Nothing on the internet disappears as completely as people think it does."

5. ECHO's GitHub repo — the digit pairs live in the commit history

bash
1curl -s "https://api.github.com/users/ECHO-704"
output
name        : "ECHO"
created_at  : 2026-10-25T08:49:57Z
public_repos: 1   (repo named "-", description "HAHAHAHAHAHA!!!…")
files       : one file, ":).py"  (248 B)

The repo history encodes the answer. Each commit rewrites :).py into a tiny "NOVA VAULT" verifier whose recovered data is one pair of numbers, and the commit messages give the ordering. The commit dump (cs_echo_repo.py → cs_echo_commits.json) is:

commit time message recovered data
12683e7 11:32:53 Create :).py (intro only, no digits)
aba4b01 11:34:07 "the first pair of numbers" XOR(27,118,26,k=41) = 2_3
63645f8 11:36:11 "the next pair of digit" b64("OF83") = 8_7
11c42ce / 4f45f4e 11:44/11:45 "this should come before the previous commit" recover("22_27") = 11_16
8bfef51 11:37:46 "committing to fastly" printed = 17_23
4b48bda 11:48:14 "This is the last pair of digits" hex("31395F3133") = 19_13
e0debcb 11:49:20 "The order of numbers matter!!!!" flag format only

The actual verifier bodies (:).py revisions) that produce those pairs, straight from cs_echo_commits.json:

python
1# aba4b01 — "the first pair of numbers"
2_payload = bytes([27, 118, 26])
3_key = 41
4def _recover():
5    raw = bytes(b ^ _key for b in _payload)   # -> "2_3"
6    return raw.decode()
python
1# 63645f8 — "the next pair of digit"
2if answer == "8":
3    fragment = base64.b64decode("OF83").decode()   # -> "8_7"
4    print("Recovered data:", fragment)
python
1# 11c42ce / 4f45f4e — "this should come before the previous commit"
2def recover():
3    encoded = "22_27"
4    return "".join(chr(ord(c) - 1) if c.isdigit() else c for c in encoded)   # -> "11_16"
python
1# 8bfef51 — "committing to fastly"
2def decode():
3    data = [ord(c) ^ 19 for c in "26L20"]
4    return "".join(chr(n) for n in data)
5# answer == "17" -> prints '17_23'
python
1# 4b48bda — "This is the last pair of digits"
2def recover():
3    encoded = "31395F3133"
4    return bytes.fromhex(encoded).decode()   # -> "19_13"

6. Ordering the pairs (the correction is the challenge)

The two 11:44 / 11:45 commits carry identical content and the message "this should come before the previous commit" — and "the previous commit" is 8bfef51 (11:37). So the correct order is:

output
2_3,  8_7,  11_16,  17_23,  19_13   ->   2,3,8,7,11,16,17,23,19,13

Sanity check that the correction is real, not cosmetic: read as a 5x5 pattern-lock, every consecutive move is Chebyshev-distance 1 (adjacent or diagonal). Without the correction the 8_7 -> 17_23 step jumps over node 12 (illegal). The corrected sequence draws a clean path on the grid:

output
2(r1c2)-3-8-7(r2c2)-11(r3c1)-16-17(r4c2)-23-19(r4c4)-13

7. Proof against the live target

The next challenge, Behind The Login (http://<target>/), is titled "ECHO — Private Network" and its JS posts the entered numbers to /api/auth/pattern as the key sequence (5x5 grid, nodes 1..25). Submitting the recovered sequence:

bash
1curl -X POST http://<target>/api/auth/pattern \
2    -H 'Content-Type: application/json' -H 'Origin: http://<target>' \
3    -d '{"pattern":[2,3,8,7,11,16,17,23,19,13]}'
output
HTTP/1.1 200 OK
set-cookie: echo_access=1795351160.…; Path=/; HttpOnly
{"ok":true}

{"ok":true} plus an echo_access cookie means the pattern was accepted. Re-fetching / with that cookie shows the unlocked private network ("Everything is where I left it. 0 of 3 systems connected.").

How to reproduce

bash
1python3 cs_echo_repo.py                     # prints every :).py revision + recovered pairs
2curl "https://web.archive.org/cdx/search/cdx?url=mastodon.social%2F%40amehraCC704*"
3curl -s "https://mastodon.social/api/v1/timelines/tag/novavault?limit=10"
4curl -sX POST http://<target>/api/auth/pattern \
5     -H 'Content-Type: application/json' -H 'Origin: http://<target>' \
6     -d '{"pattern":[2,3,8,7,11,16,17,23,19,13]}'   # -> {"ok":true}

Flag(s)

output
d4rk{2_3_8_7_11_16_17_23_19_13}

Notes / Pitfalls

  • The Origin header is required. Without an Origin/Referer header the pattern endpoint returns 403 {"ok":false,"error":"forbidden"} — the header is not optional.
  • The search API is the wrong door. Mastodon's /api/v2/search needs auth; the public tag timeline endpoint (/api/v1/timelines/tag/<tag>) does not, and that is what leaks the first account. The brute-force handle sweep (cs_fedi_lookup.py) and cross-instance search (cs_fedi_probe.py) produced nothing — the tag timeline did.
  • The profile images are a dead end. cs_post_desk.png / cs_post_debug.png (and the cs_crops/ upscales) carry no numbers, no links, no EXIF/stego payload.
  • The commit ordering is the trap. The obvious chronological order is wrong; the author deliberately inserted a commit late with "this should come before the previous commit". The flag-format line d4rk{number_number_...} and the final message "The order of numbers matter!!!!" both warn about exactly this.
  • Organiser context. cs_solveorder.png is the organiser's own "Mirror Investigation" solve-order diagram; the whole category is designed as a chain, so a flag from one challenge (here fediverse) is the seed for the next.
  • Searches for a public writeup of this challenge returned nothing (cs_websearch.py, cs_search2.py, cs_ddg.py), and the live CTFd/terminal probes (cs_chall_hints.py, cs_nc_login.py) added no hints — the chain above is the solve.