I'm a professor at University of California, Irvine, in computer science, and I'd like to thank my co-authors over there, Yuki Sawa and Ron Bakta, they're both students of mine, and then Chris Hednagy, who supplied me with the samples and talked to me about social engineering attacks in general. So, the idea, okay, so, before I go into the slides, basically the whole point of this is to detect social engineering attacks while they're happening. Now, what the system actually does is it assumes that the text is already transcribed, right? So, it takes typed text. So, if you're using a chat application or something like that, then you already have it typed. If you don't, if it's over the phone or something like that, then you would have to have speech-to-text in order to do this, to do what we're doing, right? So, we assume we have text, and we analyze the text that the potential attacker is saying. So, we assume it's the dialogue between two people. We analyze it. We analyze it, the text. We process, we basically parse each sentence as it comes along, and we try to detect if it's a suspicious sentence, if it's asking you something you shouldn't be asked. And if it does, then we alert the user. That's basically the whole thing, okay? So, if there's feedback, I'll try to fix it, but that's the idea. So, the first slides, you know, now that I look at them, this crowd is probably a little, people know about social engineering here, so maybe some of these first slides are not that important. What is social engineering? Oh, there are lots. Definition, psychological manipulation, to get somebody to do something they shouldn't do, da-da-da. You know, and it's not new. It's just con people, whatever, convincing you to get something out of you. And there are a lot, you know, with technology, you can do it through different vectors. You can do it through email, or through phone, or through text, or whatever you want to do it through. They are popular. There are lots of social engineering attacks. And, you know, I think this crowd is speaking to the choir, but here's one data point. This is from Verizon. There's a study that said that in 2013, 29% of all data breaches involve social engineering attacks somehow. You know, that's probably an underestimate to me, but whatever. So, that's one data point, but you all probably believe this part already, so I don't have to really stress this. Types of attacks. So, these are just some types. There are a set of simple attacks, phishing attacks, baiting. There are lots of different reasons to do attacks. And if you were here during the course of the day, you saw some attacks, right? Those are the best examples. You know, you're trying to get information. You're trying to get information out of people that they don't want to give up, or try to get them to do something they don't want to do. So, I don't know. I'm trying to define this term, dialogue-based social engineering attacks. I'm trying to differentiate the attacks that we're looking at, we're really focusing on, from, say, phishing attacks, right? So, you know, there are some attacks, like generic phishing attacks, which are very broad, right? They're not targeted at any particular person. They're very generic. Oh, I'm a Nigerian prince, and I have $10 billion, you know? And they're not targeted at anybody in particular, just you massively, like, they won't catch many people, right? But if you send it out to many, many people, you still get raked in some suckers, right? So, there are attacks like that. And there are defenses, there are tools, actually, that people have proposed to detect attacks like that. I'm not really looking for attacks like that. I'm looking at more dialogue, like, basically, just like the stuff that you saw, if you were here, you saw earlier today. Where somebody is targeting you, right? Or your organization. And they call you up, or they come up to you and talk to you, or they chat with you, and they're trying to fool you, right? And they probably have done some research on you, right? And so, it's a more targeted attack, it's a one-on-one. So, I'm calling these, and, you know, they're, I'm talking about pretexting and elicitation. They're very, they're subtle techniques that are used. And I'm not an expert on this, you know, Chris is, and other people are. But there are a lot of subtle techniques that are used to make people feel comfortable and make them want to give up information. So, but those are the type of attacks that I'm trying. So, look at it. So, I'm talking about dialogue. Somebody's calling you or talking to you and talking to a particular person, not just sending out a mass phishing email, something like that. So, okay, so, what, so this is just pictures of how you might use the thing that we're making up. So, say you got an email client or a texting application, something like that. It sends it to our, that yellow thing, that yellow box is our social engineering detection system, right? The text, as it comes through, gets sent to our system, and it tells you. Oh, this is an attack, and it sends that data back to your application. Like, if it was a texting application, maybe it would put something on the screen for you, something like that. Or it could be, like, some audio or video device. So, it could be a cell phone or something like that, or, you know, some eyewear that's, you know, Google Glass style thing. If you had speech recognition, you had some speech-to-text software, you could do the same thing, okay? But the idea is that the tool is supposed to be reading the sentences as they come, checking them, see if they're suspicious. And if they're suspicious, you send an alert back in some form. So, you, okay, so one thing, one thing is because it's a dialogue-based attack, I don't want to rely on sort of vector, I want to make it generic. So, it doesn't, there are certain vector-specific cues that a lot of other detection techniques use. So, for instance, like, if you're detecting phishing attacks, you might look at, say you look at some phishing website, you want to say it's a phishing website, you might look at the images on the website. Like, there are a lot of papers that have been proposed on this type of thing. But that would work with a phishing website, right? But I want to make it just more generic. I could apply it to any type of vector. So, I'd like to home in on the communication. See, most of the previous techniques that look for phishing and things like this, they don't look at the actual meaning of what's being said, okay? They look for other things that are suspicious about the phishing email, something like that, but they're not trying to take the text and interpret its meaning at all. And so, that's what we're trying to do. We're trying to do some sort of semantic analysis. And first, something about the meaning of the text to see if it's actually a suspicious, like a bad thing. So, yeah. So, hopefully, superficial analysis is sufficient. By that, I mean trying to understand meaning is a complicated thing, right? So, hopefully, I don't have to go too deep. So, I'll show you what I do and how often it works, you know. All right. Common features of social engineering attacks. So, what do I, so what I try to do is figure out what was detectable about these attacks. These attacks, they can, they are varied, okay? And there are a lot of, strange, like several books that Chris has written about social engineering attacks and all the different ways to do them. And so, that seemed intimidating. How could you possibly detect all those things? And I really can't. But, I can say, I think this is true, that any kind of social engineering attack, in the end, you've got to do one of two things. This is my claim, okay? You've got to ask somebody for, ask somebody for some information that they don't have authority to have. Or, you've got to ask them to do something that they don't have authority to do. Okay? This is my, my theory, right? So, if I claim, so I, so I think, look, if, if every social engineering attack has to do one of those two things, at some point in the conversation, they've got to say, okay, so what's your social security number, or in some other way, right? Or, okay, go ahead and shut off that router, or change your password, or whatever, right? At some point, I can't detect all the elicitations and the pretexts and all that, but maybe I can detect that sentence when they come down to the point where they ask the question, or they command you to do something they shouldn't command you to do, maybe I can detect just that. So, that's what I'm trying to do. So, you know, I, so, basically, what I'm trying to do is, when, as the sentences get parsed, you want to see if the sentence is a question or a command, because I'm assuming it's either a question, asking you for information, or a command telling you to do something you shouldn't do. So, it's got to be a question or a command. So, I look at the sentences, try to detect if they're a question or a command. Then, if it's a question or a command, I try to detect the topic of the sentence, okay? Basically, important words in the sentence that would indicate the topic. And then, I take that topic, and I match it to a blank. A black list of bad topics that I have. And if it's in the black list, then I say, okay, that's something you shouldn't be asking about alarm. So, that's the idea. By the way, if there are questions, go ahead and ask. Like, I don't mind. You know, you don't have to, but you can. Yeah, go ahead. Maybe you don't have anything to do with it, but maybe a comparison to how it would work if you just had a black list of words. Okay, so, you're, okay, let me just repeat it, right? You're saying, do I have a comparison? Do you have a comparison of how it would work with a black list of phrases? Yeah, like, how would your approach to it be performed better than just a word list or something? Uh-huh. Yeah, okay, so, ah. Okay, I sort of have that. So, what's being asked is, how would this perform better than just having, like, doing a simple thing where you just have a list of bad words? And you just, you know, if the bad words come up, then you say it's an attack. Okay, so, I have, hmm, I don't have a direct comparison to that. I published a paper on that. On a simple thing. On a simple thing like that. Earlier in the year, actually. And I, the reason I did this was actually because of complaints about that work. Because people said, people said, look, you can use, like, I have specific examples of this. I have a slide with it. But, you can use the same words and not in a malicious way. You know, so that, so in general, people said, look, that could happen. This technique's not good enough. They published it anyway, but they said that was the argument. Now, I don't have a direct comparison. But, my other technique, I'll talk about it when I get to it. Yeah. Yeah. Okay, that's all right. So, is the list of more phrases than words? This is looking at sentences. Sentences, yep. Yeah. And parsing the sentences. Yeah. Go ahead. Okay. That's an excellent, painful example. Okay, so, let me zip. No, let me, okay, let me, no, no, that's all right, that's all right, that's right, that's good. So, let me announce, restate the question, right? Just right here. So, he said, look, say I got some statement like, click on this link. How do I differentiate that from being like a legal click on this link versus an illegal click on this link, right? Okay, so, okay, so, I have a, so, in the, let me go straight to the end, right? There are, there are, there are, in the, in the end test cases, right? There are, there are three social engineering conversations that we analyzed, right? That were given to us by Chris. And there were 10 cents. And there were 10 sentences that were malicious, okay? Where they either asked a question like this or they, or they made a command, you know, a bad command. And of those 10, we detected six. Now, the other four were just like that. In fact, click, click on this link wasn't exactly one, but it was like click okay and there was another one like that, okay? There were four, all four were like that. So, okay, so now I'm doing my future work, right? So, the reason why, with that, right, like click on this link. What link are they talking about, right? There's no context. There's no context. So, the problem with, what I'm doing right now is this one sentence at a time. So, if you can get the information out of a sentence, it'll work. But, if you say click on this link, that doesn't have enough information to know what link you're talking about, right? What you have to do is remember what was talked about before in the conversation. Let me just say this real quick, right? You got to remember that. And so, I have a plan for that. I'll say it at the end. But, basically, at this moment, no, it doesn't, it has to be self-contained, like all in one sentence right now. But, I think I can fix it. You had a question? Yeah, so what you don't know is, I'm sorry, say it again? You have something, why don't you, I'm sorry. Basic priors? Bayesian priors. Okay, first, first let me say, I don't know what Bayesian priors are. So, let's be honest. I don't do machine learning, right? And this isn't a machine learning approach. I will learn that. I am trying to learn that. But, I don't actually know that. So, I'll just be frank. But, also, it's not a learning approach. See, I think the problem that, like what you were just saying, is that, you know, click on this link, right? The information is just not present in the sentence. I have to use the previous information in previous sentences. And I'm not sure if what you're saying would do that for me. Okay, I'll have to talk to you about that. I don't really know it. I mean, I had another thought of how I would do that. Not with machine learning. Machine learning is fine. Everybody loves machine learning these days. But, I don't know it, so. So, I'm not doing it right now. You know, one day. I'm seriously learning. Machine learning now. Because people keep saying, oh, you've got to do machine learning. You know? Naturally, in processing, everybody does machine learning. Anyway. Oh, question. Go ahead. Oh, question. Okay. Okay. , let me repeat it just to make sure everybody heard. So, you're saying that, again, context, right? Specifically, you're talking about the identity of the speaker, right? So, if your mom asks you your health, that's cool. If a stranger asks you your health, that maybe is not, right? So, how do you differentiate, right? So, first let me say, I don't, right? But, so right now. I just assume everybody is suspicious. I trust no one, okay? That's basically because of a limitation of my approach. I can't authenticate people. I can't figure out people's identities. That's a whole other field. You know what I mean? There are plenty of people who do research in that. How do you find? Maybe you can identify somebody based on their voice or something like that. But, I have no way to identify somebody. So, I'm assuming that everybody is untrusted. Which is a weakness. And, you know, at some point, this work should be joined with some type of an authentication mechanism. And then, if you're in like, you know, some places, some work places, they authenticate. Like, if you're working for the U.S. government, maybe you can enforce authentication. You know, every time you call somebody, you can identify. But, in a casual working environment, maybe you can't. So, I can't do that. And, yeah, basically, to consider that type of context, I would need the identity and I can't figure that out. So, I would have to work with somebody else on that. Yeah. You guys are immediately hitting all the sore points. That's good, though. Yeah. So, just as a side note. So, I beg for money. I apply to the government for money to do this type of research, right? And, just like, I don't know, a month and a half ago, I got a rejection on this. And, these are the comments that they made. So, I'm not surprised. That's all right, though. But, I swear, I think I can fix these things in the future. The identification thing, I really, that's really a big problem. I don't know how to do it. I have to work with somebody else completely. But, the context, the local context, that I can do. Question? So, instead of just having a straight pass fail, do you need to start having, you know, a gradient of, like, more and more of a... Yeah, yeah. So, that lets the user know, like, I'm starting to get threatening or questionable phrases are coming at me, and I need to be more alert. Yep. And, allow that to, like, maybe justify, like, if you're calling your doctor, you may initiate that. So, if all of a sudden your doctor's asking you to verify and be in court, that's perfectly normal. That's not going to check you in. But, that user could be flagged and say, oh, I know what that is. So, you could let them know, like, I'm not going to check you in. So, let me repeat that. So, basically, you're saying, look, does it have to be a binary decision? This is bad, this is good. Maybe it could be, this is sounding a little more suspicious. My suspicion goes up, it goes up, it goes up. And, finally, there's a threshold. Yeah, that could be done in a pretty straightforward manner. I didn't do that, but that could be done. Go ahead. So, my question to you is, what is the purpose of this software that we're playing? Is it to terminate a call by the progress, or is it to alert the human element? Because if it's alerting the human element, then they make the kind of decision, right? Because sometimes you can get a call from your credit card agency, and they say, we think your credit card has been used in, I don't know, somewhere in Africa or in Asia. So, give us your credit card number, or they ask you for some information like that. But, if your screen pops up saying, be careful, you might then make the decision. Okay. Okay, so the question is, what's the purpose? Is the purpose to, say, if there's a phone call, and I detect that it's suspicious, is the purpose to terminate that phone call, or to just alert the user and let the user make the decision? It's to alert the user and let the user make the decision. So, you know, now they might be idiots and continue and give up the information, but, yeah, it is just to... You don't need the detection, then. You don't need the detection? I disagree. I disagree. Because, look, if you don't... The thing is, if people essentially fall asleep, if you heard those talks today, right, they're not thinking. Like, their minds are somehow, they're like, look, I'm bored, I don't want to be here, I don't want to talk to this person, let me just answer these questions and be done. You know, they're not aware enough, but if you put an alarm in front of them, it's like, warning, attack, maybe they'll wake up out of it and cut it off themselves. No, what I meant was, then you don't need the caller to be identified. Oh, yeah. Oh, that's true. Yeah, but you don't want to have false positives either. See, false positives bother people. You know? So, you would like to have the identity. Okay. So, no, that's good. Okay. Let's keep going. Okay. So, natural language processing. So, it's a broad thing. There are a lot of parts to it. And I'm not really a natural language processing expert. I mean, I know enough. I've learned it over the last few years to be able to do what I'm doing now. But, basically, the idea is you want to understand human language. Now, that's very broad, right? What does it even mean to understand? So, I've heard it said that, you know, you understand something if you can use the information to solve some problem, right? So, I'm going to say that I need to solve this problem of detecting if a sentence is malicious or not. And that's all I need to understand about the sentence. I don't need to understand everything about the sentence. I just need to be able to make a decision malicious or not malicious. So, that's the limit of the understanding that we're trying to get, that the machine is trying to get. So, understand that whatever the sentence is, it's a question or a command. And understand that the topic of that question or command is a forbidden one, you know, on our blacklist or it's not. Okay. So, this is just sort of an outline of natural language processing. And I'm not going to go into depth in any of these. I'm going to zero in on what part we actually are looking at, right? But natural language processing can be, research is done in different levels of abstraction. So, for instance, phonology, we're talking about the sounds, the sounds that people hear. We're not touching that at all, right? I assume you've got speech to text. We're not looking at the sound, the audio. We're looking at the actual text. Morphology is the individual words and the meanings of words. That's not crucial here. More what we're interested in is syntax and semantics. So, semantics is really what we want. The genitational meaning of a sentence, what the sentence means. But the meaning of a sentence is related to the syntax. So, the meaning of a sentence is basically a combination of the meaning of the individual words and then the syntax, the order in which they're placed in the sentence. So, sentence meaning equals words plus structure, right? Meaning syntax. So, you've got to know what the words are, but you've also got to know their, and this goes to what you were saying, right? It's not just sufficient to say, oh, it's got these words. If you put them in a different order, they mean something different, right? So, for the structure, that's why we need to analyze the syntax. So, we analyze the syntax to try to extract some parts about the semantic, the meaning of the sentence. Now, pragmatics, just so you know, is more high-level understanding. It's more like understanding the meaning. It's more like understanding the meaning behind what's said, right? Which is beyond what we're doing, what I'm doing. But it's more like, say somebody says, oh, you should try this toothbrush, okay? Now, if they say that and you guys are shopping at Walmart for toothbrushes, then that's fine, right? Then they mean literally what they said. But if you just ate some onions and they're like, you should try this toothbrush, then they're saying your breast stinks, right? That's pragmatics, right? That is beyond what, you know, and I see humor is based on pragmatics, too. You know? But that's beyond the scope of this work. So, we're really focusing on the literal meaning of the sentence and we're analyzing the syntax of the sentence to pull some of that out. Okay, so when I say syntactic analysis, so we're analyzing syntax. This is the arrangement of words and phrases, words and groups. So, if you remember way back in elementary school, you learned grammar, you know? You may or may not remember this. But, you know, and I hated that. But now I've had to go back and learn a bunch of it again, right? For this purpose. But I don't have to know it all because they said there are parts that deal with most of it for me, but I have to learn the basics. But the idea is, you know, words have parts of speech and they're grouped into phrases, chunks, you know? So, you have noun phrases, verb phrases, prepositional phrases, and all this. And this describes the syntax of the sentence, the structure of a sentence. So, oh, and here's my little example. Here's one example where, you know, so Pete killed the job versus the job killed Pete, right? Those two are the same set of words. I reorganize them and they mean two very different things, you know? So, I'm just trying to say, look. You can't just look at the words. You have to look at the structure of the sentence as well. So, we have to analyze the structure of the sentence. And for that, we do parsing. So, with a context-free grammar. So, you may not know what a context-free grammar is. Some people do. If you know about compilers, you know, compiler theories, this stuff comes, actually, this came straight from compilers. Or maybe vice versa. Anyway, what you do is, so we got this sentence. The man took the book, okay? It's in red. And it's parsed. So, on the right-hand side, you see that. You see that parse tree. And the parse tree shows how the words are grouped into phrases. It labels each word with its part of speech. And then it shows how those words are grouped into phrases. And to combine to make a total sentence at the top. And the way that, that parse tree is made automatically with an off-the-shelf tool, right? I did not build that tool. That's like a standard thing. Making parsers to create those parse trees, that's like a standard known thing, okay? And you can just get them for free. Stanford parser is what I use. So, you give it, though, you give it a grammar. So, BNF, this is BNF. This is sort of a common form for a context-free grammar. And this grammar, basically, on the left, that's the rules of English, okay? Now, this is like a tiny subset of the grammar for English. But, so you can see the top one says S. S is, oh, each one of these letters, these symbols, they're called tags. And this is a standard tag set, the pen tag set. They're a standard tag set. So, S is for a sentence, okay? So, the first rule says a sentence can be a noun phrase and then a verb phrase, followed by a verb phrase, okay? And then the next one says... It says a noun phrase can be a determiner, followed by a noun, right? And so on, right? And then, you know, a determiner is the, and a noun can be man or book, and verb can be took, and so on. So, given a grammar like this, you can create a parse tree. And there are plenty of tools that do it. And the parse tree, you can see how, looking at the tree, you can see how the words are grouped into phrases, okay? So, this type of information, we need to analyze the structure. We want to see what the phrase structure is so we can infer something about the meaning. Okay? Because, basically, in order to... If you recognize that something is a question or something is a command, you've got to know about the structure of the sentence. So, the first thing we do when we get the sentence is we hand it off to a parser, and the parser gives us this parse tree that you see on the right. Actually, it gives several parse trees that are possible, and we take the best ones. Okay, so then, once we've got the parse tree for the sentence, then we look for patterns in the parse tree that match what we're looking for. So, we're looking specifically for... First, we're looking for questions and commands, right? And so, and there... You can see them as patterns inside the parse tree. So, if you see a particular subtree, then you say, oh, that's a question. And if you see another subtree, oh, that's a command. Now, how did I find that, figure that out? I went to many grammar books, like thick old English grammar books, and they have many rules. Oh, you know, here are all the hundred ways to write questions, right? You can write a question like this and put this first and that first. You can write a question like that. There's a long list, okay? And you can look at them, but looking at that, I can say, oh, based on that, I can... Actually, I didn't do this. My student Yuki did this, okay? I take too much credit. I did part of it, but he really did it. He looked for patterns in the sentences and said, oh, yeah, that matches the rule in this part of the book. Okay. So, questions can be formed like this and like that. That's this pattern in the tree. So, for instance, here. This is a question. Can I eat? Okay. Now, this is a question because it... So, can is a modal verb, okay? And I is a pronoun. And if you invert them, if you have them in that order that you see them there, the modal verb and then the pronoun, that's a question. That's a type of question. Now, if you would reverse it, if you have pronoun and modal, so if you say, I can eat, then that's a statement. But if you switch them, then it's a question, okay? So, that's a type of pattern that we can see in the parse tree. We can look... So, it's in the parse tree where it says, above can, it says MD, like modal. I'm like, aha. Go ahead. Question? The only problem with that is inflection. If I go off at the end... Yeah, yeah. Okay. So, what he's saying is, the problem with that is inflection. So, if I go off at the end... Inflection meaning the way you're speaking, the tone of speech, right? So, another way to do questions is to put a da-da-da-da, raise the pitch at the end, and that's a question. That's true, right? You know, and you put that pitch. I don't deal with that. Okay, that's phonology, and I don't deal with that, mostly because I don't know enough about digital signal processing to handle that. There are people who do research in that, but it was more complexity than I really wanted to deal with. But you're right. You can get a lot of information from the sound. And actually, to tell you the truth, the next... The thing I have a student working on right now is telling where sentences end and the next one begins, right? You can tell a lot of that from the sound, and we need that, right? Because we have to parse sentence by sentence. So, I need to know, oh, this sentence ended, and I need to look at the sound. So, I have a student looking at it right now. There are tools that do some of that. Question? Oh, sorry. Go ahead. I was just wondering, you know your previous example with answers to books? Yeah. Okay, now, you have a sentence like the answers to the brain. He's talking about... The different senses of the verb? I'll say no. Basically, because in the end, what I'm going to do is I'm going to take the verb and the direct object and look them up in my blacklist. And, you know, I guess, yeah, I don't. I guess if there was a sense difference like that, like, you know, take... Yeah, take... It's hard to imagine. But, I mean, I know what you're saying. Yeah, I know. I know, but I'm trying to think of a social engineering context. Again, in context, I mean, if you're talking about model trains, and, you know, that's going to be some subject matter that's kind of out there. Yeah. And that's where you're... Yeah. Yeah, I'll say... No, I mean, I don't deal with that now. You're saying the fact that verbs can be used in many senses based on... And you can tell what sense is being used based on the direct object, right? You can say, oh, it's a train. I'm taking a train. I could be taking... Or if I'm taking a... If I'm taking a ball, I can't be riding the ball to the street, you know, store or something. Yeah, I don't do that. I don't do that. But, yeah, it's possible. But I don't do it. It would be... It could be useful. I can't... Yeah. Okay. Okay. So, there are patterns in the tree that you can recognize. And so that's basically what we do. So, there's a pattern. It's called Treg. TregX. You know RegX, right? Regular expression match. Well, there's a tree version of that called TregX. And my student writes patterns in this pattern matcher and it looks for patterns in the tree. And so we can see... So, based on, you know, on the parse tree, you can find subtrees. Basically, we're looking for subtrees in the parse tree. And when we see a particular subtweet, we can say it's a question or it's a command and know that we should examine it more closely. Okay. And then we have topic blacklists. So, like I say, we're going to get the question, get the command, try to figure out what the topic is. The verb and direct object. And then we're going to look it up in a blacklist. So, somebody has to manually make a blacklist of, you know, these action resource pairs. Action being the verb, resource being the direct object, right? And somebody just has to make that up ahead of time. And so we have an example one that we use, but somebody has to give you that. And, you know, you can have, you know, click link or send money, stuff like that, you can put in your list. And we just look through the list. Or you could use a wild card. You know, if anybody asks about the firewall at all, then you'll hit it. Something like that. Okay. Making a topic blacklist. Yeah, you've got to do it manually. Oh, question. I'm sorry. Go ahead. Yeah. One second. This one, right? I'm sorry. I didn't hear the question. No. Like I'm showing there, I put an asterisk for the action. So, I just put at the bottom, you know, star and then firewall. So, you could leave it alone. But then it would catch anything. Anytime somebody's asking you about a firewall, it would warn you, which might lead to false positives. But you don't have to have it strictly have an action. You pretty much have to have a resource. Or, put it like this. You don't have to have a resource either, but it's hard for me to imagine a case where you wouldn't have a resource. But, yeah. So, yeah, you would tend to get false positives more if you leave it more open. Okay. Okay. So, yeah, you have to make this. And typically, when you make the blacklist, how would it? Imagine you'd take into consideration whatever resources you have to protect, you know? So, if you're at, you know, a bank, then you want to have bank-specific stuff. Say, yeah, you got some organization, you know you have network equipment, then you would say manipulate network equipment. You wouldn't want somebody to tell you to go reboot the thing or change the password on this network equipment. So, you would put stuff specific to whatever you're trying to protect. You've got to imagine. Okay. And then detecting malicious statements. So. You detect the question of command with a pattern. And I'm just showing a little, what I'm highlighting there is the subtree that tells me, okay, this is a command. So, like, in this instance, so there are several ways to make commands and imperative statements, right? Like, this sentence is reset the router. That's a command. So, how do I know that's a command? Because you've got the verb and there's no subject in front of it. Okay. So, I didn't say Joe resets the router. I say reset the router. There's no subject. There's no subject in front. Right? So, then it's a command. Right? And that's a form of imperative sentence. Right? So, that pattern, if I see this subtree that I've highlighted where there's a verb phrase with a verb in the front and then a noun phrase after it and there's nothing before the verb phrase, no noun phrase before it, then I say, okay, that's how I detect a command. Or that's one pattern for a command. There are a few more. Okay. So, based on these rules of English grammar, we make these patterns that are subtrees. And each one of these patterns, you have to be able to find the action and the resource. Right? The verb and the noun. So, each one of these patterns would have associated with it basically a rule to find the verb and the noun. So, like this guy, that pattern that I've highlighted, see under the VB, right, the verb under that, that is the action. And then under the NP over there, the noun that's under that, if you look further under that NN, the noun, that's the resource. And so, once I find that pattern, I can say, okay, here's my action, here's my resource and pull out what I've got. I'm calling the topic of the question or command, the command in this case. And then I basically take that and look it up in my blacklist. And, you know, if I hit it, then I say it's an attack. So, yeah. So, this is structured system. Just to say, oh, go ahead. Question. Yes. So, somebody's speaking incorrect English. Yes and no, you know. Go ahead. Yoda. Yeah. Yoda would mess it up. Yoda and his dance. Yeah, of course. I would say, they would, well, I don't know how your English is. But, you know, I would say, look, it depends on the parser. Because the Stanford, so first, my first thought, I would say, yes, it would tend to fail. But the Stanford parser is pretty darn clever. Meaning they use machine learning to train that thing. It knows a lot of broken English, you know. And it will parse correctly in spite of the fact that the English is broken. So, it may work anyway, but that wouldn't be because of me. Because the Stanford parser is smart. But generally, yeah, it would tend to fail if English isn't correct. And which, by the way, is a weakness, right? Because say you're looking at texts or something. People write garbage all the time. Yeah, yeah. I don't know. But, yeah. I don't know what. Yeah. Yeah. But then, yeah, that's right. But, you know. I could also argue that, you know, when you're having a person-to-person conversation, usually, if you're trying to social engineer somebody, you're usually not using broken English. But I don't know if that's true. Maybe I'm wrong. Yeah. That's, yeah, yeah. Generally, you want to be clear, right? Actually, in fact, that brings up something. Another complaint from my rejected proposal, which I'll bring up with you guys. See what you think. So, one complaint. One complaint about this was that they said, look, you know, this is going to be an arms race, right? Because as soon as you get this system working, then attackers, social engineers will say, oh, well, I'm going to say something in a way that this doesn't detect. Like, all of you will go out there and figure out, you know, you'll see what I'm doing and do something to mess it up, right? And so, it'll be an arms race. And then we'll go back and forth, like malware, right? And so, I would say that it's not as bad as malware. Malware can change forever, you know. You can detect it. Then they twist it. But with human speech, you can't change. You can't change it so far. I mean, humans only understand so much. When you start saying, how many ways can you ask a question? If you garble it too much, the target won't understand what you're saying. So, I think there's like a limit. Like, you can only go this far, right? And then you can't go beyond that. So, I don't think an arms race would happen. I mean, eventually, you'd cover the space of what humans can understand, and then you'd be done, you know. Question? Question? Do you bring it up enough for what's possible? So, if I can take this. If you can trick my system to do false positives all the time, nobody will use my system. That's true. That's true. And look, in the state that it's in, like I say, you know, it missed like four out of ten, right? In the current state that it's in, I wouldn't use it. But, all I'm saying is, this is a start in the right direction, is what I'm hoping, you know. Yeah, I'm not saying this is the end at all. Yeah, that's true. And you, you know, and you could go for a long time trying to minimize the false positives, adding more and more context, be more sophisticated about it. Yeah, I would imagine that it would take a long time before it was tuned well enough to be really useful. Question? Question? Wait, I'm sorry. Wait. I'm having a hard time hearing you, but I think you said if you're, if the attacker is feeding the target information or the other way around? Yeah, but I could detect that question. You know what I'm saying? I'd be like, oh, somebody... What? I mean, if the other question... If the other questions have the action, so, for instance, manipulated network equipment, right? What are you saying? Like, give me an example of what you're saying that has no action. There's a verb in there, right? Are you running? Running. Running's a verb. You know what I'm saying? You can't have a sentence without a verb, I think. If the action virus is a formal standard, it can't have any of those things involved in it. I'm sorry? If the action exists itself, how does that mean? If something exists. It's... Yeah. I think you're running into a... Yeah, but you're going to have to start confusing your target. Look, what you're talking about, I'm talking like Yoda. Your target's going to be like... You know, I'll tell you something. Something to go... Something that... Something about what you're saying. So, the verb is. Is is quite a pain, right? Because is is very... It's ubiquitous and generic. Like, it's a useless... You know, it's sort of useless. Is alone doesn't tell you anything about the action, right? So, in those cases, you have to use other information in the sentence. So, for instance, if you say where is something, then the is doesn't tell you what they're asking for, but the where does. So, and I haven't done that yet, but that's what I would have to do. I'd have to use other words. Yes, no. Yes, no. But I can detect yes, no. Yes, no. I can detect yes, no questions and see what resource they're asking about. You know what I'm saying? I can detect yes, no questions. And if they're asking... Okay. Okay. I mean, look. Yeah. I don't think I totally disagree with you on this, but... Anyway, I'll keep going. Okay. Any questions? Okay. All right. So, yeah, here's the system. And I already said this, but I'll say it real quick. So, we parse a sentence. So, you get a sentence. Parse it. You get a parse tree. You detect if it's a question or command by math. Finding patterns in the tree. Then you extract the topic by, basically, from those patterns. You find the verb and the direct object. The action and the resource. And then you basically compare that. You look it up in a black list. And if it matches, then you hit. And that's it. Oh, and for this, we use plenty of off-the-shelf stuff. So, parsing the sentence, we don't do that. We use the Stanford parser because it's a really good parser. You can just download it and use it. And it has a... It's pretty thorough. And we use t-rejects to detect the patterns. Also, it actually comes with the Stanford parser download. It just finds regular expression. You know, sub-trees in the tree. And we detect the patterns using that. Okay, and... Yeah, okay. So, just some related work. I'll be kind of quick with this. Other people who have done similar things... Related things. These are kind of old, so I don't know if they're useful. Yeah, maybe I'll be quick. Phishing attacks. So, like with phishing attacks, phishing emails, you want to detect them. A lot of these phishing attack approaches, what they do is they look for... They don't look at the meaning of the text, okay? They look for other things about the email that look suspicious, like the URL, URLs, and stuff like this that are in the email, but they don't look at the text and try to extract the meaning of the text. So, that might work on an email, but not like in a text... Not in a dialogue. Oh, go ahead. I do have a question. So, if you go to Google or start with a Google, you look at phishing, there's 30 years of research, and you looked at... Yeah, yeah. Yeah, okay. So, let me just re-say what you said. You said, look, there's been 30 years of research in phishing detection, and still it happens all the time, right? So, what does that say? It says they suck, roughly. No, not that. Let me not say that. That's going to be me. It could be improved. Okay? It says it could be improved. That's all it says. I know. I shouldn't say that, because probably people who did it are right in the room, you know? I'm sorry. That was a joke. Don't take that seriously. Go ahead. Question? Okay. So, first let me say, not enough. Right? What we did was we took... Yeah, well, we'll get to the slides. You know what? Let me go straight to them. Yeah, people are asking. Yeah, okay. Sorry. Yeah, that's it. Okay. So, the examples. So, we got three examples from Chris Hadnagy. We can't reveal a whole example, you know, because people don't like it when you reveal, when you expose their attack against them. So, you know, I just put little bits of it in here, but we got to look at them. There are three attacks and three dialogues, and there's a number of sentences in each dialogue, and the number of violations. So, violations is the number of sentences in there that are malicious, that are either asking a question. That they shouldn't ask, or asking you to do something you shouldn't do. So, across all of these, there are ten violations, okay? Ten sentences that are malicious that we should be able to detect. And we detect... Oh, and here's the topic blacklist that we used. This one... Now, we also use synonyms and hypernyms. We didn't put them all in here, but synonyms work, too. You have to pay attention to synonyms. But I didn't put them in here. And then, what did we get? We detected six of the ten. So, yeah, so validate... So, this is what we did. We did it on these three sentences, three dialogues, and we detected six of the ten with zero false positives. So, that's not nearly enough. And actually, that comes to my biggest complaint about the work, is that I haven't validated enough, right? So, for that, I need lots of social engineering attacks that I can scan through, and I cannot find them, okay? Now, I hear them. I heard them all day today, right? But I can't record that. So... So, it's a real problem, right? I mean, I can run it on, you know, just data that I know doesn't have social engineering attacks in it, but I want to run it against attacks so I can see if I can catch the malicious sentences, and I just don't have any. So, if anybody has any, let me know. Yeah, so I did it on as many as I could. Yeah. Okay. And then, let's go back real quick to what I was saying. Okay, so some of the patterns benefit our approach. Yeah, this is related work. Oh, this is a thing that we did. This is a thing that we did where we just looked at the words, okay? And we didn't look at the order. And we did it... Actually, what he did was... Well, my student... That student... This is Ram. This is one of the same students. He... What he validated on, he looked around for... Just, you know, scraped the internet, finding people who posted attacks. So, basically, people, like, got harassed by somebody trying to lure some money out of them, so they decided to engage in a conversation and record it and then post it, okay? So, he found three things like that. Now, the thing is, those aren't exactly good because, you know, the person, the attacker, the attack... The target knows they're a target, right? So, they're not responding in a natural way, you know? But, anyway, that's what he validated on, you know? On... This is previous work, though. And, actually, it worked pretty well. It worked pretty well. It was all... Like, it was mostly text, like Facebook chats. Two Facebook chats and one email conversation, you know? And that was... That was sort of broke... Like, no sentences. Like, people didn't put periods. No capitalization. You didn't know where sentences started and ended. So, it was harder to analyze. But, what he did was such a simple analysis. He just looked line after line. He looked for... Actually, he did the same topic blacklist thing, except he took the action and the resource and looked for them on the same line. So, if you find a line with the action and the resource, he said, okay, that's an attack. And it worked, like, 80% of the time. But, it wouldn't work in dialogues, you know? Dialogues are more complicated. Generic text, you know, it works all right. But, so... Yeah, now I have my... Here's an example. A specific example of... Where I use these two words, reset and router, the first sentence is a command you shouldn't do. The second sentence is just a comment, right? And it has the same two words, but they mean different things. And so, we could differentiate between those two. I would say, oh, the first one's a command, and the second one is not, right? And I wouldn't detect the second one. I wouldn't... And also, I wouldn't associate the verb and the direct object. I'd be able to tell that the router is not the direct object of the verb reset. So, I wouldn't associate them together. So, I would differentiate. I would associate those two. Now, then you might ask, well, how often does that type of thing happen? I don't know, you know. But I think there will be cases where, you know, you can't just look at the words. You have to be able to look at the structure of the sentence. Okay. So, command detection. I already gave you one of the patterns, you know. Go home, stop right there. You put the verb in the front. You don't have a subject in front of it. So, you can detect that pattern. This is reset the router, same thing, right? There's a verb, and there's a noun phrase after it, but there's none before. Then, there are these softer imperatives. So, often, direct commands, you don't necessarily want to command somebody to do something, and, you know, it wakes them up. So, you might say in a nice, oh, please do this. You know, please reset the router, right? Or, actually, you might say it like this one. You should reset. You could do this, right? You could, you should, da-da-da-da, right? So, this one, we're detecting, I'm calling it a soft imperative. That's actually not the grammar term. Like, in English grammar, there's a word for this type of a sentence, which I don't remember. But, basically, that should. Could, could, that's a modal verb. So, if I see a you, so, basically, a subtree of this tree. I see the you, and then I see some modal, and then I see a verb. Then, I see a noun phrase after that. Then, that pattern. So, that subtree of there, I can say, okay, that's one of these softer imperatives, where you're sort of suggesting, you could do this, you should do this, you know? You might. But, still, it's a command. It's just sort of a softer way of saying it. Question detection. Okay, we already did this one. Where you invert the modal and the subject. And, actually, the parser catches this immediately. That S-I-N-V tag, that means the subject's inverted. It's short for S-subject-invert. So, if you see the subject, the S-I-N-V tag, you know it's a question, and it's with an inverted subject, the modal order. Also, S-Q is a similar tag. So, if you, that's actually a simple pattern. You just see S-Q or S-I-N-V, and you know it's a question. Open questions. So, these are these who, what, where, when, why's. And, actually, the parser catches all of these. It has tags for every one. If it sees who, what, where, when, and why, and how, all being used as a question, it detects them and puts in the appropriate tag. So, for instance, here, you see in there that W-H-N-P tag over the what, right? That tells me, oh, this is a what question. And so, the parser will actually catch that. If it sees the who, what, where, when, why, how word in there, and the sentences in the question structure, it'll put that tag in there. So, all I have to do is see the tag, and I know it's an open question. Go ahead. Your password, please. That would not, I would not catch that. Yeah. Yeah, that's true. Nobody said that in my six examples. But, yeah, I would catch that. Okay, and then topic extraction. So, each one of these patterns, they're associated with an action and a noun phrase, and you can pull them out. And detection algorithm, I already said this. This is just restating it more formally. Except to say that parse and best. So, the parser, it doesn't just come up with one parse tree. It comes up with a bunch of parses that are legal, and we just pick the best one and use that. Or the end best. And we look through, actually, yeah, 10. We're using the top 10, and we're looking to see if any of them are attacks. And then, you know, you extract the topics, and you look it up in the black list, just like I was saying. And then here are the results that I already told you about. Yeah, results summary. So, yeah, 60% recall is because it has the false positives. Sorry, no false positives, because it misses four out of the 10 sentences. So, some examples. So, I can't show much of these dialogues, but let me just give an example. So, there's a true positive up there. If you could email me this cert, that would be great. You know? So, yeah, that's positively an attack. So, and you can see, you could. So, that's one of my imperatives, right? You could email me. Email is the verb. Cert is the resource, and we can catch that. False negatives. There were four of them, and they were all, basically, these ones that needed context. Click, run. That was one of them. Yeah, click, okay. Right? That was another one. So, you need context. You could use linguistic context, which is the context in that conversation earlier in the same conversation. Okay? So, for instance, you say click, run. What are you referring to? Oh, well, two sentences ago, I told them to start this application. So, I must be talking about that application, right? So, you can keep track of noun phrases that are used in previous sentences, and then, you know, associate. You say click, run. Well, which one of these noun phrases? Let's say you talk about a tree, you talk about a web app, and you talk about this. Oh, web app. That's the only thing where I can click a run on, you know, and you do that. Now, I'm not doing that, but that's what I need to do. Also, situational context might be sufficient, meaning when you say click, okay, or click, run, I mean, even without knowing this, even without seeing the attack, we know that there's some program running, and it says okay in front of them, and there's a button that says okay or run, and you can click it, right? So, clearly, they must be talking about something running on the machine. So, you can know stuff even without knowing the actual linguistic context. You just have the situational context, meaning the context that we all know just because we have life experiences, right? So, we might be able to use some of that. Room for improvement. Room for improvement, I've already said this. So, using context, yeah, is the main thing, but other things, too. And I think, oh, and authentication. So, I mentioned this, too. The fact that everybody is untrusted as far as I'm concerned, and, you know, if your mother asks you something or a stranger asks you something, it makes no difference to this tool. So, in order to do, I can't do authentication, but I would, you know, it could be, if somebody else could do authentication, then you could join this with that, right? Go ahead. I don't know where's the problem. So, if you don't know the attacker, you don't know the attacker. Well, if I'm a clerk or whatever I am, and I'm going towards the router, well, I'm obviously going in the wrong direction. That I'm going in, I'm doing what? I'm obviously going in the wrong direction. I'm doing something beyond the scope of what I see. Uh-huh, uh-huh. Yeah, so you, I see. So, you say, so I can look at, yeah, but see, okay, so what, let me just repeat what you said, right? You're saying, yeah, let's say I'm a clerk. I'm the target. I'm a clerk. And, you know, I'm being said, oh, go, I'm being told to go reset the router. And the clerk is not supposed to be resetting the router, but, and I know who the clerk is. I can know who the clerk is, so I can look at what they're authorized to do. That's true, but there could also be a situation where the person, the target is actually authorized to do exactly what they're doing. You know what I mean? And then you would. Then you're an SOL. Yeah, yeah. So, but, yeah, you're right. You, yeah, if you're, if they're being asked to do something they shouldn't do in the first place, then you should be able to. Catch that if you authenticate the target. And that's it. Any more questions? Thank you.