← All projects

Steganography (steghide)

Hiding and extracting a text file inside a cover image.

For use only in isolated lab environments you own or are authorized to test. Don't run these against systems or networks without explicit permission.
Install steghide
sudo apt update
sudo apt install steghide -y
Prepare lab folder & cover image
mkdir -p ~/Downloads/steg-lab
cd ~/Downloads/steg-lab
wget -O cover.jpg https://picsum.photos/800/600
Create secret message
echo "Confidential: meet at lab 3 at 5 PM" > secret.txt
cat secret.txt
Embed & extract
steghide embed -cf cover.jpg -ef secret.txt
steghide extract -sf cover.jpg -xf recovered.txt