It is currently Sun Sep 27, 2026 1:00 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Steganography on GIMP
PostPosted: Sun Jul 19, 2015 8:59 pm  (#1) 
Offline
New Member

Joined: Jul 19, 2015
Posts: 1
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Basic Level



So I pick things up pretty easily, especially on things like GIMP. However, I really want to do steganography on this sense I find it so fascinating and also it's for a project. May I get basic instructions on how to do it? It would help me so much.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Steganography on GIMP
PostPosted: Mon Jul 20, 2015 2:39 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
What do you want to hide? An image? Some text?

_________________
Image


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Mon Jul 20, 2015 5:09 am  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
There is the hide / unhide plugin see: viewtopic.php?f=9&t=3659&p=45631#p45631
for some reason, this is included in the (linux) development Gimp 2.9.1

But that is not the only way, I was once very interested in encryption including its history. Nothing is new, Steganography is just about concealing a message rather than encrypting it. In ancient Greece, a messengers head was shaved, message tattoo-ed on, hair grows back, messenger sent off, head shaved at other end, message read.
Attachment:
greek.gif
greek.gif [ 125.9 KiB | Viewed 14268 times ]


An old method uses indexed images, and modifies the colormap

What is the hidden word here:
Attachment:
hidden.gif
hidden.gif [ 2.61 KiB | Viewed 14268 times ]


This is a really easy example, the clues are there.


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Mon Jul 20, 2015 8:25 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Attachment:
answer.png
answer.png [ 1.03 KiB | Viewed 14223 times ]

_________________
Image


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Mon Jul 20, 2015 9:37 am  (#5) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
@Ofnuts I know it is, I did say really easy.

Who else then?


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Mon Jul 20, 2015 5:56 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
This is another very simple technique ..very easy to un-hide (when you know how! :) ).

This looks like just yet-another-copy of that well-known Standard Test Image, the Mandrill (available here: http://sipi.usc.edu/database/database.php). But it has been slightly altered ..the message lies in the difference.

Image


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Tue Jul 21, 2015 2:21 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
In this one the secret is not in the difference...

Attachment:
Stegano-Mandrill-1.png
Stegano-Mandrill-1.png [ 644.32 KiB | Viewed 14075 times ]

_________________
Image


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Tue Jul 21, 2015 3:01 pm  (#8) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
For First Time I got it straight away, harder, maybe


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Wed Jul 22, 2015 3:19 am  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
You are indeed fast at finding tricks :)

_________________
Image


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Thu Jul 23, 2015 12:04 am  (#10) 
Offline
New Member

Joined: Jul 22, 2015
Posts: 1
I got the color map and first mandrill examples (still working on second mandrill, but if For First Time means what I think it does, I'm going to have to find a new tool). I can't extract anything from answer.png, however, it is indexed but the color map doesn't appear to have and encoded information. Am I missing something or did the Up/Download process damage answer.png?


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Thu Jul 23, 2015 2:34 am  (#11) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Vetinari wrote:
I got the color map and first mandrill examples (still working on second mandrill, but if For First Time means what I think it does, I'm going to have to find a new tool). I can't extract anything from answer.png, however, it is indexed but the color map doesn't appear to have and encoded information. Am I missing something or did the Up/Download process damage answer.png?


No, answer.png is fine (checked on a re-downloaded version). It is only a slightly harder variant of what it answers to.

_________________
Image


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Thu Jul 23, 2015 3:11 am  (#12) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
The colormap editing method, is rarely so trivial. A more usual case is a 256 colormap with very similar colours.
Try this one. http://www.eclectic-penguin.org.uk/cach ... ection.gif

One way to proceed with these (apart from trial and error) is to dump the colormap as a hex table and either search or sort to find matches.

I thought jontait2 diff method produced a really good outcome, although it is best with a 'busy' image. For Jazz2 assembling a project, worth an expanded mention.

Any other methods? edit: tacking a header or a bit on the end of an image does not count :)


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Thu Jul 23, 2015 6:28 am  (#13) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
rich2005 wrote:
The colormap editing method, is rarely so trivial. A more usual case is a 256 colormap with very similar colours.
Try this one. http://www.eclectic-penguin.org.uk/cach ... ection.gif

One way to proceed with these (apart from trial and error) is to dump the colormap as a hex table and either search or sort to find matches.

That sounds like the hard way of doing it!
You can usually expose any colourmap redundancy (which is what this method is using) by simply swapping the colourmap (ie. Colours> Map> Set colourmap...) for something completely different.

For images with a small colourmap (up to 16 colours) such as the images posted by Rich and Ofnuts above, simply setting the colourmap to the standard "EGA" should be enough to show you what's there (if anything). Of course, the colours will all be wrong, but that doesn't really matter.

For images with larger colourmaps (up to 256 colours), try "EGA" first, then also try the standard "Gold" colourmap - that will usually expose anything not shown by "EGA" because the "Gold" colourmap is in fact just a very gradual gradient from pale-yellow to near-black, and since the colourmap actually used in indexed images is usually nothing like a very gradual gradient, the redunancy will stand out.
You can also make your own completely-different-yet-again colourmap, eg. using the "plasma" texture generator:
File> New> 400x400
Filters> Render> Clouds> Plasma... (Random seed = 0)
Image> Translate into palette... (save as "Plasma")
This will generate a new palette (which you can then use as a colourmap) with lots of bright colours but in a completely random order, quite different from the standard colourmaps (such as "EGA" and "Gold").
So, if "EGA" and "Gold" don't expose anything, "Plasma" probably will.

(For a more comprehensive technique, rather than manually searching a hex dump of the colourmap, I would suggest writing a Python script to highlight any redundancy.)


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Thu Jul 23, 2015 6:37 am  (#14) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
Don't have to get too serious, and there might be times when you want to keep the original image as-is as well as the message.

Attachment:
exposed.gif
exposed.gif [ 28.93 KiB | Viewed 5530 times ]


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Thu Jul 23, 2015 6:57 am  (#15) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Certainly, and the quick technique I outlined above will show you if and where there is any redundancy which might be a hidden message/image ..if you want to expose the hidden content but preserve the rest of the image, use the colour-picker tool to sample the hidden stuff (the info window will show you the colourmap index number of the hidden stuff) and then just change that/those values in the colourmap of a fresh copy of the original image (using the Colourmap dialog).


Top
 Post subject: Re: Steganography on GIMP
PostPosted: Thu Jul 23, 2015 7:39 am  (#16) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
One could think out of the box to create hidden messages. :hehe

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group