1 00:00:00,840 --> 00:00:02,000 Good morning! 2 00:00:04,760 --> 00:00:06,220 How's everybody doing today? 3 00:00:07,840 --> 00:00:11,000 Mildly hungover? Really hungover? 4 00:00:11,600 --> 00:00:15,280 Alright, how many people here were at Caesar's Challenge last night? Raise your hand. 5 00:00:16,380 --> 00:00:19,180 How many people were at the Ninja Networks party? 6 00:00:20,720 --> 00:00:22,660 How many people were at the 303 party? 7 00:00:26,460 --> 00:00:27,940 And he's up this 8 00:00:27,940 --> 00:00:31,920 morning, surprisingly. How many people were at a completely different party? 9 00:00:33,700 --> 00:00:36,020 Black and white ball. How many people were at the black and white ball? Thank you. 10 00:00:36,900 --> 00:00:40,020 How many people don't remember very much of last night? 11 00:00:41,620 --> 00:00:43,940 How many people are still trying to figure out why they're 12 00:00:43,940 --> 00:00:44,640 in Las Vegas? 13 00:00:49,320 --> 00:00:51,820 Alright, we have one quick schedule change to announce. 14 00:00:52,220 --> 00:00:55,820 At 1 o'clock, 1300 in this room, we have a 15 00:00:55,820 --> 00:00:59,720 different Max speaking. We have Max Mullen talking about how to hack 16 00:00:59,720 --> 00:01:03,500 your car. That's the one schedule change that we know of right now. 17 00:01:03,560 --> 00:01:07,660 1 o'clock in this room. And just so that we can keep things on 18 00:01:07,660 --> 00:01:11,640 schedule and get everything going, I present to you Mr. Rago. Thank you very much. 19 00:01:17,400 --> 00:01:18,840 Hey guys. You hear me okay? 20 00:01:19,960 --> 00:01:23,800 Out there? Alright. My name's Mike Rago. I work for 21 00:01:23,800 --> 00:01:27,580 VeriSign as a member of their incident response and forensics team. 22 00:01:29,300 --> 00:01:31,580 Probably asking yourself, what the hell is a guy from 23 00:01:31,580 --> 00:01:35,540 VeriSign doing here? I've been doing a lot of research 24 00:01:35,540 --> 00:01:38,240 in steganography for the last four years. 25 00:01:39,320 --> 00:01:43,200 I think a motivating factor for me was certainly 9-11. 26 00:01:43,960 --> 00:01:47,580 Like many of the people in the audience, I knew people that were 27 00:01:47,580 --> 00:01:51,600 there, including myself. And I happened to be there that 28 00:01:51,600 --> 00:01:55,420 day in New York City, teaching on 33rd Street 29 00:01:55,420 --> 00:01:58,800 when all the stuff happened. 30 00:01:59,540 --> 00:02:03,580 So I think that's been kind of a motivating factor for me. I'm sure you've heard 31 00:02:03,580 --> 00:02:06,360 a lot of rumors about Al-Qaeda and 32 00:02:07,220 --> 00:02:11,120 Midland supposedly using steganography for various types of 33 00:02:11,120 --> 00:02:15,620 communications and things of that nature. And it's raised a level 34 00:02:15,620 --> 00:02:19,440 of awareness such that NSA, DOD, a lot of other companies 35 00:02:19,440 --> 00:02:23,300 have approached me about some of my research, and so I'm here to 36 00:02:23,300 --> 00:02:27,560 demonstrate some of my tools for steganalysis for identifying hidden messages 37 00:02:27,560 --> 00:02:30,940 within digital photographs, MPEGs, and so forth. 38 00:02:32,600 --> 00:02:35,440 So I'll go ahead and get right into the presentation. One of the things I want to 39 00:02:35,440 --> 00:02:39,340 say is, I'm sure all of you have seen at least one presentation 40 00:02:39,340 --> 00:02:42,660 on steganography, whether it be here at a prior DEF CON conference 41 00:02:43,380 --> 00:02:47,040 or at some other conference. Where I think my presentation 42 00:02:47,040 --> 00:02:50,800 differs somewhat is that I'm going to focus a little bit more on the 43 00:02:50,800 --> 00:02:54,820 steganalysis and cryptanalysis of those steganized files, rather than just 44 00:02:54,820 --> 00:02:58,860 gloss overview of what steganography is. In addition to that, 45 00:02:58,940 --> 00:03:02,600 I think there's been a lot of presentations on steganalysis, but they focused 46 00:03:02,600 --> 00:03:06,880 a little bit more on statistical analysis. My analysis is more 47 00:03:06,880 --> 00:03:10,960 signature-based, and I'll talk more about that as I go through the presentation. 48 00:03:15,000 --> 00:03:16,800 So for those of you who have never seen 49 00:03:17,040 --> 00:03:20,940 steganography or don't know what that is, I'll go through a brief overview of that. Like I said, 50 00:03:20,960 --> 00:03:24,720 I'm not going to spend a lot of time talking about that. You can go to prior DEF CON 51 00:03:24,720 --> 00:03:27,920 downloads to download other presentations on steganography. 52 00:03:29,720 --> 00:03:33,020 And then we'll get into some deep steganalysis 53 00:03:33,020 --> 00:03:36,800 and trying to find those hidden messages within those photographs and those 54 00:03:36,800 --> 00:03:40,880 video and WAV-type files. And then 55 00:03:40,880 --> 00:03:44,880 we'll blend that into cryptanalysis and distinguish between the difference of those, 56 00:03:45,740 --> 00:03:47,020 talk about different attacks, 57 00:03:47,040 --> 00:03:50,620 attack mechanisms. Once you've identified a hidden message, how do you extract it? 58 00:03:50,700 --> 00:03:54,660 How do you decrypt it? What other types of attacks can you use to reveal 59 00:03:54,660 --> 00:03:58,800 that hidden information? Then we'll talk about forensics 60 00:03:58,800 --> 00:04:03,060 and anti-forensics. If you're using this as an anti-forensics 61 00:04:03,060 --> 00:04:06,940 mechanism, what methods can you use over covert channels 62 00:04:06,940 --> 00:04:10,660 and other types of things for communicating without being identified? 63 00:04:11,120 --> 00:04:14,880 And from a forensics perspective, how can you identify whether 64 00:04:14,880 --> 00:04:19,020 there's steganized files on the machine that you're doing forensics on? 65 00:04:20,540 --> 00:04:22,720 And then we'll talk about kind of where the direction 66 00:04:22,720 --> 00:04:26,680 of this is heading from my personal research and things that I know that other people 67 00:04:26,680 --> 00:04:30,820 are doing. We'll talk about some of the other tools that people are working on out in the 68 00:04:30,820 --> 00:04:31,460 wild as well. 69 00:04:35,960 --> 00:04:39,180 Alright, so, steganography. 70 00:04:39,420 --> 00:04:42,900 From the Greek word, word meaning steganos, or in other words, covered. 71 00:04:42,900 --> 00:04:46,940 And the Greek word graphi meaning writing. Steganography is the process 72 00:04:46,940 --> 00:04:50,900 of hiding a secret message within an ordinary message and extracting it at its 73 00:04:50,900 --> 00:04:54,920 destination. One major caveat to this is anyone else viewing 74 00:04:54,920 --> 00:04:58,500 the message will hopefully fail to identify that there's a hidden message within 75 00:04:58,500 --> 00:04:59,520 the communication. 76 00:05:03,580 --> 00:05:06,580 So, steganography has been around literally for thousands of years. 77 00:05:06,720 --> 00:05:10,820 The Greeks used to use this for various types of communication. It's documented that they 78 00:05:10,820 --> 00:05:12,880 would have a wooden tablet with a hidden message on it. 79 00:05:12,900 --> 00:05:15,740 Covered with wax so that to casual observers, 80 00:05:16,560 --> 00:05:20,460 no one would notice that they were carrying some type of hidden communications. 81 00:05:21,380 --> 00:05:24,260 During World War II, Axis and Allies both 82 00:05:24,860 --> 00:05:28,960 would use various types of invisible inks, whether this be various types 83 00:05:28,960 --> 00:05:31,460 of milk, vinegar, and other types of 84 00:05:32,940 --> 00:05:37,080 hidden type of writing by which you could go ahead and use 85 00:05:37,080 --> 00:05:40,060 some form of heat or something else to reveal the hidden message. 86 00:05:40,820 --> 00:05:43,460 I'm sure you all remember growing up having those 87 00:05:44,340 --> 00:05:48,160 games with the highlighter and you'd be traveling, sitting in the backseat 88 00:05:48,160 --> 00:05:51,980 in the car or wherever it was you were going and go ahead and answer those 89 00:05:51,980 --> 00:05:55,940 questions and use that highlighter and it would reveal the answer to those questions. 90 00:05:56,200 --> 00:05:57,640 So that's a form of invisible ink. 91 00:05:59,740 --> 00:06:02,900 So of course the US government is concerned about the use of steganography. 92 00:06:03,780 --> 00:06:06,700 Common uses include the disguising of corporate espionage. 93 00:06:06,700 --> 00:06:10,580 In addition, it's been highly documented that possibly 94 00:06:10,580 --> 00:06:14,460 terrorist cells are using this for communications, whether this be for hiding 95 00:06:14,460 --> 00:06:18,400 a message within a photograph and posting it on a website for another terrorist cell 96 00:06:18,400 --> 00:06:22,620 to download and reveal the hidden message which may reveal details 97 00:06:22,620 --> 00:06:26,760 about a particular attack. And it's also a very good 98 00:06:26,760 --> 00:06:30,140 anti-forensics mechanism, especially in child pornography. 99 00:06:30,580 --> 00:06:34,420 I've had a lot of people approach me from various forms of the government about many 100 00:06:34,420 --> 00:06:36,680 child pornography cases that they've lost in court. 101 00:06:36,700 --> 00:06:40,680 Because they simply just haven't had the ability to either identify 102 00:06:40,680 --> 00:06:44,580 hidden porn within other types of digital photographs 103 00:06:44,580 --> 00:06:48,640 or if they've been able to identify that there's 104 00:06:48,640 --> 00:06:52,100 something hidden there they haven't been able to extract it so that they can prove it in court. 105 00:06:56,220 --> 00:07:00,660 So with modern digital steganography, many times the data is not only 106 00:07:00,660 --> 00:07:04,800 hidden but it's also encrypted. We'll talk about some of the 107 00:07:04,800 --> 00:07:06,660 different encryption algorithms that I've seen 108 00:07:06,700 --> 00:07:09,600 with many of the steganography programs that I've analyzed. 109 00:07:12,300 --> 00:07:14,500 There's various techniques that they're using for 110 00:07:14,500 --> 00:07:18,360 hiding this information within a digital photograph or a WAV file or some other digital 111 00:07:18,360 --> 00:07:22,500 mechanism. Sometimes the data is encrypted and then simply appended 112 00:07:22,500 --> 00:07:26,340 to the file. And in other cases, it's dispersed throughout the file using 113 00:07:26,340 --> 00:07:30,120 algorithms such as least significant bit and other types of mechanisms. 114 00:07:32,300 --> 00:07:34,500 But typically, the goal here 115 00:07:34,500 --> 00:07:37,940 is to the casual eye really not to visually 116 00:07:37,940 --> 00:07:42,140 or technically identify that there's something hidden. But as you'll see 117 00:07:42,140 --> 00:07:46,500 through some analysis I've done, most of the steganography programs are fairly weak and easily 118 00:07:47,520 --> 00:07:50,120 identified as far as hidden messages within them, 119 00:07:50,220 --> 00:07:54,420 within the pictures that they've hidden, as well as extracting the messages 120 00:07:54,420 --> 00:07:55,700 as well that are typically used. 121 00:07:58,120 --> 00:08:02,360 Just some terminology for the rest of the presentation. If I go ahead 122 00:08:02,360 --> 00:08:06,280 and I create a message and I hide it within a file, we call this file a carrier file. 123 00:08:06,800 --> 00:08:10,160 And this carrier file is essentially used to carry this hidden message. 124 00:08:13,680 --> 00:08:17,400 There are a variety of carrier files used with steganography. 125 00:08:17,960 --> 00:08:22,300 All types of digital photographs, whether they be bump files, JPEGs, or GIFs. 126 00:08:22,700 --> 00:08:26,140 As well as video and audio files too, as well as WAV 127 00:08:26,140 --> 00:08:27,200 and other types of files. 128 00:08:31,340 --> 00:08:34,440 So there are a variety of steganography tools out there. 129 00:08:34,480 --> 00:08:37,820 Most of them are freeware or shareware types tools. 130 00:08:38,720 --> 00:08:42,080 Including S-Tools, which has been around for many years. 131 00:08:43,040 --> 00:08:45,700 Steghide, Invisible Secrets, and the list goes on and on. 132 00:08:46,360 --> 00:08:49,600 There are some commercial manufacturers out there, including Steganos, 133 00:08:49,640 --> 00:08:51,660 which I believe is based out of Germany. 134 00:08:52,120 --> 00:08:55,620 They've got a fantastic tool that I've tried to do a lot of analysis on. 135 00:08:55,620 --> 00:08:58,380 That's one of the few tools I haven't been able to crack. 136 00:08:59,360 --> 00:09:03,540 They have a full software suite that allows you to not only hide 137 00:09:03,540 --> 00:09:07,420 messages within digital photographs and other mechanisms, 138 00:09:07,640 --> 00:09:11,160 but you can also hide drives and hide files within drives 139 00:09:11,160 --> 00:09:15,680 and all kinds of cool stuff. And they have some pretty elaborate encryption that they use with it as well. 140 00:09:21,700 --> 00:09:23,400 So, if you're interested 141 00:09:23,400 --> 00:09:26,120 in finding out more information about steganography in general, 142 00:09:26,280 --> 00:09:31,180 I've provided a couple URLs for you. I don't believe they're the latest 143 00:09:31,180 --> 00:09:35,200 and greatest on your CD, so I've gone ahead and taken the liberty of updating 144 00:09:35,200 --> 00:09:37,800 this particular presentation with these updated URLs. 145 00:09:38,500 --> 00:09:43,280 I have sent these to Dead Attic, who will be posting these on the DEF CON site 146 00:09:43,280 --> 00:09:47,360 for your download. So you may notice some slight slide differences 147 00:09:47,360 --> 00:09:51,380 between what's on your CD versus what you see here on the board. 148 00:09:53,780 --> 00:09:57,320 Neil Johnson has a fantastic site. You can download many of the 149 00:09:57,320 --> 00:10:01,320 steganography tools through links on his site. He's got 150 00:10:01,320 --> 00:10:04,780 some great white papers out there and links to other 151 00:10:05,720 --> 00:10:09,120 steganalysis people, including Neil Provost, Eric Cole, 152 00:10:09,260 --> 00:10:13,160 and some other people that are pretty predominant within the industry as it relates to 153 00:10:13,160 --> 00:10:17,240 steganography. Topology.org also 154 00:10:17,240 --> 00:10:21,180 has a link on it too with crypto, and a lot of that links to various 155 00:10:21,660 --> 00:10:23,020 steganography research as well. 156 00:10:25,840 --> 00:10:29,140 So let's get into the bulk of my presentation, which has more to do 157 00:10:29,140 --> 00:10:32,220 with steganalysis. We're going to talk about how to 158 00:10:33,160 --> 00:10:37,020 identify a file that has a hidden message in it, and different 159 00:10:37,020 --> 00:10:40,400 ways in which you can do that, and the particular mechanisms that I'm using 160 00:10:41,520 --> 00:10:42,260 in the web. 161 00:10:44,760 --> 00:10:48,440 Alright, so when we talk about steganalysis, we're really talking about 162 00:10:48,980 --> 00:10:49,420 identifying 163 00:10:51,180 --> 00:10:54,980 the existence of a message, not essentially the extraction 164 00:10:54,980 --> 00:10:59,000 of the message. That's left more to the cryptanalysis 165 00:10:59,000 --> 00:11:03,040 portion of this presentation. Steganalysis really just has to do with the 166 00:11:03,040 --> 00:11:06,920 fact of trying to identify that there's a hidden message. So we're really, in this section, 167 00:11:07,020 --> 00:11:10,840 not going to really talk about how to extract it. So technically, steganography 168 00:11:10,840 --> 00:11:15,080 deals with the concealment of a message, not really the encryption of it. That's really just become 169 00:11:15,080 --> 00:11:17,540 an add-on with many of the recent steganography programs. 170 00:11:19,660 --> 00:11:20,140 Alright. 171 00:11:21,180 --> 00:11:25,180 So we'll talk about, well, how is this really meaningful? And that'll basically bleed over into 172 00:11:25,180 --> 00:11:26,120 the cryptanalysis. 173 00:11:29,920 --> 00:11:33,160 So by identifying the existence of a hidden message, we can 174 00:11:33,160 --> 00:11:37,080 perhaps identify the tool used to hide the message. A lot of the encryption 175 00:11:37,080 --> 00:11:41,140 used for encrypting these hidden messages are highly difficult, 176 00:11:41,280 --> 00:11:45,120 if not impossible, to crack. So other mechanisms by which you can use 177 00:11:45,120 --> 00:11:49,240 to try to extract the message may be to identify the tool that was used to hide 178 00:11:49,240 --> 00:11:53,080 the message and then somehow use that tool to extract it, either through a password 179 00:11:53,080 --> 00:11:54,380 attack or some other mechanism. 180 00:11:58,640 --> 00:12:01,220 So common hiding techniques that I've found during 181 00:12:01,220 --> 00:12:05,280 my research have to do a lot with appending to a file. 182 00:12:05,440 --> 00:12:09,160 Many times you can view a suspect file and 183 00:12:09,160 --> 00:12:13,320 actually scroll down to the end of it and see that possibly the hidden message 184 00:12:13,320 --> 00:12:16,980 has been appended right to the end of the file. This may include the password 185 00:12:16,980 --> 00:12:20,680 as well as the message. It may even include 186 00:12:20,680 --> 00:12:24,980 the secret key or something else used by the particular algorithm 187 00:12:24,980 --> 00:12:26,540 that was used to encrypt the message. 188 00:12:28,860 --> 00:12:32,660 Still other ways of performing this that I've seen is that they'll 189 00:12:32,660 --> 00:12:36,520 hide it up in the message header up at the top of the file or somehow 190 00:12:36,520 --> 00:12:40,300 some type of dispersion throughout the file. 191 00:12:40,560 --> 00:12:44,760 Either using least significant bit or some other type of algorithm. 192 00:12:49,680 --> 00:12:50,940 So there's a variety of 193 00:12:50,940 --> 00:12:54,420 methods we can use for detecting steganography, many of which have been documented. 194 00:12:55,840 --> 00:12:58,860 Perhaps some type of visual detection. Maybe we can take a look 195 00:12:58,860 --> 00:13:02,940 at the file and see that just down at the bottom of the 196 00:13:02,940 --> 00:13:06,820 file or throughout the file, it's just not essentially all that clear. But really without the 197 00:13:06,820 --> 00:13:10,880 original file or the virgin file, it may be kind of hard to determine the 198 00:13:10,880 --> 00:13:14,760 differences. Perhaps through some audible detection, if it's a 199 00:13:14,760 --> 00:13:16,020 WAV file or something else. 200 00:13:19,060 --> 00:13:22,460 NeoProVis and a lot of other people have done a lot of different types of statistical detection 201 00:13:22,460 --> 00:13:25,820 or histogram analysis, and we'll talk about that as well. 202 00:13:27,480 --> 00:13:29,820 Or you can actually view the structural 203 00:13:31,160 --> 00:13:34,660 chemistry of the file. For example, if you have 204 00:13:34,660 --> 00:13:38,260 the original virgin file, you can compare file size differences, 205 00:13:38,880 --> 00:13:42,500 date and time differences, checksums, and other types of 206 00:13:42,500 --> 00:13:44,680 modifications. But in many cases when you're performing 207 00:13:44,760 --> 00:13:48,640 forensic analysis, the original file is not there. So it really depends on the 208 00:13:48,640 --> 00:13:52,820 steganography program used to hide the message. Some of them will remove the original 209 00:13:52,820 --> 00:13:55,940 hidden message file, and other ones will leave it behind. 210 00:13:59,160 --> 00:14:00,620 So I went ahead and 211 00:14:00,620 --> 00:14:04,580 kind of categorized these things into anomaly and signature 212 00:14:04,580 --> 00:14:08,540 based. If you're intimately familiar with intrusion detection systems, 213 00:14:08,580 --> 00:14:12,760 kind of the same mentality with this. So as far as 214 00:14:12,760 --> 00:14:16,360 histogram analysis, file properties, statistical attack, 215 00:14:16,580 --> 00:14:20,660 visual or audible type of review against the files, I kind of 216 00:14:20,660 --> 00:14:24,540 classified these into anomaly type of detection, versus a signature detection 217 00:14:24,540 --> 00:14:28,580 which may be a pattern consistent with the program that was used 218 00:14:28,580 --> 00:14:29,360 to hide the message. 219 00:14:34,780 --> 00:14:36,660 So when writing my program, 220 00:14:36,900 --> 00:14:39,700 essentially my goal was to provide some type of accuracy. 221 00:14:39,700 --> 00:14:43,400 It wouldn't be good if you were running this program and it 222 00:14:43,400 --> 00:14:46,480 told you that there was a hidden message in it, when actually there wasn't. 223 00:14:47,120 --> 00:14:50,820 Some type of consistency that might provide better consistency 224 00:14:51,540 --> 00:14:55,720 of differentiating between one particular program that was used to hide 225 00:14:55,720 --> 00:14:59,900 the message versus the other. And most importantly in my opinion 226 00:14:59,900 --> 00:15:01,200 to minimize false positives. 227 00:15:04,640 --> 00:15:06,600 So if we use some type of visual detection, 228 00:15:06,600 --> 00:15:11,360 it may be next to impossible to determine that there's a hidden message 229 00:15:11,360 --> 00:15:13,040 within one of these two photographs. 230 00:15:14,020 --> 00:15:18,560 So I took a graphic file of Cartman here and I went ahead and hid a message 231 00:15:18,560 --> 00:15:22,040 in one of these two pictures. But if you take a visual look at this, 232 00:15:22,440 --> 00:15:25,840 it may be next to impossible to determine that there's a hidden message in this. 233 00:15:26,020 --> 00:15:27,840 So I really don't think this is a viable option. 234 00:15:31,380 --> 00:15:33,700 Still yet there's some other mechanisms including 235 00:15:33,700 --> 00:15:37,980 kurtosis. This is the degree of flatness or peakiness 236 00:15:37,980 --> 00:15:41,680 of a curve describing a frequency of distribution. In other words, 237 00:15:41,740 --> 00:15:45,320 if you have a frequency of different colors making up the photograph, 238 00:15:45,580 --> 00:15:49,900 you may recognize a consistent pattern of certain colors showing up. 239 00:15:50,000 --> 00:15:53,340 And if you were to graph this out, it may show consistent peaks. 240 00:15:55,560 --> 00:15:57,220 If we use histogram analysis 241 00:15:57,220 --> 00:16:01,620 to evaluate this in more detail, which would include kurtosis and other things 242 00:16:01,620 --> 00:16:04,040 such as standard deviation and other types of things, 243 00:16:05,220 --> 00:16:09,180 this may or may not allow us to really identify whether or not there's a hidden message. 244 00:16:09,420 --> 00:16:13,500 For example, if they're using a least significant bit type algorithm 245 00:16:13,500 --> 00:16:17,240 to go ahead and disperse it throughout the message, you may see a consistent 246 00:16:17,240 --> 00:16:21,520 pattern to these peaks. So I went ahead and used 247 00:16:21,520 --> 00:16:24,940 histogram analysis to evaluate a number of different 248 00:16:24,940 --> 00:16:28,920 steganography programs and how they hid messages within photographs and wave files. 249 00:16:28,920 --> 00:16:31,620 For the most part, it was pretty much useless. 250 00:16:32,400 --> 00:16:36,820 I've read in Eric Cole's book and a number of other books, which are, by the way, very good books, 251 00:16:36,960 --> 00:16:40,900 but they say that you can essentially use histogram analysis for evaluating 252 00:16:40,900 --> 00:16:44,800 a lot of different types of steganography and steganized type files. 253 00:16:45,340 --> 00:16:48,560 I found the patterns to be grossly inconsistent. 254 00:16:49,020 --> 00:16:52,780 I really only found this pattern with one of the 50 steganography programs 255 00:16:52,780 --> 00:16:56,020 that I've analyzed. So I really don't think this is a viable option either. 256 00:17:00,260 --> 00:17:01,700 Is that just Photoshop? 257 00:17:02,420 --> 00:17:04,280 Yeah, this is actually just PaintShop Pro. 258 00:17:06,140 --> 00:17:10,140 So there's a lot of different types of programs out there you can use for histogram analysis. 259 00:17:10,220 --> 00:17:11,840 I just used PaintShop Pro for this. 260 00:17:15,660 --> 00:17:18,680 Still yet, we can do other types of analysis comparing the 261 00:17:18,680 --> 00:17:22,860 file properties. If you do have the original 262 00:17:22,860 --> 00:17:26,540 file, you can do various types of comparisons, which will show obvious 263 00:17:26,540 --> 00:17:29,960 differences as far as date and time, even file size. 264 00:17:30,820 --> 00:17:33,860 And still yet, you can also run various types of checksums. 265 00:17:34,260 --> 00:17:38,300 But I don't really consider this a viable option either. If you do have the original 266 00:17:38,300 --> 00:17:42,380 version file, well then yes, it makes it quite easy to identify differences in the 267 00:17:42,380 --> 00:17:46,400 file and come up with a potential suspect file. But if you're 268 00:17:46,400 --> 00:17:50,420 performing forensic analysis and the person had any kind of intelligence, they would have removed 269 00:17:50,420 --> 00:17:53,780 the original file and the original message. 270 00:17:53,780 --> 00:17:57,680 And so I would think that if anyone was doing anything 271 00:17:57,680 --> 00:18:01,740 over a covert channel in which they didn't want anyone to detect this, you really wouldn't 272 00:18:01,740 --> 00:18:05,020 have the original file to compare it to. So although this is 273 00:18:05,020 --> 00:18:08,760 a possible option, again, I don't really consider it viable either. 274 00:18:12,800 --> 00:18:13,880 So when analyzing 275 00:18:13,880 --> 00:18:17,600 these types of files, it is important to understand what types of files 276 00:18:17,600 --> 00:18:21,760 you're looking at. Not only from the extension, but when evaluating the file 277 00:18:21,760 --> 00:18:23,760 itself, you can actually take a look at 278 00:18:23,780 --> 00:18:27,660 various signatures related to the type of file that it is. For example, 279 00:18:27,720 --> 00:18:31,200 if you're analyzing a JPEG file versus a GIF file, the 280 00:18:31,760 --> 00:18:35,760 headers are going to be different. As indicated on this board here, you can see 281 00:18:35,760 --> 00:18:39,720 that the ASCII signature at the beginning, or header of the file, you can see 282 00:18:39,720 --> 00:18:43,700 the various differences. So then you know for sure what type of file you're 283 00:18:43,700 --> 00:18:47,760 actually looking at. Gary Kessler is a friend of mine. 284 00:18:47,860 --> 00:18:51,460 He did a presentation for SANS on steganography, which was pretty decent. 285 00:18:51,620 --> 00:18:53,720 Highly recommended. It's out there for free download. 286 00:18:53,780 --> 00:18:56,520 I believe he works at the University of Vermont. 287 00:18:57,360 --> 00:19:01,700 He's done a lot of research as well as far as steganography. So feel free to check out his 288 00:19:01,700 --> 00:19:02,220 site as well. 289 00:19:09,500 --> 00:19:13,600 So if you have a copy of the original file or version file, it can be compared to the 290 00:19:13,600 --> 00:19:17,800 modified or suspect carrier file. Many files can be used for viewing 291 00:19:17,800 --> 00:19:21,560 and comparing the contents of a hidden file. You can use everything from 292 00:19:21,560 --> 00:19:25,780 notepad to your favorite hex editor such as WinHex or something else 293 00:19:25,780 --> 00:19:28,200 to go ahead and analyze the file contents. 294 00:19:28,840 --> 00:19:33,580 This may allow you to convert it to ASCII and other types of mechanisms that, believe it or not, 295 00:19:33,640 --> 00:19:37,400 may actually reveal the password itself in clear text when the message 296 00:19:37,400 --> 00:19:38,840 itself is actually encrypted. 297 00:19:41,420 --> 00:19:45,320 So reviewing multiple files may identify a signature pattern related to the 298 00:19:45,320 --> 00:19:49,540 steganography program used to hide the message. So if we use a particular 299 00:19:49,540 --> 00:19:53,640 steganography program to hide a message, it's going to hide it in a particular way. 300 00:19:53,740 --> 00:19:57,640 For example, it may append it to the end of a file. As part of that, 301 00:19:57,760 --> 00:20:01,640 it may add some additional information to the end of that file, which may be 302 00:20:01,640 --> 00:20:04,420 related to some type of signature. If we do a bunch of 303 00:20:06,180 --> 00:20:09,500 hiding of messages and then comparisons, we may identify 304 00:20:09,500 --> 00:20:13,620 a relative pattern to the way it hides that message. And it may be differentiated 305 00:20:13,620 --> 00:20:15,900 between different types of steganography programs. 306 00:20:19,100 --> 00:20:19,500 So 307 00:20:19,540 --> 00:20:23,460 I typically use WinHex for this. It does allow comparisons between ASCII 308 00:20:23,460 --> 00:20:27,300 and hex. You can open up multiple files and do file comparisons. 309 00:20:27,660 --> 00:20:31,240 It does allow you to save the comparison as a report. And you can do 310 00:20:31,240 --> 00:20:35,440 various types of searches as far as differences between the two files or even possibly 311 00:20:35,440 --> 00:20:39,320 equal bytes as well. It also contains 312 00:20:39,320 --> 00:20:43,600 file marker capabilities. So as you find differences in the patterns, you can use 313 00:20:43,600 --> 00:20:47,700 various types of markers so that you can come back later on and compare the differences at a later time. 314 00:20:48,000 --> 00:20:48,480 . 315 00:20:50,620 --> 00:20:51,140 . 316 00:20:54,060 --> 00:20:57,560 So I went ahead and put together a case study of 317 00:20:57,560 --> 00:21:01,420 a steganography program called Hyderman. This is a program provided 318 00:21:01,420 --> 00:21:05,220 from a company in France. It is a pay-for type 319 00:21:05,220 --> 00:21:09,300 program. You can download a free eval. I think it's like a 30-day eval. 320 00:21:10,040 --> 00:21:13,020 So I went ahead and as many of the 321 00:21:13,540 --> 00:21:17,540 analysis I've done on various types of steganography programs, 322 00:21:17,540 --> 00:21:21,480 this one in particular stood out to me. I thought it might be good for a demonstration. 323 00:21:22,280 --> 00:21:22,580 . 324 00:21:24,640 --> 00:21:29,520 So I went ahead and had a graphic file, hid a message in it, and then did some 325 00:21:29,520 --> 00:21:31,900 analysis with my favorite hex editor. 326 00:21:32,940 --> 00:21:37,480 If we go ahead and take a look at this file, we can see BM related 327 00:21:37,480 --> 00:21:41,380 to bitmap at the beginning of the file, identifying what type of file 328 00:21:41,380 --> 00:21:41,960 this is. 329 00:21:41,960 --> 00:21:42,360 . 330 00:21:46,640 --> 00:21:50,000 And then viewing the end of the file, I was 331 00:21:50,000 --> 00:21:53,920 able to identify that it appeared that the data was simply appended to the 332 00:21:53,920 --> 00:21:57,780 end of this file. So I had the original version file as well as the 333 00:21:57,780 --> 00:21:59,260 carrier file, compared the two, 334 00:22:01,680 --> 00:22:04,480 and we can see what was added to the end of the file. 335 00:22:06,460 --> 00:22:09,140 So you may see some consistent patterns here, 336 00:22:09,140 --> 00:22:12,560 and then some of the other slides, you're going to see it actually reveals some of the 337 00:22:12,560 --> 00:22:17,080 password and clear text too. So although it used some type of encryption algorithm 338 00:22:17,080 --> 00:22:20,880 for hiding the message, it went ahead and put the password in there, 339 00:22:20,900 --> 00:22:24,900 clear text. So I don't even need to reverse the encryption in order to reveal this hidden message. 340 00:22:25,100 --> 00:22:29,100 Just take the password, take the program, and take this file, and go ahead 341 00:22:29,100 --> 00:22:31,320 and open it up with the password. It was as simple as that. 342 00:22:32,060 --> 00:22:32,460 . 343 00:22:36,500 --> 00:22:39,020 . In addition, I noticed a consistent pattern 344 00:22:39,140 --> 00:22:42,760 to the way it hid the message. Not only did it append it to the end of the file, 345 00:22:42,840 --> 00:22:47,000 but the last three characters were always CDN, regardless of the encryption algorithm 346 00:22:47,000 --> 00:22:51,060 I used for hiding the message. And as I 347 00:22:51,060 --> 00:22:55,080 went through and did more and more comparisons using this program, I found a consistent pattern, 348 00:22:55,260 --> 00:22:58,780 which to me means some kind of signature related to this type of program. 349 00:22:59,900 --> 00:23:03,040 Consistently at the end of the file, and the same three characters every time. 350 00:23:04,060 --> 00:23:04,460 . 351 00:23:07,820 --> 00:23:09,120 . So by hiding 352 00:23:09,140 --> 00:23:11,180 different messages with different files 353 00:23:11,180 --> 00:23:13,160 and even different passwords, again, the same three 354 00:23:13,160 --> 00:23:14,900 characters were hidden, or 355 00:23:15,480 --> 00:23:16,800 appended to the end of the file, 356 00:23:16,920 --> 00:23:19,180 essentially related, some kind of signature related 357 00:23:19,180 --> 00:23:21,020 to the Steg and IOP program used to hide 358 00:23:21,020 --> 00:23:21,500 the message. 359 00:23:25,200 --> 00:23:27,380 So I've written a program called StegSpy. 360 00:23:27,720 --> 00:23:29,140 It's gone through a couple iterations, 361 00:23:29,380 --> 00:23:31,000 and I have some more iterations 362 00:23:31,440 --> 00:23:32,280 in process. 363 00:23:32,980 --> 00:23:35,200 It is a signature identification program. 364 00:23:35,920 --> 00:23:37,180 Neil Provost and some 365 00:23:37,180 --> 00:23:39,060 other people have written some statistical announcements, 366 00:23:39,140 --> 00:23:41,260 StegAnalysis, StegAnalysis type programs. 367 00:23:41,720 --> 00:23:43,260 Mine is more signature based, 368 00:23:43,360 --> 00:23:45,220 related to, again, the type of program 369 00:23:45,220 --> 00:23:46,580 that was used to hide the message. 370 00:23:46,860 --> 00:23:48,600 It search for Stegos signatures, 371 00:23:48,940 --> 00:23:51,140 and determines also the program that was 372 00:23:51,140 --> 00:23:52,220 used to hide the message. 373 00:23:52,680 --> 00:23:54,820 And also, it'll identify the location 374 00:23:54,820 --> 00:23:56,840 of the hidden message within the file. 375 00:23:57,100 --> 00:23:59,260 So if you're going to go ahead and extract that message, 376 00:23:59,620 --> 00:24:01,100 you simply just can then go ahead 377 00:24:01,100 --> 00:24:02,640 and open up your favorite hex editor, 378 00:24:03,160 --> 00:24:05,160 find the location, and then go ahead 379 00:24:05,160 --> 00:24:06,480 and try to extract the message. 380 00:24:12,380 --> 00:24:12,860 . 381 00:24:17,140 --> 00:24:18,400 So I went ahead and 382 00:24:19,080 --> 00:24:21,000 used some different graphics 383 00:24:21,000 --> 00:24:22,800 and went ahead and hid messages in it, 384 00:24:22,840 --> 00:24:24,260 and through my analysis, 385 00:24:24,500 --> 00:24:26,900 have used a number of different steganography programs 386 00:24:26,900 --> 00:24:28,480 for hiding these messages, 387 00:24:28,640 --> 00:24:30,940 and have correlated these signatures to those 388 00:24:30,940 --> 00:24:33,040 steganography programs. And that's all built into 389 00:24:33,040 --> 00:24:33,640 my program. 390 00:24:36,900 --> 00:24:39,120 So if I go ahead and choose a file that I want 391 00:24:39,140 --> 00:24:39,880 to interrogate, 392 00:24:42,060 --> 00:24:42,940 it'll tell me, 393 00:24:42,960 --> 00:24:44,140 first of all, whether or not 394 00:24:44,860 --> 00:24:47,180 there's hidden steganography within this message 395 00:24:47,180 --> 00:24:49,060 as it relates to the programs that 396 00:24:49,060 --> 00:24:50,860 I've correlated signatures to. 397 00:24:51,900 --> 00:24:52,900 But it'll also 398 00:24:55,760 --> 00:24:57,020 identify the program 399 00:24:57,020 --> 00:24:59,000 used to hide the message, as well as 400 00:24:59,000 --> 00:25:01,060 the marker position as well, as to where the 401 00:25:01,060 --> 00:25:03,060 hidden message is located within that file. 402 00:25:03,420 --> 00:25:05,260 So if you are doing forensic analysis 403 00:25:05,260 --> 00:25:07,140 and you want to make an attempt at trying to extract 404 00:25:07,140 --> 00:25:09,020 this message, now you simply 405 00:25:09,140 --> 00:25:10,480 can just go ahead to that marker 406 00:25:11,060 --> 00:25:12,900 using your favorite hex editor or something 407 00:25:12,900 --> 00:25:15,140 else, and then make attempts to try to extract 408 00:25:15,140 --> 00:25:15,840 that message. 409 00:25:18,620 --> 00:25:20,560 So I've got a number of 410 00:25:21,020 --> 00:25:22,820 programs here that I've identified, including 411 00:25:22,820 --> 00:25:23,500 MASKER, 412 00:25:23,600 --> 00:25:26,840 JPEG-X, JPEG-HIDE, 413 00:25:26,980 --> 00:25:29,040 and a number of other different types of 414 00:25:29,040 --> 00:25:30,940 programs, including HIDERMAN, 415 00:25:31,080 --> 00:25:33,080 Invisible Secrets, and a whole slew of other 416 00:25:33,080 --> 00:25:35,060 steganography programs. And I'm continuing 417 00:25:35,060 --> 00:25:36,820 to add new signatures to this program 418 00:25:36,820 --> 00:25:37,460 all the time. 419 00:25:40,000 --> 00:25:40,600 Yes? 420 00:25:42,060 --> 00:25:43,520 No, it can't. 421 00:25:44,060 --> 00:25:45,340 Steganos has given me 422 00:25:45,340 --> 00:25:46,300 quite a struggle. 423 00:25:46,780 --> 00:25:49,220 Steganos is written by a really good 424 00:25:49,220 --> 00:25:50,400 cryptographer guy 425 00:25:51,020 --> 00:25:52,860 that's worked for the company since its 426 00:25:52,860 --> 00:25:54,740 startup a number of years ago. 427 00:25:54,940 --> 00:25:56,480 It is a commercial program. 428 00:25:57,240 --> 00:25:59,040 People have done steganalysis on 429 00:25:59,040 --> 00:26:00,980 older versions of it, which have revealed 430 00:26:00,980 --> 00:26:02,980 where the message was hidden. 431 00:26:03,780 --> 00:26:04,780 They use 432 00:26:05,940 --> 00:26:07,120 something a little bit 433 00:26:07,120 --> 00:26:09,080 more intelligent than just 434 00:26:09,140 --> 00:26:11,120 appending it to the file or hiding it 435 00:26:11,120 --> 00:26:12,700 in the message or header contents. 436 00:26:13,700 --> 00:26:14,880 They tend to use 437 00:26:14,880 --> 00:26:16,940 some type of least significant bit 438 00:26:17,680 --> 00:26:18,600 dispersion throughout 439 00:26:18,600 --> 00:26:21,060 the file instead. So in that 440 00:26:21,060 --> 00:26:21,500 case, 441 00:26:22,520 --> 00:26:24,560 it definitely requires a little bit more 442 00:26:24,560 --> 00:26:25,580 statistical analysis. 443 00:26:26,660 --> 00:26:28,040 I've tried to identify 444 00:26:28,880 --> 00:26:30,360 signatures related to 445 00:26:31,030 --> 00:26:33,100 Steganos though, separate from the type 446 00:26:33,100 --> 00:26:35,140 of algorithm it uses to hide the message. 447 00:26:35,320 --> 00:26:36,960 But I haven't been successful yet 448 00:26:36,960 --> 00:26:38,340 at identifying some though. 449 00:26:46,940 --> 00:26:47,420 Okay. 450 00:26:48,360 --> 00:26:50,160 So I wrote the original version 451 00:26:50,160 --> 00:26:52,460 in Perl, and then I kind of 452 00:26:52,460 --> 00:26:53,700 cut it over to 453 00:26:54,560 --> 00:26:55,460 Visual Basic. 454 00:26:56,400 --> 00:26:58,420 You can download this program for free 455 00:26:58,420 --> 00:27:00,900 from my site, spyhunter.com. 456 00:27:02,060 --> 00:27:02,860 Like I said, 457 00:27:02,880 --> 00:27:04,400 I'm continuing to work on new versions 458 00:27:04,400 --> 00:27:05,200 of this program. 459 00:27:06,900 --> 00:27:08,520 Some of the new things that I'm adding 460 00:27:09,140 --> 00:27:10,600 to the program include additional 461 00:27:11,020 --> 00:27:12,580 signatures, constantly reviewing new 462 00:27:12,580 --> 00:27:14,260 Steganography programs as they're coming 463 00:27:14,260 --> 00:27:15,840 out, trying to identify new signatures 464 00:27:15,840 --> 00:27:17,500 as it relates to those programs. 465 00:27:17,700 --> 00:27:18,580 Did you have a question over there? 466 00:27:25,920 --> 00:27:27,440 Coming up on the next slide. 467 00:27:30,820 --> 00:27:32,100 Yeah, I've had some other people 468 00:27:32,100 --> 00:27:34,900 recommend that as well. So I've got 469 00:27:34,900 --> 00:27:36,280 some cool information on the next slide 470 00:27:36,280 --> 00:27:36,840 we'll talk about. 471 00:27:37,020 --> 00:27:39,060 One other cool thing would be a Mozilla plug-in 472 00:27:39,060 --> 00:27:40,360 that just inspects every image. 473 00:27:50,540 --> 00:27:52,140 Yeah, I honestly 474 00:27:52,140 --> 00:27:53,620 can't take credit for this idea. 475 00:27:54,000 --> 00:27:55,700 Eli over at Black Hat 476 00:27:56,180 --> 00:27:57,580 came up with this idea originally 477 00:27:57,580 --> 00:28:00,120 a while back while I was working on this. 478 00:28:00,240 --> 00:28:01,900 And I thought it was a great idea, 479 00:28:02,020 --> 00:28:03,640 so it's something I'm going to start working on 480 00:28:03,640 --> 00:28:06,260 probably as soon as I get back in town. So, great idea. 481 00:28:06,280 --> 00:28:06,720 Yeah. 482 00:28:08,140 --> 00:28:10,200 So the goal of this would be to 483 00:28:10,200 --> 00:28:12,240 detect Stego as you're browsing. 484 00:28:12,400 --> 00:28:14,320 A little bit different than what you suggested 485 00:28:14,320 --> 00:28:16,560 where we're just kind of doing a spider over the web. 486 00:28:16,780 --> 00:28:18,540 I know someone did that a couple years ago 487 00:28:18,540 --> 00:28:19,880 and I think they 488 00:28:20,380 --> 00:28:22,040 combed through about two or three million 489 00:28:22,040 --> 00:28:24,380 pictures and found like one potentially 490 00:28:24,900 --> 00:28:25,380 Steganized 491 00:28:25,380 --> 00:28:27,380 photograph out there. 492 00:28:28,060 --> 00:28:30,180 This would actually detect Stego 493 00:28:30,180 --> 00:28:32,420 as you're browsing. So as you hit a particular site 494 00:28:32,980 --> 00:28:34,440 a pop-up could possibly 495 00:28:34,440 --> 00:28:36,220 pop up identifying will this particular 496 00:28:36,280 --> 00:28:37,740 picture on this web page 497 00:28:38,260 --> 00:28:40,200 potentially has a Steganized 498 00:28:40,200 --> 00:28:42,080 file or a hidden message in it. 499 00:28:45,460 --> 00:28:48,300 Some of the other features would be 500 00:28:48,300 --> 00:28:50,240 the ability to, if you're doing forensic 501 00:28:50,240 --> 00:28:52,320 analysis, to scan an entire 502 00:28:52,320 --> 00:28:54,180 directory or maybe even an entire drive. 503 00:28:54,460 --> 00:28:55,980 So that's 504 00:28:55,980 --> 00:28:57,720 my number one priority at this point. 505 00:28:57,840 --> 00:28:59,460 In the next version of the program I'm going to do that 506 00:28:59,460 --> 00:29:01,400 and then also work on the Mozilla plugin too. 507 00:29:03,160 --> 00:29:04,100 Also I'm going to 508 00:29:04,100 --> 00:29:06,260 try to revert back to some type of 509 00:29:06,280 --> 00:29:08,100 Perl iteration so it can be a little bit more 510 00:29:08,100 --> 00:29:09,520 Unix and Linux friendly. 511 00:29:10,640 --> 00:29:12,140 I want to create a GUI around 512 00:29:12,140 --> 00:29:13,320 that. I originally wrote it 513 00:29:14,360 --> 00:29:16,220 just in Perl so it's 514 00:29:16,220 --> 00:29:17,060 mostly command line. 515 00:29:17,700 --> 00:29:19,940 I would like to create some kind of GUI around it 516 00:29:19,940 --> 00:29:21,480 so I'm going to work on that a little bit more too. 517 00:29:21,840 --> 00:29:23,480 I just requested you keep the command line. 518 00:29:23,780 --> 00:29:25,360 Okay, I'll do that. 519 00:29:27,560 --> 00:29:28,360 Yeah, I'm 520 00:29:28,360 --> 00:29:30,240 old school too so I think I'll keep 521 00:29:30,240 --> 00:29:31,120 the command line. 522 00:29:35,720 --> 00:29:36,500 Okay, so 523 00:29:36,980 --> 00:29:39,000 this does differ somewhat from a lot of 524 00:29:39,000 --> 00:29:40,820 the other type of research and steganalysis 525 00:29:40,820 --> 00:29:42,900 that other people have done, which 526 00:29:42,900 --> 00:29:45,100 by no means I don't mean to undermine. 527 00:29:45,320 --> 00:29:46,920 I think Neil Provost has done some 528 00:29:46,920 --> 00:29:48,940 great research as far as statistical 529 00:29:48,940 --> 00:29:51,040 analysis as it relates to 530 00:29:51,040 --> 00:29:53,060 steganography. I just decided to take it 531 00:29:53,060 --> 00:29:53,740 in a different direction. 532 00:29:55,140 --> 00:29:57,060 I've identified a number of signatures 533 00:29:58,260 --> 00:29:58,700 including 534 00:29:58,700 --> 00:30:01,040 Invisible Secrets, J.P. Hyde, 535 00:30:01,120 --> 00:30:03,180 Heidemann, Masker, JPEG-X. 536 00:30:03,600 --> 00:30:05,120 There are some other ones that are 537 00:30:05,120 --> 00:30:06,860 in there that I haven't really 538 00:30:07,560 --> 00:30:09,080 come out and told people that are 539 00:30:09,080 --> 00:30:11,160 in there yet simply because I'm trying to 540 00:30:11,160 --> 00:30:13,100 minimize the false positives. I'm still trying 541 00:30:13,100 --> 00:30:15,200 to confirm that they are good signatures 542 00:30:15,200 --> 00:30:16,620 and all that good stuff. 543 00:30:16,840 --> 00:30:19,200 So as I feel comfortable with that 544 00:30:19,200 --> 00:30:20,900 I'll go ahead and post all those updates to 545 00:30:20,900 --> 00:30:21,880 my website as well. 546 00:30:26,420 --> 00:30:26,860 Okay, 547 00:30:26,920 --> 00:30:29,160 so how is this handy? We really haven't 548 00:30:29,160 --> 00:30:30,960 achieved the goal in my 549 00:30:31,120 --> 00:30:32,900 opinion, which is revealing 550 00:30:32,900 --> 00:30:33,700 the hidden message. 551 00:30:34,640 --> 00:30:37,080 We have identified that there's a hidden message 552 00:30:37,080 --> 00:30:38,960 in the file, but in my opinion 553 00:30:38,960 --> 00:30:40,220 we're only halfway there. 554 00:30:40,700 --> 00:30:43,140 We need some type of ability to actually reveal 555 00:30:43,140 --> 00:30:45,040 that hidden message. What I'm going to show you 556 00:30:45,040 --> 00:30:47,000 in the next part of the presentation is 557 00:30:47,000 --> 00:30:48,780 some tactical measures by which you can 558 00:30:48,780 --> 00:30:49,840 possibly perform that. 559 00:30:53,360 --> 00:30:54,780 Searching for the signature pattern 560 00:30:54,780 --> 00:30:57,100 to determine the presence of a hidden message 561 00:30:57,100 --> 00:30:58,860 in this signature reveals 562 00:30:58,860 --> 00:31:00,740 the program used to hide that message. 563 00:31:01,120 --> 00:31:02,860 So perhaps if you identified that there 564 00:31:02,860 --> 00:31:04,860 is a hidden message within that 565 00:31:04,860 --> 00:31:06,860 file and the program used 566 00:31:06,860 --> 00:31:08,880 to hide it, we're going to talk about 567 00:31:08,880 --> 00:31:10,960 ways in which you can leverage that to then possibly 568 00:31:10,960 --> 00:31:12,020 reveal the hidden message. 569 00:31:15,040 --> 00:31:16,740 So this is where we bleed over into 570 00:31:16,740 --> 00:31:17,520 cryptanalysis. 571 00:31:19,860 --> 00:31:21,100 So as stated previously, 572 00:31:21,920 --> 00:31:22,380 steganography, 573 00:31:22,580 --> 00:31:24,740 the goal is to hide the message, not 574 00:31:24,740 --> 00:31:26,740 encrypt it. Cryptography provides 575 00:31:26,740 --> 00:31:28,880 the means to encrypt the message. 576 00:31:29,260 --> 00:31:31,100 So how do we reveal the hidden message? 577 00:31:33,220 --> 00:31:35,320 So knowing the steganography program 578 00:31:35,320 --> 00:31:37,080 used to hide the message can be extremely 579 00:31:37,080 --> 00:31:38,660 handy when attempting to reveal 580 00:31:38,660 --> 00:31:40,600 the actual hidden message. 581 00:31:41,580 --> 00:31:43,040 Because trying to identify 582 00:31:43,040 --> 00:31:44,820 and crack the algorithm, 583 00:31:45,100 --> 00:31:47,100 good luck, a lot of these things use 584 00:31:47,100 --> 00:31:48,380 very strong encryption, 585 00:31:48,720 --> 00:31:50,880 but yet other ones still use pretty weak 586 00:31:50,880 --> 00:31:52,180 encryption as well. 587 00:31:53,920 --> 00:31:54,960 Other mechanisms 588 00:31:54,960 --> 00:31:56,620 we can use is to try to reveal 589 00:31:56,620 --> 00:31:59,160 or crack the password, seed, or secret key. 590 00:31:59,720 --> 00:32:00,980 Practically all steganography 591 00:32:01,120 --> 00:32:02,900 programs use some form of a 592 00:32:02,900 --> 00:32:05,160 password or secret key or a seed to hide 593 00:32:05,160 --> 00:32:06,820 the message. If we can possibly 594 00:32:06,820 --> 00:32:09,060 reveal that, that may allow us to reveal 595 00:32:09,060 --> 00:32:09,980 the message as well. 596 00:32:10,440 --> 00:32:12,960 So although sometimes they may use some type of 597 00:32:12,960 --> 00:32:14,920 strong encryption, I have found that they 598 00:32:14,920 --> 00:32:16,680 use a clear text password 599 00:32:16,680 --> 00:32:19,000 or a seed right there within the file. 600 00:32:19,140 --> 00:32:20,840 And by using that you can just reveal 601 00:32:20,840 --> 00:32:21,380 the message. 602 00:32:26,860 --> 00:32:29,180 So, so far we've identified the program 603 00:32:29,180 --> 00:32:31,060 used to hide the message, identified the 604 00:32:31,120 --> 00:32:32,040 location of the program 605 00:32:33,140 --> 00:32:34,880 signature within the file. 606 00:32:35,820 --> 00:32:37,140 But now we want to try 607 00:32:37,140 --> 00:32:39,180 to identify the location of the password in the file. 608 00:32:40,080 --> 00:32:40,780 We've also 609 00:32:40,780 --> 00:32:43,220 identified the location of the hidden message 610 00:32:43,220 --> 00:32:45,060 and possibly the algorithm used 611 00:32:45,060 --> 00:32:46,260 to encrypt the hidden message. 612 00:32:48,480 --> 00:32:51,000 There are some password guessing and dictionary 613 00:32:51,000 --> 00:32:52,940 type tools out there, Neil Provost 614 00:32:52,940 --> 00:32:54,700 wrote one called 615 00:32:54,700 --> 00:32:56,960 Stegbreak. Only works against one 616 00:32:56,960 --> 00:32:58,580 particular program called Jsteg. 617 00:32:58,720 --> 00:33:01,080 But nonetheless this is one of the first I've seen. 618 00:33:01,120 --> 00:33:01,960 out there in the wild. 619 00:33:03,580 --> 00:33:05,100 It is now actually on 620 00:33:05,100 --> 00:33:07,100 the Knoppix Penguin Sleuth Forensics 621 00:33:07,100 --> 00:33:09,060 CD as well. You can 622 00:33:09,060 --> 00:33:10,800 check out Neil Provost's tool at 623 00:33:10,800 --> 00:33:12,900 outguess.org. He's been 624 00:33:12,900 --> 00:33:14,760 under a lot of political 625 00:33:14,760 --> 00:33:16,640 fire from the state of Michigan 626 00:33:16,640 --> 00:33:17,940 where he attends college. 627 00:33:19,420 --> 00:33:21,100 They've attempted to shut down his site 628 00:33:21,100 --> 00:33:22,780 a number of times. So his site is sometimes 629 00:33:22,780 --> 00:33:23,940 up, sometimes down. 630 00:33:25,000 --> 00:33:27,140 It's currently up as of my last check 631 00:33:27,140 --> 00:33:28,180 last night. 632 00:33:28,700 --> 00:33:30,880 Some of the links are 633 00:33:31,120 --> 00:33:32,920 crossed out but if you click on them it still takes you 634 00:33:32,920 --> 00:33:34,260 to the site where you can download the tools. 635 00:33:38,460 --> 00:33:40,960 So brute force methods or reverse 636 00:33:40,960 --> 00:33:42,860 engineering and common encryption 637 00:33:42,860 --> 00:33:44,380 techniques. We did talk about 638 00:33:44,980 --> 00:33:46,940 modification of the least significant bit within 639 00:33:46,940 --> 00:33:48,300 the program by which 640 00:33:48,960 --> 00:33:51,060 it hides the message by dispersing it 641 00:33:51,060 --> 00:33:52,800 throughout the file. Changing 642 00:33:52,800 --> 00:33:54,680 the least significant bit in a particular 643 00:33:54,680 --> 00:33:55,900 portion of the file. 644 00:33:59,420 --> 00:34:01,020 Also password or other 645 00:34:01,120 --> 00:34:03,180 contents are masked using some type 646 00:34:03,180 --> 00:34:04,960 of an algorithm based on a secret key, 647 00:34:05,120 --> 00:34:07,100 a password or a random seed 648 00:34:07,100 --> 00:34:08,620 hidden somewhere else within the file. 649 00:34:09,080 --> 00:34:11,020 Sometimes I've found this seed to be hidden 650 00:34:11,020 --> 00:34:11,260 within the file.