d4rk{m3rma1ds_ar3_r3al}

Summary
The handout is a YouTube Short (https://youtube.com/shorts/iflMxWLp7HY): two mirrored
hands with their thumbs always touching, holding a sequence of about 65 poses at roughly
2 s each. The audio is a decoy — "heed not their song". The poses themselves are the
cipher: it is octal ASCII, three poses per character, where each pose is one octal
digit (3 bits). The giveaway is the rhythm — the same pose (inner fingers bent into a "V",
rest spread) leads almost every group of three, which is the leading 1 of lowercase
letters (141–172); groups led by the fully open pose are digits (06x). Decoding gives
the accepted flag d4rk{m3rma1ds_ar3_r3al}.
Solution / Exploit
1. What the video is
Two mirrored hands with thumbs always touching hold a sequence of about 65 poses, roughly 2 s each. The audio is a decoy ("heed not their song").
2. Encoding
Octal ASCII, three poses per character. Each pose is one octal digit (3 bits). The
giveaway is the rhythm: the same pose (inner fingers bent into a "V", rest spread) leads
almost every group of three, which is the leading 1 of lowercase letters (141-172).
Groups led by the fully open pose are digits (06x).
Pose to digit, as read from the video:
| digit | pose |
|---|---|
| 0 | hands open, only thumbs touching |
| 1 | inner "V" only, other fingers spread |
| 2 | (only inferred, appears in r = 162) |
| 3 | V plus one more pair at the tip, big single gap |
| 4 | fingertips closed, one gap, no V |
| 5 | V plus closed tip (two gaps) |
| 6 | two straight chevrons, hands wide |
| 7 | single straight chevron, three fingers free |
Anchors that fixed the mapping: V ? 3 three times then { (173), _ (137) twice,
} (175) at the end, and 06x digit groups.
3. Frame extraction and pose segmentation
The Short was pulled down and the hand region segmented frame-by-frame so the pose boundaries could be read off. The tooling in the source folder does HSV hand-masking, frame alignment and direction estimation:
webbed_dirs2.py — hand mask (skin hue band) plus shoulder/wrist detection and the two
mirrored hand directions:
1def handmask(im):
2 hsv = cv2.cvtColor(im, cv2.COLOR_BGR2HSV)
3 h, s, v = cv2.split(hsv)
4 m = np.logical_and(np.logical_or(h < 28, h > 160), np.logical_and(s > 35, v > 55))
5 m = m.astype(np.uint8) * 255
6 m = cv2.morphologyEx(m, cv2.MORPH_OPEN, np.ones((3, 3), np.uint8))
7 return m
webbed_iou.py — consecutive-frame alignment via cv2.phaseCorrelate, giving an
IoU/shift curve that marks where a pose holds steady versus where it changes:
1(dx, dy), r = cv2.phaseCorrelate(prev_g, g)
2M = np.float32([[1, 0, -dx * 2], [0, 1, -dy * 2]])
3ms = cv2.warpAffine(prev_m, M, (m.shape[1], m.shape[0]))
4inter = np.logical_and(ms > 0, m > 0).sum()
5union = np.logical_or(ms > 0, m > 0).sum()
6iou = inter / max(union, 1)
webbed_desc.py — per-frame shape descriptor (area, centroid, principal axis angle,
elongation) used to bucket frames into stable poses. Outputs (webbed_dirs2.txt,
webbed_iou.txt, webbed_desc.txt) show the first ~1.4 s with no hands detected, then
the pose sequence starting around frame 42. webbed_angles.pkl holds the extracted angle
data; webbed_align.py / webbed_aligned*.npy hold the aligned frame stack.
4. Decode
144 064 162 153 173 d4rk{
155 063 162 155 141 061 144 163 m3rma1ds
137 _
141 162 063 ar3
137 _
162 063 141 154 r3al
175 }
5. Confidence / the corrected prefix
My first read of the prefix was h4ck{, which was rejected. The body was right; the
prefix is d4rk{ (144 064 162 153 173). The two misreads were the first character (a
long-held pose I took as 5 0 is 4 4, with the open hand being the leading 0 of
064) and the third (162 r, not 143 c). The decode table above shows the corrected
prefix.
Read by eye from 360p frames (higher resolutions returned 403). The 5 vs 6 and 2 vs
3 poses are hard to tell apart, so r, s and l were settled by the word fitting
("mermaids are real" matches the siren/webbed-hands hint) rather than by the pose alone.
Flag(s)
d4rk{m3rma1ds_ar3_r3al}
Notes / Pitfalls
- The audio is a decoy. "Where sailors gesture, heed not their song" is explicit: the song is not the message; the hand poses are.
- Don't assume the prefix from the CTF name. The single biggest mistake was assuming
h4ck{because it is an h4ckc0n challenge. That prefix was rejected; the poses actually readd4rk{(144 064 162 153 173). Read the prefix strictly from the poses. - The
5/6and2/3poses are visually close at the resolution available (360p; higher resolutions returned 403). Those characters (r,s,l) were disambiguated by the word fitting ("mermaids are real", matching the siren hint) rather than by the pose alone — so the body was right even while the prefix was wrong. 2was only inferred. The pose for2never appears in isolation; it is deduced fromr=162.- Anchors pin the mapping. The three
V ? 3groups followed by{(173), the two_(137) separators, the trailing}(175), and the06xdigit groups are what lock the pose→digit table down.