1 00:00:00,530 --> 00:00:07,240 All right. Good afternoon. I'm Vic. That's my e-mail address. This presentation has changed 2 00:00:07,240 --> 00:00:12,660 a bit since I submitted the slides to DEF CON. I'll submit an updated copy to DEF CON, 3 00:00:12,840 --> 00:00:17,140 but you can also e-mail me. How many feds in here? 4 00:00:18,140 --> 00:00:18,820 That's a few. 5 00:00:19,200 --> 00:00:19,700 Okay. 6 00:00:22,700 --> 00:00:23,200 Yeah. 7 00:00:27,840 --> 00:00:37,260 Okay. Here's my usual disclaimer. Please read it, sign it. And this talk is actually 8 00:00:37,820 --> 00:00:43,880 four talks thrown into one. And unfortunately, when I was going over it today, I realized 9 00:00:43,880 --> 00:00:50,380 there was no way I was going to cover 70 slides in 50 minutes. So we are going to skip one 10 00:00:50,380 --> 00:00:53,180 portion of this talk. If we have time at the end, we'll come back around. 11 00:00:53,180 --> 00:00:59,540 But, you know, the slides are there, and I'm always available to answer questions. Next. 12 00:01:00,620 --> 00:01:06,260 Okay. If you're here and are interested in trying to crack on some of the Stego images, 13 00:01:07,080 --> 00:01:12,560 this URL, I don't see anybody with a laptop, like, trying to do anything. But we're going 14 00:01:12,560 --> 00:01:18,380 to get to this later in the talk, and we will reveal some Stego stuff and show you 15 00:01:18,380 --> 00:01:23,160 how it works. But if anybody needs this URL, please feel free to contact me. 16 00:01:23,920 --> 00:01:30,000 All right. It's case sensitive, because it runs on SunOS, so that capital S and capital 17 00:01:30,000 --> 00:01:31,120 P has to be put in. 18 00:01:33,400 --> 00:01:38,040 What is a secret? We all know what a secret is. Why would we protect secrets? Well, because 19 00:01:38,040 --> 00:01:44,580 they're secret. Why would we share them? Actually, we will go over why sharing secrets 20 00:01:44,580 --> 00:01:53,160 sometimes adds secrecy or security. Also for fault tolerance. So the next section is 21 00:01:53,180 --> 00:01:57,700 chaffing and winnowing, is the section I'm going to skip. It's pretty interesting stuff. 22 00:01:57,740 --> 00:02:03,500 It's a technique developed by Ron Rivest of RSA. He's a crypto god. If we have time, 23 00:02:03,540 --> 00:02:08,840 we'll come back around. And it's a pretty interesting topic, but I had to cut something, 24 00:02:09,080 --> 00:02:13,200 so we're going to roll through these slides to the next section. 25 00:02:20,040 --> 00:02:22,760 Okay. Secret splitting and sharing. 26 00:02:24,360 --> 00:02:29,800 What is it? It's just what it sounds like. You take a secret, you split it up, and share 27 00:02:29,800 --> 00:02:34,400 it to make it more secure. We'll be explaining in detail. 28 00:02:36,320 --> 00:02:42,180 Why not use crypto? Well, you will encrypt data, but then what do you do with your encryption 29 00:02:42,180 --> 00:02:48,040 key? If you encrypt the encryption key, you're not solving the problem. You're just perpetuating 30 00:02:48,040 --> 00:02:52,720 it. So that's not a solution. You can store the key in a secure location. 31 00:02:53,180 --> 00:02:59,780 Such as on a disk or in your mind. But if you die or the person who knows it dies, 32 00:03:00,000 --> 00:03:06,020 you can't recover it. Or if the disk gets wiped, you can't recover it. You can store 33 00:03:06,020 --> 00:03:12,540 copies of the key in multiple locations, but then the potential for complete key compromise 34 00:03:12,920 --> 00:03:21,220 is increased. So to make the secret key or otherwise reliable and robust, you break the 35 00:03:21,220 --> 00:03:22,220 secret into pieces. 36 00:03:22,220 --> 00:03:28,680 Distribute those pieces to different persons or machines and then have parts of that, not 37 00:03:28,680 --> 00:03:35,880 all the pieces, needing to come back together to get to the protected information. So subsets 38 00:03:35,880 --> 00:03:41,220 of this group can then put their shares together and recover the information. 39 00:03:45,100 --> 00:03:51,000 Secret splitting. A secret sharing scheme has two parts, a set of holders and an access 40 00:03:51,000 --> 00:03:51,460 structure. 41 00:03:51,460 --> 00:03:56,740 The access structure is the subset of holders who can recover the secret by pooling their 42 00:03:56,740 --> 00:04:03,740 information together. Shares or pieces of a split secret that every holder holds. 43 00:04:05,900 --> 00:04:12,620 Two components. Here's an example where we have a set of holders. H1, H2, and H3. And 44 00:04:12,620 --> 00:04:20,120 an access structure set. So in this example, this subset of holders is who can discover 45 00:04:20,120 --> 00:04:25,740 the secret or uncover the information by pooling their information. So if holder one, 46 00:04:25,780 --> 00:04:30,660 holder two get together, they can recover the information. Holder two and three, they 47 00:04:30,660 --> 00:04:36,760 can recover it. All three of them together, they can recover it. H1 and H3 in this scenario, 48 00:04:37,040 --> 00:04:42,080 if they get together with their information, they cannot recover the data. 49 00:04:42,960 --> 00:04:49,400 A perfect secret sharing scheme is where any qualified subset can reconstruct the secret 50 00:04:49,400 --> 00:04:56,300 and any unqualified subset, such as H1 and H3 in this example, has no viable information 51 00:04:56,720 --> 00:04:57,420 on the secret. 52 00:05:02,120 --> 00:05:08,200 For any set of holders, there can be many different kinds of access structures. So for 53 00:05:08,200 --> 00:05:13,620 example, for a set of three users, you can use a lot of different access structures. 54 00:05:13,800 --> 00:05:19,380 So in this case, A or B or C means that all of these entities hold a set of users. So 55 00:05:19,400 --> 00:05:24,680 A holds a big enough piece of the secret or the whole key to where any one of them 56 00:05:24,680 --> 00:05:30,940 can retrieve the information. Or you can have it where A holds a big piece and B and C, 57 00:05:31,020 --> 00:05:36,600 if they get their information together, they can recover the protected data. Or A, B, and 58 00:05:36,600 --> 00:05:40,580 C all together, the last example, can recover it. 59 00:05:40,620 --> 00:05:46,540 So just with a simple set of three holders, you can have a lot of different access structures. 60 00:05:47,880 --> 00:05:51,960 And more than these examples, even, for just three. 61 00:05:52,800 --> 00:05:58,920 So why would we even care about different access structures? Because different secret 62 00:05:58,920 --> 00:06:05,060 sharing schemes may require different levels of fault tolerance and secrecy, which you 63 00:06:05,060 --> 00:06:07,240 can realize by using different access structures. 64 00:06:07,860 --> 00:06:15,140 So if you have A or B or C can recover the information, that increases the fault tolerance. 65 00:06:15,220 --> 00:06:16,520 So I'd distribute the information. 66 00:06:16,520 --> 00:06:20,920 If I can distribute a key to three people, I can get any one of those three people to 67 00:06:20,920 --> 00:06:27,560 bring their information together and recover the data, but it decreases the secrecy, because 68 00:06:27,560 --> 00:06:31,040 it can be fully compromised by any one of those three people. 69 00:06:31,360 --> 00:06:38,480 If I require all three people to get together to recover the information, that increases 70 00:06:38,480 --> 00:06:44,300 the secrecy, but the key becomes more unreliable, because if any one of those information or 71 00:06:44,300 --> 00:06:46,500 machines goes down, I've got to recover the information. 72 00:06:46,500 --> 00:06:51,900 I've lost an integral piece of that shared secret, and I can no longer recover my information. 73 00:06:53,420 --> 00:07:00,020 This is not limited to protecting, like, passphrases, although that's a common example. 74 00:07:00,320 --> 00:07:07,700 So if you took a, you know, you can look at this model in a lot of different possibilities. 75 00:07:08,040 --> 00:07:14,020 If you take, say, an organization that's going to make financial payouts, and you have some 76 00:07:14,020 --> 00:07:16,020 top-level business manager. 77 00:07:16,500 --> 00:07:22,100 That has to sign a piece of paper to authorize that payout, and you maybe need two mid-level 78 00:07:22,100 --> 00:07:25,200 accounting managers to sign that same authorization. 79 00:07:25,740 --> 00:07:32,280 So you need three signatures, you know, one top-level, two lower-level, to authorize that 80 00:07:32,280 --> 00:07:32,740 payout. 81 00:07:33,400 --> 00:07:37,720 That's an example of a split secret in a different model. 82 00:07:37,820 --> 00:07:44,840 So you can apply this to a lot of different scenarios, and you can apply it a lot of different 83 00:07:44,840 --> 00:07:46,380 ways, depending on your needs. 84 00:07:49,320 --> 00:07:50,200 Share sizes. 85 00:07:50,380 --> 00:07:54,000 So the larger the size of the share is, the less secure it becomes. 86 00:07:54,560 --> 00:08:02,780 So if I have a 20-word passphrase that I give to someone to protect, what are they going 87 00:08:02,780 --> 00:08:03,480 to do with it? 88 00:08:04,900 --> 00:08:06,200 Are they going to remember it? 89 00:08:07,360 --> 00:08:07,800 No. 90 00:08:07,920 --> 00:08:09,640 I mean, so what are they going to do? 91 00:08:09,700 --> 00:08:10,740 They're going to write it down. 92 00:08:10,880 --> 00:08:14,380 So now they know it, and they've written it down. 93 00:08:14,380 --> 00:08:16,580 The potential for compromise is there. 94 00:08:16,640 --> 00:08:20,940 The system is less secure because they've written it down somewhere because it's too 95 00:08:20,940 --> 00:08:22,960 much information for them to remember. 96 00:08:24,760 --> 00:08:27,440 So that's kind of important. 97 00:08:27,820 --> 00:08:34,440 And from here, we could go into bounds and threshold schemes and log out algorithms and 98 00:08:34,440 --> 00:08:39,880 entropy and conditional entropy and theoretic notions, mathematical proofs, unions. 99 00:08:41,140 --> 00:08:43,920 This topic gets pretty geeky. 100 00:08:44,660 --> 00:08:50,140 But, you know, the concept is the same, and we don't really have time to go into that 101 00:08:50,140 --> 00:08:50,740 much math. 102 00:08:50,980 --> 00:08:53,160 And I'm not that good at math anyway, so. 103 00:08:55,700 --> 00:08:56,440 Next slide. 104 00:08:56,680 --> 00:08:59,280 So you know, here's just an example. 105 00:09:00,060 --> 00:09:05,620 If you're John Nash in that movie, A Brilliant Mind, I don't know if you've seen it, you 106 00:09:05,620 --> 00:09:10,480 can sit in a library all day and draw all these formulas and try and come up with some 107 00:09:10,480 --> 00:09:11,800 mathematical proof. 108 00:09:12,200 --> 00:09:13,900 And apply it to everything. 109 00:09:13,900 --> 00:09:23,080 And it's not enough to get you there, it's not enough to get you where you wanna go. 110 00:09:23,260 --> 00:09:38,120 So we've talked about this, so, here's an example of whattapes are, you know, the 111 00:09:38,120 --> 00:09:43,000 first thing that I just put up is, where is the best place for people to be, where 112 00:09:43,000 --> 00:09:43,880 are the best places for people to be? 113 00:09:44,600 --> 00:09:50,420 encryptors so we have we have back-end storage six storage area networks and 114 00:09:50,420 --> 00:09:57,320 NAS and SAN and these inline encryptors as data is written from Unix systems to 115 00:09:57,320 --> 00:10:02,360 those storage devices it's encrypted as it goes through them when it's read off 116 00:10:02,360 --> 00:10:08,700 the storage devices it's decrypted and if you need to decrypt everything on the 117 00:10:08,700 --> 00:10:13,000 storage device we have these crypto cards and crypto readers and these are 118 00:10:13,000 --> 00:10:18,940 split secrets and they have to be provided and our scheme was originally 119 00:10:18,940 --> 00:10:23,320 we had two card holders that had to provide these split secrets to recover 120 00:10:23,320 --> 00:10:30,280 or decrypt the entire storage and we had a case where we're adding some storage 121 00:10:30,280 --> 00:10:34,940 and we had to decrypt everything and a guy works on my team was supposed to be 122 00:10:34,940 --> 00:10:39,240 in to support it and on the security team and a guy in operations had the 123 00:10:39,240 --> 00:10:42,800 other key well the guy in operations comes in it's a scheduled 124 00:10:42,800 --> 00:10:47,060 change they take down systems they start swapping stuff around and the guy 125 00:10:47,060 --> 00:10:51,860 on my team doesn't show up and my boss calls me and you know he's like you know 126 00:10:51,860 --> 00:10:56,940 where's Rob and you know I'm coming out from backpacking on you know coming out 127 00:10:56,940 --> 00:11:01,340 of the woods when he calls me he said he's supposed to be here for this change 128 00:11:01,340 --> 00:11:06,080 he's got the crypto card and you know I asked if he called this house and his 129 00:11:06,080 --> 00:11:09,980 cell phone and he had and he wanted to know if I had his home address and I 130 00:11:09,980 --> 00:11:12,720 didn't so he was gonna go knock on Rob's door and 131 00:11:12,800 --> 00:11:17,480 you know find out where this crypto card was couldn't reach Rob all day I 132 00:11:17,480 --> 00:11:21,520 finally reached him late in the afternoon he had been out the night 133 00:11:21,520 --> 00:11:28,700 before late he was hungover and you know we had systems down and we lost 134 00:11:28,700 --> 00:11:35,280 money that day so on Monday morning the secret splitting scheme kind of changed 135 00:11:37,020 --> 00:11:40,420 and yeah our staff might have changed also 136 00:11:47,720 --> 00:11:54,200 personal safety just kind of is a wild example if you have a safe room in your 137 00:11:54,200 --> 00:11:57,620 house and you and your wife or girlfriend or boyfriend or whatever 138 00:11:58,160 --> 00:12:03,000 both have to put in some code to get into it and only one of you is home when 139 00:12:03,000 --> 00:12:09,680 someone breaks in then you have a risk-based consequence of an 140 00:12:09,680 --> 00:12:10,600 authentication error 141 00:12:13,320 --> 00:12:18,840 the point here is to only use secret splitting where needed and justified and 142 00:12:18,840 --> 00:12:28,560 make sure you plan and manage the setup properly secret splitting uses nuclear 143 00:12:28,560 --> 00:12:32,440 launch codes I mean we've all seen the movies where two guys have the keys to 144 00:12:32,440 --> 00:12:38,040 you know launch the nukes they both have to put in some pass codes bomb 145 00:12:38,040 --> 00:12:42,660 components so you know I I don't endorse terrorism or anything 146 00:12:42,800 --> 00:12:47,940 but just take an example some guys want to you know put a plant a bomb 147 00:12:47,940 --> 00:12:52,340 somewhere and blow it up but this place has a lot of security checking people as 148 00:12:52,340 --> 00:12:58,980 they come in for like bombs or bomb making ingredients so if they split up 149 00:12:58,980 --> 00:13:02,880 those ingredients to where you have like instead of one guy carrying a bomb 150 00:13:02,880 --> 00:13:07,720 or all the ingredients you have ten guys carrying pieces of it maybe they get 151 00:13:07,720 --> 00:13:12,360 past these checks and once they get to that destination they put it all together 152 00:13:12,800 --> 00:13:19,060 and launch a successful attack level three and four PKI I worked at a 153 00:13:19,060 --> 00:13:24,440 federal agency I actually set up the first production PKI in the federal 154 00:13:24,440 --> 00:13:29,900 government and as our PKI matured we had a secure room where we had to have two 155 00:13:29,900 --> 00:13:34,020 people badge in at the same time we had to have you know different signatures to 156 00:13:34,020 --> 00:13:39,340 sign certificates multiple people so we had split secrets in in that scenario 157 00:13:41,120 --> 00:13:42,780 intellectual property protection 158 00:13:42,800 --> 00:13:48,200 so you know just as an example if you work for Cisco and you're responsible for 159 00:13:48,200 --> 00:13:53,440 iOS you don't want that leaked out to your competitors maybe you have all your 160 00:13:53,440 --> 00:13:59,620 developers working on pieces of iOS and only managers have the authorization 161 00:13:59,620 --> 00:14:03,920 through change controls and operations group to put all those pieces together 162 00:14:03,920 --> 00:14:09,660 to make a viable product so you've split your intellectual property across all 163 00:14:09,660 --> 00:14:12,780 your developers to make it more secure 164 00:14:15,720 --> 00:14:16,600 where's following? 165 00:14:17,320 --> 00:14:19,420 Illegal substance smuggling of possession 166 00:14:19,420 --> 00:14:24,460 so say you know that the magic number with ecstasy is 167 00:14:24,460 --> 00:14:28,800 if you have twenty hits of it that's where possession becomes trafficking 168 00:14:29,520 --> 00:14:33,320 instead of a five year penalty you're going to do twenty years or something like that 169 00:14:33,320 --> 00:14:38,460 well don't carry twenty hits of ecstasy carry ten and get your buddy to carry ten or carry 170 00:14:38,460 --> 00:14:40,200 nineteen and get your buddy to carry one 171 00:14:40,200 --> 00:14:42,780 Not that I'm endorsing internal ongoing accordingly 172 00:14:42,800 --> 00:14:51,500 illegal drug use. So that's just, these are examples of secret splitting. I hope I explained 173 00:14:51,500 --> 00:15:02,680 it somewhat clearly. All right. Moving on. Steganography, what is it? It's covered writing. 174 00:15:03,670 --> 00:15:09,800 It dates back, it's been used for a long time, wax tablets. There was a Roman general who 175 00:15:09,800 --> 00:15:17,020 used to shave the head of slaves and put messages on their head and then send them 176 00:15:17,020 --> 00:15:21,400 to some destination to deliver the message after their hair had grown back. This is a 177 00:15:21,400 --> 00:15:27,480 really slow message delivery system. But, you know, if they got intercepted, the message 178 00:15:27,480 --> 00:15:31,940 was not revealed. But when they got to the destination, they shaved the head and get 179 00:15:31,940 --> 00:15:38,240 the message. You can hide text in the same color as a background. Lots of different 180 00:15:38,240 --> 00:15:38,680 things. 181 00:15:40,140 --> 00:15:47,520 Digital steganography hides information in digital files. And we'll go to the next slide. 182 00:15:48,340 --> 00:15:55,080 So why is it effective? These first two points are just something stupid I put on the slides. 183 00:15:55,780 --> 00:16:02,480 Because nobody expects the Spanish Inquisition. And to quote Kaiser Soze, the greatest trick 184 00:16:02,480 --> 00:16:08,000 the devil ever pulled was proving to the world he didn't exist. But my quote, and it's not 185 00:16:08,000 --> 00:16:09,780 original, is that the best place to hide information is in the middle of the world. 186 00:16:09,800 --> 00:16:14,680 To hide something is in plain sight. And the point is that stego is effective because 187 00:16:14,680 --> 00:16:23,400 people take what their eyes see on face value as a rule. So if you get pulled over and 188 00:16:23,760 --> 00:16:28,060 you have a six pack of soda along with some groceries and you have a receipt from the 189 00:16:28,060 --> 00:16:34,020 grocery store where you just went and, you know, whatever, border patrol or cops are 190 00:16:34,020 --> 00:16:39,480 searching your car, they see that six pack of soda and think nothing of it. Well, maybe 191 00:16:39,480 --> 00:16:44,780 that six pack of soda is really some kind of, you know, container of illicit material. 192 00:16:45,100 --> 00:16:50,580 So, but at a glance, your eyes take what you see on face value. And that includes digital 193 00:16:50,580 --> 00:16:55,420 files. When you're looking at programs that actually execute or you're looking at digital 194 00:16:55,420 --> 00:17:02,080 images, what you see you tend to believe is what it is. And steganography works because 195 00:17:02,080 --> 00:17:03,840 of that. 196 00:17:07,640 --> 00:17:08,640 Steganography history. 197 00:17:09,480 --> 00:17:13,840 We're going to skip this slide. It's just, you know, boring history. You can read it 198 00:17:13,840 --> 00:17:15,900 any time if you're interested in the topic. 199 00:17:17,740 --> 00:17:23,840 Simple DOS example, not denial of service, which I've had a couple of those tried against 200 00:17:23,840 --> 00:17:29,920 my laptop at DEF CON. Getting smurf attacks, plenty of port scans, you know, good fun 201 00:17:29,920 --> 00:17:31,060 on the DEF CON network. 202 00:17:32,960 --> 00:17:39,160 DOS example. So you would open up a text file in binary mode instead of text mode. Append 203 00:17:39,160 --> 00:17:44,720 another file to the end of the first file. And write an end of file flag at the end of 204 00:17:44,720 --> 00:17:51,100 the first file. So that anything in the second part of that file, if someone does a type 205 00:17:51,100 --> 00:17:55,240 command, type the file, it's not going to be displayed to the screen because it's going 206 00:17:55,240 --> 00:18:00,680 to hit the end of file flag because the type command reads in text mode by default. So 207 00:18:00,680 --> 00:18:06,360 the only way to get to that extra data that's hidden in that file is to switch to binary 208 00:18:06,360 --> 00:18:07,700 mode and open the file. 209 00:18:08,100 --> 00:18:08,580 Okay. 210 00:18:08,600 --> 00:18:08,660 All right. 211 00:18:08,660 --> 00:18:08,740 All right. 212 00:18:09,160 --> 00:18:13,580 And for improved security, maybe you encrypt that second part of the file. So if anybody 213 00:18:13,580 --> 00:18:18,980 actually opens it in binary mode, they think it's garbage data at the end of the file. 214 00:18:19,180 --> 00:18:21,820 So that's just a simple DOS example. 215 00:18:24,620 --> 00:18:34,940 Another example is where you would append a zip file to a GIF file. So you end up with 216 00:18:34,940 --> 00:18:38,720 a file that's readable both by zip programs and GIF programs. 217 00:18:41,380 --> 00:18:41,860 Okay. 218 00:18:45,320 --> 00:18:56,420 And you're going to have a zip file embedded in it. And the reason, and the zip program 219 00:18:56,420 --> 00:19:01,120 will still open it, but you have to know that it's, there's zip data in it. And the reason 220 00:19:01,120 --> 00:19:06,580 it works is because the GIF file, GIF information is stored in the file header and the viewers 221 00:19:06,580 --> 00:19:07,480 read that. 222 00:19:07,480 --> 00:19:14,000 And zip information is stored in the file footer and zip programs read that footer. 223 00:19:20,940 --> 00:19:21,800 Excuse me. 224 00:19:22,700 --> 00:19:23,500 All right. 225 00:19:23,540 --> 00:19:24,740 Modern implementations. 226 00:19:25,620 --> 00:19:30,940 Modern steganography attempts to be detectable only if secret information is known, the secret 227 00:19:30,940 --> 00:19:31,220 key. 228 00:19:31,440 --> 00:19:36,500 So this is similar to Kirchhoff's principle that a cryptographic system security doesn't 229 00:19:36,500 --> 00:19:41,320 rely on the algorithm, it relies on the protection of the key material. 230 00:19:43,040 --> 00:19:45,240 This is a modern stego implementation. 231 00:19:46,040 --> 00:19:52,920 For steganography to remain undetected, which is not the same as unbroken, the unmodified 232 00:19:52,920 --> 00:19:59,020 cover medium must be kept secret or you must use a cover medium that is not common. 233 00:19:59,020 --> 00:20:07,160 So if you're hiding information in programs or images, you don't want to use, you know, 234 00:20:07,180 --> 00:20:12,260 pictures of Paris Hilton that everybody has because they'll see the original file size 235 00:20:12,260 --> 00:20:17,720 and attributes and see your same picture and see that the, that file size and attributes 236 00:20:17,720 --> 00:20:24,400 don't match or some popular, you know, song on MP3, you know, compressed at 192. 237 00:20:24,580 --> 00:20:29,000 Well, if they have a copy of it that they can compare to your MP3, well, that's not 238 00:20:29,000 --> 00:20:33,960 If you have a MP3 file that is different in its attributes, they'll know that file's 239 00:20:33,960 --> 00:20:34,480 been altered. 240 00:20:36,200 --> 00:20:42,640 So, you know, that way you might not be able to crack what's in there, but you know something's 241 00:20:42,640 --> 00:20:43,120 going on. 242 00:20:43,260 --> 00:20:47,620 But because, you know, then they'd have to figure out the algorithm that was used and 243 00:20:47,620 --> 00:20:49,920 know the passphrase for certain products anyway. 244 00:20:50,400 --> 00:20:55,280 So let's move on to the next slide. 245 00:20:57,380 --> 00:20:58,680 The color of secrets. 246 00:20:59,000 --> 00:21:05,540 So image file colors are important because of the amount of bits that are used and because 247 00:21:06,980 --> 00:21:12,560 images or, you know, slight changes in images are not detectable to the human eye. 248 00:21:14,320 --> 00:21:16,660 24-bit color is true color. 249 00:21:16,860 --> 00:21:23,660 So you have one pixel in an image, it requires three bytes to create that one pixel. 250 00:21:23,800 --> 00:21:28,500 Each of those bytes represents a level of red, green, or blue, RGB. 251 00:21:28,500 --> 00:21:29,400 Color. 252 00:21:30,060 --> 00:21:35,940 So, you know, we have a purple line there and the color of the line is red is a value 253 00:21:35,940 --> 00:21:39,160 of 191, green is 29, and blue is 152. 254 00:21:39,360 --> 00:21:45,000 So you have to have those three bytes to make up one pixel of purple. 255 00:21:48,180 --> 00:21:52,340 So, you know, we'll go into a little more detail that kind of explains this. 256 00:21:52,880 --> 00:21:53,800 Next page. 257 00:21:54,380 --> 00:21:58,220 So what happens in steganography of digital images? 258 00:21:58,220 --> 00:22:02,040 It uses least significant bit overriding. 259 00:22:02,340 --> 00:22:10,760 And what you do is conceal or embed a secret message within the least significant bits 260 00:22:10,760 --> 00:22:12,020 of those color bytes. 261 00:22:12,720 --> 00:22:17,980 This works because the human visual system isn't acute enough to pick out changes in color. 262 00:22:20,040 --> 00:22:21,140 Next slide. 263 00:22:23,320 --> 00:22:25,980 So the least significant bit. 264 00:22:25,980 --> 00:22:29,300 And, you know, I kind of wish my laser pointer would work here. 265 00:22:29,340 --> 00:22:34,240 I thought the slides would be further back, the projection screens would be further back. 266 00:22:34,400 --> 00:22:40,580 But it overrides the least significant bit, which is basically you have an 8-bit byte 267 00:22:40,580 --> 00:22:46,900 as you go up the string, the values are greater, 1, 2, 4, 8, 16. 268 00:22:47,200 --> 00:22:50,720 So the least significant bit is that number one bit. 269 00:22:51,400 --> 00:22:55,480 So you're going to change that end bit, that right end bit. 270 00:22:55,480 --> 00:23:01,420 So in this example, you're going to hide G in 3, 10 minutes? 271 00:23:01,860 --> 00:23:02,460 Okay. 272 00:23:02,680 --> 00:23:03,280 Damn. 273 00:23:03,780 --> 00:23:05,440 Well, we started way late. 274 00:23:07,480 --> 00:23:08,080 Okay. 275 00:23:08,160 --> 00:23:16,000 So, you know, you're going to hide B in, like, G in the last 8, in the 3 pixels. 276 00:23:16,100 --> 00:23:22,280 So you're going to change the last byte of 8 of those in 3 pixels. 277 00:23:22,340 --> 00:23:25,460 So each of those, each line represents a line. 278 00:23:25,460 --> 00:23:26,760 And each line represents a level of red, green, and blue. 279 00:23:27,140 --> 00:23:33,340 And so, like, this is a level of blue that's 200. 280 00:23:33,800 --> 00:23:35,680 You've changed it down here to 2. 281 00:23:35,780 --> 00:23:37,040 I mean, that's 201. 282 00:23:37,740 --> 00:23:38,520 That's 200. 283 00:23:38,880 --> 00:23:42,840 So you're going to only have a slight change in blue in an image. 284 00:23:42,900 --> 00:23:47,180 So if you have an image file that has a bunch of flowers, yellow flowers, white flowers, red flowers, 285 00:23:47,360 --> 00:23:55,140 and you're changing just pixels in that from one shade of red to a slightly different shade of red, 286 00:23:55,460 --> 00:23:56,920 the human eye is not going to pick it out. 287 00:23:56,960 --> 00:23:57,800 All you see is flowers. 288 00:23:57,920 --> 00:24:03,360 Meanwhile, you've hidden data within that using a program that can change these bits 289 00:24:03,360 --> 00:24:06,860 and then read through them again to recover the hidden information. 290 00:24:09,100 --> 00:24:09,940 Next slide. 291 00:24:10,000 --> 00:24:11,360 Overview of some Stego tools. 292 00:24:11,760 --> 00:24:13,960 We're just going to roll through these slides. 293 00:24:15,140 --> 00:24:19,200 Here's some information on a bunch of tools and what they do. 294 00:24:20,040 --> 00:24:21,040 Keep going. 295 00:24:22,520 --> 00:24:23,460 Keep going. 296 00:24:29,560 --> 00:24:31,260 Detecting steganography use. 297 00:24:32,760 --> 00:24:41,540 There are some tools out there that basically check a bunch of NSRL DB hashes of all, you know, common programs. 298 00:24:41,960 --> 00:24:47,500 So you can run those programs on an operating system that you're doing forensics on, say, 299 00:24:47,700 --> 00:24:52,660 and if it detects, you know, whatever, this program, explorer.exe, 300 00:24:52,660 --> 00:24:55,600 has different attributes than it's supposed to have, 301 00:24:55,780 --> 00:24:58,680 then maybe that means that executable has been modified. 302 00:24:59,060 --> 00:25:02,940 These programs will also detect the existence of Stego software. 303 00:25:03,440 --> 00:25:06,780 So if you're using Stego to protect some kind of secrets, 304 00:25:07,440 --> 00:25:12,080 you really want to use it kind of offline and not keep your secrets 305 00:25:12,080 --> 00:25:16,660 and your Stego software on the same machine because if your machine gets seized 306 00:25:16,660 --> 00:25:20,900 and the Stego software is found, then every file becomes suspect. 307 00:25:21,200 --> 00:25:22,640 Now, maybe you're using it. 308 00:25:22,660 --> 00:25:28,160 Maybe you're using good Stego software and you're using good secret keys to unlock it 309 00:25:28,160 --> 00:25:32,040 and maybe even if they discover it, they can't get at the hidden data, 310 00:25:32,240 --> 00:25:36,740 but, you know, the smart thing is to not have those eggs in the same basket. 311 00:25:39,440 --> 00:25:41,960 Here's an example on some ABC broadcast. 312 00:25:42,560 --> 00:25:47,080 There's the original image at the top, and this is using StegDetect and StegBreak. 313 00:25:47,200 --> 00:25:49,860 These are free pieces of software. 314 00:25:49,860 --> 00:25:52,500 You can see kind of the results of running them. 315 00:25:52,620 --> 00:25:56,600 It revealed there was a Steg image and the passphrase was ABC. 316 00:25:57,680 --> 00:26:00,360 It's easy to crack that kind of passphrase. 317 00:26:00,500 --> 00:26:03,900 You're going to use good passphrases if you're going to use Stego, obviously. 318 00:26:05,540 --> 00:26:06,840 So next slide. 319 00:26:07,120 --> 00:26:13,500 We have some online examples, and because we only have ten minutes, 320 00:26:13,720 --> 00:26:18,260 I would, you know, let me roll back around 321 00:26:18,260 --> 00:26:19,840 and try to reveal a couple. 322 00:26:19,860 --> 00:26:23,860 There's a couple of these, but we're going to roll on and then come back to that 323 00:26:25,220 --> 00:26:26,820 because I only have ten minutes. 324 00:26:27,720 --> 00:26:29,620 Steganography uses hiding information. 325 00:26:30,060 --> 00:26:31,920 You know the drill. 326 00:26:32,980 --> 00:26:34,400 And it's actually cool. 327 00:26:34,600 --> 00:26:37,360 It's easy to use, and, you know, if I show you these examples, 328 00:26:37,520 --> 00:26:39,100 you'll get a better gist of it. 329 00:26:40,080 --> 00:26:41,840 Hiding and sharing secrets physically. 330 00:26:43,240 --> 00:26:45,680 So these are spy tactics and practices. 331 00:26:46,220 --> 00:26:47,360 Don't steal secrets. 332 00:26:47,460 --> 00:26:48,260 Make copies. 333 00:26:48,320 --> 00:26:49,340 So use a camera. 334 00:26:49,860 --> 00:26:50,220 Use a video camera. 335 00:26:50,840 --> 00:26:55,700 One technique that's kind of cool is stick a camera inside a copy machine 336 00:26:55,700 --> 00:26:58,760 and just as people make copies or printouts, 337 00:26:58,820 --> 00:27:02,400 you just capture copies of that and retrieve it later. 338 00:27:03,880 --> 00:27:05,840 Establish creative two-way communication. 339 00:27:06,080 --> 00:27:09,380 So you're going to use some signals to communicate with someone 340 00:27:09,380 --> 00:27:12,300 without actually talking to them, just some physical signals. 341 00:27:13,100 --> 00:27:15,580 Use dead drops where parties never meet. 342 00:27:15,760 --> 00:27:17,340 So when spies exchange information, 343 00:27:17,340 --> 00:27:18,880 if I wanted to exchange information 344 00:27:18,880 --> 00:27:21,540 with somebody here and use a dead drop, 345 00:27:21,740 --> 00:27:25,820 maybe I take something, I stash it in the stairwell 346 00:27:25,820 --> 00:27:29,060 on top of some light or under the bottom stair, 347 00:27:29,400 --> 00:27:33,600 and then I go out and make a mark on some DEF CON poster, 348 00:27:33,720 --> 00:27:36,720 and that's my signal, and the person I'm communicating 349 00:27:36,720 --> 00:27:39,660 sees that mark that we've pre-agreed on. 350 00:27:39,820 --> 00:27:41,500 They know I've stashed something. 351 00:27:41,740 --> 00:27:44,740 They go get it out of that stairwell at some other time. 352 00:27:44,840 --> 00:27:46,660 That person and I never meet. 353 00:27:46,700 --> 00:27:47,620 We're never seen together. 354 00:27:48,340 --> 00:27:49,740 That's what dead drops are. 355 00:27:50,560 --> 00:27:52,840 Employ creative envelopes or containers 356 00:27:52,840 --> 00:27:54,420 for secrets to be exchanged, 357 00:27:55,400 --> 00:27:57,840 and use common or public areas. 358 00:27:57,980 --> 00:28:01,180 So you can go down a trail in the woods and drop something, 359 00:28:01,420 --> 00:28:04,620 go on an elevator, stash it in the little emergency thing 360 00:28:04,620 --> 00:28:06,920 or up in the ceiling in a library, 361 00:28:07,140 --> 00:28:09,720 stick something in a book that somebody's going to pick up later, 362 00:28:09,880 --> 00:28:11,120 sports stadium, whatever. 363 00:28:12,360 --> 00:28:13,120 Next slide. 364 00:28:13,960 --> 00:28:15,220 More spy tactics. 365 00:28:15,440 --> 00:28:16,800 You must keep the secrets hidden 366 00:28:16,800 --> 00:28:19,620 until time of transfer through a variety of methods. 367 00:28:20,200 --> 00:28:23,280 You may use caching where you bury your secrets, 368 00:28:23,500 --> 00:28:25,500 weapon, money, tools, or whatever. 369 00:28:26,200 --> 00:28:28,660 If you're using caching or storing them somewhere, 370 00:28:28,900 --> 00:28:31,940 you have to weigh the accessibility against the secrecy. 371 00:28:32,100 --> 00:28:35,120 So do you need to obtain that often or rarely? 372 00:28:35,260 --> 00:28:36,360 How far away is it? 373 00:28:36,420 --> 00:28:39,080 How hard is it to get if you need to get it back? 374 00:28:39,780 --> 00:28:43,440 Use a booby trap container that will destroy the contents 375 00:28:43,440 --> 00:28:44,820 if they're not opened properly. 376 00:28:45,640 --> 00:28:46,780 So, you know, 377 00:28:46,780 --> 00:28:48,300 that's pretty good technique. 378 00:28:48,720 --> 00:28:51,100 That way maybe you've lost the material, 379 00:28:51,280 --> 00:28:55,540 but the material is not compromised in a way that's, 380 00:28:55,660 --> 00:28:58,140 you know, going to end up in the wrong hands. 381 00:28:59,840 --> 00:29:02,240 Destroy obsolete records, receipts, tools. 382 00:29:02,440 --> 00:29:05,960 If you're doing this kind of secret exchanges, 383 00:29:06,260 --> 00:29:08,540 you don't want to keep any information you don't need 384 00:29:08,540 --> 00:29:10,080 because it might incriminate you later. 385 00:29:12,900 --> 00:29:13,660 Next slide. 386 00:29:13,740 --> 00:29:14,480 Two-way communication. 387 00:29:14,480 --> 00:29:17,140 You may need two-way communication. 388 00:29:17,420 --> 00:29:19,820 So I mentioned, like, make a mark on a poster. 389 00:29:19,920 --> 00:29:23,380 Well, maybe somebody has to do some other communication 390 00:29:23,380 --> 00:29:28,840 to give me information that the secret has been picked up. 391 00:29:29,620 --> 00:29:32,600 So you'll have signals to note that the drop is made. 392 00:29:32,860 --> 00:29:34,660 You may need a different signal. 393 00:29:34,900 --> 00:29:37,840 You can use a, you know, throw a drink can somewhere, 394 00:29:37,980 --> 00:29:40,460 break a tree branch going into a park, 395 00:29:40,700 --> 00:29:42,960 make chalk marks. 396 00:29:43,100 --> 00:29:44,360 So hobos use this. 397 00:29:44,360 --> 00:29:46,240 They use this to, like, designate. 398 00:29:46,280 --> 00:29:49,140 They do war chalking, not for wireless access points, 399 00:29:49,280 --> 00:29:51,840 but, like, where you can get a shower or a free meal 400 00:29:51,840 --> 00:29:52,760 or something like that. 401 00:29:53,440 --> 00:29:55,320 Maybe a rock somewhere. 402 00:29:55,740 --> 00:29:58,720 And before the Civil War, people who were helping slaves escape 403 00:29:59,900 --> 00:30:04,540 would hang quilts that showed direction to some escape routes. 404 00:30:04,800 --> 00:30:09,100 So that was kind of a two, you know, secret communication channel. 405 00:30:09,980 --> 00:30:12,540 Secret envelopes only limited by the imagination. 406 00:30:12,540 --> 00:30:16,400 You know, go inside an airplane, stick it in a smoke detector, 407 00:30:16,580 --> 00:30:18,320 and have somebody come back and pick it up. 408 00:30:18,660 --> 00:30:24,420 Inside books, inside a diaper genie or junk mail envelopes or whatever. 409 00:30:25,000 --> 00:30:26,740 Only limited by your imagination. 410 00:30:27,980 --> 00:30:30,400 Lots of interesting ideas here. 411 00:30:31,320 --> 00:30:36,540 So you could do a lot of different things to hide information in containers. 412 00:30:37,220 --> 00:30:38,060 Next slide. 413 00:30:38,480 --> 00:30:39,700 Dead drop uses. 414 00:30:40,000 --> 00:30:41,280 You know, drug deals. 415 00:30:41,580 --> 00:30:42,440 Classified information. 416 00:30:42,540 --> 00:30:43,100 Information exchange. 417 00:30:43,600 --> 00:30:44,720 Stolen goods exchange. 418 00:30:45,380 --> 00:30:46,500 Use your imagination. 419 00:30:50,520 --> 00:30:51,320 Next slide. 420 00:30:51,400 --> 00:30:52,240 A few live containers. 421 00:30:52,560 --> 00:30:56,360 I was going to bring a bunch of containers to, like, just show stuff. 422 00:30:56,820 --> 00:31:01,520 And I have a bunch of things, but I've been here since last Friday. 423 00:31:01,580 --> 00:31:05,560 I had a bunch of luggage already and didn't feel like dragging a bunch more luggage. 424 00:31:05,720 --> 00:31:10,860 So instead I just put together some slides with some images for some examples. 425 00:31:12,100 --> 00:31:12,620 Leftovers. 426 00:31:13,340 --> 00:31:14,840 You could use real leftovers. 427 00:31:15,140 --> 00:31:19,120 You know, put something in a pill bottle and stick it in there to where it's not getting ruined. 428 00:31:19,420 --> 00:31:21,660 Or you could buy these fake leftovers. 429 00:31:22,640 --> 00:31:24,240 A thing of hairspray. 430 00:31:24,280 --> 00:31:25,700 That PBR can. 431 00:31:26,720 --> 00:31:34,120 There's a hemp shop down the street across from the stratosphere tower that has a bunch of soda cans that you can hide stuff in it. 432 00:31:34,440 --> 00:31:36,060 Don't ask me how I know that. 433 00:31:37,580 --> 00:31:40,040 But you can buy one there. 434 00:31:40,040 --> 00:31:41,560 Next slide. 435 00:31:41,720 --> 00:31:42,720 Inside a candle. 436 00:31:42,900 --> 00:31:45,260 Inside an electric outlet. 437 00:31:45,600 --> 00:31:49,080 You know, who's going to look there in a house if they're looking for something? 438 00:31:49,740 --> 00:31:50,760 The sprinkler head. 439 00:31:50,940 --> 00:31:54,960 If you have a sprinkler system in your yard, who's going to walk around popping every sprinkler? 440 00:31:55,100 --> 00:31:58,060 You know, people see a sprinkler head, they think it's a sprinkler system. 441 00:31:59,580 --> 00:32:00,240 Next one. 442 00:32:01,740 --> 00:32:03,200 You know, this fix-a-flat. 443 00:32:03,340 --> 00:32:05,140 This fire alarm thing is kind of my own. 444 00:32:05,300 --> 00:32:07,480 You know, some of these things you can buy online. 445 00:32:07,760 --> 00:32:08,920 This fire alarm thing. 446 00:32:08,920 --> 00:32:12,860 I actually happened to get a fire alarm and gutted it. 447 00:32:13,040 --> 00:32:16,560 And you can use two-way tape and stick it anywhere. 448 00:32:16,760 --> 00:32:18,280 And people think it's a fire alarm. 449 00:32:18,400 --> 00:32:20,520 And really, you've stashed something for someone. 450 00:32:21,700 --> 00:32:22,520 Plastic models. 451 00:32:22,960 --> 00:32:27,080 Ask me about this Goodyear blimp off camera, specifically. 452 00:32:27,200 --> 00:32:28,900 I used to have one of those. 453 00:32:29,400 --> 00:32:32,580 So, holocoins. 454 00:32:32,640 --> 00:32:33,980 I have that silver dollar. 455 00:32:34,580 --> 00:32:36,200 No one can tell the difference. 456 00:32:36,260 --> 00:32:37,040 Same weight. 457 00:32:37,040 --> 00:32:41,260 You can store, obviously, small things like microfilm or something in there. 458 00:32:41,400 --> 00:32:43,700 That fake nickel has a cipher in it. 459 00:32:44,840 --> 00:32:45,740 A mantle. 460 00:32:46,080 --> 00:32:49,860 You know, and that mantle, no attack on that young lady. 461 00:32:49,980 --> 00:32:51,340 But that's one ugly mantle. 462 00:32:52,280 --> 00:32:53,620 What the hell is that duck? 463 00:32:53,820 --> 00:32:57,220 But, you know, people see a mantle and they think it's a mantle. 464 00:32:57,340 --> 00:32:58,040 Okay, one minute. 465 00:32:58,660 --> 00:32:59,560 The sandbox. 466 00:32:59,640 --> 00:33:01,220 I have another story about that. 467 00:33:01,460 --> 00:33:02,920 So, you know, ask me later. 468 00:33:03,820 --> 00:33:04,520 Next slide. 469 00:33:04,760 --> 00:33:06,900 Hollow sticks and branches and stuff. 470 00:33:07,040 --> 00:33:08,440 So, you go hiking in the woods. 471 00:33:08,600 --> 00:33:12,160 You have a hollow stick in your pocket with something in it. 472 00:33:12,180 --> 00:33:16,700 You go on a trail and you drop it by some tree, some specific tree. 473 00:33:16,960 --> 00:33:18,980 And then you let somebody know it's there. 474 00:33:19,060 --> 00:33:20,340 They go hiking in the woods. 475 00:33:20,760 --> 00:33:21,820 It's out of the way. 476 00:33:21,860 --> 00:33:23,520 Nobody sees you drop it. 477 00:33:23,580 --> 00:33:25,240 You're off the trail head. 478 00:33:25,380 --> 00:33:26,560 You're down the trail somewhere. 479 00:33:26,760 --> 00:33:28,820 And nobody sees that person pick it up. 480 00:33:29,040 --> 00:33:30,920 So, next slide. 481 00:33:31,060 --> 00:33:32,560 Dead rats and dog poop. 482 00:33:33,880 --> 00:33:37,020 Cold War spies have actually used dead rats to hide secrets. 483 00:33:37,020 --> 00:33:47,240 And when they started doing this, both U.S. and Russians, they would find that their rats were getting carried away by animals that were eating them. 484 00:33:47,380 --> 00:33:52,500 So, they found out that if they put some Tabasco sauce on them, the animals would leave them alone. 485 00:33:52,860 --> 00:33:55,500 So, dog poop, you might not want to fool with it. 486 00:33:55,520 --> 00:34:01,140 But then, you know, whoever is looking for your, you know, following you around is not going to want to fool with it either. 487 00:34:01,740 --> 00:34:02,800 So, next slide. 488 00:34:03,220 --> 00:34:04,880 Genevieve from Rush Hour 3. 489 00:34:05,020 --> 00:34:07,000 It's kind of that whole tattoo on the head. 490 00:34:07,020 --> 00:34:09,040 Next slide. 491 00:34:10,340 --> 00:34:10,960 References. 492 00:34:11,040 --> 00:34:12,100 Some additional reading. 493 00:34:12,660 --> 00:34:14,740 And, yeah. 494 00:34:14,980 --> 00:34:16,740 I think I'm out of time. 495 00:34:16,940 --> 00:34:18,860 And I really apologize. 496 00:34:18,980 --> 00:34:21,300 I would love to show you the stego images. 497 00:34:23,120 --> 00:34:26,240 But thank you for being at this talk.