Steganography in Kali Linux: How to hide files in a picture or audio file

The Kali Linux operating system is used by security professionals and cybercriminals to penetrate and audit specific environments, but in this tutorial we will show you how it is possible to hide a file in a picture or audio by using steganography.

The first thing which you will need is a up to date Kali Linux operating system, once the machine is entirely up to date, you can proceed to download the Steghide tool by typing the following command in the Kali Linux terminal:

  • sudo apt-get install steghide

Press “Yes” when you are prompted if you are sure you want to install the  “steghide” application.

Now that we have installed the “Steghide” application, we can navigate to the folder where our files are stored which we want to hide.

The most easiest way is to put the files you want to hide in the same folder as the audio or picture file.

Now that you have your files in the right folder, you can provide the following command in the terminal (make sure that you are in the right folder):

  • sudo steghide embed -cf [FIRST FILE WHICH WILL EMBED THE HIDDEN FILES] -ef [FILES YOU WANT TO EMBED]
  • [ENTER]
  • Provide a password, but if you want no password, just hit [ENTER]

And you are done!

Extracting information

Now if you want to extract the hidden files, you simply need to provide the following command:

  • sudo steghide extract -sf [FILENAME]

View INFO of file

The “sudo steghide info [FILENAME]” + [ENTER] command will show you the information which is hidden in the file.

show information steghide