Slashdot Mirror


Hiding Secrets With Steganography On FreeBSD

BSD Forums writes "Bad guys in the movies all keep their wall safes hidden behind paintings. Is there a metaphor in there for your sensitive files? OnLamp's Dru Lavigne explores steganography, or hiding secret messages in images or sounds, with the outguess and steghide utilities on FreeBSD."

107 of 424 comments (clear)

  1. BSD isn't dying... by Anonymous Coward · · Score: 4, Funny

    ...people just think it is because it hides itself very well. ;-)

  2. Re:Example: by herrvinny · · Score: 2, Informative

    Don't click on it! It's an animated GIF... and the second pic has serious problems...

  3. makes you wonder... by akaina · · Score: 5, Funny

    Makes you wonder what the demon is hiding

    --
    Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose.
    1. Re:makes you wonder... by dipipanone · · Score: 4, Funny

      <Darl McBride>
      I'll tell you what the Demon is hiding -- our intellectual property, fer cryin' out loud.

      Boies? I hope you're getting all this. The damned open source, heathen, communist hippies are deliberately flaunting their ability to conceal the code they've ripped off in an image of some goddamned devil. If that isn't proof enough of a conspiracy to rip us off, I don't know what is!
      </Darl McBride>

  4. Is this limited to FreeBSD only? by Wigfield · · Score: 4, Interesting

    I'd be interested to know if this is just a BSD thing or if I can run these apps on Linux or Windows.

    1. Re:Is this limited to FreeBSD only? by akaina · · Score: 3, Informative

      There used to be a program called Steganosis in the win95 days. I'm sure there's a modern equivalent, if not an updated version.

      --
      Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose.
    2. Re:Is this limited to FreeBSD only? by mlk · · Score: 5, Informative
      --
      Wow, I should not post when knackered.
    3. Re:Is this limited to FreeBSD only? by SkyMunky · · Score: 4, Informative

      also check out http://camouflage.unfiction.com

    4. Re:Is this limited to FreeBSD only? by criquet · · Score: 5, Informative

      I just compiled the source on Linux and it appears to work just fine.

    5. Re:Is this limited to FreeBSD only? by Enigma+Deadsouls · · Score: 2, Informative

      JPHS for Linux and Windows.

    6. Re:Is this limited to FreeBSD only? by orthogonal · · Score: 2, Informative

      John Walker's eclectic site, fourmilab.org (fourmilab.ch) has a JavaScript (ECMAScript) stenography app.

      He also offers a public domain stenography app in portable C.

      Those looking for really random numbers, of course, will know about his HotBits.

    7. Re:Is this limited to FreeBSD only? by TedCheshireAcad · · Score: 4, Interesting

      I'm probably gonna get modded down for this, but:

      Please, please, please, avoid steganography and use standard cryptography if you want to protect data. Steganography's security lies in the idea that if you conceal the method with which data is obscured, you conceal the data. This is a very bad way to assume security. In any data protection scheme, you should always assume your enemy has the algorithm used to obscure the data, but that only you have the secret (key).

      I do realize that steganographic techniques now will encrypt data then insert the encrypted bytes into the image, but if it is so easy to extract the steganographically encoded information, what's the point of encoding it in the first place? Differential steganalysis seems to be an easy enough method of finding steganographically encoded data, so recovering the information encoded into an image or whathaveyou is somewhat of a trivial problem, and if there is a trivial step in your data protection scheme, it should just be removed, because it's pointless.

      Kerkhoff must be rolling in his grave.

    8. Re:Is this limited to FreeBSD only? by Rebar · · Score: 5, Insightful

      One facet of data security is deniability. Which would you rather the Department of Homeland Security find on your hard drive:
      /documents/plan_for_world_domination.pgp
      or
      /wallpaper/cute_puppies.png?

      A securely encrypted message, hidden in a file with ostensibly another purpose, such that there is no way to prove the existence of the hidden message would keep anyone from telling you: "Reveal the secret key to this obviously encrypted file, or face contempt of court and an automatic prison sentence."

    9. Re:Is this limited to FreeBSD only? by andyrut · · Score: 3, Informative
      A securely encrypted message, hidden in a file with ostensibly another purpose, such that there is no way to prove the existence of the hidden message...

      You make an excellent point. However, if the Department of Homeland Security suspected that you were hiding data within your own obscure files, they could search the files themselves for "extra" data. They can prove such a message exists, even if they can't discover what the message is.

      Heck, within the steghide program itself you can see if a file contains embedded data (from the article):
      The steghide info command is quite useful. It will tell me if a file contains hidden data (however, only from steghide-created files, as far as I know)


      So if they suspect that your cute puppies are really plans for world domination, they could find out.
    10. Re:Is this limited to FreeBSD only? by X-ite · · Score: 3, Interesting

      However, if the Department of Homeland Security suspected that you were hiding data within your own obscure files, they could search the files themselves for "extra" data. They can prove such a message exists, even if they can't discover what the message is.

      This is true, but finding well-encrypted data is much harder than finding plaintext data. Plaintext data has certain statistical properties, i.e. in ordinary English ascii-text some characters are used more often than others. Cipher text usually resembles a random stream of data. This means that a discovered "disturbance" in image data produced by information encoded in the low order bits might just as well have been produced by inaccuracies in a scanner or digital camera. I am not claiming it is impossible to show that data is hidden in an image, but I assume it will be much harder to prove this in court if the data is encoded using a "statistically sound" encryption algorithm.

    11. Re:Is this limited to FreeBSD only? by Colonel+Cholling · · Score: 2, Funny

      A family friend works for the Government in detecting stenographic communications said that any wide spread use of stenography could really hamper the government.

      John Ashcroft: Miss, take my dictation.
      Secretary: MUAHAHAHAHA! (shuts down government)

      perhaps you meant steganography?

      --

      I am Sartre of the Borg. Existence is futile.
    12. Re:Is this limited to FreeBSD only? by cpghost · · Score: 2, Interesting

      Reveal the secret key to this obviously encrypted file, or face contempt of court and an automatic prison sentence.

      You can encrypt two (or more generally N) messages with different keys into the same encrypted file. If confronted with the above ultimatum, reveal just one key and keep the very important information secret just as before.

      Of course, many messages encrypted into the same file would draw suspition from cryptanalysts, but those experts are in rare supply and regular police would generally stop bothering you if they can see one mildly incriminating decrypted message (surely, it has to be a a nice bait).

      Steganography comes into play if you want to hide the secondary secret messages in the multi-message encrypted file...

      --
      cpghost at Cordula's Web.
  5. Hiding pr0n? by Realistic_Dragon · · Score: 4, Interesting

    I used to use this kind of thing to hide certain, ahem, suspect images on the Acorn machines at school.

    Of course being an adult now it's not as required, but I suppose it might be able to hide offensive pr0n images inside more innocent ones - so that anyone looking finds pretty mild things and stops there, without being able to find things that would get you looked at oddly in church :o)

    --
    Beep beep.
    1. Re:Hiding pr0n? by Anonymous Coward · · Score: 3, Funny

      The act of renaming your porn files to "StudyNotes.jpeg" is not steno unfortunately :)

    2. Re:Hiding pr0n? by Ayaress · · Score: 4, Interesting

      An interesting technique for hiding "questionable content" on your computer is to zip it up and rename the file something like syskrnl32.dll or winld64.sys or something important-sounding, then putting it in c:\windows\system. Back in the days of windows 3.11, I could go into DOS and do an attrib +d on it, but they seem to have taken the d attribute out since Windows 95.

    3. Re:Hiding pr0n? by h8macs · · Score: 2, Funny

      Church!? Wha??? I thought all the BSD folks were labeled heathens and heritics, walking the strut of the daemon!

      --
      :-( --- argh. Despair, I owe again. :-b
    4. Re:Hiding pr0n? by Timmmm · · Score: 2, Interesting

      There was always the old thing where you prefix a directory name with some odd character... maybe '\0' or something... Cant remember exactly... Then explorer wouldn't see it.

      2000/xp fixed that.

  6. Stego is so old news by Anonymous Coward · · Score: 5, Funny

    I've been using it for years, posting messages like "allah is great" on Fark photoshop contests.

    Just raising the background chatter to a dull roar.

  7. Good stuff, but... by VargrX · · Score: 5, Interesting

    my problem wrt steganography is that it 'feels' more like security through obscurity than an actual cryptographic regime (ala gpg encrypted attachments, etc). Other than that, neat stuff.

    --
    Sometimes people just have to learn and adapt to change, it is one of the requirements of being a living thing.
    1. Re:Good stuff, but... by Realistic_Dragon · · Score: 5, Interesting

      You can always encrypt first then hide later.

      Security through obscurity is fine _as an additional layer_ - can't even begin to decrypt something you can't find.

      --
      Beep beep.
    2. Re:Good stuff, but... by Phigs · · Score: 2, Insightful

      When he attached the files, he also encrypted them didn't he (with the passphrase). In the article he made a point to showing off all of the encryption standards supported by the utility.

    3. Re:Good stuff, but... by ReTay · · Score: 4, Interesting

      Well again this falls on the user.
      When I Steg an image I encrypt the text first then plant it into the picture.
      Even if you figure out that the image has been Stegged you won't know if you get the
      Method I used to put it in because you can't read it. But all the receiver needs to do is use the correct decoding in Steg and then un encrypt the images. You may be able to tell there is something in the picture but reading it is another matter.

    4. Re:Good stuff, but... by Lumpy · · Score: 4, Interesting

      all of this are nothing more than really old hacker tricks and tips.

      The results of my wardialing from payphones or my list of machines/users/passwords was always only on removeable media, encrypted, and then simply hidden in gif files.

      Back then the Feds and the other goons that you heard harassing others or trying to jail them were not savvy/smart enough to dig very deep. Hell we use to openly trade information in Gif files on a national BBS, although we did get sloppy. The more naked the chick in the picture, the better the info was inside it with one exception... targets we were after were in the "ugly" files.

      --
      Do not look at laser with remaining good eye.
    5. Re:Good stuff, but... by Frymaster · · Score: 4, Funny
      it's like the army.

      you put your soldiers in armoured transports... but they still wear camoflauge!

    6. Re:Good stuff, but... by jxs2151 · · Score: 4, Interesting
      Here's the deal with encrypting with PGP (GPG, etc.):

      It leaves a telltale header "-----BEGIN PGP MESSAGE-----"

      This makes it very easy to find encrypted messages as you can apply a simple filter.

      One of the benefits of steganography is that is looks like a JPG file being emailed or a JPG(PNG) sitting there on a website. Without very special software there is no easy way of even knowing that the picture of grandpa on the tractor is anything but a picture of grandpa on the tractor.

      When I was playing with it, I would encrypt the text using PGP then embed it in a image using JSteg. It was fun but not particularly useful since nothing I had to say or email was worth anything to anyone important. Having said that, should (when) the revolution comes it will not be televised, it will be stegged so I'm keeping those skills.

    7. Re:Good stuff, but... by lpp · · Score: 4, Funny

      Except here, we're decorating the armored transport with camoflaged soldiers...or something. ;)

    8. Re:Good stuff, but... by dfay · · Score: 4, Interesting

      Cryptography IS security through obscurity... mathematical obscurity. You either choose a secret (a prime or a password) to encrypt something, or you choose a secret (which picture, which algorithm and settings) to hide something using stego.

      Basically, encryption is hiding a needle in a very large haystack, and stego is hiding a carefully disguised strand of hay in a not-so-big haystack. The end result is that similar attacks are required to break either scheme (theoretically), so from a conceptual point of view neither should be preferred over the other.

    9. Re:Good stuff, but... by jmv · · Score: 4, Insightful

      Not exactly. As someone suggested, it's possible to encrypt first, but the real advantage is that if done properly, nobody can even prove you sent a message. Even if the interceptor knows the steganography method, unless they have the key, they can't prove the last bits of your wav file is a secret message and not just normal noise from your microphone.

    10. Re:Good stuff, but... by Analogy+Man · · Score: 2, Insightful
      This reminds me of the fake rocks folks use to hide an extra house key...

      ... The bad guys get the same catalogs you do!

      --
      When the people fear their government, there is tyranny; when the government fears the people, there is liberty.
    11. Re:Good stuff, but... by Lord_Slepnir · · Score: 5, Funny

      Damn you. I just spend 10 minutes trying to decrypt goatse.cx

    12. Re:Good stuff, but... by Methuseus · · Score: 5, Funny

      Actually, it's more like painting the armored transport to look like an ice cream truck.

      --
      Two things are infinite: the universe and human stupidity, though I'm not yet sure about the universe. - A Einstein
    13. Re:Good stuff, but... by lysander · · Score: 4, Informative

      a) you can always strip these headers.
      b) you don't have to output to ascii armor. (although I'm certain that the resulting files still have a recognizable, openpgp compliant structure.)

      --
      GET YOUR WEAPONS READY! --DR.LIGHT
    14. Re:Good stuff, but... by HermanZA · · Score: 2, Insightful

      Well, all crypto is obscurity, but not all obscurity is cryptpto. Someone described crypto a s 10% math and 90% muddle...

    15. Re:Good stuff, but... by plover · · Score: 2, Informative

      You are correct in understanding that steganography is different than cryptography. It is possibly the purest example of "security through obscurity" that exists. To address your concerns, read to the bottom of the article where you can see where he experiments with a program called steghide which performs both encryption (using your choice of modern, high strength algorithms) PLUS steganographic hiding.

      --
      John
  8. The great thing about being disorganized... by TWX · · Score: 4, Funny

    ...is that no one else knows where to look to find things that might be sensitive. You can literally hide things in plain sight, but with the amount of crud stacked everywhere physically, and the amount of data strewn about with no apparent labelling (except for the porn of course), no one can actually tell what is important and what isn't.

    Of course, dates don't seem to understand the logic of living in an apartment that already looks like it's been rifled through.

    --
    Do not look into laser with remaining eye.
    1. Re:The great thing about being disorganized... by Lumpy · · Score: 4, Insightful

      you got modeed funny but this is a very useable and strong way of hiding. Not only files but attacks and most anything else.

      If I upload 500 photos a month to the net Each of them contain something in the photo (results of /dev/random in random lengths) and then I fire off one photo in a group of others that has real information, the chances of it being found or even noticed is lower than having a encrypted file cracked.

      I've seen this used many times and is used in nature by birds and fish...

      a school of 500 fish makes it impossible for a predator to single out one specific fish.

      --
      Do not look at laser with remaining good eye.
    2. Re:The great thing about being disorganized... by wampus · · Score: 2, Interesting

      Shortest path and strange attractor combine to form one argument: LAZY SLOB. For instance, my computer desk has piles of empty cans and papers on and around it. They were close to me when I needed them, drinking the Coke or reading the printout, but they got shuffled off when I no longer needed them, and started to form pyramids on the floor and stacks on the desk.

  9. Steg is fairly useful, but it is crackable by j0keralpha · · Score: 4, Insightful

    I use steg sometimes to pass messages i dont want out in plaintext or overtly encrypted, but it has to be passed in such a way that it isnt apparent that a message is there (i.e. email to brother 'See these pics of grandma!'). It is not a foolproof method, but its very useful when you realize you cant trust the encryption itself to hide the message.

    1. Re:Steg is fairly useful, but it is crackable by Sloppy · · Score: 2, Insightful
      MIT proved that stenographic files can be detected nearly 100%
      I don't believe that for a second.

      If you want to earn that informative mod-up, provide a reference.

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  10. How come ... by DogIsMyCoprocessor · · Score: 4, Interesting

    BSD is mentioned 3 times in the post, while the utilities that actually do the work are only mentioned once? This is like titling a post "Processing Images with Filters on Mac OS X" and only mentioning once that you use Photoshop.

    --

    "And this is my boy, Sherman. Speak, Sherman." "Hello." "Good boy."

  11. No... by SuperBanana · · Score: 4, Interesting
    Bad guys in the movies all keep their wall safes hidden behind paintings

    No, bad guys in movies walk into the Rich Dude's house, immediately realize where the safe is, pull the painting away and get whatever's in the safe. How many times have we said that security through obscurity isn't security, and now we're all clamoring about obscuring data to make it safer.

    Data-wise, it seems like you'd need to be hiding a relatively small amount of data. Otherwise, you're like an elephant trying to blend in at an LA cocktail party.

    1. Re:No... by Anonymous Coward · · Score: 2, Funny
      Otherwise, you're like an elephant trying to blend in at an LA cocktail party.

      Delta Burke did this for years

    2. Re:No... by Lumpy · · Score: 2, Insightful

      Yes and no. I dare you or anyone else to locate my valuables in my house. hell they're not even in a safe.

      I used to use hollowed out books in college for safe storage from the idiot friends my roommate had, same as the trick of the first 4 bottles of beer in the fridge were filled with piss, the pattern of real beer versus piss was changed weekly by the beer owner. It kept the mooch friends out of the beer, although was a bit wierd to have bottles of piss in the fridge as far as I was concerned.

      You can blend in if you make that elephant look like it belongs there... release a herd of elephants and your elephant will not be noticed.

      It's the same trick as the fake rock holding your house key.

      --
      Do not look at laser with remaining good eye.
    3. Re:No... by wideBlueSkies · · Score: 2, Interesting

      OK, so you get a bunch of dummy .jpg files right? Fill em up with whatever you have to hide. Then rename them to look like object files.

      So myBankAccountNumbers.jpg becomes mban.o and myMistressesAddressAndPhone.jpg becomes maap.o.

      Then drop em in with your system files. Done.

      On Window$, rename them to .dll or .obj to accomplish the same thing.

      OR, drop them into your MySQL data folder, and rename to pictures to match what's in there. This might work for you if you use MySQL and do regular backups.

      So it's kinda like changing the paintings on the walls to look like sheetrock or bricks.

      I don't guarantee that this would keep forensics guys from finding stuff, but I don't think the first place they're going to look for stuff is in system or development files.

      The only problem here is to keep track of what is what. After a couple of files, it's going to be a pain to remember which file has your pr0n site passwords in it, versus Gramma's cookie recipe.

      wbs.

      --
      Huh?
    4. Re:No... by johndiii · · Score: 5, Insightful

      The analogy isn't security through obscurity, it's finding a better place than behind the painting to hide the safe. Or, perhaps more accurately, securing one's valuables in something that is not recognizable as a safe. If the burglar had to look at a thousand books to determine if even one of them had a secret compartment, it would be a much more effective security measure than a safe behind a painting.

      If you are using stegged files (they do not have to be images) to communicate with others, then you are hiding the channel. This is a potentially very useful mechanism against automated monitoring tools, particularly if the data is first encrypted. Isolated information in high-volume channels can be very hard to detect. Another use would be to help defeat traffic analysis.

      This is not to say that steganography is a magic means of information hiding. But it is one of the useful tools.

      --
      Floating face-down in a river of regret...and thoughts of you...
    5. Re:No... by aallan · · Score: 2, Insightful

      The only problem here is to keep track of what is what. After a couple of files, it's going to be a pain to remember which file has your pr0n site passwords in it, versus Gramma's cookie recipe.

      Well obviously you only have to keep track of one file, the one which holds the list of all the other files you've got with encrypted content.

      . Al.
      --
      The Daily ACK - Eclectic posts by yet another hacker
    6. Re:No... by Ayaress · · Score: 5, Insightful

      Keep in mind that the article said that hiding messages in images is NOT a great way to hide important stuff by itself, but that it could be used as a second layer of security. Lets have four people, shall we? They all run servers, and they all have an important file on there they don't want other people to find. Johnny keeps his file unencrypted and unhidden. Billy keeps his encrypted, but unhidden. Mike hides his in an mp3, but unencrypted. Joe hides his in a jpeg after encrypting it. Johnny's most likely to have his stolen, obviously. But Billy's file is more likely to be found than either Mike or Joe's, even though Mike's has no encryption on the file itself. Even though the person who took Billy's file doesn't have the information in it, finding it it one step closer to stealing it. Now, Mike and Joe are both considerably less likely to have this file found, unless the data theif expects them to hide it in a media file like this. On the off chance that the hacker DOES find the file, though, Mike's is as good as stolen, just like Johnny's. However, Joe is the most secure of the bunch. Not only is his file encrypted, but it's also hidden, meaning it's unlikely that the hacker will even get the encrypted version. They can't crack what they can't find. Even after what Johnny did, he can go furthur. Encrypt his password, hide the text in an image, rename the image to a .dll or .o and hide it in a system directory. Sure, it's not 100% secure, but it's better than leaving even the most secure file laying around.

  12. Really cool demo... by veecee_veecee · · Score: 5, Interesting

    This was my first exposure to a steganopraphy demo....Written by the author of a bunch of books on Computer Networks and Operating Systems... http://www.cs.vu.nl/~ast/books/mos2/zebras.html

  13. Bad Guys? by philovivero · · Score: 5, Interesting

    All the BAD GUYS hide their safes behind pictures? Is the metaphor you're trying to paint that BAD GUYS use steganography? The government propaganda wars are working. Newspeak is ingrained.

    Every citizen of these modern times is a criminal, and because everyone is a criminal, everyone should use steganography. Most criminals are not BAD GUYS, but instead, good loving parents, patriots, and friends to society. It no longer makes sense to equate criminal to BAD.

  14. Not so good.. by tr0llx0r · · Score: 5, Informative
    Stegdetect is an automated tool for detecting steganographic content in images. It is capable of detecting several different steganographic methods to embed hidden information in JPEG images. Currently, the detectable schemes are
    • jsteg,
    • jphide (unix and windows),
    • invisible secrets,
    • outguess 01.3b,
    • F5 (header analysis),
    • appendX and camouflage.
    Stegbreak is used to launch dictionary attacks against JSteg-Shell, JPHide and OutGuess 0.13b.
    1. Re:Not so good.. by Lumpy · · Score: 2, Insightful

      and it becomes 100% useless if you make it trigger tons of false positives.

      if EVERY picture on a website trigger's it's detection and yet you find nothing in them you begin to suspect the usefulness of the tool.

      here lies the true power in stenagraphy.

      --
      Do not look at laser with remaining good eye.
    2. Re:Not so good.. by jpetts · · Score: 2, Funny

      and it becomes 100% useless if you make it trigger tons of false positives.

      That's right: for every picture with a real hidden message, you have 10,000 with the following text:

      "What the fuck do you think YOU'RE looking for?
      Madonna"

      --
      Call me old fashioned, but I like a dump to be as memorable as it is devastating - Bender
  15. Are there secrets in the opensource images? by ksheka · · Score: 4, Interesting

    First time I read the headline, I thought it was implying that there are secret messages in the icons/images that are part of the freeBSD installation. Which brings me to wonder: what prevents people from putting messages hidden in the KDE or Gnome icons and such?

    (Maybe a "If you can read this, you're too paranoid" sort of message in the Redhat splash picture?)

    --
    alias uptime="echo '5:33pm up 22342352324 days, 6:28, 2124315623 users, load average: 2432.40, 12312.31, 123123.19'"
  16. How to hide files in windows by j_dot_bomb · · Score: 3, Funny

    Simply rename its extension to .dll. It will fit right in to the gigs of OS files.

    1. Re:How to hide files in windows by Walkiry · · Score: 3, Funny

      Yeah, I'm sure every user has a monstercock.dll file in their windows folder ;)

      --
      ---- Take the Space Quiz!
    2. Re:How to hide files in windows by cmdrbuzz · · Score: 2, Funny

      Yeah, Bill Gates trying to prove he's not Micro-soft

  17. Steganographers Need To Hide Their Tools Too by Anonymous Coward · · Score: 3, Insightful

    I have yet to see a good treatment of the necessity of hiding the fact that one may have knowledge of or tools capable of implementing steganography. While hiding data is a nifty thing, it's not of much practical use unless you can also hide the code - the tools that you use to embed and deembed your steganographically hidden files.

    Adding hooks to libraries and hiding executable code in data areas and coming up with slick ways of calling into that code when you actually do some stega processing is an area ripe for exploration. It may be more challenging than data hiding as well, especially when you consider the huge libraries of md5sums for all known executables and libraries that are maintained and distributed by computer forensics people.

  18. Does this mean ... by value_added · · Score: 2, Interesting

    I can hide my entire pr0n collection in a single gigpixel image?

    Seriously, though, I read a news article some time ago describing how the FBI are onto such data hiding techniques after discovering terrorists (ok, "Arabs") had been posting stego encrypted messages in images posted to various popular terrorist (there I go again!) websites.

    Don't know to what extent they're "onto" it (they never say, do they?), but I imagine looking for secret clues can be a full-time job.

  19. I wonder . . . by lavaface · · Score: 5, Interesting

    What happens if you edit the file in a graphic utility? Does it alter the hidden info? Destroy it? Do different actions (hue shift, paining-on-top) affect the outcomes?

    1. Re:I wonder . . . by The+Darkness · · Score: 5, Informative
      What happens if you edit the file in a graphic utility? Does it alter the hidden info? Destroy it? Do different actions (hue shift, paining-on-top) affect the outcomes?

      Of course.

      These utilities usually use bits that will not make a change apparent to a human observing the data with our normal senses (ie. the last bit in each color field) so obviously doing anything to change the bit pattern will destroy the message.

      --
      There are two kinds of people: 1) those that need closure
    2. Re:I wonder . . . by gosand · · Score: 2, Interesting
      What happens if you edit the file in a graphic utility? Does it alter the hidden info? Destroy it? Do different actions (hue shift, paining-on-top) affect the outcomes?

      Hmm. If it does, you could use it to your advantage. Encrypt your message. Use steg to hide it in an image. For that added level of (ob)s(e)curity you could hue shift the image whatever values you wanted before hiding your message in it. Adjust the values to "normal" before sending it.

      To completely decrypt it, you would have to be able to set the R,G, and B values to the correct ones, then de-steg it to get the message, then unencrypt it.

      Seriously, do any of you have information that is THAT secret? :-)

      --

      My beliefs do not require that you agree with them.

    3. Re:I wonder . . . by molafson · · Score: 2, Interesting

      Seriously, do any of you have information that is THAT secret?

      Not me, but I can imagine various scenarios where steg would be useful. e.g. espionage -- where you use a one time pad to encrypt the info, then steg to insert it in a jpeg which you could transport through airports, etc. on a memory card in your digital camera. Much less incriminating than carrying a floppy or cd...

      I can imagine that a similar "stealth" technique could be employed using mp3s and an iPod.

    4. Re:I wonder . . . by joto · · Score: 2, Insightful
      To completely decrypt it, you would have to be able to set the R,G, and B values to the correct ones, then de-steg it to get the message, then unencrypt it.

      This is usually not completely reversible. You'd better experiment on the file before doing that, or you'll lose data.

  20. why the old stuff? by Tom · · Score: 4, Interesting

    Why do we get articles about tools that are what? 3 years old?

    There is enough new and interesting (and better) stuff around. For example, rubberhose would've been much more interesting to read about.

    --
    Assorted stuff I do sometimes: Lemuria.org
  21. And how is that different than... by Anonymous Coward · · Score: 3, Insightful

    Posts/books/whatever that say "My webserver is Linux" (No it is not. It is Apache) "How to use LInux to serve Windows files" (No, you are using SAMBA and LDAP.) "Robot runs on Linux" (No, its some custom code that runs ON the GNU/Linux environment)

    Where have YOU posted objecting to abuses like the above?

    Well?

  22. Examples of good steno-encryption by MURD3R3R · · Score: 5, Interesting
    The first and probably best steno-encrypted file I ever remember seeing was the first linux no-modchip hack for the XBOX, from http://xbox-linux.sourceforge.net/docs/007analysis .html

    It is a good read.

    Lies, Deceipt, and Trickery

    The rest of the hack does everything it can to hide itself. There are two major components to the disguise: the "fake" hack, and the JPEG image of Tux.

    Firstly the fake hack. The fake hack begins at offset 0xD00 in the game save. If you disassemble the game save, you are likely to notice that some interesting stuff begins there. It appears to be getting it's own address, turning off write protection in memory, patching the kernel, and calling XLaunchNewImage. There is some branching logic which seems to imply that it is patching the kernel in different ways, depending on the value of location 0x8001FFFF in memory. The patches even resemble those that certain modchips perform, some are even at the same offsets. The path to the linux xbe is noticeable as well, at offset 0xFD5.

    Upon initial inspection this code seems very plausible. When you look at it closer, there are a lot of inconsistencies. Firstly, the value being tested at 0x8001FFFF does not match up to any known kernels that I know of anyway. Secondly, a lot of the patches to the kernel are junk code and don't make any sense. Thirdly, there is no call to IoCreateSymbolicLink in order for the call to XLaunchNewImage to work. XLaunchNewImage checks to make sure that the path to the executable resides on the 'D:' drive to prevent applications being launched from the hard drive, and therefore only from the DVDROM drive. Without remapping \Device\Harddisk0\Partition1 to 'D:' using IoCreateSymbolicLink, there is no way for the kernel to find the default.xbe as specified.

    Secondly there is the Tux JPEG. Starting at offset 0x1080 in the game save is a JPEG image. This is obvious from the text JFIF which is present in all JPEG headers. If you extract out this block, you get a nice little picture of Tux. Seems like a harmless little addition by a linux fanatic. It is typical of linuxheads to stick stuff like this everywhere. In reality, the real hack is encrypted and stored in this image. The practice of storing data in images is known as steganography. Perhaps this doesn't count, as it stores the data in the header and not in the actual image data. It's still rather devious. We'll come back to the contents of the hidden data in a moment.

    1. Re:Examples of good steno-encryption by strictnein · · Score: 3, Funny

      http://xbox-linux.sourceforge.net/docs/007analysis .html

      What sort of security is it when you put a non-hyperlinked URL with a space in it in your post?

      It looks like a link, but I can't click on it... Hmmm... maybe if I copy it and paste it into the browser... no! it still doesn't work!

      Now that's security.

  23. Yeah, steganography by Scholasticus · · Score: 5, Funny

    I've been staring at this pictures of Jenny McCarthy for years now, trying to discover the steganographically hidden messages.

    That's what I told my girlfriend.

  24. pfah. by pb · · Score: 2, Informative

    Hiding secrets with steganography on Windows, Red Hat, SuSE, and... oh yeah, FreeBSD...

    --
    pb Reply or e-mail; don't vaguely moderate.
  25. Yes, except by Moderation+abuser · · Score: 4, Insightful

    In some countries you can go to prison for using cryptography, in other more enlightened countries you can go to prison for not handing over the keys when asked by the guys in jack boots or for talking about the fact that you've been raided.

    --
    Government of the people, by corporate executives, for corporate profits.
    1. Re:Yes, except by fyonn · · Score: 2, Informative

      that latter case is great britain, for those who are unaware

      *sigh*

      dave

  26. Here's a link to a whole steg. file system: by Courageous · · Score: 4, Informative

    Any discussion of steganography is incomplete without this:

    http://www.mcdonald.org.uk/StegFS/

  27. Great Observation by nurb432 · · Score: 2, Insightful

    This concept is lost to most people. And i agree it just proves how effective slow media manipulation of peoples attitudes is.

    Just like calling downloaders 'pirates' and 'theft'. .Or 'the SUV killed.. ' in time people begin to belive it with out realizing it...

    --
    ---- Booth was a patriot ----
  28. Why put the data in comment blocks? by Anonymous Coward · · Score: 2, Interesting

    I'm curious, why put the encrypted data in the comment blocks for jpeg pictures? By placing scrambled data in these sections you make it pretty obvious that there is a 'hidden' message in there.

    Why not make the data truly hidden by using the least significant bit within each of the RGB values for a 24 bit color image? 8 bytes of image data can hide 1 byte of data.

    If you can repeat the hidden message enough times you might even be able to use this within a jpeg image and have the message survive recompression of the image or slight image manipulation. When reconstructing the message collect the bits of the repeated message and select the bits that repeat the most.

    I'll have to try to write something quick and dirty up in Python to test this out.

  29. mine by Luveno · · Score: 2, Funny

    I keep mine in topsecret.txt.

  30. Featured on Navy:NCIS by lugar · · Score: 2, Interesting

    They actually had this on Navy:NCIS a couple weeks ago. A terrorist was hiding messages inside of porn images.

  31. Hiding messages in Pics of grandma by Hayzeus · · Score: 4, Funny
    I have found that you can increase the efficacy of this technique by changing the email subject to:

    "See these naked pics of grandma!"

  32. Re:Here's the best reason by Cee · · Score: 2, Funny

    Why is it so hard to make real, clickable links? WHY, Mr Anderson???
    Here's the link

  33. Steganography by Qinopio · · Score: 3, Funny

    Didn't Kevin Nealon hooker already perfect this technique useless on Saturday Night boring Live?

    --
    __________
    [Big Brick Wall]
  34. How? by ThePyro · · Score: 4, Interesting
    How could that that work reliably? Lets say I take a text message, then encrypt it (as all hidden messages should be). At this point, the encrypted bits of the message should closely resemble random noise - assuming the encryption scheme we used was good enough.

    Now I take the encrypted bits of the message (which already look a lot like random noise) and hide them inside the least significant bits of a bitmap file. Lets assume that I'm using a half-decent steganography tool here, and it distributes the bits of the message throughout the image in a psueudo-random fashion.

    So now we've got a stream of encrypted bits, which more or less resembles a stream of psueodo-random numbers. And we've sprinkled these bits all over the place inside the image, so they don't even appear together or in order.

    How does one go about detecting that there's a message in there, reliably? What distinguishes the [pseudo]randomly-distributed [psuedo]random-bits of the encrypted message from the background noise of the image?

    (I am assuming, of course, that the message we're trying to hide is relatively small - at most, 1 bit per byte in the image is modified. Much more than that is like trying to hide a tractor trailer behind a go-kart)

    1. Re:How? by vadim_t · · Score: 2

      I think it's the fact that random data in those places is actually an uncommon occurrence. And depending on the tool used, it might leave some way of identifying the presence of data.

      Of course it can all be solved by making every image contain hidden data from /dev/random.

    2. Re:How? by Anonymous Coward · · Score: 2, Informative

      You're taking (what looks like) random noise and hiding it in the least significant bits. The least significant bits are not normally random noise.
      You ask:

      "What distinguishes the [pseudo]randomly-distributed [psuedo]random-bits of the encrypted message from the background noise of the image?"

      The thing that distinguishes them is the fact that the background noise in a file rarely resembles random noise. This depends greatly on the file format, but is arguably true in all cases. In your example, a simple entropy check should be sufficient to determine that all is not as it should be. Even with a small message, even the most basic steg detection tool will find this when comparing against statistics gathered when analyzing similar files. The trick with effective steg isn't with emulating randomness, it's making the message look as close as possible to the data that SHOULD be in the file. That's much much harder than simply emulating randomness. For a much better (more detailed) discussion of this topic, check the home page for Outguess and the links from that site.

    3. Re:How? by quantum+bit · · Score: 3, Interesting

      But JPEG is a lossy compression format. The whole point of the format is to eliminate random noise because such noise would just be a waste of space to store. So if there's a picture with a lot of random noise, it's a pretty good sign that something else is going on. For one thing it will be a lot bigger because 'random' (or encrypted) data is much more difficult to compress.

  35. Better compression = more difficult to hide... by Kjella · · Score: 5, Informative

    ...ironically, the better algorithms we get for compressing stuff, the more difficult it is to hide something. It gets really obvious if you start sending around BMPs or WAVs.

    Steganography detection is doing rather well - it simply realizes when the compression is "wrong", that is, if it would have been compressed better if there wasn't hidden info in the image.

    By the way, for legal purposes it might be just as efficient to use something like Bestcrypt's hidden container - it's a very smart, yet "dumb" form of steganography. You create an encrypted container, which has a key. Then you create a hidden container inside the encrypted container, with a different key. There's no way to detect the presence of a hidden container - it looks like random data in a container full of random data.

    If required by law to provide a key, provide the key to the outer container. When asked about a hidden container, go "What hidden container?" Even if it is very likely that there is one, there's no proof of that. Even the wackiest RIP bill doesn't require you to provide decryption keys to things that doesn't provably exist.

    Kjella

    --
    Live today, because you never know what tomorrow brings
  36. Steganography Filesystem by commonchaos · · Score: 3, Interesting
    What I would like to be able to see is the ability to use a large directory of files as a stenographic "filesystem" of sorts. For example: Mount the pictures of your roadtrip to Antarctica as a loopback device.

    Ideally the software would only need to be pointed to a directory or a wildcard, given a passphrase and be able to just "mount" those files. I.E.
    mountsteg /home/bob/antarctica_roadtrip_pictures/ /mount/secret/
  37. Some Steganography can be detected by aepervius · · Score: 2, Interesting

    I do not have the web page here but somebody can certainly search in slashdot and find it. How to detect it ? The guys which made the thesis/program show that even if the lowest bits seems random, in reality if you take only red / blue or green component you see "forms" appears. And thus on steganographied image you see those form disappear, whereas on non stenographied they appear. Note that you can avoid that. So people using some of those program think they are safe, but instead a third party can show that they are exchanging secre. And knowing you are sending something hidden in some case can put you in a bad position. Even in the US.

    --
    C. Sagan : A demon haunted world:
    http://www.amazon.com/gp/product/0345409469/
    visit randi.org
  38. Why bother... by ThenAgain · · Score: 2, Funny

    ...hiding your secrets in an image? Just write them in Perl!

  39. Really, what do you guys need to hide? by teamhasnoi · · Score: 2, Interesting
    This is not a troll, but I've looked at encryption many times and wondered what I needed it for. Sure, I probably have secrets like anyone else - but what do Slashdotters need to encrypt? Bank records? Isn't that info on the bank's pc, unencrypted? Diaries? I'm pretty forthcoming, so there's not alot I wouldn't tell someone else, but for others, why wouldn't a password do? Most of what is in a diary could be constructed from your behavior in public, or just asking around.

    Of course, if I lived in China and was plotting a demonstration, I'd need to hide that info. Or bank heist details.

    Currently, encryption is used freestanding by people with something to hide - and is viewed by 'the masses' as a terrorist/theft/dishonest tool. Why isn't encryption used in *everything*? I appreciate the need for encryption, but until it is everywhere and easy to use, it will have a black cloud hanging over it. Which makes it much easier for those who would like to abuse their powers (cough *Ash*cough) to pass laws restricting the use. Thereby reinforcing its reputation as a tool for people who have something (bad, ohohoh very bad) to hide.

    1. Re:Really, what do you guys need to hide? by YankeeInExile · · Score: 2, Insightful
      There are lots of legitimate activities you may engage in that you want to keep to yourself, or a small cadre of conconspirators. Your correspondance with your paramour telling her that what she did last time really turned your crank, and could she bring the golden retriever again this week.

      Or, suppose you are a member of a group citizens petitioning the government for redress, to change some statute you find out-dated, or overly opressive. There are enough hot-button issues that are so politically charged, that anyone who even has the temerity to suggest that they be changed, is branded a pervert, a criminal, a traitor, or worse. (e.g. issues around gun control, legalizing marijuana or prostitution, lowering the age of consent)

      I posit that in the US at this moment, it is actually very difficult for citizens to engage in cogent public discourse on these topics, for fear of being branded. It would behoove you to do your political organizing in private.

      And finally, and perhaps most importantly: Just because one wishes to hold something private with their compatriots, does not mean they are planning a terrorist attack or a bank heist. What I choose to keep private is not subject to debate.

      Now, the second point you make - at the current state of the art, using strong encryption is sufficiently difficult, that it is, in and of itself, a "red flag" that something might not be kosher. The only solution for that is for more and more people to use it more and more frequently.

      This is of course, not without political expense: If suddenly 80% of all person-to-person e-mail is encrypted, and all person-to-group e-mail is at least signed, encryption technology will be front page on the Wall Street Journal, and the political powers for the suppression of thought-crime will demand that it be tightly regulated.

      Encryption technology is restricted under export rules as a "munition." Perhaps a case could be made under the second amendment, that our fundamental freedoms are dependant on not only the right to bear arms in the form of an SKS, but also in the form of PGP.

      --
      How does the Slashdot Effect happen given that no slashdotters ever RTFA?
  40. Hiding secret messages in gzip data by stelo · · Score: 2, Interesting

    Hi all, we have recently published a paper about hiding data in gzip compressed files. For those interested, check out http://www.cs.ucr.edu/~stelo/stego/ Regards, Stefano

  41. Obvious solution... by Lemmeoutada+Collecti · · Score: 4, Interesting

    Use reversable compression. Encrypt the cleartext, package it in a container (subcontained if desired), stga that into the BMP or WAV, compress using GIF/PNG/FLAC as required. Ship product to receiver, they uncompress (since the compression is lossless, no bits lost there), de-steg, decrypt, decrypt, viola recipe for brownies.

    Also tends to confuse the detectors, as they are not trying all (n) possible ways the file could have been compressed to look for steg data in the raw file, only looking at the compression errors in the current format.

    For every scheme, a crack, for every crack, a new scheme. What fun the merry go round is!

    --

    You can have it fast, accurate, or pretty. Pick any 2.
  42. steganography isn't secure at all by nuintari · · Score: 2, Interesting

    This is all well and cute, but realistically speaking, no implementation of steganography is all that secure. Detection is fairly easy, and then a dictionary attack against the encrypted contents is used. [Link]

    Its a twofold problem as I see it.

    1. The hiding of encrypted data/images/text/whatever inside of an image file is based on the notion that security through obscurity raises the bar. Anyone who studies security knows that this is just not true. Since suspicious images are simple to detect, this layer of obscurity offers no real data protection than just encrypting the file and naming it "this-is-secure-data.blowfish". Its just a matter of what encryption method is used to secure the contents. Which brings me to my second point.

    2. Since the basis of steganography is to hide information inside an image without disturbing the visual image, the size of the data contained within, from my understanding, is severely constrained. Thereby limiting the effectiveness of this technique in all but very large, suspicious, and still easily scanned images.

    SO, by hiding one's data inside an image with this technique, one is left with a picture of a table that is just screaming to be scanned for its suspicious content.

    --

    --Nuintari

    slashdot : where an opinion can be wrong.

    1. Re:steganography isn't secure at all by Inuchance · · Score: 2, Insightful

      I've written a stenography utility once (called bmphide, doubt it's still available for download anywhere), and the noise that resulted from using it was hardly detectable, especially on photographs. Plus, to solve the security issue, I threw in a simple XOR encryption method into it... It didn't have any methods to determine if it was decrypted successfully, so the only way to brute force it would be to try the file after every password and see what happens.

  43. Re:Commercial for BSD! by sremick · · Score: 2, Insightful

    Terrorists aren't the only ones who want encryption any more than shipping departments are the only ones who want box-cutters. Maybe we should blame the USPS and airlines for also aiding terrorism. Paper-shredder manufacturers too. They helped Enron break the law, didn't they?

    Before you knock FreeBSD for supporting a form of encryption (encryption being something that every law-abiding citizen should be entitled to in order to protect his or her privacy), maybe you should tell us what OS YOU use so we can check to make sure it doesn't support encryption tools like the ones you're faulting FreeBSD for.

  44. School of Fish by a!b!c! · · Score: 2, Insightful

    I remember seeing an omni movie about sharks that found a school of fish, and ate them all. One at a time.

    I thought the strategy behind the school of fish was: if there are 500 fish, and I am one of them, then my odds of me getting eaten during an attack is 0.2% The larger the group, the lower the chance that *I personally* get singled out.

    I don't think the predator cares about going after a certain fish. Unless if finds one that has really cute eyes. It just wants a fish.

  45. In BSD by cybercuzco · · Score: 2, Interesting

    Why not hide stuff -IN- FreeBSD. It wouldnt be that hard to write a utility that inserted "typos" into comments that when decoded could be used to pass messages or even hide images.

    --

  46. Done properly... by wirelessbuzzers · · Score: 3, Informative

    ... the real advantage is that if done properly, nobody can even prove you sent a message.

    While this is true, in fact it is the definition of good steganography, I'm not aware of any steg that actually achieves this. For a while, there were no public methods that break Outguess, but that was broken over a year ago, and I don't think there are any stego schemes still standing. The problem is that the last bit of your WAV file or GIF isn't very random in a real picture, not nearly as random as you might guess. This makes it quite difficult to make a scheme which hides there effectively.

    --
    I hereby place the above post in the public domain.
  47. Main reason to use steganography: by jeduthun · · Score: 3, Insightful

    You're missing the point.

    The main reason to use steganography is that it hides the fact that you are hiding something. If you use straight encryption, it is obvious that you have something sensitive that you want to encrypt (most people don't go to the trouble of encrypting things otherwise). Steganography helps you fly under the radar and send encrypted data without people knowing that you are sending encrypted data in the first place.

    If someone is already suspicious of you, then of course they can analyze your communications and perhaps notice any steganographic attempts. But if not, you may be able to escape notice longer by exchanging seemingly innocuous data than by exchanging industrial-strengh encrypted data.

  48. Re:Commercial for BSD! by pgr0ss · · Score: 2, Insightful
    Read the article. At the bottom, it says:

    The only question you may be asking yourself is "why use such a utility?" Probably the most common use is to safeguard passwords. We all know that we should use different passwords for various tasks. For example, you should use a different password to log into your computer, another to retrieve email, another for online banking, and yet another for when you create an account on a web server. It can be very handy to make a text file of each password and its usage, and to safeguard that file by hiding it in a place no one would suspect to look.

  49. Re:Commercial for BSD! by sremick · · Score: 3, Insightful

    Ok, so you're a law-abiding citizen. And you have no need. So obviously, no one else who is law-abiding has a need, and the only the Bad Guys do? C'mon.

    You say you "fail to see legitimate uses". Very well. Would you have a legitimate use for a safe? I will assume "yes"... we all have valuables. So let me ask you this: does it make more sense to put the safe in the middle of a wide open room, standing out, maybe even with a sign that says "The safe is here!" Or maybe instead, hide it somewhere. At least in the closet. Or behind a fake wall panel. Buried in the basement? Recessed in the wall behind a dresser?

    Steganography is the equivalent of hiding the safe somewhere where it wouldn't be located or expected. If I have passwords on my computer... even if I encrypt them, does it makes sense to store them in /home/scott/topsecret/passwords.tgz or instead in /home/scott/junk/pics/mycat.jpg ? If someone somehow accessed my account, they'd know exactly what file to grab and could then make a concentrated effort to crack into it. While if I disguise the file as something it isn't, they'll pass over it. Why isn't this a legitimate use?

    Steganography is neither in itself good or bad. It's a tool which can be used for good or bad. Like a steak knife. Don't condemn it just because all you can think of are the bad uses.

  50. What I'd like to see by phr1 · · Score: 3, Insightful

    is for the standard version of mkfs to fill empty disk blocks with random data (from /dev/urandom) BY DEFAULT instead of zeroing them. That way you can run a stego file system in the unused blocks and it will be indistinguishable from ordinary randomized free blocks. If every BSD (and ideally every GNU/Linux) distro shipped with that feature turned on, there would be no way to tell a stego user from a non-user.

  51. Re:Commercial for BSD! by t0ny · · Score: 2, Informative
    Nah, its got its little niche 'market'. These open source things are like gods- they only die when they run out of worshippers.

    Now if we were going just by technical merits (or even moral merits) something like Apple should have died its righteous death a long time ago. But, I guess people need to worship on the altar of 'alternative', even if they are getting robbed blind for it. IMO, Apple is the worst monopolist ever (well, aside from someone truly attrocious like DeBeers).

    --

    Manipulate the moderator system! Mod someone as "overrated" today.