CTF7
PricingFree tierFAQ Sign in

What is steganography in a CTF?

Hiding data inside ordinary files, and the checks that find it.

Steganography is the practice of hiding data inside another file, such as an image, audio clip or document, so that its existence is not obvious. It differs from encryption, which makes a message unreadable but visible. In a CTF the hidden data is the flag.

Example

You receive holiday.jpg. file says it is a JPEG, but binwalk reports a ZIP archive appended after the image data. You extract it, find a text file and read the flag. Another common trick hides bits in the least significant bit of each pixel, which zsteg can read from a PNG.

Checks in order

  1. file and exiftool for type and metadata.
  2. strings for plain text.
  3. binwalk for embedded files.
  4. steghide, zsteg or a spectrogram for audio and images.

Check metadata before reaching for heavy tools; many flags are sitting in a comment field. Decode any strange string with the encoder and decoder.

On CTF7

Stego challenges are file attachments. Organizers set the flag and format, and can add hints that unlock for a cost. When a file must stay identical for every team, the flag is static; instance-based challenges can use per-team dynamic flags instead.

Learn more

Read the steganography guide for worked examples and tools, or browse all CTF guides.

Browse the full CTF and cybersecurity glossary for more terms.

Plan your next event with us

A free jeopardy event for up to 50 players goes live when you publish it. For flagship events, our team can build the challenges and run the managed formats: attack-defense, King of the Hill and SOC simulations.

CTF7 mascot holding a CTF7 flag