eXtensions


Steganography on the Mac (1): Hiding data in Images


By Graham K. Rogers



advertisement



Although the analytical computer was theorised by Alan Turing in 1936, some of his work was critical in the devices used for decryption of messages created by the Enigma machines of the Axis Powers: his "bombes" and the later Colossus were the first computers. Encryption, therefore was part and parcel of the birth of the computer. Colussus was destroyed on orders of Churchill, but was rebuilt at Bletchley Park by Tony Sale.

Colossus
Rebuilding Colossus: Tony Sale at Work - ©Graham K. Rogers


The destruction of the World Trade Center in New York is an event that continues to have repercussions today. During investigations, it was suggested that some of the communications were using secret codes. These were not just encryption of the type used in Enigma, nor the type developed into programs like PGP (Pretty Good Privacy), but a method to hide text inside images: Steganography, or hidden writing.

The subject has recently come to the fore with the arrest in New York of several persons who had been spying for Russia. Several of the allegations involved "dead drops", personal wifi networks (so easy to do these days), and the use of steganography. I am teaching a course in which some knowledge of such techniques appears. I have downloaded six applications that can run on OS X, plus one for the iPhone. These hide data inside the file and should not be confused with watermarking although there may be some similarities.


StegoSec The iPhone app, StegoSec, is a $1.99 download (65 baht). After its eerie opening screen, we are shown a panel for decryption. It is no use encrypting images unless someone else can read the message. There is also a version of this for OS X: StegoSecOsX.

The encryption section on the iPhone offers two sources: camera or library. After selecting a picture and entering a password, I typed a message. After entering a small amount of text -- like an SMS message -- any change, such as a spelling correction, caused the text box to float down (or up) and it became difficult to enter more. Copy and paste (I used a book) is easier. The encrypt button is pressed and the process takes a few seconds only.

The image created is stored in the app's own library and can be downloaded by turning on the Server button in the Configuration panel and using a browser connection: the IP number of the phone via port 5555.

The image exported had the same dimensions as the original (1600 x 1200 pixels), but fewer colours: file size was smaller. Decryption was easy enough once the password was entered, and the message retrieved was correct.

StegoSec I initially thought that there was no email function but, confusingly, in the Decrypt section, by pressing the Cut button (next to Paste) a panel appears allowing email, SMS or "Cut in Clipboard". To make this useful there needs to be someone at the other end, with the same software, and the right password.

The OS X version will also decode images from the iPhone app. It opens with a simple panel for loading an image and typing in a password It is also much easier to enter text on this version.

I included the first three paragraphs of this article in a 934KB image. The encrypted image was also smaller (221KB). It could not decrypt the test image from iSteg (below). It also managed to put the same 3 paragraphs into an image of 61KB. When I sent that image by email, StegoSec decoded it on the iPhone.



The application, iSteg (version 1.5), freeware from Hanynet, was developed from the Open Source, Outguess. Initially, a small panel opens with some fairly obvious spaces for data sources: password, image and text. Sliders adjust the quality and other data, while there are checkboxes for encoding, error correction and feedback.

iSteg


Although I used basic ABC123 passwords for all the tests, a plus-sign generates unique passwords. Plus or minus signs also allow adding of images. Text files can also be added with the plus sign. There is an E for edit button which edits the original file: it is best to work on a copy. It only works with .TXT files (not .DOC, .PDF or .RTF), so other file formats would need the use of copy and paste plus a text editor.

Size is important here, both of the image and the text. Too much text cannot be used inside an image. An image of 934KB would not work with this complete article, but was fine with the 3-paragraph introduction. The clues to the processing are in the feedback panel that shows problems and results. This was like the processes shown by Hugin, the Open Source-based panorama software.

To decode an image, the user unchecks the Encode box and selects the image file. With the right password entered the process creates a text file. In the brief tests I carried out, retrievals were error free.

steganography examples
Original image; encrypted by iSteg; and encrypted by StegoSecOsX


See also: Steganography on the Mac (2): Some Shortcomings




advertisement



Google


Made on Mac

For further information, e-mail to

information Tag information Tag

Back to eXtensions

To eXtensions: 2006-07
To eXtensions: 2004-05
To eXtensions: Year Two
To eXtensions: Year One
To eXtensions: Book Reviews
Back to homepage