Steganography Tools: Best Free Tools to Hide & Detect Hidden Data in Kali Linux
Learn the best free steganography tools for Kali Linux: hide files in images with Steghide and OpenStego, then detect hidden data with zsteg.
What Is Steganography?
Steganography is the practice of hiding a message inside another file — a photo, a song, a document — so that nobody can tell the message is there at all. A steganography tool takes your secret file, weaves it into the pixels of an image or the samples of an audio file, and produces a carrier file that looks and sounds normal to everyone who opens it.
Cryptography scrambles a message so it cannot be read; steganography hides the message so it cannot be found. The two are often combined: the best tools encrypt the secret before embedding it, so even if someone detects the hidden data, they still cannot read it. Common legitimate uses include watermarking photos to prove ownership, covert communication research, digital forensics training, and capture-the-flag (CTF) competitions, where hidden flags are the whole game.
Steganography vs Cryptography vs Watermarking
| Technique | Goal | What an observer sees |
|---|---|---|
| Steganography | Hide the existence of the message | A normal-looking image or audio file |
| Cryptography | Hide the meaning of the message | Obvious scrambled text that invites attention |
| Watermarking | Prove ownership or origin | Usually a visible or detectable mark |
| Steganalysis | Detect hidden data | Statistical anomalies in a suspicious file |
How Steganography Works
Every hiding technique exploits slack space — parts of a file that can change slightly without anyone noticing.
Least Significant Bit (LSB) embedding. In a PNG image, each pixel's red, green and blue values are stored as bytes. Changing the last bit of each byte changes the color by 1/256 — invisible to the human eye. A tool writes the secret message one bit at a time into those last bits. This is the most common technique, and the one most detection tools look for.
DCT coefficient embedding. JPEG images store frequency coefficients, not raw pixels. Steghide hides data by modifying those coefficients, which is why it works on JPEG files where naive LSB tools fail. JPEG hiding survives compression better, but it changes the file more measurably.
Metadata hiding. EXIF and XMP metadata fields in a photo can carry text — a comment, a GPS coordinate, a copyright note. ExifTool reads and writes these fields. Hiding data here is trivial to detect (anyone can run exiftool), but it is still used for watermarking and for CTF puzzles.
Appended data. A ZIP archive or a text file can be appended after the end marker of a JPEG or PNG. Image viewers stop at the end marker and never notice the extra bytes; binwalk and foremost find them instantly. This is the simplest technique and the easiest to detect.
Audio LSB and spectrograms. The same LSB idea works on WAV samples, and tools like Spectrology hide an image inside an audio spectrogram — open the file in a spectrum viewer and the picture appears. Audio hiding is a favorite in CTF challenges because most beginners only check images.
Steganography Tools Compared
| Tool | Best for | Formats | Interface | Encryption | Detection resistance |
|---|---|---|---|---|---|
| Steghide | Hiding in JPEG and audio | JPEG, BMP, WAV, AU | Command line | Yes (AES) | Good |
| OpenStego | Beginners and watermarking | PNG, JPG, BMP, GIF | GUI + CLI | Yes (AES-256) | Moderate |
| Outguess | Resisting detection | JPEG | Command line | Optional | High |
| zsteg | Detecting LSB in PNGs | PNG, BMP | Command line | — (detector) | — |
| StegSolve | Bit-plane analysis | PNG, JPG, BMP, GIF | GUI | — (analyzer) | — |
| Aperi'Solve | Online triage | Images | Web | — (analyzer) | — |
| ExifTool | Metadata inspection | All image types | Command line | — (reader) | — |
| Binwalk | Finding appended data | Any file | Command line | — (analyzer) | — |
| StegSeek | Cracking a Steghide passphrase | JPEG, BMP, WAV, AU | Command line | — (cracker) | — |
| Foremost | Carving hidden files | Any file | Command line | — (carver) | — |
No single tool does everything. Hide with Steghide or OpenStego, detect with zsteg and StegSolve, and check the file layer with Binwalk and ExifTool. The worked example at the end of this guide uses all four sides of that workflow.
Steghide: The Command-Line Workhorse
Steghide is the classic Kali steganography tool: a small C++ command-line utility that hides data inside JPEG, BMP, WAV and AU files, encrypting the payload before embedding it. It is an established tool that has not had a new release in years, but it is still shipped in Kali Linux and still the first tool most CTF players reach for.
# Install on Kali Linux
sudo apt install steghide
# Hide a file inside a photo (you will be asked for a passphrase)
steghide embed -cf photo.jpg -ef secret.txt
# Extract the hidden file
steghide extract -sf photo.jpg
# Show what a file contains, without extracting
steghide info photo.jpg
The passphrase matters: without it, the hidden data cannot be extracted, and the encryption means the payload is unreadable even if someone finds it. Choose a strong passphrase and store it with the same care as any password. Steghide's strength is JPEG — it modifies the image's DCT coefficients rather than raw pixels — so prefer JPEG covers when you need the file to survive being copied, resized or re-saved.
OpenStego: GUI Simplicity for Beginners
OpenStego is a free, open-source Java tool with both a graphical interface and a command line. It hides text or files in PNG, JPG, BMP and GIF images, encrypts them with AES-256, and also supports watermarking — embedding an invisible signature that proves a photo is yours.
# OpenStego is not in the Kali apt repositories — download the .jar
# from openstego.com, then launch it (replace <version> with the download's version)
java -jar openstego-<version>.jar
In the GUI, pick a cover image, pick the file to hide, set a password, and click "Hide Data". To extract, open the stego image, enter the password, and click "Extract Data". The command line does the same job for scripts and batch work. OpenStego is the best first tool if the terminal puts you off: it shows you the whole workflow in one window, and its watermarking mode is genuinely useful for photographers who want to prove ownership of their work.
Outguess: Advanced Data Hiding
Outguess is a console-based universal steganographic tool designed to resist detection. Where simple LSB tools leave statistical fingerprints that steganalysis can spot, Outguess preserves the statistical properties of the cover image, making the result much harder to distinguish from an untouched photo.
# Install on Kali Linux
sudo apt install outguess
# Hide a file inside a JPEG (you will be asked for a passphrase)
outguess -k my-passphrase -d secret.txt cover.jpg stego.jpg
# Extract it back
outguess -k my-passphrase -r stego.jpg secret.txt
Outguess is the tool to reach for when detection resistance matters more than convenience. Its output looks ordinary to zsteg and to chi-square tests, which is exactly why it appears in advanced CTF challenges and in steganalysis research.
zsteg: Detecting Hidden Data in PNGs
zsteg is a Ruby tool that walks through every bit-plane combination of a PNG or BMP image looking for hidden strings. It is a detector, not a hider — you run it on a suspicious image and it tells you what is buried inside.
# Install (Ruby gem)
gem install zsteg
# Scan every bit plane
zsteg -a image.png
# Check one specific plane and channel
zsteg -b 1 -r -g -o 2 image.png
A typical CTF workflow is zsteg -a first: if the image hides an LSB message, zsteg usually prints it within seconds. If zsteg finds nothing, the data may be in the metadata, appended after the end marker, or hidden with a tool like Outguess that preserves the statistics zsteg relies on — move on to ExifTool and Binwalk before concluding the image is clean.
StegSolve: Seeing Every Bit Plane
StegSolve is a Java tool for visual steganalysis. It opens an image and lets you view each bit plane and color channel separately, so a hidden message that is invisible in the full picture jumps out when you isolate the least-significant bits.
# Launch (download StegSolve.jar first)
java -jar StegSolve.jar
Open the image, then step through the bit planes with the arrow keys. A plane that should look like noise but instead shows shapes, text or a QR code is your hidden data. StegSolve also extracts LSB data directly and scans for embedded QR codes, which makes it a staple of CTF image challenges. Pair it with zsteg: zsteg finds the message automatically, StegSolve shows you why it was there.
Aperi'Solve: Online Image Analysis
Aperi'Solve is a web-based image-analysis platform at aperisolve.com. Upload a suspicious image and it runs a battery of tools in the browser — zsteg, Steghide, ExifTool, Binwalk, Foremost and strings — then shows you all the results on one page. It is the fastest way to triage an image you did not create.
Privacy warning: do not upload confidential company images, personal photographs, regulated records, or evidence containing sensitive information to an online analyzer unless your organization's policy explicitly permits it. The image leaves your machine. For anything sensitive, run the same tools locally on Kali instead — every tool Aperi'Solve uses is available on the command line.
ExifTool, Binwalk and Foremost: The File Layer
Before you blame LSB embedding, check the file itself. Most "hidden" data in beginner challenges is not hidden at all — it is sitting in the metadata or appended after the image data.
# Read every metadata field
exiftool image.jpg
# Look for appended archives or embedded files
binwalk image.jpg
# Extract anything binwalk finds
binwalk -e image.jpg
# Carve files out of the image
foremost -i image.jpg -o output/
# Search the raw bytes for readable text
strings image.jpg | grep -iE 'flag|password|secret'
ExifTool reveals comments, GPS coordinates, camera settings and software tags — and a hidden message pasted into a comment field. Binwalk spots the extra data after the image's end marker and tells you what it is (usually a ZIP). Foremost carves that data back into files. These three commands take ten seconds and solve a surprising number of challenges outright.
StegSeek: Cracking a Forgotten Steghide Passphrase
StegSeek brute-forces the passphrase of a Steghide-embedded file using a wordlist. It exists for one legitimate job: recovering data you hid yourself and whose passphrase you lost, or testing the strength of your own passphrase in an authorized assessment.
# Install on Kali Linux
sudo apt install stegseek
# Try every password in rockyou against the stego image
stegseek stego.jpg /usr/share/wordlists/rockyou.txt
On Kali, rockyou.txt ships compressed as rockyou.txt.gz — extract it first with sudo gzip -d /usr/share/wordlists/rockyou.txt.gz if the file is missing. If StegSeek finds the passphrase it prints it and extracts the hidden file automatically. If it finds nothing, the passphrase is not in your wordlist — which is the correct outcome for a strong passphrase, and the reason you should never rely on a weak one.
Worked Example: Hiding and Finding a Message in a Photo
This example hides a short message in a photo with Steghide, verifies it, extracts it, and then attacks the result with the detection tools. Do it on your own files in a lab folder. All sample outputs below are illustrative — real output varies with your image and your passphrase.
# 1. Prepare a cover photo and a secret file
cp ~/Pictures/holiday.jpg lab-photo.jpg
echo "This is a secret message for the lab." > secret.txt
# 2. Hide the message (choose a passphrase when asked)
steghide embed -cf lab-photo.jpg -ef secret.txt
# 3. Confirm something is hidden, without extracting it
steghide info lab-photo.jpg
The info output confirms the file now carries embedded data and shows its capacity. The photo itself looks unchanged — open it and you will see the same holiday picture.
# 4. Extract the message on another machine (or after deleting the original)
steghide extract -sf lab-photo.jpg -xf recovered.txt
# 5. Verify the recovered file matches the original
sha256sum secret.txt recovered.txt
The two hashes match, which proves the message survived the round trip intact.
# 6. Now attack the stego image with the detection tools
zsteg -a lab-photo.jpg
binwalk lab-photo.jpg
exiftool lab-photo.jpg
strings lab-photo.jpg | grep -i secret
What you should see: zsteg finds nothing obvious (Steghide's DCT embedding does not leave the LSB traces zsteg hunts for), Binwalk finds no appended archive, ExifTool shows only the photo's normal metadata, and strings shows no readable secret. That is the point of the exercise — a well-hidden message is invisible to the quick checks, and finding it requires knowing which tool made it, or brute-forcing the passphrase with StegSeek. Repeat the same workflow with an LSB tool (OpenStego on a PNG) and watch zsteg find the message in seconds: the difference between the two results is the difference between hiding and hiding well.
Steganalysis: How to Detect Hidden Data
Detecting hidden data — steganalysis — is a separate skill from hiding it. These are the techniques analysts use, in order of effort:
File-size and metadata checks. Compare the suspicious file with a known-clean version of the same image. A photo that is larger than it should be, or whose metadata contains odd comments, deserves a closer look. Run ExifTool first; it costs nothing.
Bit-plane inspection. Open the image in StegSolve and step through the bit planes. A clean image's least-significant plane looks like random noise. A plane that shows text, shapes or a QR code is a message.
Statistical tests. LSB embedding changes the distribution of pixel values in measurable ways. Chi-square analysis, RS analysis and sample-pairs analysis all test whether the least-significant bits look random (clean) or structured (hidden data). zsteg and Aperi'Solve run these tests for you; a high suspicion score means "look closer", not "guilty".
Appended-data checks. Run Binwalk and Foremost. Data appended after the image's end marker is the easiest hiding technique to detect and the easiest to extract. A one-command triage runs the cheap checks together:
exiftool image.jpg && binwalk image.jpg && zsteg -a image.png && foremost -i image.jpg -o out/
Brute force. If you suspect Steghide, run StegSeek with a wordlist. A weak passphrase falls in minutes; a strong one does not fall at all, which is itself useful information.
When detection fails. Outguess and well-made DCT embedding resist the statistical tests, and a message hidden with a strong passphrase cannot be read even when it is found. Steganalysis can prove data is hidden; it cannot always recover it. Report what you found and what you could not, and do not claim a file is clean just because one tool found nothing.
Steganography in CTFs
Image challenges are a staple of beginner CTFs, and the solving order is almost always the same:
strings and exiftool — the flag is often in plain sight.binwalk and foremost — the flag is often appended after the image data.zsteg -a — the flag is often in an LSB plane.steghide extract with a password from the challenge, or stegseek with rockyou when the password is weak.steghide on WAV files.Practice on picoCTF and HackTheBox, which both run image-steganography challenges year-round. Keep a notes file of which tool solved which challenge — after ten challenges you will recognize the pattern (file type plus challenge wording) before you run the first command.
Is Steganography Legal?
Steganography itself is legal. It is a technique, like encryption: hiding a message inside a photo breaks no law on its own. What matters is what you do with it. Hiding data in files you own, in a lab, for learning or for an authorized test is fine. Hiding data to exfiltrate company files, to smuggle information past a border, or to conceal criminal communication is not — and the same tools that hide data are the tools forensic analysts use to find it.
Two rules keep you safe: only hide data in files you own or are explicitly permitted to test, and never upload someone else's images to an online analyzer. The technique is neutral; the authorization is what makes the difference.
Steganography Tools Cheat Sheet
Hiding data
| Task | Command |
|---|---|
| Hide a file in a JPEG with Steghide | steghide embed -cf photo.jpg -ef secret.txt |
| Extract a Steghide file | steghide extract -sf photo.jpg |
| Check a file for hidden data | steghide info photo.jpg |
| Hide with Outguess | outguess -k passphrase -d secret.txt cover.jpg stego.jpg |
| Extract with Outguess | outguess -k passphrase -r stego.jpg secret.txt |
| Hide with OpenStego (GUI) | java -jar openstego-<version>.jar |
| Hide text in image metadata | exiftool -Comment="hidden note" image.jpg |
Detecting hidden data
| Task | Command |
|---|---|
| Scan all bit planes | zsteg -a image.png |
| Visual bit-plane analysis | java -jar StegSolve.jar |
| Find appended data | binwalk image.jpg |
| Extract appended data | binwalk -e image.jpg |
| Carve hidden files | foremost -i image.jpg -o output/ |
| Read all metadata | exiftool image.jpg |
| Search raw bytes | strings image.jpg | grep -iE 'flag|password|secret' |
| Crack a Steghide passphrase | stegseek stego.jpg /usr/share/wordlists/rockyou.txt |
| Online triage (public images only) | aperisolve.com |
Troubleshooting Steganography Problems
| Problem | Likely cause | Fix |
|---|---|---|
steghide: could not open the cover file | Wrong filename or path, or the file is not a supported format | Check the path; Steghide supports JPEG, BMP, WAV and AU only — not PNG |
steghide: the passphrase is wrong | Wrong passphrase, or the file was embedded with a different one | Re-check the passphrase; try StegSeek with a wordlist if it is your own file |
steghide: the cover file is too small | The secret is bigger than the image can hold | Use a larger cover image or a smaller secret; JPEG capacity is roughly 1/8 of the file size |
| OpenStego will not start | Java is not installed | Install a Java runtime (sudo apt install default-jre) and retry |
gem install zsteg fails | Ruby or the Ruby headers are missing | Install Ruby first (sudo apt install ruby ruby-dev), then retry |
| Aperi'Solve rejects the upload | File too large, or an unsupported format | Resize the image or run the same tools locally on Kali |
| Binwalk finds nothing | The data is embedded in pixels, not appended | Switch to zsteg and StegSolve for LSB and bit-plane analysis |
| Extracted file is garbage | Wrong tool, wrong passphrase, or the wrong bit plane | Confirm which tool hid the data; check steghide info and re-run zsteg with -a |
| PNG loses the hidden data after editing | Re-saving a PNG re-encodes the pixels | Never edit or re-save a stego image; work on a copy and keep the original |
Common Mistakes
steghide info before you assume it worked.Best Practices
Summary
Steganography hides a message inside an ordinary file so that nobody knows it is there. Steghide and OpenStego do the hiding, Outguess does it in a way that resists detection, and zsteg, StegSolve, Binwalk, ExifTool and Aperi'Solve do the finding. The workflow is simple — hide, verify, extract, then attack your own result with the detection tools — and the habit that matters most is the last step: a message you cannot find with your own tools is a message hidden well, and a message your tools find in seconds was never really hidden.
Knowledge Check
zsteg -a image.png do?Answers: 1. Steganography hides the existence of a message; cryptography hides its meaning. 2. Steghide. 3. It scans every bit-plane combination of a PNG or BMP image looking for hidden strings. 4. The image leaves your machine, so confidential or personal data could be exposed; keep sensitive triage local. 5. They look for data appended after the image's end marker and carve it back into files. 6. That you typed the right passphrase — and if it is your own file, try StegSeek with a wordlist to recover it. 7. Editing re-encodes the pixels, which overwrites the least-significant bits and coefficients that carry the message. 8. strings and exiftool, then binwalk and foremost, then zsteg, then StegSolve, then steghide or stegseek.
Keep Learning
Tools
Frequently Asked Questions
Continue Learning
Docker Security Best Practices: How to Secure Docker Containers and Images
Secure your Docker containers step by step: hardened images, Trivy scanning, secrets, runtime limits and daemon hardening — with a worked Flask example.
Ethical Hacking · IntermediateMalware Analysis: Beginner's Guide to Static & Dynamic Analysis in Kali Linux
Learn malware analysis from scratch: build a safe isolated lab, triage samples with static and dynamic analysis, write YARA rules, and report IOCs.
Ethical Hacking · IntermediateReverse Engineering for Beginners: Learn to Analyze Binaries with Ghidra & GDB
Learn reverse engineering from scratch: analyze binaries with Ghidra and GDB, read assembly, crack a practice binary, and build a starter toolkit.
Ethical Hacking · BeginnerEthical Hacking Fundamentals: Principles, Methodology, and Best Practices
Learn the core principles of ethical hacking, the five-phase penetration testing methodology, types of security testing, and how to build your own hacking lab.
Related Security Tools
Steghide
Steghide is a steganography tool designed to hide confidential data inside various types of image and audio files without altering their outward appearance.
Web ApplicationFFUF
Learn how to use FFUF (Fuzz Faster U Fool), the extremely fast open-source web fuzzer written in Go: place the FUZZ keyword where a wordlist entry should go, run your first scan, filter the noise, and discover hidden directories, files, parameters, virtual hosts and API endpoints on targets you have permission to test.
Sniffing & SpoofingNetcat
Learn how to use Netcat (nc) in Kali Linux to open a TCP or UDP connection, check a port, and see what a service sends back. Follow the examples to send your first message, inspect HTTP and SMTP responses, and transfer a test file without exposing sensitive data.
ForensicsAutopsy
Learn how to use Autopsy, the free digital forensics software, in a hands-on practice case. Start with a verified disk image, run ingest modules, look for deleted files, and use keyword hits and timeline entries to build a report.