> For the complete documentation index, see [llms.txt](https://fastiraz.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fastiraz.gitbook.io/doc/ctf-tips/image-steganography.md).

# Image Steganography

{% hint style="info" %}
This page is highly inspired by StegOnline.
{% endhint %}

## **File**

Just to be sure what file you are facing with, check its type with `type file`.

## **Strings**

View all strings in the file with `strings -n 7 -t x file.png`. We use `-n 7` for strings of length 7+, and `-t x` to view- their position in the file. Alternatively, you can view strings on this site once an image has been uploaded.

## **Exif**

Check all image metadata with `exiftool file.png`.

## **Binwalk**

We use binwalk to check image's for hidden embedded files. My preferred syntax is `binwalk -Me file.png`. `-Me` is used to recursively extract any files.

## **pngcheck**

We can use pngcheck to look for optional/correct broken chunks. This is vital if the image appears corrupt.

Run `pngcheck -vtp7f file.png` to view all info. `v` is for verbose, `t` and `7` display tEXt chunks, `p` displays contents of some other optional chunks and `f` forces continuation after major errors are encountered.

## **Found a password? (Or not)**

If you've found a password, the goto application to check should be [steghide](http://steghide.sourceforge.net/). Bear in mind that steghide can be used without a password, too.

You can extract data by running `steghide extract -sf file.png`.

If not you can use [stegcracker](https://github.com/Paradoxis/StegCracker) to brute force the steghide password by running `stegcracker file.png [<wordlist>]`.

## Aperi'Solve

Aperi'Solve is an online platform which performs layer analysis on image. The platform also uses zsteg, steghide, outguess, exiftool, binwalk, foremost and strings for deeper steganography analysis. The platform supports the following images format: .png, .jpg, .gif, .bmp, .jpeg, .jfif, .jpe, .tiff...

{% embed url="<https://www.aperisolve.com/>" %}
An all-in-one steg image tool.
{% endembed %}

{% embed url="<https://media.giphy.com/media/xT5LMUxrAQnU4yCZJS/giphy.gif?cid=ecf05e474cq8vnnolcwh8bgfa39wbgynhylf7tztb41t1bx5&ep=v1_gifs_search&rid=giphy.gif&ct=g>" %}
