All right. Good afternoon. I'm Vic. That's my e-mail address. This presentation has changed a bit since I submitted the slides to DEF CON. I'll submit an updated copy to DEF CON, but you can also e-mail me. How many feds in here? That's a few. Okay. Yeah. Okay. Here's my usual disclaimer. Please read it, sign it. And this talk is actually four talks thrown into one. And unfortunately, when I was going over it today, I realized there was no way I was going to cover 70 slides in 50 minutes. So we are going to skip one portion of this talk. If we have time at the end, we'll come back around. But, you know, the slides are there, and I'm always available to answer questions. Next. Okay. If you're here and are interested in trying to crack on some of the Stego images, this URL, I don't see anybody with a laptop, like, trying to do anything. But we're going to get to this later in the talk, and we will reveal some Stego stuff and show you how it works. But if anybody needs this URL, please feel free to contact me. All right. It's case sensitive, because it runs on SunOS, so that capital S and capital P has to be put in. What is a secret? We all know what a secret is. Why would we protect secrets? Well, because they're secret. Why would we share them? Actually, we will go over why sharing secrets sometimes adds secrecy or security. Also for fault tolerance. So the next section is chaffing and winnowing, is the section I'm going to skip. It's pretty interesting stuff. It's a technique developed by Ron Rivest of RSA. He's a crypto god. If we have time, we'll come back around. And it's a pretty interesting topic, but I had to cut something, so we're going to roll through these slides to the next section. Okay. Secret splitting and sharing. What is it? It's just what it sounds like. You take a secret, you split it up, and share it to make it more secure. We'll be explaining in detail. Why not use crypto? Well, you will encrypt data, but then what do you do with your encryption key? If you encrypt the encryption key, you're not solving the problem. You're just perpetuating it. So that's not a solution. You can store the key in a secure location. Such as on a disk or in your mind. But if you die or the person who knows it dies, you can't recover it. Or if the disk gets wiped, you can't recover it. You can store copies of the key in multiple locations, but then the potential for complete key compromise is increased. So to make the secret key or otherwise reliable and robust, you break the secret into pieces. Distribute those pieces to different persons or machines and then have parts of that, not all the pieces, needing to come back together to get to the protected information. So subsets of this group can then put their shares together and recover the information. Secret splitting. A secret sharing scheme has two parts, a set of holders and an access structure. The access structure is the subset of holders who can recover the secret by pooling their information together. Shares or pieces of a split secret that every holder holds. Two components. Here's an example where we have a set of holders. H1, H2, and H3. And an access structure set. So in this example, this subset of holders is who can discover the secret or uncover the information by pooling their information. So if holder one, holder two get together, they can recover the information. Holder two and three, they can recover it. All three of them together, they can recover it. H1 and H3 in this scenario, if they get together with their information, they cannot recover the data. A perfect secret sharing scheme is where any qualified subset can reconstruct the secret and any unqualified subset, such as H1 and H3 in this example, has no viable information on the secret. For any set of holders, there can be many different kinds of access structures. So for example, for a set of three users, you can use a lot of different access structures. So in this case, A or B or C means that all of these entities hold a set of users. So A holds a big enough piece of the secret or the whole key to where any one of them can retrieve the information. Or you can have it where A holds a big piece and B and C, if they get their information together, they can recover the protected data. Or A, B, and C all together, the last example, can recover it. So just with a simple set of three holders, you can have a lot of different access structures. And more than these examples, even, for just three. So why would we even care about different access structures? Because different secret sharing schemes may require different levels of fault tolerance and secrecy, which you can realize by using different access structures. So if you have A or B or C can recover the information, that increases the fault tolerance. So I'd distribute the information. If I can distribute a key to three people, I can get any one of those three people to bring their information together and recover the data, but it decreases the secrecy, because it can be fully compromised by any one of those three people. If I require all three people to get together to recover the information, that increases the secrecy, but the key becomes more unreliable, because if any one of those information or machines goes down, I've got to recover the information. I've lost an integral piece of that shared secret, and I can no longer recover my information. This is not limited to protecting, like, passphrases, although that's a common example. So if you took a, you know, you can look at this model in a lot of different possibilities. If you take, say, an organization that's going to make financial payouts, and you have some top-level business manager. That has to sign a piece of paper to authorize that payout, and you maybe need two mid-level accounting managers to sign that same authorization. So you need three signatures, you know, one top-level, two lower-level, to authorize that payout. That's an example of a split secret in a different model. So you can apply this to a lot of different scenarios, and you can apply it a lot of different ways, depending on your needs. Share sizes. So the larger the size of the share is, the less secure it becomes. So if I have a 20-word passphrase that I give to someone to protect, what are they going to do with it? Are they going to remember it? No. I mean, so what are they going to do? They're going to write it down. So now they know it, and they've written it down. The potential for compromise is there. The system is less secure because they've written it down somewhere because it's too much information for them to remember. So that's kind of important. And from here, we could go into bounds and threshold schemes and log out algorithms and entropy and conditional entropy and theoretic notions, mathematical proofs, unions. This topic gets pretty geeky. But, you know, the concept is the same, and we don't really have time to go into that much math. And I'm not that good at math anyway, so. Next slide. So you know, here's just an example. If you're John Nash in that movie, A Brilliant Mind, I don't know if you've seen it, you can sit in a library all day and draw all these formulas and try and come up with some mathematical proof. And apply it to everything. And it's not enough to get you there, it's not enough to get you where you wanna go. So we've talked about this, so, here's an example of whattapes are, you know, the first thing that I just put up is, where is the best place for people to be, where are the best places for people to be? encryptors so we have we have back-end storage six storage area networks and NAS and SAN and these inline encryptors as data is written from Unix systems to those storage devices it's encrypted as it goes through them when it's read off the storage devices it's decrypted and if you need to decrypt everything on the storage device we have these crypto cards and crypto readers and these are split secrets and they have to be provided and our scheme was originally we had two card holders that had to provide these split secrets to recover or decrypt the entire storage and we had a case where we're adding some storage and we had to decrypt everything and a guy works on my team was supposed to be in to support it and on the security team and a guy in operations had the other key well the guy in operations comes in it's a scheduled change they take down systems they start swapping stuff around and the guy on my team doesn't show up and my boss calls me and you know he's like you know where's Rob and you know I'm coming out from backpacking on you know coming out of the woods when he calls me he said he's supposed to be here for this change he's got the crypto card and you know I asked if he called this house and his cell phone and he had and he wanted to know if I had his home address and I didn't so he was gonna go knock on Rob's door and you know find out where this crypto card was couldn't reach Rob all day I finally reached him late in the afternoon he had been out the night before late he was hungover and you know we had systems down and we lost money that day so on Monday morning the secret splitting scheme kind of changed and yeah our staff might have changed also personal safety just kind of is a wild example if you have a safe room in your house and you and your wife or girlfriend or boyfriend or whatever both have to put in some code to get into it and only one of you is home when someone breaks in then you have a risk-based consequence of an authentication error the point here is to only use secret splitting where needed and justified and make sure you plan and manage the setup properly secret splitting uses nuclear launch codes I mean we've all seen the movies where two guys have the keys to you know launch the nukes they both have to put in some pass codes bomb components so you know I I don't endorse terrorism or anything but just take an example some guys want to you know put a plant a bomb somewhere and blow it up but this place has a lot of security checking people as they come in for like bombs or bomb making ingredients so if they split up those ingredients to where you have like instead of one guy carrying a bomb or all the ingredients you have ten guys carrying pieces of it maybe they get past these checks and once they get to that destination they put it all together and launch a successful attack level three and four PKI I worked at a federal agency I actually set up the first production PKI in the federal government and as our PKI matured we had a secure room where we had to have two people badge in at the same time we had to have you know different signatures to sign certificates multiple people so we had split secrets in in that scenario intellectual property protection so you know just as an example if you work for Cisco and you're responsible for iOS you don't want that leaked out to your competitors maybe you have all your developers working on pieces of iOS and only managers have the authorization through change controls and operations group to put all those pieces together to make a viable product so you've split your intellectual property across all your developers to make it more secure where's following? Illegal substance smuggling of possession so say you know that the magic number with ecstasy is if you have twenty hits of it that's where possession becomes trafficking instead of a five year penalty you're going to do twenty years or something like that well don't carry twenty hits of ecstasy carry ten and get your buddy to carry ten or carry nineteen and get your buddy to carry one Not that I'm endorsing internal ongoing accordingly illegal drug use. So that's just, these are examples of secret splitting. I hope I explained it somewhat clearly. All right. Moving on. Steganography, what is it? It's covered writing. It dates back, it's been used for a long time, wax tablets. There was a Roman general who used to shave the head of slaves and put messages on their head and then send them to some destination to deliver the message after their hair had grown back. This is a really slow message delivery system. But, you know, if they got intercepted, the message was not revealed. But when they got to the destination, they shaved the head and get the message. You can hide text in the same color as a background. Lots of different things. Digital steganography hides information in digital files. And we'll go to the next slide. So why is it effective? These first two points are just something stupid I put on the slides. Because nobody expects the Spanish Inquisition. And to quote Kaiser Soze, the greatest trick the devil ever pulled was proving to the world he didn't exist. But my quote, and it's not original, is that the best place to hide information is in the middle of the world. To hide something is in plain sight. And the point is that stego is effective because people take what their eyes see on face value as a rule. So if you get pulled over and you have a six pack of soda along with some groceries and you have a receipt from the grocery store where you just went and, you know, whatever, border patrol or cops are searching your car, they see that six pack of soda and think nothing of it. Well, maybe that six pack of soda is really some kind of, you know, container of illicit material. So, but at a glance, your eyes take what you see on face value. And that includes digital files. When you're looking at programs that actually execute or you're looking at digital images, what you see you tend to believe is what it is. And steganography works because of that. Steganography history. We're going to skip this slide. It's just, you know, boring history. You can read it any time if you're interested in the topic. Simple DOS example, not denial of service, which I've had a couple of those tried against my laptop at DEF CON. Getting smurf attacks, plenty of port scans, you know, good fun on the DEF CON network. DOS example. So you would open up a text file in binary mode instead of text mode. Append another file to the end of the first file. And write an end of file flag at the end of the first file. So that anything in the second part of that file, if someone does a type command, type the file, it's not going to be displayed to the screen because it's going to hit the end of file flag because the type command reads in text mode by default. So the only way to get to that extra data that's hidden in that file is to switch to binary mode and open the file. Okay. All right. All right. And for improved security, maybe you encrypt that second part of the file. So if anybody actually opens it in binary mode, they think it's garbage data at the end of the file. So that's just a simple DOS example. Another example is where you would append a zip file to a GIF file. So you end up with a file that's readable both by zip programs and GIF programs. Okay. And you're going to have a zip file embedded in it. And the reason, and the zip program will still open it, but you have to know that it's, there's zip data in it. And the reason it works is because the GIF file, GIF information is stored in the file header and the viewers read that. And zip information is stored in the file footer and zip programs read that footer. Excuse me. All right. Modern implementations. Modern steganography attempts to be detectable only if secret information is known, the secret key. So this is similar to Kirchhoff's principle that a cryptographic system security doesn't rely on the algorithm, it relies on the protection of the key material. This is a modern stego implementation. For steganography to remain undetected, which is not the same as unbroken, the unmodified cover medium must be kept secret or you must use a cover medium that is not common. So if you're hiding information in programs or images, you don't want to use, you know, pictures of Paris Hilton that everybody has because they'll see the original file size and attributes and see your same picture and see that the, that file size and attributes don't match or some popular, you know, song on MP3, you know, compressed at 192. Well, if they have a copy of it that they can compare to your MP3, well, that's not If you have a MP3 file that is different in its attributes, they'll know that file's been altered. So, you know, that way you might not be able to crack what's in there, but you know something's going on. But because, you know, then they'd have to figure out the algorithm that was used and know the passphrase for certain products anyway. So let's move on to the next slide. The color of secrets. So image file colors are important because of the amount of bits that are used and because images or, you know, slight changes in images are not detectable to the human eye. 24-bit color is true color. So you have one pixel in an image, it requires three bytes to create that one pixel. Each of those bytes represents a level of red, green, or blue, RGB. Color. So, you know, we have a purple line there and the color of the line is red is a value of 191, green is 29, and blue is 152. So you have to have those three bytes to make up one pixel of purple. So, you know, we'll go into a little more detail that kind of explains this. Next page. So what happens in steganography of digital images? It uses least significant bit overriding. And what you do is conceal or embed a secret message within the least significant bits of those color bytes. This works because the human visual system isn't acute enough to pick out changes in color. Next slide. So the least significant bit. And, you know, I kind of wish my laser pointer would work here. I thought the slides would be further back, the projection screens would be further back. But it overrides the least significant bit, which is basically you have an 8-bit byte as you go up the string, the values are greater, 1, 2, 4, 8, 16. So the least significant bit is that number one bit. So you're going to change that end bit, that right end bit. So in this example, you're going to hide G in 3, 10 minutes? Okay. Damn. Well, we started way late. Okay. So, you know, you're going to hide B in, like, G in the last 8, in the 3 pixels. So you're going to change the last byte of 8 of those in 3 pixels. So each of those, each line represents a line. And each line represents a level of red, green, and blue. And so, like, this is a level of blue that's 200. You've changed it down here to 2. I mean, that's 201. That's 200. So you're going to only have a slight change in blue in an image. So if you have an image file that has a bunch of flowers, yellow flowers, white flowers, red flowers, and you're changing just pixels in that from one shade of red to a slightly different shade of red, the human eye is not going to pick it out. All you see is flowers. Meanwhile, you've hidden data within that using a program that can change these bits and then read through them again to recover the hidden information. Next slide. Overview of some Stego tools. We're just going to roll through these slides. Here's some information on a bunch of tools and what they do. Keep going. Keep going. Detecting steganography use. There are some tools out there that basically check a bunch of NSRL DB hashes of all, you know, common programs. So you can run those programs on an operating system that you're doing forensics on, say, and if it detects, you know, whatever, this program, explorer.exe, has different attributes than it's supposed to have, then maybe that means that executable has been modified. These programs will also detect the existence of Stego software. So if you're using Stego to protect some kind of secrets, you really want to use it kind of offline and not keep your secrets and your Stego software on the same machine because if your machine gets seized and the Stego software is found, then every file becomes suspect. Now, maybe you're using it. Maybe you're using good Stego software and you're using good secret keys to unlock it and maybe even if they discover it, they can't get at the hidden data, but, you know, the smart thing is to not have those eggs in the same basket. Here's an example on some ABC broadcast. There's the original image at the top, and this is using StegDetect and StegBreak. These are free pieces of software. You can see kind of the results of running them. It revealed there was a Steg image and the passphrase was ABC. It's easy to crack that kind of passphrase. You're going to use good passphrases if you're going to use Stego, obviously. So next slide. We have some online examples, and because we only have ten minutes, I would, you know, let me roll back around and try to reveal a couple. There's a couple of these, but we're going to roll on and then come back to that because I only have ten minutes. Steganography uses hiding information. You know the drill. And it's actually cool. It's easy to use, and, you know, if I show you these examples, you'll get a better gist of it. Hiding and sharing secrets physically. So these are spy tactics and practices. Don't steal secrets. Make copies. So use a camera. Use a video camera. One technique that's kind of cool is stick a camera inside a copy machine and just as people make copies or printouts, you just capture copies of that and retrieve it later. Establish creative two-way communication. So you're going to use some signals to communicate with someone without actually talking to them, just some physical signals. Use dead drops where parties never meet. So when spies exchange information, if I wanted to exchange information with somebody here and use a dead drop, maybe I take something, I stash it in the stairwell on top of some light or under the bottom stair, and then I go out and make a mark on some DEF CON poster, and that's my signal, and the person I'm communicating sees that mark that we've pre-agreed on. They know I've stashed something. They go get it out of that stairwell at some other time. That person and I never meet. We're never seen together. That's what dead drops are. Employ creative envelopes or containers for secrets to be exchanged, and use common or public areas. So you can go down a trail in the woods and drop something, go on an elevator, stash it in the little emergency thing or up in the ceiling in a library, stick something in a book that somebody's going to pick up later, sports stadium, whatever. Next slide. More spy tactics. You must keep the secrets hidden until time of transfer through a variety of methods. You may use caching where you bury your secrets, weapon, money, tools, or whatever. If you're using caching or storing them somewhere, you have to weigh the accessibility against the secrecy. So do you need to obtain that often or rarely? How far away is it? How hard is it to get if you need to get it back? Use a booby trap container that will destroy the contents if they're not opened properly. So, you know, that's pretty good technique. That way maybe you've lost the material, but the material is not compromised in a way that's, you know, going to end up in the wrong hands. Destroy obsolete records, receipts, tools. If you're doing this kind of secret exchanges, you don't want to keep any information you don't need because it might incriminate you later. Next slide. Two-way communication. You may need two-way communication. So I mentioned, like, make a mark on a poster. Well, maybe somebody has to do some other communication to give me information that the secret has been picked up. So you'll have signals to note that the drop is made. You may need a different signal. You can use a, you know, throw a drink can somewhere, break a tree branch going into a park, make chalk marks. So hobos use this. They use this to, like, designate. They do war chalking, not for wireless access points, but, like, where you can get a shower or a free meal or something like that. Maybe a rock somewhere. And before the Civil War, people who were helping slaves escape would hang quilts that showed direction to some escape routes. So that was kind of a two, you know, secret communication channel. Secret envelopes only limited by the imagination. You know, go inside an airplane, stick it in a smoke detector, and have somebody come back and pick it up. Inside books, inside a diaper genie or junk mail envelopes or whatever. Only limited by your imagination. Lots of interesting ideas here. So you could do a lot of different things to hide information in containers. Next slide. Dead drop uses. You know, drug deals. Classified information. Information exchange. Stolen goods exchange. Use your imagination. Next slide. A few live containers. I was going to bring a bunch of containers to, like, just show stuff. And I have a bunch of things, but I've been here since last Friday. I had a bunch of luggage already and didn't feel like dragging a bunch more luggage. So instead I just put together some slides with some images for some examples. Leftovers. You could use real leftovers. You know, put something in a pill bottle and stick it in there to where it's not getting ruined. Or you could buy these fake leftovers. A thing of hairspray. That PBR can. 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. Don't ask me how I know that. But you can buy one there. Next slide. Inside a candle. Inside an electric outlet. You know, who's going to look there in a house if they're looking for something? The sprinkler head. If you have a sprinkler system in your yard, who's going to walk around popping every sprinkler? You know, people see a sprinkler head, they think it's a sprinkler system. Next one. You know, this fix-a-flat. This fire alarm thing is kind of my own. You know, some of these things you can buy online. This fire alarm thing. I actually happened to get a fire alarm and gutted it. And you can use two-way tape and stick it anywhere. And people think it's a fire alarm. And really, you've stashed something for someone. Plastic models. Ask me about this Goodyear blimp off camera, specifically. I used to have one of those. So, holocoins. I have that silver dollar. No one can tell the difference. Same weight. You can store, obviously, small things like microfilm or something in there. That fake nickel has a cipher in it. A mantle. You know, and that mantle, no attack on that young lady. But that's one ugly mantle. What the hell is that duck? But, you know, people see a mantle and they think it's a mantle. Okay, one minute. The sandbox. I have another story about that. So, you know, ask me later. Next slide. Hollow sticks and branches and stuff. So, you go hiking in the woods. You have a hollow stick in your pocket with something in it. You go on a trail and you drop it by some tree, some specific tree. And then you let somebody know it's there. They go hiking in the woods. It's out of the way. Nobody sees you drop it. You're off the trail head. You're down the trail somewhere. And nobody sees that person pick it up. So, next slide. Dead rats and dog poop. Cold War spies have actually used dead rats to hide secrets. 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. So, they found out that if they put some Tabasco sauce on them, the animals would leave them alone. So, dog poop, you might not want to fool with it. But then, you know, whoever is looking for your, you know, following you around is not going to want to fool with it either. So, next slide. Genevieve from Rush Hour 3. It's kind of that whole tattoo on the head. Next slide. References. Some additional reading. And, yeah. I think I'm out of time. And I really apologize. I would love to show you the stego images. But thank you for being at this talk.