I'm Ming from the Packet Hacking Village and this last and final talk of the day is sponsored by the Packet Hacking Village. And it is our pleasure to introduce to you Ez Tahun for this talk. Hello, hello. Hey, everybody. My name is Ez. I'm here to talk a little, a little about AI because I know everybody got baited here into AI. But the more the merrier, you know. I'll talk more about the use case, less about AI. But before we start, how's everybody's DevCon? Yeah? All right. Hell yeah. Are you guys more on the blue team side? Anybody here on the blue team? Blue teamers? Holy moly. All right. The whole, this side is blue team? This side is red team? Who's on this side? Are you guys red teamers by any chance? Okay. What the hell is going on on this side? Are you guys cloud engineers? Network engineers? Purple? Lots of purples. Data scientists? Lots of data scientists. All right. Email security. God damn. All right. That's pretty cool. All right. So, a lot of blue teamers. A few data scientists made it in. So, thank you for, you know, coming into a talk that has AI in the title. I know that that doesn't work. People usually get scared of that word. I remember at Black Hat I got sold to while I was pissing in a urinal and it was an AI. So, I was like, you know, like, there's a lot of AI and you don't know what the hell works and what the hell doesn't. But the right framework that I will try to push on you today is essentially talk about the use case. Less about the tool. Convince me about the use case first. And then we'll figure out how to do it. Right? So, my talk is gonna be all about context is all you need. I have a few practitioners here. There's George at Ruby and there's Harry, CIO at SAP. They're essentially the people that I bring in whenever I have to get some validation on the problem. So, I'll try to, you know, throw them a few curveballs every now and then. If you guys want to come up and do a quick intro, that's fine as well. You want to come up? Not feeling like it. Is everybody so tired at 5? Is that what's going on? You're drinking a Red Bull and you're tired? What the hell is wrong with that Red Bull? Is it expired? There are stairs on this side? Harry Sorori, NS2, SAP, supporting Department of Defense. It's about a $4.5 billion project that I'm heading over there. Lots of fun things, especially when you're dealing with defense and all that good stuff. There's a lot of moving parts there. All right. George? Cool. Hi, everyone. My name is George Alcora. I'm the CISO for Ruby Life. I like to tell people that at my job, I work to help people get securely laid. I'm the CISO for, well, you've probably heard the brand, Ashley Madison. We run online dating. Ashley Madison is our flagship brand. That's where I work. In terms of this, well, when I started my cybersecurity career, I worked as a security operations analyst and I dealt with ArcSight. If you guys remember ArcSight? Oh, yeah. So, this is going to be a really relevant talk. And Ezelin has been killing it this afternoon, guys. So, please enjoy. Can I make a disclaimer? Oh, more disclaimers. I don't know if the mics are working. Are the mics working, folks? If you may enable them, that would be fantastic. This way they don't have to come back and forth. Disclaimer is all yours. I'm not a subscriber of Ashley Madison, so I could keep my job. Right. None of us are in that breach, huh? Okay. So, the reason I bring in these folks are essentially to talk more about the use case, like what the hell is going on. And usually, if I give them the mic, they start talking about incidents. And they tell you, oh, in this incident, we found so much shit. Here's how it started. Step one, we found this thing. Step two, there was this other thing. Step three, there's this other thing that we found out and we uncovered. And what they're essentially telling you is they have so much good investigators and their team and outstanding contextualization that these humans did, right? So, context apparently is very important. And let's talk a little about that because they're all blue teamers. I'm not going to bore you with the bullshit. But here's a quick agenda. The agenda is who the hell am I? And then some challenges, you know, a lot of challenges, a little bit more. And we're going to talk a little about MITRE ATT&CK. Anybody knows what's MITRE ATT&CK? Oh, everybody knows. Okay. I'll do a quick brief. And then we're going to talk about the what, the when, the who. When you do an investigation, what the hell happened? When did it happen? And who was involved? Tell me all the entities that are involved. Tell me what the hell happened. And if you can do that with models, that's fantastic. If you can't, I mean, do it anyways. Do it the hard way, you know. And then we're going to go through some examples. And I don't know why I put QA at the end. If you have questions, by all means, shout it out. I'm being serious. Shout it out. If you're so polite, you cannot do that, just raise your hand. I will stop whatever the hell I'm saying, and I'll take your question. That's my promise. All right. Who the hell am I? I'm a data scientist. I used to be a data scientist at the SOC, Royal Bank of Canada, Hawaii, Horn Cyber Defense, Forescout, a bunch of others. But essentially, I'm a nerd, and I do data science for the SOC. What's the problem with cybersecurity? Why does every year we have essentially a much bigger problem? I remember I did this similar talk like about a year ago, and I was talking about Colonial Pipeline. This year, I'm talking about CrowdStrike. Every year, there's like something that's way worse, right? So why do things keep on getting worse? And maybe CrowdStrike is not the best, but I don't know. The other ones are not as popular. CrowdStrike seems to be popular this time around. But essentially, attacks seem to be a lot stealthier, right? And the folks here that work at Blue Team, they know the job is not very easy. They came up here because there was AI, and there was SOC, and they were like, fuck, yeah. Somebody's going to automate my job? Fuck, yeah. Automate it, man. I want to get another one. Nobody really likes their job in the SOC because attacks are so fucking stealthy, and they grow stealthier every year. And guess what? You take the fall because you're the SOC, right? And because you're the SOC, you also have, I don't know how many alerts a day. I stopped updating that number, but that number keeps on increasing. But it doesn't matter because at the end of the day, as a human, you can only look at maybe like 20 tickets a day, right? 10 tickets. Anybody here looks at 20 or more? Yeah. There's one guy who's probably a fucking genius. He can look at more than 20. I actually blank out after five tickets. I used to work at the SOC. After five tickets, everything sounds the same. I just like, I want to get by. And my boss had this weird KPI of MTTD, MTTR, whatever bullshit. And essentially just meant do it fast. No one cares. And they just did everything fast as you know, like false positive, false positive, false positive, right? You want it fast, man? Sure, I'll get it to you. I'll get it in 20 seconds if I have to. But we have so many tools. I was telling you about Black Hat. Terrible experience. There's like a shit ton of tools everywhere. Vendors are everywhere. Can't even find non-vendors anymore. But there's a lot of vendors. There's a lot of tools. And somehow security is worse. How did that work? I don't know. Right? A hundred percent. A hundred percent. You're on top of it. Like it's, give this man a cookie, right? Like you're on top of it. Like it's a lot. Hell yeah. At 5pm everybody wants a Red Bull, right? But yeah, like we have a lot of tools. We have a lot of alerts. We have a lot of shit. And it's all up to not acquiring more. It's up to people and process, not technology anymore. You have to re-learn them. They're not necessarily sold through the use case. Yeah. That's also presuming that over that three to four year cycle, you have the same staff and personnel manning your SOC. Let's not forget about turnover. About how to destroy your SOC team. But let's not forget that. Dude, I'd fucking buy you a beer tonight. Like, you know what's up and you speak it out. Like, I fucking love you, man. Like, that's what's up. So, hell yeah. Hell yeah. Yep. We need some of that. We need some of that. A lot of people are, I mean, he was post breach though. He's post breach. He came in to clean up, but dude, I was in fucking, I was in that fucking data set. Yep. Well, you know, the funny part is I was actually, when that happened, I had started my career in cyber having left military SIGINT. So, I was working at a MSSP, which had a lot of Government of Canada clients. And so, the funny thing was in that breach list, there was a lot of at Canada dot C addresses. So, what a lot of people were doing, cheating on their spouses, were actually using their government email accounts, their government work email accounts to get a platform or get a profile on the site. But then when they got popped, not only was it an issue in terms of their spouse, but now their employer was pretty pissed off at them. Multi extortion. The funny thing is about that. I don't want to derail his talk, but the funny thing about that is to this day, they use that old list because Troy Hunt posted it. So, everyone uses that list and tries to act like it's a new breach info or a new credential to pop up. But it's still the 2015 credential. That person's moved on from the site well beyond. They're still trying to run attempts on the old creds. So, I think it's a taboo thing. Everyone's been popped. SolarWinds been popped. British Airways has been popped. How many countless breaches have happened of major enterprises? Those are the ones we know about. It's just because it has to do with sex and everyone thinks it's taboo. I appreciate your service, sir. But yeah, I mean, I can turn this into a SkyTalk and we can start ranting. I can fucking rant. No, no, no. Is this turning into sock therapy? Sock therapy is valid too. Look at my fucking agenda, bro. It's like old SkyTalk. It's all ranting. The machine learning is like number 5.A. I'm all about the rant, bro. It's the use case, right? It's like what's broken and how do we fix it, right? But yeah, you're on top of it. Too many tools, too many rules, too many playbooks, too many whatever the fuck you want to call them. It's just searches, lookups, right? And who has to tune those? The people in the process. But we don't want to buy those. We want to buy the technologies. We want to buy the sexiest shit and we want to install the sexiest shit. Do we have the right people in process for that technology? Nope. Do we care? Nope. We care about AI because I'm a new leader and I want to put AI in my company and you guys deal with it until you stop dealing with it and the company's fucked and now I leave and they get the new guys, right? So it's just so bloated and ineffective for a variety of reasons. Most of these reasons are not technology. Most of these reasons are people in process. And since I baited you all with AI, I will give you a lot more people in process today. So what the hell is wrong with our security? Why is it so less secure than what it was 50 years ago? Well, the naive way to think about this is it used to be so simple. It's not even apples to apples. It used to be so fucking simple. Now it's so fucking complicated, right? And to hack Stuxnet, you had a virus circulate the entire world for two years. Finally, someone picked it up on a USB, put it in the printer to print an assignment for their kid and boom, bada boom, right? But in reality, if you want to do Stuxnet today, there's like a smart grid, there's like people selling solar power back to the nuclear plant and some bullshit like that on the smart grid, where technically everything is connected. And the attack surface is like, so much easier. What do you mean we have to wait for two years for someone to put it on a USB? Not anymore. So this is actually why everybody here is so vibing when we are complaining. Because we are constantly waiting for that talk at DEF CON that will come and automate our jobs and take it away from us so that we can do something else. We don't want to be analysts. We want to be engineers. We want to be architects. We want to be cloud folks. Fuck it. We want to be compliance folks if we have to. No hate on the compliance folks. But essentially, I could be a freaking salesperson instead of being a SOC analyst, you know, like it's shit. But what does it take for a SOC analyst? What is actually so hard? And the expensive folks at SANS, they run a SOC survey. And in the SOC survey for the last six, seven years, it's always been the same shit. People go and they vote on what's the thing they hate the most, what the thing essentially is we're going to all hang our trouble on. And it's always, always, always lack of quote, quote, beautiful, sweet correlation. What the hell is correlation? I don't know if someone knows what that is correlation, essentially just says like what that is relevant to what. And it's like so ambiguous that people can sell you what they call correlation searches, if it's looking for like two things that it's going to put together, if they fit a specific rule, right. But that's all good. If you have all of your data in one place. How many people here have everything they need in the sim? Yes. Nobody, right? Which one? Yes. Do you want the Splunk or the Elastic or the S3 Bucket? Like which one do you want, bro? Damn. Okay. Which index? Which silo on it? Okay. Yeah. Yeah. Yeah. I have a SOC for insider threat. I have a SOC for this guy. I have a SOC for the NERC SIP. I have a SOC for whatever. I have a SOC at the company we bought. It's not technically part of our company, but it's a sub organization. It's like another entity that we bought. They have their own SOC and they don't give us the shit. We have a SOC that works part of a NOC. We have a SOC that's called Data Fusion that a new leader made. I know what's up. So if we don't have all the data in one place, can we put all the data in one place? Wouldn't that be a pretty nice process, right? Like let's get as much data in one place. And then we start talking about money. Like, dude, it costs a shit ton to get it into one place. And by the way, to get it in one place, I have to put everything in one data model. I have to make sure I have the right, you know, parsers or whatnot. It's 2024. LLMs can actually make you like any kind of data model into any other data model. So we have an open source thing. If you go to GitHub Sapienta, we get anything in any data model put into one data model. And it's also 2024. Storage is so fucking cheap. I don't know why do you have to put it into a SIM, put into fucking S3 bucket as a archive. It's cheap enough. If you can get it all there, and you can fight the people to get it all there. And you can call everybody and get the right data. You can have the dream kind of thing where you have everything in one S3. If you don't get the entire dream, that's fine. If you can get like 70% of that dream, get just like everything into like a cheap storage in the cloud, that'll be fantastic. Because if you have everything in one place, ideally, in dreamland, and you can pull it off without wasting a lot of money or asking for budget, just put it in cloud, cost 20 cents a terabyte or something like that, right on S3. You can essentially have almost everything you need to run these kind of queries, right? Because what do we have in the SOC today? It's 2024. We have the same shit that we used to do before I was born, queries and playbooks. Why? We can trust that shit, right? We can trust it. It's explainable, it's adaptable, it's customizable, it's transparent. Yes. That's true, that's true. A lot of the insider threat data cannot be given to the SOC. It's PIIs, yeah. The risk compliance people are not going to let you have your insider threat data there. If you have UEBA, they're not going to let you have it. If you have endpoints or emails or stuff from Outlook or whatnot, nope, you're not going to have that in the SOC, no way. But if we can get as close as possible, we can get something there. And the point is we use queries and playbooks because I can fucking trust that shit. Like, I trust it. I can see it. I can read the rule. Look at how nice it is. It's so open. It's so transparent. It's so nice. I can actually read that shit. I fully understand when it triggers. It triggers when it finds these kind of stuff in the query, commands, all kinds of commands in my web shell traffic or in my web traffic in general as a post. That's when it triggers. I completely understand that. Can you say that about an LLM? Hell no. How many people here are using anomaly detector? Anomaly detection? UEBA? Two people. It's 2024, right? Like five years ago, a shit ton of people put their money on UEBA, right? What's wrong with UEBA? Why don't you use it? Why do you use it? What do you hate about it if you use it? It's different. It's sort of like a box. If you view it as one space, it might be something else. It works. If you say, this is going to give me everything I don't see and all that's going to be broken, you're wrong. I'm definitely buying you a beer today. Sorry, go ahead. Yeah, 100%. Come up. Hell yeah, come up. Woohoo! Can you give us a quick intro? Can we get the third mic running? My dude. Thank you. Oh. Thank you for coming up. By popular choice. The people's choice panelist. My name's Walt. I'm a 15 year schmo. In cyber defense. Working for the man. Uncle Sam? That man, yeah. I love that man. But, and I started as a SOC analyst and I'm somewhere between senior SOC analyst and the guy in the office who does ML and plays with the Splunk models and tries to build the dashboards. Oh yeah. And yeah, I'm over opinionated. I mean, yeah, yeah. I hear you. There's a lot of stuff that you didn't say that, you know, I can feel it. I was in the SOC, I was using Splunk. I used MLTK, DSDL, all that good shit, eh? What was that? MLTK, Machine Learning Toolkit. Oh yeah. MLTK, I like it. It works nicely for something that's embedded. I haven't played with Elastic's embedded machine learning that much yet. I can do some stuff in Scikit. I have done stuff in Scikit. I have a master's. Nice. I got it last year. Oh, all fresh with all the data science. Hey, and I went there because there was a need. Hell yeah. Somebody has to be able to sit there and say the machine learning works for the use case and don't buy the black box. Hell yeah. That's my role in the office. Yes. If they ask me if this actually makes sense, then I figure out a way to use it. That's amazing. It's like taking my life and just making it a lot more full of experience kind of thing, you know? I worked a couple of years in the SOC, and then I went into a PhD to solve some issues in the SOC. You essentially worked a lot more in the SOC, saw a lot more bullshit. So yeah, I'm going to refer a lot back to you. If you have anything to say, just... No worries. Boom, right away. I don't have to prompt you. I'll just go for it. Unfortunately, my daughter is now cringing. Oh, yes. I mean, you made it to the con. What did you think? All right. So back to the discussion. We love rules because they're understandable. They're transparent. I can customize them. I can fucking give them feedback, and they can do whatever I want them to do. I trust them. I will never get fired without understanding why. AI? I'll get fired, and I'll be like, why? Why did it not work? The vendor told me it will work, right? So anyways, rules are pretty nice. Have you guys ever seen investigative playbooks? Anybody know what that is, an investigative playbook? Okay. So an investigative playbook is a fancy way to say, you know, I have a bunch of searches that go back to back to back to back. And if they're within five minutes of each other, they come all together within a ticket. That's pretty much it. It's like security analytics stories from Splunk. In Splunk, they also now have the risk-based alerting, which essentially just means like if something is scored like five out of 10 risk, and another thing is five out of 10 risk, and they happen within five minutes, boom, it's 10 out of 10 risk for both of them. Put them together in a ticket and tell me. But essentially, all of these nice things are rules on top of rules on top of rules. And every year, although it's 2020 fucking four, we get new ways to apply rules as if we're in the 60s. Why the hell are we not using any more like things other than rules and solid, narrow logic? Because we cannot trust it. Okay. So what do we like so much about our rules? What makes us trust them? Well, I can also map them to MITRE ATT&CK techniques. Anybody here... I'll ask this question one more time just to... Anybody here does not know what's MITRE ATT&CK, and I will go through it quickly. Okay, let's go through it quickly. So MITRE ATT&CK is essentially a way to say what happened when we talk about the what, the who, the when. If I tell you, oh, this vendor says this thing happened, and you don't have a common reference for what the hell is this thing, you don't really fully understand what is it. And a lot of the people in this industry are so scared to ask or say that they don't know. So nobody actually figures out what the hell are they talking about. And they just keep on going. And they never ask, dude, I didn't understand that. I don't know what's going on. And just keep on going, right? Everybody acts like, you know, they know it all. And nobody wants to be, you know, like the only person that asked the question. But anyways, MITRE ATT&CK is solving that as a big Wikipedia. And this Wikipedia is essentially full of techniques. And every technique has a procedural example. It tells you how to detect it, how to mitigate it and whatnot. And one neat thing about MITRE is essentially in MITRE ATT&CK, you can see that going left to right, you're actually going sequentially. So there is causality going left to right. Damn, I lost my light. Was that me by any chance? That wasn't me, right? No worries. You guys can still see me. I don't need a humongous light bulb in my face. But going left to right, like you start at initial access. So this is when I send you like an email and tell you, yo, what's up? You won 100 million bitcoins. Click here. And then once you click here, a bunch of shit happens, including like execution, persistence, privilege escalation, you know, the whole thing. Until you end up at impact, right? You end up with some sort of like ransom. Now I'm extorting you. You end up maybe with like some sort of command and control. Now we have something that keeps on moving your mouse or something like that, right? Okay, so that's the fun stuff at MITRE. One more fun thing at MITRE. At the SOC, we are always talking about single alerts, single isolated, disjointed, siloed alerts. And these are not how people talk about incidents. If anybody here can talk about an incident, that would be nice. I don't mean to pick on you guys, but can you share a single incident that was like a full investigation, like end-to-end? I know George might share one. You kind of prepared one. Or you can go for it as well. Whoever wants to go for like a full investigation, like some sort of an APT that you can share, some sort of like... APTs I can't share. Right. I can't share APTs, sorry. The only thing I can share, and you kind of saw or heard earlier. Yeah, he's probably the only guy that will share because DOD, DOD, so, you know. This is fine because it happened years ago and we weren't like told we had to be classified about it, but like beyond the details of it. But basically, we had stopped at my previous employer a series of persistent DDoS attacks that the campaign ran for, I would say, arguably about maybe almost two weeks. And every day we were getting progressively worse and worse attempts at us. We were getting like higher and higher ping rates. And so it was really crippling the latency of our entire organization, our ability to work. Eventually, we were able to kind of change rate limiting rules. We were able to change certain configurations of the infrastructure that allowed us to retain traffic flow once again. And suddenly we found that the attacks had stopped. And we didn't really know what happened. We got a weird call, because I'm Canadian. We got a weird call about, I'd say, 12 days later from our public safety department, which is kind of like our department that has all the intelligence agencies. And so folks from our CSIS, which is like our CIA, came up and told us, and they sat us down for a briefing with our senior executives, that we were attacked by Fancy Bear. And we'd actually repelled the attack by Fancy Bear, which was fucking wild. But really, what they were trying to do is they were trying to take down the ability of our organization to operate, because we were helping with research for missile targeting systems and other kind of modern technology that the Canadian Armed Forces were developing. Unfortunately, they weren't... well, fortunately for us, but unfortunately for them, they weren't successful. But what was amazing to me was that for us, we just cut to the fundamentals of how to repel a DDoS attack. Where we didn't know that we were fighting a nation-state actor. We didn't know until after the fact, until the government came and told us, this is actually what you were up against. To this day, I'm still actually blown away by that, because we had no clue. To us, it just seemed like a really, really persistent APT group that was just a run-of-the-mill APT group, because it was really just a really annoying DDoS attack that didn't really have any special parameters to it. So I found that kind of fascinating, and I don't really think that's a standard APT for them, because I've seen the old APT32 blogs come out all the time with some of the innovative social engineering tactics that they like to use. But I think on this one, they were just looking at who's part of the supply chain for this project, and let's attack every organization that is part of that build for that construction. So it's kind of an interesting outlook, but you have to look at when you are attacked by a nation-state or a large APT actor, you have to look at it from the human level as to why they are trying to attack your organization, and what are the crown jewels they're trying to go after. So if they're trying to just disable your ability to function and operate, that's a legitimate means of compromise that they're trying to achieve. If they're trying to steal and exfiltrate data, that operation is probably going to be more malicious, because they're going to have to get inside your environment and then move laterally across, probably break access at some point or get some kind of privileged account, and then be able to exfiltrate the data to a C2 somewhere without you noticing. So oftentimes you're going to deal with, what's it called, a slow... Low and slow? Low and slow, there we go. Oh, low and slow. And by the way, for those of you who are playing in machine learning and anomaly detection, anomaly detection is very good at giving you low and slow prospects. Yeah. Yeah. That's been the best use case I've got so far. But they can maintain your presence in your environment for months without you realizing it, if they do it correctly. But at the very least, when you're dealing with just trying to find odd traffic that you'll not spot otherwise, that's the sort of anomaly that you are actually trying to leverage. But most of the people that I know that have UEBA still, but the people that don't have UEBA, they don't have the anomaly detection because they end up dialing it down so much in face of false positives, they miss the slow and stealthy stuff. They only want to see the extra, extra, extra spiky stuff that Verul can get them. And that mindset's part of the problem. The other thing is, you know, for the really loud, obvious stuff, which generates tons of false positives, you should be tuning your inputs to your anomaly detection algorithm beforehand. If I know this, and your analysts should be able to also go through and say, right, here's the ones that are, you know, this traffic I've seen elsewhere, it's loud, this isn't a good prospect, because X, and then go to Y. Hell yeah. Yeah, I mean, it goes back to people on process, like you have anomaly detection there for years, people don't use it because they don't tune it. And when they tune it, they tune it out. They literally just, you know, it's too many false positives, let's just get rid of it. Because if I have all of the slow and stealthy appearing, I have all of the garbage appearing, you know, so it's a trade off. Do I want to see all the slow and stealthy? Or do I want to not have a million fucking tickets every day? I think there's another issue of insider threats, right? Two of some of the biggest ones I've seen that I was a part of that organization, were people that were either fired or about to quit, and they set up the environment. And if you don't have that detection, and someone's doing this setting up of the environment, and they're starting to have a bunch of scripts execute to create accounts, and get into those accounts, and piggyback on that, and create scripts to start shutting things down, or moving data, whatever it is, or both, you should be able to detect those things before those people depart. That brings me up another point, you should really invest in DLP. Data loss prevention is a major issue, and particularly when it comes to insider threat. So I can give you an example, I won't say which employer, but let's say we had to let go of an HR person, and it was a sudden cut, financially based, like their performance was good, but we had to let them go. Oftentimes, when folks are put in that position, they're going to try to smash and grab as many files as possible. Perhaps it's been off in a consultancy, or do whatever it is they're going to do with their business after the fact. But obviously, corporate data, you can't just carry home with you. That's not the way it works. So I knew about a month in advance of when this person was going to get let go. And so I kind of set up a surveillance with my SOC manager, and I was like, hey, can you watch this person? Can you specifically see what's happening in their endpoint over the next few weeks? So it was kind of an interesting process where they were going to get notice that we were going to let them go. And then there was a two-week buffer window for them to kind of hand off everything. And I suspected within that two weeks, they would attempt to do a big data exfil. And what happened? It was like, I think, a day before we cut off all their accounts and everything, a massive data exfil. So we ended up getting alerted to what they were doing, because we had our endpoint sensors detecting what was going on, that we had seen the files in the transfer specifically. So we knew exactly by name, which files are actually on out. So we were able to call this person back, be like, hey, can you put those files on a USB and please confirm deleting them from your computer because they belong to the company. Yeah, it's a here we set up these sorts of files or these sorts of indicators. And one of the other things you absolutely need is somebody involved in the process to know what should be happening. It's the deep knowledge, you have to have somebody know what should be happening. This is what's what's odd. And have a clue as to when to really put that extra scrutiny kind of thing. And that's the context. Context was the boss told you, you know, like, this guy's gonna do some shit. That's fucking amazing intel. Thank you. Somebody's gonna do some shit. I'll look there. Right. But if I have anomaly detection, George was talking about that a little earlier as well. He was like, they can be there for months. What does that mean? anomaly detection, my friends need some sort of a time for baselining baselines over a month, you have someone that does something fishy every year, because they go and they pull financial metrics for the taxes or some bullshit. Every single year, you have a ticket. Every single year doesn't matter. And that's why UABA is not the most popular thing in the world. And it will never be because you have to tune the shit out of it. Right. And for us, we want to stop fucking hyper tuning everything. We want to have regular lives. So that takes us to essentially attack flows. Attack flows are incidents that, you know, when I asked George to talk about an incident, he was like, there was a lot of DDoS. But DDoS usually happens all the way at the end. I know Chris usually has a lot of incidents to share. And sometimes they're all over the place. Sometimes they're only at the end. What happens is, if you only see stuff at the end, you just didn't see the rest. You just didn't put it together. And if you have seen some things but missed a few, you know why you missed them. Because these guys were good. And they got your essentially, you know, like blind spots in coverage, blind spots and whatever. So most of the investigations, trying to put the whole story, like, give me some sort of an attack flow. Anybody here familiar with a MITRE attack flow? God damn, only three people. What the hell is going on with MITRE? All right, so I'm going to pitch MITRE for you. Here is what they call a MITRE attack flow. I can see strategically and mainly a little bit operationally, what was happening at Equifax, for instance. So there was a vulnerability, exploit, whatever, you know, like web shell, yada, yada, encrypted shell. There's like a lot of queries to the database. That's how Equifax got breached. And my data is there. You can find my SIN number, my address. You can find a lot of information about me if you want. Download the data breach, and please don't steal my identity, but I can't stop you. And God knows I spend a lot of time in the bank whenever I do something because of this, but can't really complain, you know. This is the attack flow, and they archived a bunch of stuff that they got, and they exfiltrated it via C2, non-C2 protocol, via multi-proxy and whatnot. If you want to watch some more of these, instead of APT PDF reports, you can have an APT flow, and you can see the nice strategic movement there. But anyways, why the hell do we care about this? We care about this to tell you that we have been fed our entire lives in the sock, that an alert is important. There is something called a notable alert. To hell with an alert. It's about the story. It's about show me the entire freaking flow. To hell with a single technique. Show me the other shit. That's the context. Show me a piece of intel that the boss tells me, you know, somebody's going to pull some shit on you. Good. Now I know where to look. Now it's no more a single incident of data exfiltration. It's data exfiltration that I have good reasoning for, this person is disgruntled, and so on and so forth. And these kind of stories are very important, and that's what usually goes in an incident report, and that's what people like to talk about when they save the day. You don't save the day against a single incident. Sorry, against a single alert. You save the day against a full attack. It might be a full playbook that executes in 20 seconds. It might be an APT that's just been there for a couple years, whatever it is. It's not one thing. It looks like this. So can we do this with data science? You know, I came here for data science. You baited me, and now you're feeding me a lot of bullshit about people process. Give me some technology, my dude, or I'm going to leave right now. Gotcha. Okay, here's some technology. So we need some sort of finding micro-attack techniques for everything. Why? Because it's a what. If I hire unicorns like you guys, I don't need to detail everything for a what. But if I hire the 20 resumes that I got in Las Vegas, they're all juniors and they need jobs. And we in security like to say that we have a lack of talent. Fuck no. We have no talent shortage. We have unicorn shortage. I cannot hire someone like you guys, but I can hire a shit ton of people that are juniors. And because I can't afford you, within my budget, I just say, oh, I have a talent shortage. No, I just can't afford you, and you're too few. I can find a lot of juniors and beginners. So if I give them a micro-attack for everything, their life could be slightly better because now they know the procedural examples, mitigation and detection. They have the description. They have a common language to talk about with me, especially when they see anything in the sim or in any other queue. So how do I get them everything with micro-attack techniques? Well, you know, I can give them something that I get from, I don't know, sometimes my EDR has micro-attack, right? Anybody here has micro-attack from the EDR? Yeah, a bunch of us. So sometimes the NDR would give you some, you know, but most of the data does not have micro-attack. And the micro-attack that you have was for marketing. It was for dashboards. It was for sexy stuff at RSA and Black Hat. It was not to actually use it. So ideally, we have a micro-attack that we can actually use that is not crowdsourced, where every single one was given by a different author. Ideally, we have one thing that gives everything micro-attack. How do I do that? I can just dedup everything in my sim and get all the different messages and signatures that would ever trigger and I, you know, hand-annotate them. That's the version 0.1. Version 0.2 is to use an LLM like ChatGPT and let ChatGPT do it. Like I can go to ChatGPT and I say, you know, ChatGPT, what technique is happening here and there? And it will tell me, you know, what MITRE technique is run DLL 32 registry run key, you know, whatever. It will tell me. It might not be good, but it could be consistent. Can ChatGPT be consistent? Depends. But if you really are after consistency, you go to a model that you can tune the API off. And if you tune the API, it would look something like this. You go to the settings on HuggingChat. If you don't know about HuggingChat, it's just a way to get LLMs tuned for your use cases. And you essentially choose any model and you can give it a lot of links for things that it should use, you know, to do OSINT or to do whatever you want. But essentially, let's create one together if you want. Let me figure out how do I create one. I can do this on my phone. I don't have to, you know, walk away from here empty handed. I can walk away with a new assistant that I can create and I can call a TTP detector. And how do I do that? I close ChatGPT. I start any of these models. And the key here is temperature. Why is ChatGPT not consistent? It's creative. It hallucinates every now and then. That's why I don't know a single person in this room that uses an LLM for anything serious other than reporting or some sort of, you know, some sort of how do I write this query or something like that, right? But you don't really depend on it because it hallucinates. If you drive down the temperature all the way down, it will stop hallucinating and it will be consistent. What is consistent or deterministic? It means same input, same output every single day. Same input, same output. And if I have that, I can technically use that for my classification. We're going to talk a little bit more about that later. For now, let's talk about, okay, my dude, you need miter attacks for everything. Sure. Give this guy all the miter attack he needs. Now what? Now the layer ones can actually understand what's going on when they open their sim and they see a million tickets for them to work on. A million notable alerts. However, how the hell do they work through the million? That's why we came here. How do we do data reduction and go from a million notable alerts into, I don't know, 10 tickets? Something that a human can actually do? Because if I have a million notable alerts, I'm only going to tune my notable alerts to only have 20 extra, extra, extra spicy, and I will never lay eyes on anything else. Anybody here has terabytes going into their sim? Like a day? Terabytes? Fuck yeah. A lot of people. Okay, nice. So do you ever look at any of that data? No. Why do you collect it? Compliance. Fuck yes. Yes. Thank you. We do not collect it because we need it. We collect it because the boss wants it. So, essentially, what do we actually need? We need about 20 rules, 50 rules, 100 rules. 200 rules? That's about it. 200 rules? Hopefully they don't trigger. When they trigger, I'm kind of worried. Do I ever investigate them? If I'm in the right mood, if I'm in the right day, and one of them triggers, I will investigate them. But if you need me to do it super, super duper fast, I'll just close them right away. You want the MTTD? I got you. Essentially, how do we find things that are relevant? Yes, 10 minutes to go. How do we find things that are relevant? I have to essentially investigate what are the questions to ask, right? So what is relevant between this alert and this alert? Well, they share an entity, or maybe they don't share an exact entity. It's not a common entity. It's a similar entity. Can I put that in a rule or a playbook? No. There is no similarity in rules. You only have the exact same entity or not. These two entities are in the exact same business unit or not. They have the exact same operating system or not. Similar business units or operating systems or similar ports does not exist. There's no similarity. However, as a human, you're actually doing that. You're looking at similarity. You're looking at similar, even tickets, historically, like there was something similar to this before, and how would people do it if I have historical data on my tickets? But essentially, I'm looking for event attributes, like the EDR gives me a lot of attributes like parent process and whatnot, registry keys and yada, yada, yada. NDR would give me like packet size and so on and so forth, protocol port. And identity would give me a lot of events, you know, like what exactly happened in this? Was it like an account change? What the hell was it? But essentially, I'm looking at event attributes. I'm looking at entities attributes, right? And in my brain, I'm doing similarity. Nice. You were talking about attack detection models. You said, I can do it with an LLM. Can you do any better? Right? I can do a Hugging Chat. I can even do an OLAMA. If you don't know what's an OLAMA, you just go here to OLAMA. And it's a local LLM instead of hosted in Hugging Chat or ChatGPT or whatever the hell. You just host it locally. You can do it in AWS with Bedrock, yada, yada, yada. But can I do better than just a vanilla LLM with the creativity turned all the way down on the temperature all the way down? Yes, you can. We did. We put three years into this. And we built a goddamn LLM that knows everything about cyber and it's open source. And you can use it for free. You don't have to pay us ever. But essentially, how did we do that? We gave it a large unlabeled corpus, you know, all the stuff in your bookmarks, the books, the slides, the white papers, all the shit that you want to read, but you would never will. You just put it in bookmarks forever. Or if you're one of these guys like me, you just open a shit ton of tabs and your browser can't take it anymore. Yep. So yeah, like we just gave all of that to the LLM and I took them off my bookmarks. And now I have an LLM that actually read them from scratch. And that LLM I gave a small labeled corpus to. And I can talk a lot about the small labeled corpus, but that's what took three years. Because I actually wanted a small labeled corpus of labels that I trust. Here's the alert, here's the mindset attack, and you cannot get that. That is so fucking hard. Humans are not consistent. We have to make one human sit down at the end and write regular expressions to keep themselves consistent when they attack something. Because every day they would attack something differently. It was so fucking hard. And then we had to do data balance. This is so fucking hard. A small labeled corpus, that's impossible. But again, open source, already out there, use it. But this is how you end up with, essentially, like you have techniques for everything. Of course, it's actually probabilistic at the back end, like I actually have a probability for every single class. But in this case, I was like, you know what, anything above 99% show it to me. And that was it. And it was pretty decent. And even if it was not decent, I don't give a shit. It's consistent and it's in everything. You have a PowerShell in my organization, I have a technique. You have a Windows event log in my organization, I have a technique. You have whatever the fuck that I get in my sim, I have a technique. Even if I don't get it in my sim, as long as it ends on my S3 bucket, and it goes through this, I have a goddamn technique. And I can hire the 20 resumes that I got of juniors, because they actually know what the hell is going on when they see something. They don't have to ask me, what is run DLL 32? I don't fucking give a shit. You have to just say, what is T1218? And you have to read about it. You have to figure out how to mitigate and how to investigate about it. You can go to chat GPT and be like, I have a T1218. What should I do? What are the next steps? What should I investigate? And it will tell you. It's a common language. So anyways, now that I have that, I want to cluster events that are relevant. How do I cluster events that are relevant? Well, I can do it vanilla. And I have code here for essentially clustering. And I just zoom in on the sexy eye candy, but forget the eye candy for a second. This is just like eye candy that shows you clusters of events and whatnot. But if I want to do much better, and if I can actually hire a summer intern for data science, instead of just DIY it myself, I will tell them to use a knowledge graph. What the hell is a knowledge graph? Clustering is unsupervised, right? Clustering is unsupervised, which means that it actually doesn't know where the hell is it going. And it doesn't know what's right, because you don't know what's right. You actually don't know what's right, and you don't know how to guide it, but you know how to think. You know how to investigate to a certain degree. Anybody here has documentation? If I join as a new SOC analyst, how to investigate something? One, okay, two, three, four, four. Okay, you guys are fantastic. Most people don't, right? Do you have historical tickets by any chance? Historical tickets, historical investigations? Okay, about five, six people. Okay, nice. Most of us, we're the normies, we're the 99%, we don't have shit, right? So, it's all stuck in the brain of a unicorn sitting in my SOC, and without this unicorn, everything fails, right? So, I know how to think. of your unicorn, right? Because the first thing we should be doing when we pull this stuff is writing out, oh, here's a little FAQ of how I do what I do. And it might not work for you, but you can see how my brain is going to work on it. And then you can adapt your brain to the same goal, at least. And, oh, by the way, here's all the things I screwed up on so you don't make my mistakes. There's also SOPs too, right? If you document what people are supposed to do, then... Yeah, the SOPs, the FAQs, boilerplate, oh, dear Lord, as much as you can boilerplate. Boilerplate your friend. Because if they spend hours crafting an IR and they've got 75% pre-written, put this here, put this here, make sure it all makes sense. Here's where you put the actual details of what happened in the narrative. And here's all the rest of the stuff that we just have to put in. Well, yeah. I mean, if you actually have some sort of documentation, that's fantastic. If you don't, you have to figure out how to put the knowledge out there. You can. You can. Don't lose hope. The knowledge is essentially going to be encoded in some sort of data structure. And data structures are essentially pretty nice because they tell the clustering algorithm what to look for. Clustering, again, doesn't know what to do. It's unsupervised. But you can make it semi-supervised and cheat your way a little and just give it knowledge. In my investigations, I always look for entities. Okay, so the entity is a node and the event is an edge. And between us as an entity and Google or Ashley Madison or whatever you want, it's essentially another entity. And these are the events that happened. And these events, essentially, I want you to cluster them, thinking all the time in the cluster about what entities are involved. It's an entity-centric way. But again, do you have the right process to have the entity attributes? Do you have the right stuff? It's all a process. Because when you go to data science, it's about what data do you have, right? And also, what knowledge do you have to put there? But given the right data, not the right data, given a good enough data and a good enough knowledge, you can actually get very useful clusters. And guess what? They compete with nothing. Today, chapter one machine learning and clustering competes with absolutely nothing, because you have a bunch of humans that sit in your sock, and they do whatever. But you don't actually know how do they correlate things, because you don't document them. Clustering, at least, is fully transparent. It's auditable. It's actually explainable. And you can track it down, and you can give it feedback. And it's very easy to give feedback. But also, you can also chain things in a finite state machine. And in data science, we call those Markovian chains. But Markovian models are another way to say finite state machine. We just like to complicate things. But essentially, they say that if you find a few steps, even if it misses a few because of zero days or whatnot, it's fine, put them together. And what you end up with is 2,500 alerts given with 180,000 events and logs. And they give you eight clusters. In reality, in the sock, we only knew about one ticket or one cluster. And that one cluster had about 10 alerts. And 10 alerts are essentially a lot. I don't think anybody has a ticket with 10 alerts. But that was not enough, because that exact cluster had 202 alerts instead of 10. And of course, not all of these were good. Some of these were garbage, but we gave it feedback. And it was fantastic. And when I showed it to my sock people, it was like, okay, this is pretty good. What amazing technology, what alien technology is this? And I was like, this is chapter one machine learning. This is clustering. And you can give it feedback. This is chapter one. Fuck yeah. Like we're working with rules, we're working with stuff. And it's a big data problem. And we don't have a single big data solution because we're skeptical about anything that we don't understand. Clustering, you can understand down to the latest bit of it. And you can give it feedback. And you should use it. And it's open source. So essentially, if you want to take something from this, put techniques and everything, that's the what. And for investigations, welcome to cybersecurity. No one actually knows how do we do investigations correctly. We don't have proper documentation. We don't have a single resource. We don't have a course about how to investigate stuff in the SOC that is unified and people know about. But essentially, if you have a clustering algorithm, you have a way to unify how do you deal with this. And it scales. And it's not a GPU. It's not an LLM. It's $20 a month for a clustering algorithm to run through terabytes and terabytes of data every day. And fully explainable, and you can give it feedback. But yeah, here's essentially a quick example that is technical. So I didn't completely bait you. Here's an input. And here's how you cluster it. You just say cluster zero has all of these. And you can give that to an LLM and write the report. LLMs are really good at writing reports. If I give this to an LLM, it will make me an amazing report I can give to my boss. But now when I look at a ticket, it doesn't have to be one alert, a notable alert. My ticket is one notable alert, 200 possibly relevant alerts. And if I have historical tickets, here's three relevant tickets from history so that I know what happened historically. But yeah, that's pretty much a wrap. This is how we compare against essentially other methods. It's actually efficient, because you don't do rules, you don't do searches. And it's easier to adapt and maintain. It's actually standalone. So when your boss changes the sim, you don't lose your work. It's standalone. And it's a legacy you can leave behind you. Anyways, I appreciate you. Thank you for the panelists. Thank you guys for listening. I have a shit ton of stickers and I don't know, I can take a lot of questions outside as well. I have a shit ton of stickers and I'd love to connect with you. You guys probably should connect with these guys. There are innovative leaders. These are the kind of leaders, you know, that we have on camera saying they like juniors and they don't like MTTD. They don't like, you know, the old fashioned way of doing things. So these are the kind of leaders you probably want to work with. But I appreciate you.