This mic. Okay. My name is Mystic. I'm going to be doing a presentation on mimicry and the mimic functions. And in order to explain basically what that is, let me just start with this, the basic concepts, and then I'll give you, I'll give you, I'll show you an example of the mimic functions in action. And then I'll go into more detail on how to use them, how to write your own things for them, and stuff like that. And then I'll give you an introduction to a program that I'm developing right now. It's still in development. That takes this concept into a live chat atmosphere. Yeah. Okay. So first, just basically, what is mimicry? Mimicry is basically the ability to mimic your surroundings, as it says up there. You know, like animals do it, like chameleons would do it in the wild to mimic their surroundings in order to survive. And in the sort of cyberspace world where you have the internet and you have just communications going around and you want to encrypt something, the problem with that is that when you encrypt something, if somebody could run a filter on that network looking for encrypted data and pull it right out and then, you know, eventually decrypt it. Okay. It's only a matter of time. You know. So what mimicry, what mimicry, what mimicry basically does is it allows you to encrypt data or take any data and encode it in a way that the output does not look like encoded data. And in fact, it mimics the sentence structure or the sort of likeness of a completely different script. And I'll have to sort of show that to you. It's hard to explain. So that's what it says right there. A way to encrypt or hide data in which the output is statistically or grammatically sound. So if somebody was to use a, if somebody was to use a filter to look for it, it wouldn't come up because it would just look like normal text. And before I go on, I want to show you an example of that. So I'll just give you one second. Just sort of put it in perspective of what we're talking about. So here's a Java applet. I'll give you, at the end of the presentation, I'll give you an address to where you can actually download and use this program. And the source code for this is also on the CD. So basically, I want to enter the message here. Push forward. And now what it, what it says there, basically what it generated is a block of text that mimics the, mimics two people, mimics the announcing of a baseball game. So I'll just read you a little bit of it. It says, Well, Bob, welcome to yet another game between the Whoppers and the Blogs. You're in the scenic downtown, uh, Bolvania. Yeah. I think it's fair to say that plenty of blah, blah, blah, fog fever. It just talks about the game. So then, then taking this text, we can just run, remove mimicry, and there's our original text right there. So that's basically what the, uh, mimic functions do. Oh, and I forgot to mention, um, the mimic functions were first released in a book entitled Disappearing Cryptography by a man named Peter Wehner. He was the first one to sort of take this concept and create a, um, a proof of concept. Which are the mimic functions. So this is his code that I'm showing you. Um, and again, I'll, I'll show, give you a link to that, uh, where you can go by the book. And his, go to his website. Oops. So now the question is, you know, how do you, how do you tell the program what to mimic? Um, and mimic does this by, what it says, generating text using the syntax described in what's called a context-free grammar. And hides data by the choices it makes in that grammar. And I'll go through and explain that more in detail as I go on. Um, first I'll describe what a context-free grammar is. Um, a context-free grammar is basically a very specific way of describing language. In general. Um, and in order to do that, it uses terminals, which are words or phrases. And they're static, as it says there. Variables, which are places where those decisions, where decisions in the sort of phrase, um, can be found. And productions, which describe how a variable can be inverted into different sets of variables and terminals. And I, again, I'll show you an example, which, uh, puts it all in perspective. So, um, here you see. A variable. So here's an example of a production. It shows a variable. And it shows phrases or words. So, to describe, to show a context-free grammar on paper, you would have the variable, I think I, the variables are in bold. And then this, uh, is what you put between the variable and the rest of the production. And then phrases are words. So. Um. This is a series of. Productions. And it's describing a complete context-free grammar. So. This is a good way to describe it. Okay. So you have start. And a noun and a verb. Those are both variables. Right? Start is where, is where you start. Nouns can either be Fred, Barney, or Fred and Barney. And the verb can be went fishing or went bowling. So this context-free grammar can generate sentences such as. Fred went fishing. Or Barney went bowling. Or Fred and Barney went fishing. Et cetera, et cetera. So. That's basically what a context-free grammar is. Um. Putting it very simply because I don't want to get too technical. Um. Into it. In order for Mimic to hide binary data. It creates a. It creates a tree of choices. Based on those context-free grammars. So. If you look at here. There's all sorts of. There's, there's different choices that can be made. Um. You know. The noun can either be either of these. So it goes to these choices. And it creates a binary tree. So it starts. At. It starts here. And it creates. It starts here. And then it creates a one and a zero. Either one could be. Fred. Zero is Barney. And then it goes. On and on and on. Um. So. When it creates this tree. The leaves of the tree is. What would encode. The. Right bits. So. Again. I'm going to give you an example. So it's easier. To understand. So we're going to start out with this context-free grammar. There's. Start. And. Noun. And a verb. And then Fred and Barney. And then verb. When fishing. Where. Where is also a variable. Uh. When bowling. Where. The other variables. And then direction. So. Um. You can see the bottom there. Okay. Um. So. Let's say. Uh. So let's say. You. There it is. So let's say you want to hide. One. Zero. One. Zero. Um. You want to hide those bits. What. You want to hide those bits. Given. This context-free grammar. So. It's going to go through. And say. The first. It's going to start at. Start. And. There's nothing hidden. Because it's just. The start. And then. So it's noun and verb. And since it's a one. It'll go to the first choice. Which is. Barney. And then. It'll go on. Next one is a zero. And. It's. It's going towards Barney. Verb. And you see the verb. Zero. Is going to be. When fishing. So it'll go down. When fishing. And then here it says. Uh. Barney went fishing where. It's a one. So it'll go. To. Here. In direction. Minnesota. So. It'll go here. And say. When fishing. In. Direction. So it'll say. Direction. Zero. Is northern. So it's northern Minnesota. And. So. That would. Give you the sentence down there. If you can read it. It says Barney. Went fishing in northern Minnesota. So. So. Mimic needs. The bits. To be encoded. Which can be. The text. That I entered. At the beginning. Um. Bits. And it needs. A context free grammar. Those are the two things. That it needs. To encode. And also. To decode. Um. And. The way. That mimic. Understands. Context free. Grammars. Is through what's called. A grammar file. Um. And it's something. That's unique. To mimic. Let me give you. An example. Of a grammar file. Just really quick. So. You can see. Here. I should have. It up. Already. Now. Oh. I didn't have. That one up. Um. So. So. So. Really. Oh. Man. I didn't know. If you didn't. Ah. Geez. Okay. Well. Then. You know. What. Here. Alright. Then. I'll. Just. Go. Through. This. You'll. You'll. See. An. Example. As. It. Goes. On. Ah. Okay. Well. In. Order. To. Create. A. Grammar. File. Um. In. Order. To. Show. The. Variables. Variables. Always. Start. With. An. Asterisk. And. Must. Be. One. Word. Um. Productions. Are. The. At. The. End. Of. Reductions. And. I'll. Show. You. There'll. A. Bit. Of. Example. Indicate. The. Weight. Given. To. That. Choice. And. They. They're. Not. They're. They're. Not. Uh. They. Don't. Weigh. Out. Each. Other. Like. Just. Basically. The. Higher. The. Number. The. More. Probable. It'll. Appear. In. The. Production. And. I'll. Give. You. A. Example. Of. That. Uh. The. End. Of. Variables. Indicated. Double. Slashes. Uh. Starting. Variable. Is. Always. First. So. Here's. An. Example. Of. What. A. Small. Grammar. File. Would. That. Um. And. The. Numbers. At. The. End. Give. The. Weight. So. Here. This. Number. Is. Smaller. Than. The. Other. One. So. This. One. Would. Occur. Less. In. The. Final. Um. Encoded. Formation. Um. Because. Of. Uh. The. Limitations. Of. Mimic. You. Cannot. You. Can't. Have. A. Grammar. That. Is. Ambiguous. So. There. Can. Only. Be. One. Way. Of. Producing. One. Phrase. If. Were. More. Than. One. Ways. Then. The. Encoding. Wouldn't. Work. So. In. Order. To. Do. That. Um. That's. An. Example. Of. An. The. End. Of. The. Productions. You. Can't. Have. A. Variable. And. Then. Something. Static. Afterwards. It. Helps. It. Helps. Make. Sure. There. Are. Checks. In. The. Program. To. Make. Sure. Aren't. Ambiguous. Grammars. But. This. Helps. Out. Just. To. Make. Sure. Some. Of. Limitations. Of. Mimic. Is. That. As. You. Saw. Before. I. Had. A. Very. Small. Text. And. Generated. A. Huge. Amount. Of. Data. It. It. All. Depends. On. The. Number. Of. Possibilities. In. The. Grammar. File. And. In. Case. If. You. A. Number. Of. Possibilities. And. Each. Possibilities. Have. A. Large. Amount. Of. Text. And. You're. Going. Generate. A. Huge. File. Because. It. Needs. More. Possibilities. In. To. Generate. A. Larger. Tree. So. Also. If. You. If. Reaches. The. End. Of. A. Grammar. File. It. Will. Repeat. And. Go. Back. To. The. Beginning. And. Also. There's. And. Also. There's. Also. Randomness. Built. In. But. It's. Not. Sophisticated. So. If. Somebody. Really. Wanted. To. They. Could. Write. Some. Sort. Of. A. Filter. To. If. Enough. Data. Go. Through. They. May. Be. Able. To. Write. Some. Sort. Of. Filter. Because. It's. Not. The. Randomness. Isn't. Very. Well. Done. You'll. See. Some. You'll. See. One. You'll. See. Bits. That. Will. Generate. The. Same. In. Code. The. Same. Encoded. Data. Sometimes. But. There. Is. Randomness. There. R.C. Mimic. This. Is. The. Program. File. That. Mimics. One. Side. Of. An. I. R.C. Conversation. Just. A. Simple. Like. Hi. How. Are. You. What's. Your. Name. Where. You're. From. Things. Like. That. And. Then. It. The. Program. Will. Start. Sending. We'll. Send. One. Side. Of. The. Conversation. And. Then. Wait. For. Something. Else. And. So. You. Send. Another. One. Will. Send. More. Of. It. So. In. It. Sort. Of. It's. Built. In. A. Way. That. The. In. Product. Will. Look. Like. Just. Any. Normal. I. R.C. Conversation. But. In. That. One. Side. Of. Conversation. Is. Is. An. Encoded. Message. And. In. Order. To. Do. This. Right. Because. You. Because. That. Small. Text. Generates. So. Much. Data. I. Did. A. Few. Little. And. Found. Like. The. Sentence. Information. For. The. Top. I. Don't. Know. Thousand. Names. In. The. Country. And. Put. That. In. Is. All. The. Possibilities. Yeah. Question. It's. Not. That. It's. Not. That. Advanced. Right. Now. All. It. Does. Is. It. Generates. It. Basically. It. Does. The. Same. Thing. That. That. First. Program. I. Showed. You. Does. But. Instead. Generating. The. Baseball. Game. It. Generates. One. Side. Of. A. Complete. Conversation. So. So. It'll. Send. That. One. So. For. Instance. It'll. Say. Hey. And. Then. You. Type. Back. The. Personal. Type. Back. Hey. And. The. Computer. Will. Bring. Back. How. Are. You. That's. One. Side. Of. The. Conversation. Then. You'll. Say. Good. The. Computer. Is. A. Side. The. Conversation. So. Are. One. Side. Of. The. Is. A. Side. The. So. Things. That. Seems. To. Look. At. The. I. See. If. You. If. You. Want. That. This. Is. Still. In. Development. If. You. Want. A. Copy. Of. The. Source. But. There. Is. There. There. Š. O. N. A. T. Have. Two. Bots. The. Same. Grammar. File. And. Have. more options, possibilities, make it sound a little more real. And here are some of my resources. This is where you can go to look at that Java applet that I showed you at the beginning. So also you learn about, you can learn about disparate cryptography at www.wayner.org. That's Peter Wayner's website. You should also check out Spam Mimic, which takes the mimic functions and actually you enter a message and it generates text that looks like a random spam message on the internet. So you could send that out and somebody will, it's funny because somebody will read it and it doesn't really say anything, but if you keep on reading it, eventually you get bored, but it doesn't seem like a computer is writing it. It really does seem like something that you'd actually see as a spam message. This is a place to go to get the original Mimic functions, which are actually written in C. This is where you can go to get those. If you want the Java version, I do have, it is on the CD. Yeah, it is on the DEF CON CD. And the Disappearing Cryptography, that's the book, is a second edition out. Iris Mimic, it's not up yet. Another thing, I'm a member of the Tribal Security Group, and we'll actually be doing a talk tomorrow that you should check out on the Box that we built called the Undetectable Packet Sniffer, which is where we took a packet sniffer and stuck it into a stock-looking, uninterruptible power supply box. It's really neat. You should go check it out. And that's it. I don't know if I have any time left for questions, but that's it.