Shades of Truth low-bit fold, Caesar text

forensics
flag d4rk{asc11_l0v3}

d4rk{asc11_l0v3}

chall.png: the brightness-ramp image hiding the text

Summary

chall.png (900x250 RGB) hides its payload in the low 2 bits of the R and G channels, folded together into a 16-level image M = (G % 4) * 4 + (R % 4). The payload band is an exact 5x NEAREST upscale of a 13x144 bitmap that renders ASCII-art text — matching the hint "read between the lines" and the PNG's tEXt chunk Charset = " .:-=+*#%@". The rendered text is the flag enciphered with a Caesar +3 (letters only). Reading the 17 glyphs gives the rendered string g4un{dvf1l_o0y3}, which shifted back by 3 is d4rk{asc11_l0v3}.

Solution / Exploit

1. Find the folded payload channel

The hidden payload is the low 2 bits of R and G, folded:

output
M = (G % 4) * 4 + (R % 4)          -> 16-level image
  • The B channel's low bits are pure noise (uniform).
  • R % 4 is in {0,1,2} and never 3.
  • M is 0 everywhere except the payload band.

2. The payload band is a 5x upscale of a 13x144 bitmap

The payload band (native coords) is rows 90..154, cols 10..729 -> a 65x720 crop. This crop is an exact 5x NEAREST upscale:

  • every 5 columns identical, every 5 rows identical (verified periodicity True)
  • the true hidden bitmap is 13x144 (M[::5, ::5])

So the payload is a 144x13 bitmap picture of text (an "ASCII-art" style render), matching the hint "read between the lines" and the Charset ramp.

3. The text is a Caesar +3

The rendered text is the flag enciphered with Caesar +3 (letters only; digits, _, {, } unchanged). Decode = shift letters by -3. Anchors:

output
rendered  g4un{  ->  d4rk{      (g->d, u->r, n->k, 4/{} unchanged)
rendered  d v f  ->  a s c

4. Read the glyphs

Connected-component segmentation of the 13x144 bitmap gives 17 components:

output
g 4 u n { d v f 1 l _ o 0 y 3 }

so the rendered string is g4un{dvf1l_o0y3}. Shift -3 -> d4rk{asc11_l0v3}.

Per-glyph verification highlights (from shadesX_pg3.py):

  • g, 4, u, n, {, d, v, f, _, } read unambiguously.
  • glyph at cols 70-75 has a left flag + stem + base serif -> 1 (digit).
  • glyph at cols 81-86 is the matching tall thin letter -> l (shape-match: 1 score 0.497 vs l 0.398 for cols 70-75; cols 81-86 1 .426 / l .415).
  • glyph A (cols 101-109) x-height, closed -> o (o 0.627 best, vs u 0.517).
  • glyph B (cols 110-119) cap-height closed oval -> 0 (digit, taller than A).
  • glyph C (cols 122-129) x-height top + 3-row descender (rows 5..12, baseline ~r10) -> a descender letter with converging diagonals -> y (NOT x: x never descends).
  • glyph D (cols 129-136) top bar + right side + bottom bar -> 3.

5. Word check

The rendered tail o 0 y 3 shifts -3 to l 0 v 3 = leet "love". This is the unique vowel/consonant-consistent reading (o->l, 0->0, y->v, 3->3). Rendered oOx3 (a raw visual read) would decode to nonsense lLu3; the second tail glyph is a digit-height 0 and the third has a descender, so 0/y is correct.

Flag(s)

output
d4rk{asc11_l0v3}

Alternates. The only genuinely uncertain sub-decisions are (a) l vs i at rendered cols 81-86 (letter l 0.415 vs digit 1 0.426 — near tie), and (b) y vs x for glyph C (shape-only match favours x 0.508; the vertical 3-row descender favours y). Both alternatives give valid-looking flags:

output
2nd:  d4rk{ascii_l0v3}    (if cols 70-75 is 'l' not '1')
3rd:  d4rk{asc1i_l0s3}    (if glyph C is 'v' not 'y' -> 'l0s3' = "lose")

All three share the proven d4rk{..._l0?3} skeleton produced by the +3 Caesar. The blocks in (a)/(b) are only 1-2 pixels tall at native resolution, which is the resolution floor of this stego; the mechanism itself is exact and reproducible.

Notes / Pitfalls

  • M folds R and G, not a single channel. The low bits of B are uniform noise and R alone never reaches 3 — the 16-level fold (G%4)*4 + (R%4) is what isolates the payload.
  • The payload is a 5x upscale. Reading it at native scale shows 5px-wide blocks; the real bitmap is M[::5, ::5] (13x144).
  • Caesar +3, letters only. Digits, _, {, } are unchanged, which is why g4un{ -> d4rk{ while 4 and { survive.
  • Two near-tie glyphs. l/i and y/x are at the resolution floor; the chosen reading (asc11_l0v3) is the one that forms coherent leet words.