Library

ST3GG

ST3GG: How an ordinary photo can carry a secret message to an AI

A toolkit that hides data inside ordinary files, and finds data that someone else has hidden. Both halves matter now that AI reads the files too.

What this means for you

A photo on your phone is a few million tiny colored dots. Each dot is stored as a number. Change one of those numbers by the smallest possible amount and the dot shifts shade so slightly that no human eye can tell. Do that across thousands of dots in a deliberate pattern and you have written a message into the picture. The photo looks the same. It still opens, still posts, still prints. It is also carrying a note.

The Last DigitΛΥΣΙΟΣ · LIBERWhere the message hidesnumerus10110101ultimusaveIONE DOTA single point in the photoIIITS NUMBEREight digits. The last barely showsIIITHE NOTESpelled out in last digits
Fig. IThe simplest hiding place. Every dot in a photo is a number, and changing its last digit shifts the color too little to see. String enough last digits together and they spell a message.

That practice has a name, steganography, and it is old. People have hidden messages under wax, in the spacing of printed letters, and in microdots the size of a period. The difference from a code or a cipher is simple. A cipher scrambles a message so nobody can read it. Steganography hides the fact that there is a message at all.

Think of a letter written in lemon juice between the lines of an ordinary postcard. The postman reads the postcard and sees holiday news. The person who knows to hold it over a candle sees something else. Nothing about the postcard looks locked, which is exactly why nobody tries to open it.

ST3GG is a free toolkit that does this with modern files. It can hide data in images, sound files, documents, plain text and several other formats, using more than a hundred different methods. It also works in the other direction. Hand it a suspicious file and it runs through those same methods looking for anything tucked inside.

Why it matters now

For most of history a hidden message needed a human on the other end who knew where to look. That has changed. AI systems now read images, documents and web pages on our behalf, and they read them more literally than we do. Text that is invisible to you can be perfectly visible to the machine. So a picture or a document can carry instructions meant for the AI and never for the person who uploaded it.

The ST3GG text lab, with fields for a secret message and the cover text that will carry it
Fig. IIThe text lab in ST3GG. One box takes the secret message, the other takes the innocent-looking text that will carry it in characters the screen does not draw.

Here is a scenario worth recognizing. You ask an AI assistant to summarize a document someone sent you. The page looks clean. Inside it, in characters your screen does not draw, is a line addressed to the assistant. Whether the assistant ignores that line or follows it depends on how well it was built and tested. Tools like ST3GG are how the people doing that testing create realistic hidden content, and how defenders learn what it looks like.

There is a gentler use too. Journalists, researchers and people living under surveillance have long used hidden writing to communicate safely. The same toolkit lets them see which methods survive being posted to social media, where images are routinely squeezed and resaved.

How to use it

This is one of the easiest tools in the library to try. Go to ste.gg in a web browser. There is nothing to install and no account to make. The site runs entirely on your own device, so the files you load are not sent anywhere.

To see it work, pick any image, type a short message, and let it encode. You get back a picture that looks identical to the one you started with. Load that picture into the decode side and your message comes back out. Then try the analysis side on an ordinary photo of your own. It will usually find nothing, which is the expected answer and a useful one.

The full project, including the source code and a library of more than a hundred example files with data already hidden inside them, is on GitHub at the link above. You can browse it without an account. If you are comfortable with a command line, it also installs as a small program on your computer.

One note on good manners. Hiding a message in your own picture is harmless. Using hidden content to slip something past a system or a person who has not agreed to be tested is a different matter. The project is built for people checking their own defenses, and it says so.