Steganography by using Steghide

In this activity, We’ll demonstrate steganography by using steghide to hide secret messages in an image file, So no third person can find it out except if they know the passphrase.

What is Steganography and how will it be useful?

Steganography is the practice of hiding a secret message inside of (or even on top of) something that is not secret. That something can be just about anything you want like any wallpaper image. These days, many examples of steganography involve embedding a secret piece of text inside of a picture. Or hiding a secret message or script inside a Word or Excel document.

Steps to be followed for the demonstration

  1. Will use steghide tool for hiding the secret file on the cover file, If it’s not available on your Linux system can install it by below instructions.

2. Now will create the secret text file and download any image file for the cover file, moving both files into the same folder “steg“.

You can both files are into the same folder, as for seeing image file can be used by a tool called eog.

For installing eog tool can follow this command “sudo apt-get install eog

So now we can embed the secret message into cover file.

steghide embed -cf baby.jpeg -ef secret.txt

will remove the existing text file for clarity and then can check out the image cover file to make sure that any text file is hidden or not.

We’ve cleared that there is no other file except the image file, So will now extract the stego file to remove the embedded secret message file from the cover image file.

steghide extract -sf baby.jpeg

Successfully extracted the file after giving the correct passphrase, and we can see the content of the secret file.

I hope you’ve learned and enjoyed this Walkthrough.

So, You can connect with me on LinkedIn & Twitter for more updates on Information Security.


We believe that these Practices will educate everyone about ethical hacking, and We do not promote, encourage, support, or excite any illegal activity or hacking.

We will not be responsible for your illegal actions.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.