4.3.2.3 Lab – Using Steganography Answers

Last Updated on by

4.3.2.3 Lab – Using Steganography Answers

Lab – Using Steganography (Answers Version)

Answers Note: Red font color or gray highlights indicate text that appears in the Answers copy only.

Objectives

Use steganography to hide a document within a JPEG file.

Background / Scenario

Steghide is an open source steganography program that hides data in various types of files such as audio and image files. You are going to hide a data file within an image file.

Required Resources

  • PC with Ubuntu 16.04 Desktop LTS installed in a VirtualBox or VMware virtual machine

Step 1: Open a terminal window in Ubuntu.

  1. Log in to Ubuntu using the following credentials:
    User: cisco
    Password: password
  2. Click on the terminal icon to open a terminal.

Step 2: Run Steghide.

  1. At the command prompt, enter the following command to change to the Downloads directory:
    [email protected]:~$ cd Downloads/
  2. Enter libreoffice secret.odt & at the prompt.
    [email protected]:~/Downloads$ libreoffice secret.odt &
    What is the message in the secret.odt?____________________________________________________________________________________
    The secret document
  3. Close the secret.odt file when done.
  4. Enter gimp keyboard.jpg & at the prompt to view the image file
    [email protected]:~/Downloads$ gimp keyboard.jpg &
  5. Close the keyboard.jpg file when done.
  6. At the command prompt, enter the following command :
    [email protected]:~/Downloads$ steghide embed -cf keyboard.jpg -ef secret.odt
    This command takes the jpeg file called “keyboard.jpg” and uses it as a carrier to embed the document, secret.odt, into it.
  7. When prompted for a passphrase, use Cisco. Re-enter the passphrase when prompted.
  8. You have embedded the document, secret.odt, into the image file, keyboard.jpg.
  9. Open the files, secret.odt and keyboard.jpg. Did these files change?________________
    No. The files did not change.

Step 3: Verify the hidden file.

  1. Type the following command in terminal.
    [email protected]:~/Downloads$ steghide info keyboard.jpg
  2. Type y at the prompt. (Do not press Enter).
  3. Enter the passphrase Cisco and press Enter.
  4. The results below shows that the file, secret.odt, is encrypted and compressed.

Step 4: Extract the hidden file.

  1. Type the following command in terminal.
    [email protected]:~/Downloads$ steghide extract -sf keyboard.jpg
  2. Enter the passphrase, Cisco, and press Enter.
  3. Enter y when prompted to overwrite the existing secret.odt file with the new extracted secret.odt file.
  4. You have extracted the file. Open the extracted secret.odt file with LibreOffice.
    Could you open the file? Is the secret message the same as before?____________________________________________________________________________________
    The file can be opened and the message is the same as before.

References

Steghide: http://steghide.sourceforge.net/