Writeup · Cyberweek Africa 2026 - National CTF (Finals)

BLACKSTAR 1: The Downlink

stegeasysolvedFlag: FLAG{REDACTED}

Overview

A threat actor with the callsign NULL seized the Nairobi satellite ground station. A single downlink frame was intercepted just before the takeover. The image looks unremarkable, but a 12-character relay token is hidden in the frame data and is needed to unlock the next stage. Flag format: FLAG{BS01_<12 hex>}.

The frame is a plain 720x540 RGB PNG with the token embedded in the least significant bits of the pixel data.

Recon

Start with the file’s metadata.

exiftool downlink_frame.png
File Type                       : PNG
Image Width                     : 720
Image Height                    : 540
Bit Depth                       : 8
Color Type                      : RGB

Nothing useful in the metadata: no comments, no text chunks, no GPS data. The PNG is 812 kB for only 0.39 MP, which is a little heavy for a plain image.

JPEG-oriented tools fail immediately, as expected:

stegseek downlink_frame.png
steghide extract -sf downlink_frame.png
error: the file format of the file "downlink_frame.png" is not supported.

Exploitation

zsteg checks the common LSB configurations automatically.

zsteg downlink_frame.png
b1,rgb,lsb,xy       .. text: "BLACKSTAR//DOWNLINK//RELAY_TOKEN=REDACTED//KEEP THIS 12-CHAR TOKEN - THE UPLINK LAYER IS LOCKED WITH IT::END::"

The hit uses the configuration b1,rgb,lsb,xy:

Parameter Meaning
b1 1 bit per channel
rgb channels read in R, G, B order
lsb the least significant bit of each channel byte
xy pixels scanned row by row, left to right

The message is delimited by ::END:: and the token is exactly 12 hex characters, matching the flag format, so this is the real payload and not a decoy.

Solver

To confirm the result without relying on zsteg’s text rendering, this script extracts the bits by hand.

#!/usr/bin/env python3
"""Extract the LSB (b1,rgb,lsb,xy) payload from downlink_frame.png."""
import re
import sys

from PIL import Image

path = sys.argv[1] if len(sys.argv) > 1 else "downlink_frame.png"

img = Image.open(path).convert("RGB")

# Row-major pixels, channels in R, G, B order, one LSB per channel
bitstr = "".join(str(c & 1) for px in img.getdata() for c in px)

# Pack bits into bytes, MSB first
data = bytes(int(bitstr[i:i + 8], 2) for i in range(0, len(bitstr) - 7, 8))

end = data.find(b"::END::")
if end == -1:
    sys.exit("[-] No ::END:: marker found, try another bit plane or channel order")

msg = data[:end + 7].decode(errors="replace")
print(f"[+] Hidden message:\n    {msg}")

m = re.search(r"RELAY_TOKEN=([0-9A-Fa-f]{12})", msg)
if m:
    print(f"[+] Flag: FLAG{REDACTED}}}")
python3 solve.py downlink_frame.png

The output matches the zsteg result.

Flag

FLAG{REDACTED}

Lessons / Takeaways

  • exiftool shows nothing when the data lives in the pixels. Always run a bit-plane tool on lossless images.
  • Match the tool to the format: steghide and stegseek for JPEG/BMP/WAV, zsteg for PNG/BMP LSB.
  • zsteg -a tries every bit plane, channel order and scan direction if the default run finds nothing.
  • Real payloads usually have clear delimiters (::END::) and fit the expected flag format, which helps separate them from random noise hits such as b3,b,lsb,xy.
  • Writing a 10-line extractor is a good way to verify a tool’s output and is reusable for variant challenges.

Techniques

  • LSB Steganography
  • PNG Forensics
  • zsteg