36 points · by CWuestefeld · 16y ago · 41 comments
Heck, it was on Law and Order last year: http://allthingslawandorder.blogspot.com/2009/10/law-order-s...
It's really not that much of a win.
stegdetect is jpeg-only (yes, LSB steganography on raw audio/video is really, really lame, but it's really easy, too) and it really depends on the input media. Using stegdetect itself on the sender's side with various source media makes it easy to avoid detection in-transit.
Plus, any statistical analysis tool is only useful for long messages (higher signal:noise ratios). If you're sending one-liners in a 2MB photo, for all intents and purposes, the original photo hasn't been modified and is really difficult to catch.
I was overly terse in dismissing steg; I didn't really provide a rationale for my comment. But I expect you'll agree with me anyways. Image steganography is a pet trick. Given the constraints of a meaningful image file, it's unlikely you're going to come up with a technique for encoding a covert channel that will be truly hard to spot.
Meanwhile, it's a lot of added effort for a very minimal theoretical gain (and a very likely severe practical loss) in operational security.
copy /b IMG_0010.JPG + SecretCodes.rar PartysAreFunLOL.jpgThe article says this is the first time it's actually known to have been used for nefarious purposes. That doesn't exclude prior usage for fun and experimentation, or even for practical purposes (say, wartime or corporate communications).
The accused spies posted the seemingly mundane photos on publicly accessible websites, but then extracted coded messages from the computer data of the pictures, according to the criminal complaint filed by the FBI. Although computer scientists have theorized about the existence of this communication technique for over a decade, this is the first publicly acknowledged use of the technique.
"There have been occasional claims in the press about al Qaeda using it, but never with any evidence or even attributed to specific government officials," said Steven Bellovin, a professor in the Columbia University department of computer science. "Here, we have court papers filed by the FBI under penalty of perjury that says these folks were doing it. The threat, in other words, is no longer hypothetical."
Therefore the cryptography does not seem to have been the weak link. (In truth, it seldom is.)
Were I russia, and if these are their spies, I don't think I'd be too sad to lose that pair.
But there is no shortage of popular sites that will let you post innocuous seeming files unchanged that could serve this purpose. So that is not a problem.
Incidentally any form of encryption becomes even harder to break if you compress the message first. Furthermore this results in a shorter encrypted message, which is easier to hide. So the correct strategy is always compress, then encrypt, then encode.
It's true in general that shorter messages are harder for an attacker to decrypt.
http://en.wikipedia.org/wiki/Unicity_distance
It's not really significant in this case, though. The password was written on a slip of paper.
What's more, if you encrypt by using, say, ZIP, then the resulting file will have a known header, and that makes it tremendously easier to decrypt.
I've read that one of the factors that led to breaking Enigma was that Germans would habitually end their messages with "Heil Hitler". By assuming that was the ending of most messages, the mathematicians were able to work backward to find the key.
When space isn't a constraint, it's fairly easy to greatly reduce the advantage a known plaintext block gives an attacker by using random padding. Now instead of having to try every key looking for your zip header from offset 0, they have N places to start. There are techniques to mitigate this problem as well, but it's much more of a hassle. In any case, SOME simple compression is generally the order of the day with stenography message passing; you only get a few bits per pixel (usually not even a byte per pixel) so space becomes a premium.
Perhaps known-plaintext attacks are how the FBI managed to produce an example of a message with hidden data in it. To me, it seems like such a thing would be very difficult to prove. Anyone with sufficient sophistication to carry out such an attack probably has the sophistication to hide their ability to do it (via, say, hidden truecrypt volumes as workspaces). Because the FBI & DHS has leveled some pretty absurd allegations at suspected terrorists in the past, including random doodles being secret attack plans, simple home movies being terrorist scouting videos (“Do you see the way the camera flicked towards that trash can? That's signaling the terrorists that this trashcan is a good place for a bomb.”), and innocuous phone conversations being elaborate code systems. In all cases, the DHS and FBI experts swore that only someone hyper-trained could ever detect the hidden messages; a normal person could not even if they were told it was there. It was BS, of course, but people can be so afraid of terrorism that they're too scared not to give that kind of argument credibility.
But that said, techniques for breaking encryption rely on identifying redundant information in a message. The less redundant information there is, the harder this is to do. Sure, the known header on a ZIP is useful redundancy. But the amount of introduced redundancy is much, much less than the redundancy you got rid of by moving from a document in English to binary gibberish.
Underlying this is a fundamental fact of information theory, which is that messages with a high information density look like white noise. A slight mistake in the message you have results in something that looks like another potentially valid message rather than something that is obviously wrong. This makes it much harder to verify that you're on an intermediate step towards properly decrypting the message.
Therefore increasing information density makes an attacker's life harder. Compression increases information density by a lot, and so makes the encryption harder to break.
- stego the messages locally in photos
- upload photos to a small photo sharing site set up by the agency
- use a secure erase program on the photos
The software on the "photo sharing site" can remove the steganography data from the photos before displaying them on the site. All of the steps can even be written into the "photo sharing" desktop client software provided to users on the site. If a scheme like this had been properly implemented, the US government wouldn't have the contents of any outgoing messages to use in their case. The stego can be disguised as a fun easter egg to let site users play secret agent. (Press Ctrl-Shift-0-0-7 to reveal the "invisible ink dialog.")A challenge: can one use a scheme like this to also refuse government counter-spies' access to incoming messages?
But if you can hide communications in photos stored on, say, flickr, then nobody knows that communication between individuals is occurring. And because the images are publicly available, even when the authorities figure out what was happening and look into server logs, there's going to be a lot of noise in there, so they probably won't be able to say exactly who was receiving the messages.
(I suppose if there are many messages, they could do some cross-correlation between them, but I also suppose that savvy bad guys would expect that and take measures to make that noisy as well.)
Once a fact of agent's communication is established, the encryption doesn't matter all that much. It's only a matter of time for beating the keys out of you (ok we know FBI doesn't do that anymore).