In this episode, Sergey explores how Azure OpenAI can improve incident response strategies by leveraging advanced AI capabilities. You will gain insights into integrating Azure OpenAI with existing XDR and SIEM to enhance analysis, and mitigation of security threats. Key Takeaways: * The Easy Starter: How Microsoft 365 Copilot & Security Copilot can be used in security scenarios. * Understanding Azure OpenAI: Learn about the core features and functionalities of Azure OpenAI and how they can be applied to security. * Incident Response Automation: Discover how AI can automate and accelerate incident response processes, reducing the time to detect and respond to threats. * Retrieval-Augmented Generation (RAG): Understand how RAG enhances AI models by retrieving relevant information from external data sources, improving the accuracy and relevance of AI-generated responses. * Fine-Tuning: Explore the process of fine-tuning pre-trained AI models to adapt them for specific security tasks, enhancing their performance and effectiveness Watch the live replay This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.microsoftsecurityinsights.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01Recorded Monday, February 10th, 2025. How's it going, Rod?
SPEAKER_02Oh, it's going great. Well, I tell you what, maybe it's going great. I'm not 100% positive. If you remember during the holiday where I lost my voice for like three weeks... Because of a cold, and now I got a cold that is coming on. I felt it coming on yesterday. Listen to my voice. It's starting to go again. And I'm like, what? Is this like a normal thing for me now? I don't. Yeah, it would be really bad. It says, Gary says, is Ray wearing a Rod Trent t-shirt?
SPEAKER_02No, it's not. She's not wearing Bruce Lee. Who are, what are you wearing there, Ray?
SPEAKER_01Data. Favorite Android.
SPEAKER_02What does he actually say? I am functioning.
SPEAKER_01Within normal parameters.
SPEAKER_02Yeah, that's very good. I love Data. Data was awesome. He was one of my favorites on the show. Yeah. I could never take Riker. Never could.
SPEAKER_01He's too charming for you.
SPEAKER_02I don't know if it's the charming piece. Cause you know, I, I don't, it's hard to charm me, but yeah, I don't, I don't know. He was just, I did like the captain. Love the captain. Oh, John Luke.
SPEAKER_01Moment of silence for Lieutenant Tasha Yar. Right. But then she came, she came back. Right. Romulan. Like what was not, but not her, but the actress. Right. So that was, that was funky.
SPEAKER_02Yep. Um, but yeah, nothing else is going on. Uh, except a lot of travel coming up today. I find it. Okay. So I, at the end of the month for, I don't know if I've mentioned this before, but my wife and I are going to Paris for our 35th wedding wedding anniversary. And then we're going from Paris to Denmark where I'll be talking at, or speaking at, um, doing a security co-pilot state of the union, um, at experts live in denmark then i'll be home for a little bit
and then mms and vegas in one week and then um oh i just finalized going to oslo and then edinburgh in june for two different conferences week you know two weeks right on top of each
SPEAKER_02other so lots of travel lots of crazy travel i love and i love it i didn't know because i didn't know if the is ray wearing a red trench or was that a little like that little like sassy because you're an android but i love that you were just raised it's data is data from star trek oh wait wait i get it now it does look like me it looked data looks like me or i look
SPEAKER_01like no prince uh yeah but i also love that it's 35 35 years married And your wife looks like she can't be older than 35. So I don't know the secrets to having a long-term success. This is your next book, Rod. You need to have you and Meg put together your secrets for success and what it takes. 35 years. That's amazing. That's the achievement.
SPEAKER_02Well, I just, we, her and I were talking about this last night. I don't know. Sometimes things just hit me. I just, I want to spend the rest of my life with her. You know, I'm sitting here in the shower last night thinking about things.
SPEAKER_01Did you only come to this conclusion now? You're like, I needed 35 years.
SPEAKER_02But now it was because of this. Now, this is really convoluted. All right. Who remembers the band Night Ranger? And they had, you know, Night Ranger had these songs. It was all about breaking up and all this stuff. Anyway, I'm thinking about my two best friends from high school. And of all of us, I would have been the one that would not have stayed married, but they divorced and, you know, both of them. So I felt really super blessed thinking about this. You know what? What's doing it? I really just want to be with her for the rest of my life.
And you never you know, you say that with the wedding vows and stuff like that.
SPEAKER_02And then you have your lives together. You have kids, grandkids. take a moment or stop and think about that stuff. And for whatever reason, Night Ranger, thinking about my friends in the shower yesterday evening, I'm thinking, yeah, I really just want to spend the rest of my life with her.
SPEAKER_03Uh, yeah, this is weird. It is a little weird, isn't it?
SPEAKER_01Why is that weird? Do I just have an odd perspective? I think that's really weird.
SPEAKER_03No, no, no, not you.
SPEAKER_01He's you.
SPEAKER_03Oh, yes, yes. My brain is... You don't want to see in my brain.
SPEAKER_02You don't want to know my thought process. It's just too complicated.
SPEAKER_03I know my experience. I mean, I think, yes. But I think that makes us great technology people because it's like an engineer's brain.
SPEAKER_02It's circular. You may not come to the right conclusion for 10 years or 35 in my case. But, you know, eventually you get there. But there's a lot of stuff that goes on in between.
SPEAKER_01I tell the therapist, include that in the HIPAA notes. It's because I'm in technology that the brain is weird. Just jot that down.
SPEAKER_03True technologists don't put stuff off limits to consider. That doesn't make you... Your brain takes paths that seem to deviate from cultural norms and everything else, but that's what innovation is. You can't conceive something. I could never concede myself killing someone.
SPEAKER_01How do we get from 35 years in love to you're like, you know what? I just would never be in full blood. I just... What is... AI co-pilot, what is happening here? We need to reboot our system.
SPEAKER_03AI is making me less sensitive to human nature.
SPEAKER_02AI is a gimmick. AI is a gimmick. I have to say.
SPEAKER_03Yeah, that does. When you think about it, you know, maybe we should just get a church to have, you know, Rod.
SPEAKER_01I'm a big fan. Yeah, Rod and Megan, the Trents, I would do it. I am a number one disciple.
SPEAKER_02Yeah.
SPEAKER_03Yeah. Do that there.
SPEAKER_02So that's what I did. Edward, I guess we passed to you and then we'll come back to race. And she started the episode. She can finish this off and then we'll introduce our guest. But Edward, what have you done? I've got to be honest. The reason why I just talked about that and travel is I really haven't done anything technical except get ready for those sessions in Denmark.
SPEAKER_03So what happened to you? Lots of security co-pilot lately. Um, and I asked you a few questions today, uh, about a couple of things when you break out of the plugin stuff, that technical stuff. Um, I'm working on a lab and working on a paper, um, with Beth, um, been on the show. Hello, Beth. Come back on the show. Uh, co-host for women in cyber month. Um,
SPEAKER_03Not in my real expertise, but a lot of purview stuff as it relates to security copilot and the skills built into it as well as getting purview into signal. So that's been doing that. What I've been doing. Oh, there's a lab that he put out. have been trying to get hydrated so we did that i think you and i got into the lab quite a bit last week as we were billing it out permissioning and security copilot stuff so i'm still working on that stuff and um playing around
with a couple of announcements that are not net new we'll put them in the show notes is our security copilot is now available in microsoft contra so if you have the right skews and you
SPEAKER_03have copilot provision you'll see in these portals, you'll see in the upper right, instead of the time, you'll see the copilot. But, and I've had some questions, people say, well, which copilot is that, right? And the crazy part about it is a couple of the folks that told me they saw it swore me down that they did not enable security co-pilot in their environment.
SPEAKER_03So it seems like that work manifests in certain portals, not because it's enabled, because we did some testing around and I saw what the customer was saying. When he clicked on it, nothing came up. You are not envisioned to be able to do this work. One customer clicked on it and co-pilot turned on and he was able to prompt. Why is that problematic? Cause he doesn't remember enabling the SEUs to do it. Somebody, when he did it, I said, you need to look at audit logs.
SPEAKER_02Uh, yeah. You have to look at the Azure monitor audit logs, not the audit logs you turn on in security copilot. Cause that's just right.
SPEAKER_03Cause the first thing I did was take one of the prompts you're getting. I ran it and like, it doesn't work that way. This is post deployment. And so you got around that a little bit. And one more thing that you and I did, I did, um, We did Entra.
SPEAKER_02So I have a plugin for that, by the way, if you want to, if you want to use it, that tells you who enabled or turned on security.
SPEAKER_03I did. Yeah. And I figured out how to do it just inside the Azure activity logs too. Okay. I wrote a K2O query and you can.
SPEAKER_02Yeah. But at the same time, you, you know, you want customers to pay as literally as much as they can for security copilot. So you can just use security copilot, see what security copilot's doing.
SPEAKER_03Sure. Yeah. Uh, I did that. I'm going to finish the lab that you and I are working on. Chitty-chitty with Noodle for a minute. Him and I are going to do some cripple stuff for the end of the week. And I did something else, and it ate my time up, and I cannot remember what it is that I did. But it was – we did the lab. We did entree. We did purview. We talked about the lab, hyping, building out, hydrating that.
SPEAKER_03And something else I don't remember. So I actually pretty busy week last week. I got a spreadsheet that can predict pricing of a sort. But that's for SEU consumption. And then you and I can not make heads or tails of why your security copilot consumption is much flatter than mine. Oh, yeah. So some cost analysis alerts. That's what you and I did. So we get these things. Right.
SPEAKER_02What are you talking about? I thought I said I, I thought I told everyone I didn't do anything technical, but you're right. We did work on that.
SPEAKER_03That was a good week. So with the show announcements, public preview, um, you will see the co-pilot button doesn't mean it's enabled. You click on it. It'll let you know that someone's provisioning it. Also something that's sort of old, but I thought it was worth mentioning. Um, that the new Amazon ransomware attack recovery without possible payment that's going on. I read about that last week or the week before. I missed the show last week or something just came up. This is something that came up in January and they've done an update for it.
SPEAKER_03I'll put it in the show notes. I'll put it here. Copy and put it here. That was a good read. And that's about it. a couple of things I did. I can't talk about, but, um, and the patient don't know how to, huh?
SPEAKER_02Cause you don't know how to rate you're on. Let's see. Yeah.
SPEAKER_03I know where you're going. I don't know how to. Yeah. Yeah. What'd you do?
SPEAKER_01Oh, goodness. Uh, well, let's see lots of work. So work on the work front. Uh, we're, putting together the February webinar. I'll start there. And then you'll see another familiar face as a co-host. Thanks to Sam Gardner's encouragement. She said, cause we usually, so it's usually me and somebody else and the somebody else, like they're bogged down with other stuff, but defender experts really. They're like, Hey, we can't, I can't do it.
So Sam's like, why don't you get one of your, the dude bros from the podcast?
SPEAKER_01She's a big fan. She was on the show multiple times. And Brody volunteered himself. He said, hey, if anybody needs, I can do it. So Brody's going to participate. He's going to be a co-host on the February webinar. And then we had conversations around the team and I. Defender experts had conversations around the security co-pilot plugin, which Rod, your demo, your walkthrough has been instrumental and is super famous in
helping get the
SPEAKER_01The word out with... What did I do?
SPEAKER_02I don't know what I did.
SPEAKER_01Your walkthrough, your overview of the security, the community plugin that combined the power of security co-pilot with Defender Experts Insight.
SPEAKER_02Oh, oh, oh.
SPEAKER_01A huge splash. And now we're working to hydrate it further or essentially like add more content to it. And there's a push now to have a first party plug in baked in experience. So working on that, I completed the RFPs that we had. So way to go to me. P is a party. But then I was crying at my party. I can cry if I want to. And I did. It was very painful, the whole process.
SPEAKER_01But that's good there. Lots of other stuff for folks onboarding. And then there's an initiative to have everybody be a little bit dangerous with MDE. So whereas I'm the expert of Defender Experts, which is the first party MXDR service, Now I'm learning to have a bit more of a technical chops for Microsoft Defender for Endpoint. And that's been really exciting and rewarding.
SPEAKER_01So more to come there. And then I had lots of work around my capstone to finally complete my third master's in cyber operations. So just parties, parties up and down, right?
SPEAKER_02Do you get colored belts for each of your... accomplishments kind of like karate to get a pandora's bracelet i've never gone to any of my graduations because i don't like those things you don't like bragging you don't like bragging in front of people no not really like unless i'm like making
SPEAKER_01money from it i don't want i'm so
SPEAKER_03Speaking of you, you reminded me of something, right? You said Dex. I can't get away from Dex. Not that I want to, but I recorded our seventh video in the Defender Expert series with Sachin. So we had Michael Lambert on, who's been on the show. Yeah. I don't know if I should have said that. It was late now. But we've got three more to do. I suspect it'll probably come past your desk ready to get a cut on it. I think we can look at some outside review of it.
SPEAKER_03I suggested that happen. That we need to get some people to help refine it because your fireside chat cell is really good. And on that plug-in for what Rod had, I may have an addition to that. I'm working on something that can work with the desk stuff. I'm That's why we're trying to get this lamp.
SPEAKER_01Yes. We got to include Sam Gardner. I've been trying to get, I'm telling Sam she needs to do her own podcast and she told me to leave her alone. And then I said, you need to create, like, because I took a break off social media because I, like, so much stuff happening. So just for the month, I'm trying to get this captioned on. And I was like, Sam, you need to have a social media account. Like, just have a LinkedIn profile. She's like, please stop. You need to do these things. So if you can help, just, you know, like get that message to her,
SPEAKER_01but include us in the conversation. And well, you got all the firepower from Dex that you need to make this a reality.
SPEAKER_03Yeah, I got to call Samantha here about another thing that we're doing. So I got a note. I'm glad you said that. and um and oh one last thing i did last week i didn't know what it was why i had memory lapses i'm beating my ball here against the wall trying to get the cisco e-streamer and fte ftd connected to sentinel to pipe data over and uh it doesn't work and we haven't we end up having to remove the ama agent and go back to oms the
SPEAKER_03legacy agent Yeah, and so I'm like, I'm not going to read these parses. We'll go back to the legacy agent until PG gets it done. So I did that.
SPEAKER_02Back to Windows XP.
SPEAKER_03It works.
SPEAKER_02Yeah, it works, especially in airports.
SPEAKER_03All the time. So we have the customer going. They're able to get data in. But this is a Cisco mess up. You know, we can talk about that later. So that's it. So we got, oh, hey, Brody decided to show up.
SPEAKER_02Brody's here. We're like 20 after, though. We do have a guest.
SPEAKER_03Yep, we need to get a guest here. Brody just had a call.
SPEAKER_02Hi. And Brody is not the guest, but we do love Brody. Yeah, we do love Brody, but he's not our guest. uh brody's here he's we're you know it's it's it's hit or miss these days we're all just sort of busy i i have to tell you before we bring on our guest um this has been the busiest first half of the year i've been involved in in a long time um that's all good it's really good um makes time go super quick
but um and time is
SPEAKER_03the construct created by he must have past natural phenomena time is not yes the time is an illusion i love i love it everywhere when you get into your physics bag you're like i got you studied physics at like graduate level right like your visit like you like this is what you got your degrees at like i always love it do more the reason my mind went to it i did something i had not done i actually watched the movie interstellar for the first time a couple weeks ago never seen the movie
SPEAKER_02Is that the one with Matthew McComb, yeah. That's right, where he ends up in a library at the end. Why would you? Yes, that's the key part of the movie right there. That movie just went in the wrong direction. That movie was like my brain. It just went in the wrong direction right at the end.
SPEAKER_03But hey, we'll get Brody out there today to ask what he's been doing outside of golfing and snowboarding. But let's get our guest on him. Dana. Sergei!
SPEAKER_02Good day, Sergei. You're on mute. I can unmute you if you'd like. Hello, hello.
SPEAKER_00Hello, Sergei. Can you hear me?
SPEAKER_02Yes. Definitely can hear you. Yeah. And everybody, I was just so those that are live right now with us, our audience, there was some question whether or not the audio is working. It seems to be working for everybody except for Steven or Steven.
SPEAKER_00I can hear you.
SPEAKER_02Yeah. So maybe Steven reboot or go back to Windows XP like we were talking about.
SPEAKER_03Yes. Yes.
SPEAKER_02Most secure OS on the planet, I bet. Wow, I missed an important conversation.
SPEAKER_01Is this sensory deprivation situation we have? It's almost very soothing, but also is it just space? I like how he's done with that. I like it. Okay.
SPEAKER_00All right. Nice green screen. Another case. If I use that one, I have two shadows, so it looks a bit weird. I prefer to be a ninja.
SPEAKER_01I love it. Yes. I was about to say, everybody got the darkened room, so for me and Brody, we're all bright. ray having seductive cyber lounge why is that like why does everybody just when they describe me they're like vaguely demonic i don't why i don't what is it tell me what it is so that i can hide it better please no no no ray i can't come to your
SPEAKER_03blood sacrifice tonight just so you know we'll get it going you know in the name of the evil demon knowledge there we go knowledge sergey well sir it is good to meet you visually we've been all over linkedin talking and i missed you when you came on this side of the pond i won't miss you the next time you come on then i'll come over that side we'll go we're gonna do dinner or something but To the audience, I'd like to introduce Sergey.
SPEAKER_03Sergey is a prominent incident responder, offensive genius when it comes to cybersecurity, as well as an artificial intelligence guru when it talks about using AI in everyday cybersecurity operations, particularly incident response. Sergey, would you like to do a better introduction on yourself and what you're going to talk about today? That's right. rott knows me pretty well well i didn't want to i didn't want to mention anything edward likes to feel important so i know right so there you go
so ron are you going to do the introduction oh i i no no sir you can uh introduce himself uh i'll have to tell you this him and i have been we've been good friends for a while but um
SPEAKER_02We presented together at many conferences. In fact, I think I'll see you in June. I'll see you in May for sure, but I think maybe in June as well. But I always refer to him as the Russian hacker, but he doesn't live in Russia anymore, so he's not really Russian. I think he moved your family. I am.
SPEAKER_00He's Russian. You moved back? No, but he's Russian. I'm Russian.
SPEAKER_01He's just relocated.
SPEAKER_00Look, the whole of my life, I travel all around the world. So how do you want to call me in that case? Just my friend.
SPEAKER_02How about that?
SPEAKER_00Global nation. Global nation. Citizen of the earth.
SPEAKER_01Yes.
SPEAKER_00Okay. That's another... Sergey, go ahead. Radfran sounds good.
SPEAKER_02Okay.
SPEAKER_00Yeah.
SPEAKER_02We'll use that. How about that?
SPEAKER_00All right. So, yeah. For a long time, I work in security. And, you know, I'm Russian. That's my burden to do some hacking. And so I... My customers, after this WannaCry and other stuff, they started to ask about, hey, can you test that we are okay and that we will not have this issue again? And that's where I really started to do some offensive stuff. I mean, pen test and so forth.
SPEAKER_00And it became quite popular. I know maybe like... Because I like it and it works pretty well. And then I speak about that at the conferences. And also it pays a lot of attention because at Microsoft conferences, it's not that common to see how things can be compromised, not only how it can be protected. It also adds more motivation to people. Like, oh, now I really understand. Why do we need this stuff? And that's how I became known.
SPEAKER_00Then I'm still doing that. I mean, I'm still working offensive stuff, but now we also have like a big trend in AI. And my customers ask, again, all the things I do is based on the customer request. And now my customer asks, okay, so we want to implement some AI stuff because we always hear about this. What do you think about AI? How can we prove our operations? And so that's what I do now with my customers.
SPEAKER_00I give them ideas how they can also use AI and security. In first of all, operations, also, by the way, in May, I'm going to present how AI can be used for the pen test, like a dark side of AI, but not this time. So today we're going to cover operations, so how we can automate the response with AI and how can we use AI in our security operations. If I may, it's a dark side of AI.
SPEAKER_00Oh, I can do that. Yeah. So which one?
SPEAKER_02I'm just curious. Which one? You mentioned talking about both. You kind of started with the threats and stuff. And then you talked about using AI for security. Which one are customers most interested in? Is it they were scared of AI? How do we protect ourselves against it or protect ourselves against AI that produces harmful or irresponsible responses, or do they want to use AI to help with security? Are they far enough along where they feel comfortable enough to
do that, I guess?
SPEAKER_00Quite often, it depends on the customer role. Since I work a lot with the security operation centers with SOC, they ask many questions about operations, how can we improve operations with AI? So when you work with the red team, of course, they want to know how like malware can be obfuscated with AI, make it less, better undetectable, less detectable. But since my current customers that I work with, they are a lot from SOC.
SPEAKER_00So they ask about operations.
SPEAKER_02So you're probably talking to, I guess, customers. So you've heard us, our intro to the show today, we're all talking about everybody except for Brody. We were all kind of talking about security co-pilot. I'm sorry, Brody. We just didn't give you a chance to talk about security co-pilot. It would have come up eventually, but you're kind of taking a different approach, right? So it's not security co-pilot. You're like building your own potentially.
SPEAKER_00Yeah. So, by the way, about security copilot, I will say a few words about security copilot, but I cannot compete you because you know the stuff from inside. But also, you know, quite often I hear the feedback from customers about security copilot that we want to have this, this, and this, and it's not enough functionality. And so that's where I also... make this demo based on the customer request because they want to have some kind of
automation or automated response but at this at this point security copa doesn't give it so that's interesting i and and i love that perspective because you
SPEAKER_02mentioned early on going to Microsoft conferences, you and I have been to the ones, and I love the conferences where they're not recorded because we can talk about anything. And Sergey, you're famous for hacking Microsoft products at these conferences. People don't know that, but I appreciate the perspective in talking about security copilot from a non-Microsoft platform. Approach, right? Because, you know, we worked with this thing all day long and we rarely get to see what other people are working with.
SPEAKER_02So I'd love to like see a demo or hear about what you're working on.
SPEAKER_00I'll show. Also, I'm going to show my security copilot. I'm not going to focus much on security copilot, but I will show it in the area where I have many incidents generated, where I simulate like a full cyber attack already. So I already have a number of incidents. I mean, incident, number of incidents, and with a bunch of alerts. And we can see how security copilot can deal with this incident. But then I will show you many other things that are not really related to security copilot, but related to AI.
SPEAKER_02Awesome. Any other questions for Sergey before he jumps in?
SPEAKER_03That may work. Show me what you got, Sergey. Sergey's on offense. I'm on the defense. Let's go.
SPEAKER_00So should I share my screen?
SPEAKER_02Yes. Got the little present button down at the bottom.
SPEAKER_00Yeah, yeah, yeah. Just give me a chance to find the right screen.
SPEAKER_02Make sure you share the correct screen. We don't want to see anything weird.
SPEAKER_00That's my working piece. There's nothing weird here. Only security stuff. Okay. All right. You should be able to see my just wallpaper, right? Yeah. And if I run slides, you should be able to see slide, right?
SPEAKER_02Yes.
SPEAKER_00My handmade slide with your logo.
SPEAKER_01Yes.
SPEAKER_02I love that. I like it a lot.
SPEAKER_00By the way, we'll accept the check for the trademark usage thing. Shame on you. You didn't give me any templates, so I had to create myself.
SPEAKER_02Oh, he doesn't have our PowerPoint templates, which I didn't know we had? Now we have to pay him for the licensing for this. So there you go. Sergey, thank you for volunteering to take care of our PowerPoint deck templates.
SPEAKER_00You know, the designer built into PowerPoint also helps a lot. Copilot builds in PowerPoint.
SPEAKER_02Copilot, thank you.
SPEAKER_00I just need to drag the picture and then it will do all the work for me. All right. So now I can just start talking, right? Yes. Or presenting. All right. So we're going to cover here AI-powered security enhancing incident response with Azure OpenAI. So here again, I'm not going to talk too much about a co-pilot that like a solution that already like Available, like probably heard many times about security copilot. But mostly I would like to focus on Azure OpenAI,
which is like maybe like your next step after you start working with AI for
SPEAKER_00security in your company. Let me say, first of all, just a quick slide about me. I'm a consultant instructor, conference speaker, Microsoft's most valuable professional or MVP shortly. I also have many, I think I have almost all offensive certificates, the most well-known OSCP, but I have many others. I'm also a Microsoft certified trainer. And if you want to find me on LinkedIn, here's the URL. It's not a really big deal to find me. or just use my first name and last name,
SPEAKER_00just type it in Google, you'll find my LinkedIn and other pages. All right, so what I'm going to do in the next probably hour or so, I'm going to show you a few ways how can you use AI in your security operations. And we'll start from really co-pilot. But I will show you two kinds of co-pilots. First of all, Microsoft 365 co-pilot, how it can be used in security. And then of course, security co-pilot. But again, just to warm up,
and then we're going to jump into OpenAI and Azure Foundry. So that's where I would like to show you how can you start working with OpenAI,
SPEAKER_00Azure OpenAI in your company, for security at least. Then I'm going to show you how to automate the response. So I'm going to generate incident, and then we'll see how the response can be automated with OpenAI. After this, we're going to enhance the response because in the previous step, the response will be given only from the model, from large language model, but we can make it better. We can make it better.
We can make it more relevant if we use retrieval augmented generation or REC shortly. And finally, the basic model I'm going to use is not always consistent with my security request.
SPEAKER_00And then we're going to fine tune the model to make it better. You'll see all that stuff. So you'll see it. We'll also fine tune the model to make a response more accurate. All right. So that's the plan. That's the plan. By the way, I can also hear some side noises. Will you ask any questions during the session?
SPEAKER_02We might. It just really depends on how excited we get. I think Brody really wants to ask a question right now. I'm always excited, but I'm not ready to ask a question at this moment. All right. So no. The answer is no. Thank you, sir.
SPEAKER_00Okay. So if there are no questions, then you're not excited. I got it.
SPEAKER_01No, no, no. What's the persona? So two questions. Is it okay for us to ask questions to chime in as you're presenting? Because we don't want to interrupt the flow.
SPEAKER_00Absolutely.
SPEAKER_01Okay, awesome. Yeah, because you're a seasoned pro, you got it. And a question, like, I was thinking through, what's the persona that we are like, we're supposed to be like wearing the hat for as we go through the different scenarios or the situations that you're going to showcase?
SPEAKER_00So you're maybe SOC analyst and so forth. So you work in SOC mostly. So again, it's about security operations.
SPEAKER_01Okay, thank you.
SPEAKER_00There's only one thing about if you ask questions, am I limited in time? Not really.
SPEAKER_02We generally schedule these episodes out to about an hour and a half. And we still have like an hour to go. So it's really up to you. There is no end. Ray may have to drop off a little early, potentially, and maybe even Brody because they have kids to take care of.
SPEAKER_00Got it. So then, yeah, for me, I will not also stay too late because it's like half 10 in my time zone. All right. So let's start demos. So first will be co-pilot where we don't need to really. So let's start for a simple co-pilot and we'll take co-pilot chat and security co-pilot. Let's start from something free, which is Microsoft 365 co-pilot chat.
SPEAKER_00So co-pilot chat is like, you know, you may think of this like a chat GPT or co-pilot in your browser, whatever. So it's co-pilot chat, but there's one nuance. So this is just a chat, but this chat is available for your company. And if you sign in with your corporate credentials to this chat, then your data will be protected. And then you can really post something a bit more sensitive. Because you probably don't want to send your scripts and logs into chat GPT and so
SPEAKER_00on because it will be used to train the model. Data will be also sent to OpenAI. But in case if you sign into the Microsoft 365 Copilot chat with your corporate account, even if you don't have a license for Microsoft 365 Copilot, you just log into the chat with your corporate credentials and you have a free chat. And you can ask different security questions in that chat. So you just need to go to copilot.microsoft.com and log in with
your Enter account.
SPEAKER_00Again, you can log in even with your personal account, but in this case, you should not really use it with some kind of sensitive information. And what you can do in this Microsoft 365 Copilot chat, you can use it for different purposes. For example, if you're a SOC analyst and you're analyzing the script, you're trying to understand what the script is doing, you can ask Copilot, like, okay, what the script is all about. And much quicker, Copilot will find it for you. Or you may upload your logs if you have some kind of, like...
SPEAKER_00several logs in CSV file, and then you just upload the logs, and you may ask, like, what happened here? And Copilot will be able to analyze their logs and tell pretty quickly what's going on. You can also upload some documents and ask, like, what I can improve in my policies, what I can improve in this report. You can even ask to create some kind of training for users, what users should know to stay safe. Let me quickly show you this demo again. Oh, by the way, one thing I didn't mention,
SPEAKER_00I really like live demos and I always prefer to show live demos if I can.
SPEAKER_02We love live demos too, by the way. Love them. So we should mention before you jump into that, because our largest audience is actually podcast or audio podcast. So for those that are listening in, there's a lot to see here. So come back and watch the live replay so you can see all Sergei's demos.
SPEAKER_00There you go. Thank you. All right. So let's start from this basic copilot free of absolutely free. So look, look here. I logged in with my, my enter account. And when you sign in with your entire account, you will see here like a small green, like green shield. If you click on this, you will find that your date you are using here, main copilot use, enterprise data protection. So if you click on that,
SPEAKER_00You can find that we secure your data. Your data is private, blah, blah, blah. The most important here, you can do it, of course, yourself. So your data isn't used to train foundation models. So your data that you're going to send this copilot in the middle of this chat should not be used for any training purposes. And so it should not leave your tenant. Okay. So this is the difference between let's say copilot and deep seek because deep seek
SPEAKER_02does use your data to train its models.
SPEAKER_00Uh, even, you know, if you chat, chat GPT, it will also use your data. Yeah. Um, all right. So let's, let's try that. Let me first show you, um, uh, where's my visual studio code. Here we go. Um, let me quickly show you PowerShell script like this. And, um, Like, how long will it take for you to understand what's going on with this? Like, what the script is doing? Of course, it depends on your skills.
SPEAKER_00You may, like, understand, like, in a couple of minutes, someone may, for someone might take hours or days to figure out what is that. But if I ask Copilot, explain this script. Look at this. Really, really, really quick. So first of all, it broke down the script to different parts and explained each
part separately.
SPEAKER_00Like here we set security protocol, here we define XOR key, so it's like some kind of encryption. Here we also fetch Bay64 string and so forth. If I scroll all the way down, it also gives me a summary. So in summary, this script securely fetches Bay64 encoded string from a remote server, decodes and decrypts it using XOR operation, and then execute the result in PowerShell code. So it was quick. And even if I'm an experienced analyst, co-pilot still can do it quicker.
SPEAKER_00Of course, I need to understand it. It's a general rule for working with AI. You need to know the stuff yourself anyway. Otherwise, if co-pilot hallucinate, I mean, AI hallucinate and gives you your own answer, you will never know it unless you really understand the stuff. So you need to know the stuff anyway. But Copiles can save a lot of time and can even correct something that you may miss. All right. So now we understood that this script is downloading some kind of code.
SPEAKER_00Let me open this file. I already downloaded this file. Let's take a look at what's inside. Let me drag back my Visual Studio code. And here we have this kind of gibberish. What I would like to do, I would like to find CyberChef, place that input. I know it was Base64 encoded, and I know it was XOR encrypted. So let's find out XOR. XOR.
So let's go back to Visual Studio Code and find other pieces in my script.
SPEAKER_00So I know that the key is, oh, I cannot scope out, by the way. But anyway, so let's take the key here. Let's take key. And the key was UTF. All right, so look at this. Now we have visuals, some kind of C-sharp code. And now let me open the new tab. Kind of long code. So now it will take even longer to understand what this code is doing.
SPEAKER_00And you really need to be quite proficient in reading C-sharp code. Let me try to save some time on this. I can try copy and paste, but probably this time Copilot will not allow me to put that much data. Let me try. No, it's fine. I can try. So let's say explain this code.
SPEAKER_00Oops. Okay. Let's try again. Copy.
SPEAKER_03That's pretty cool. You go to run it from web repository. So you leave no artifacts in the app cache.
SPEAKER_00Um, let's see. Yeah, not the most previous. So much better here would be just to upload the code as the file, but in chat is still working. So let's see. So it broke this code down. And let's see the summary. So in summary, it says it makes code injection. So script injects shellcode into Notepad process and execute it. Logs matches command output to file and also makes reconnaissance enumerates
SPEAKER_00network sessions on the main controllers. That was really quick. And even for experienced developers, it would take much longer just to understand what this code is doing.
SPEAKER_03Yeah, because you'd have to go through and try to figure out the PPIDs and the parent processes.
SPEAKER_00Yep, exactly. Okay, so that is about Copilot. And the beauty of that, again, it's free. We love free stuff. And also, by the way, yeah, no, no. All right. I think I hear a feedback from your microphone. I think so. It's my wife's. All right. Thank you. So you may start from this.
SPEAKER_00If you want to bring some AI and you found something that you don't... Maybe understand it or you should understand it in general. But if you don't understand completely or you want to save a lot of time, start to use just a free co-pilot chat. But don't forget to log in with your... corporate credentials otherwise your data will be also used for something that you probably don't want don't want be used for all right let me move on to the next slide from here And the next option is called security copilot.
SPEAKER_00If you are not the first time on this on the security podcast, you probably heard and saw many security copilot demos. I would like to say here that the price is quite pricey. um it's pricey so you need to pay like uh three thousand plus dollars per month for the working security copilot but again i'm not going to really compete with other guys that show unless unless you're me for some reason i only pay like 250 bucks a
month and i'm not special well you are special edward and i are trying to figure it
SPEAKER_00out but we can't you remove it right after no i'm 24 i'm 24 by seven
SPEAKER_03We're figuring it out. We'll have an answer. I'm trying not to be too vocal about it in the event that they start charging me $3,000 a month. This doesn't help. Continue surveying.
SPEAKER_00I can tell a quick story. One of my friends, he was MVP and then he started to work for Microsoft. But Microsoft forgot to revoke his MVP. And so for a couple of years, he was MVP. He continued to be MVP. And then he started to make fun of that. Like at the conference, he started to say, hey, I work for Microsoft. I'm still MVP. And the next day, he lost. See?
SPEAKER_02Yeah, it happens. You got to be careful. Yeah.
SPEAKER_00All right, so I already deployed security copilot. Let me move to my XDR, and I'm going to open my incidents. And here I have incident that I generated myself. I simulated. It has 78 alerts. And this incident will be pretty complicated for investigation.
SPEAKER_00Houston, Houston. Can I ask you to mute your microphones? I got it.
SPEAKER_02I got it. I can control it from this side too. Go ahead.
SPEAKER_00Good. Thanks. So here we have incident with bunch of alerts. And as soon as I open this... Incident, I can see a guided response. It generates guided response for me. It generates also summaries. And what do I like about this? So this incident was really, was made by me as the part of the, like a pen test demonstration. And here, security copilot was able to detect that it wasn't really the
real incident.
SPEAKER_00It was informational expected activity. So it was able to detect that that's a false positive. And so it says that you need to classify it as something like informational expected, like security testing. which is nice. I like this intelligence. Also, it says that I need to ask user to contact on Teams. And also I made some containment myself before. And also it was a tag disruption from XDR.
SPEAKER_00It was also count as containment. It wasn't able to contain this device because I turned off. Or is it password for Jando? Or is it disabled account from mSmith? So it gives me a number of recommendations. And also I can find that... It makes also incident summary. So now those 78 alert, I still need to go through those alerts. But if I want to quickly check what happened here, I can just go to summary and find out like maybe 10 steps rather than 78.
So now just tell me that first it was instant began at this time and on this machine, on this user and the PowerShell was involved and the reverse shell was received
SPEAKER_00from the file saved today and so forth. Um, so it's, it makes like, uh, this instant, not, you still need, if we need to investigate, we still need to go through alerts, but now I can quickly understand what, what happened in general, and then I can make some assumptions during the investigation. And let's, let's go to alerts. Um, let me scroll all the way down to the bottom and start from, let's start from TCP shell.
SPEAKER_00So here I can see first PowerShell command that was used. Let me click on Analyze button. And I'll start to generate information about this command.
SPEAKER_02Hey, Sergei, we got one little question before we move on. Noodle asks for clarification, how did it know that it was a pin test? Did you carry out the simulation from the same IP you normally log from?
SPEAKER_00Ask Copilot. Honestly, my guess. My guess. Wait a second. Let me open it again. My guess is that it was just too much. So it doesn't look like an attacker behavior. So first of all, I started from, yeah, I started like a normal attacker. So I get into the machine,
I receive a reverse shell, then I continue with enumeration.
SPEAKER_00Yeah, look for passwords in files. Also look for passwords in the web browser cache, in the emails, in the registry. And then when I started the tool with WinPS, it detected this and broke my session. I mean, broke my connection. And so I did that first. And also I got some credentials of user. And after that, I switched to different activity.
I start to show how to bypass antivirus, how to bypass different whitelisting. It didn't really look like a straight line, like a typical attacker behavior.
SPEAKER_00So yeah, separate techniques were detected as attacker behavior. But altogether, they really look like a test. So it probably analyzed all the stuff because I didn't do anything on purpose. I just demonstrate what might happen.
SPEAKER_03Do you think that you... responded to one of the incidents manually as informational, so he remembered that and correlated that work?
SPEAKER_00Nope, I didn't touch it. It's all based on the alerts, all based on the generated alerts and also artifacts rather than any of my actions with this incident. I did not manage incidents. I didn't even classify it. So manage incident, I didn't touch anything here. So all that stuff was made automatically. So no one was assigned. Status is default, no classification. So I didn't touch it.
SPEAKER_00It was done based on my alerts, my activity. And again, because I had so much stuff, which is not really typical, if you ever had red team engagement, you know that number of alerts is much lower. And in red team engagement, you may find a couple of alerts, like three, five alerts, rather than 78%. So here's what just, just because it was too much and also less structured, because first I, I use the kill chain, like from the beginning to the end.
SPEAKER_00And then after that, based on the customer request, I just show, look what you can, that's what I can, how that's how I can bypass antivirus and how they can bypass app locker and so forth. And so, because it was that unstructured and too much probably made the decision about informational All right, so let me go back to alerts again. So here we found script analysis, and it says that what the script is doing. I can also find out the next script.
SPEAKER_00Also, it says that command bypass execution policy to run unrestricted scripts, which it also found that I bypassed the execution policy. Let me also find the content of the script. And we can do the same about the escape content. So it will make analysis and find out what the escape is doing.
SPEAKER_00The only thing that I would say here, if you don't pay for security copilot, you can still copy that stuff, paste into this chat window. and asked to explain like I did before. And so it will be pretty much the same. Explain this module. Explain this module. And it will do pretty much the same in the copilot chat. Yeah, maybe security copilot is a bit more convenient.
SPEAKER_00What's going on? I'm running out of money, maybe. So it may be a bit more convenient than Copal for security because just the built-in. But again, the script analysis can be just copy and paste. Yeah. So now it's working. There you go.
SPEAKER_02We should rename that, probably rebranded to Sergey Compute Units. It's a little slower.
SPEAKER_00S is fine. Yeah. If I get any percentage from using my name. By the way, even if I have small percentage from security copilot, it will be a lot of money. Okay. So let me jump back to slides. Again, as I said before, I'm not going to talk too much about copilots and security copilot and so forth because you probably did many times. And I would like to move to the next level when you can... use azure open ai and like um use it use some kind of like use
use uh open ai models for your own needs including incident response so uh now i'm gonna get i'm
SPEAKER_00gonna move from like typical convenient co-pilot to something that may be less convenient, less typical for security engineers, for security, for operation analysts, I'm going to work a bit with Azure Foundry. So what Azure Foundry is? Azure Foundry is a platform where Microsoft help developers, developers create, manage and deploy AI application easily. Honestly, it's not very complicated. Yeah, there are some stuff that you may need to do.
Like if you create the prompt flow, complicate prompt flow, you must also know Python.
SPEAKER_00But in our case, we don't need to do it. And the prompt flow that we may need in our case also is just there's a template you can just deploy it from the template. So in our case, it won't be that complicated. So let me quickly move back to demo. And OpenAI Foundry. By the way, what I need to do first, I need to deploy Azure OpenAI object. So I have two of them. OpenAI.
SPEAKER_00And here I need to click Explore Azure AI Foundry Portal. That's it. So it will take me here where I'm going to find... my Azure OpenAI service and the endpoint with API keys. We will use them later on for them to trigger our model. But first, we don't have any model. At this point, we may not have any models. So I need to first deploy model from catalog. So here's the catalog of open AI models, just in case. It's not the whole catalog.
SPEAKER_00If you use Azure Foundry with something else, like with not open AI, but there are other models like meta and from other companies. So it's not really limited to only open AI. But here, because I'm using open AI, I see only open AI models, okay, just in case. Because I remember sometimes I show to customers Azure Foundry and they were like, hey, come on. We have thousands of models in the world. Go to the hugging face and you will find a bunch of models.
SPEAKER_00Why there's some limited here? Here we can see only OpenAI models. If you want to have more, create project in AI Foundry and you will find all possible models. But for now, I would like to work only with GPT for all models. So it's from OpenAI. So I need to choose the model from catalog. Let me choose GPT 4.0.
SPEAKER_02So why are you choosing that one? You may explain it coming up, but is that like the most current or is there some functionality there that you like better than the others? GPT 4.0 model, that's the most, maybe not the most, maybe not the cheapest model,
SPEAKER_00but it trained based on the large amount of data. And so GPT-4O model knows a lot. And at this point, it's the most well-trained model that OpenAI has, like the well-trained generic model. Yeah, of course, we have some specialized model for specific purposes, but GPT-4O is like the most well-trained model possible. on the bunch of information.
SPEAKER_00And it knows a lot about security as well. So here, I just need to deploy the model and that's it. And the model is deployed here. And I have a deployment. Again, I just need to click one button, deploy. And then now I have deployment GPT 4.0. where I can just use it at this point, at this point, it will be really like a co-pilot chat, like I showed you before. I can try that. I can use the script,
some kind of script, or let's take something simple.
SPEAKER_00Let me take this script. It should give me quite similar response. So again, as I said before, it's quite similar because Microsoft 365 Copilot chat is based on the same model, GPQ 4.0, so the response is also quite similar. At this point, you may say, why are we doing this if we have Copilot?
SPEAKER_00Just hold on, you'll see it. I just want to give you a quick introduction into AI Foundry and how can we make some basic operations. Also, what I can do here, I can add content filters. Have you ever tried to do some weird stuff with your AI model? For example, like show me that bodies.
SPEAKER_01Edward would never, per Edward's original mention in the beginning of the show, staunchly opposed.
SPEAKER_00Yeah. Okay, so here it says like, well, I'm not going to do it. And again, I can ask many things about like, I can even ask some some sensitive things about American election, and who is your preferred candidate and probably will say no, I don't want to talk about this. All right. So you can configure filters here as well. You can configure your own filters. So there are filters for violence, hate, sexual, self-harm, also for some different attacks on AI,
SPEAKER_00like jailbreak, indirect attacks, and so forth. You can also create your own list of words that you want to block. So you need to first create a list here, block list. um and add the words you would like to block it may be like exact word it may be regular expression so you can do that okay so um that's what we can do here in ai
foundry there are many other things available and i will show you a few more of them but for now we just need to deploy the model take this deployment take this
SPEAKER_00deployment and do something else with this on the next stage. All right. So AI Founder is not really scary. Again, if you're a developer, of course, you can do much more. But for our security purposes, for security operations, that will be enough. And so the next step, I would like to really use it for automation and how I'm going to automate it. So what we can do, we can integrate our OpenAI service into our SOC and
we'll be able to use AI to analyze our incidents and also take some steps.
SPEAKER_00You can develop your own application if you want, but the easiest way to do it, especially if you're working security and security operations, you probably made a bunch of playbooks in Sentinel, right? I can ask you, you may say yes. Absolutely. Absolutely. Yeah. And so the easiest way to do so, I mean, the easiest way to integrate, if you're already experienced in Logic Apps and Playbooks, Logic Apps, whatever, is to build a Logic App. And Logic App will be able to trigger your OpenAI model,
SPEAKER_00so it will be able to send data to OpenAI, receive the response, and take actions based on the response from OpenAI. Yeah. And so what I would like to do now, because it will take some time to generate incident and trigger my logic up, what I would like to do now, I would like to drop malware on this workstation and continue talking. And so in parallel, in the background, it will make a detection.
SPEAKER_00So it will take a few minutes before everything will be. will be done. So let me copy netcat. Drop it to this machine. Antivirus React In a few minutes, we should be able to see incident, alert, I mean alert, and then it will also trigger my logic app. And by the way, my logic app is based on the standard model, on standard GPT for all model, not fine-tuned.
SPEAKER_00And so the response may not be very accurate. And... uh, ultimate response may not work as expected. And that will also, I'm going to solve during the session. It may, may work, may not, uh, anyway, it will be nice demo, but for like, so you, we'll see. Um, all right. So, uh, from here, I would like to jump, um, the next slide. Oh, by the way, uh, for GPT for all model, uh, if you deploy model, you need to pay a bit. So you need to pay for logic up, you know, it's like not very expensive,
but, um,
SPEAKER_00You need to build for it. You also need to build for the tokens of GPT-4O model. So for input and output. But again, it may be quite pricey if you send like terabytes of data to your model. But it's not the case. If you want to just send information about your incident, it won't be that expensive. It won't be that much. Okay, and now finally, let me show you how the Logic App may look like, and then I will jump to my portal and show you the Logic App.
SPEAKER_00So I try to make it simple. When you build the real Logic App, of course, you will add more steps. You may also add approval. You may also add filter. You should add filter. I'm trying to make it as simple as possible to fit on a single screen. So I really add only very important steps, like mandatory steps. So my logic app starts from XDR alerts. It may be something else. Maybe you're incident and sentinel.
SPEAKER_00So you may use other triggers. It's not only about XDR alerts. In my case, it's XDR. And so for each alert, I make a request to my model. Response will be in JSON format, so I need to parse JSON. then the next step compose this one is really optional it's really nice for troubleshooting but I will really want to see what was the output with compose and then I made the condition so what is condition you'll see but
if condition is true then I can isolate machine from the network automatically so now let's take a look
SPEAKER_00what this logic app is all about And by the way, is it enabled yet? Is it enabled? So on all new alerts, For each alert, I will make this kind of request.
SPEAKER_00By the way, I will change the key after the session. So don't try. That's going to be what I was going to do for dinner. So I'm using this information. By the way, where you can take this information from? So if you look at your GPT model, so it's here. The key is not shown, but here's the URI. And I can also copy the key. So that's where information is coming from. Now I need to send some kind of the message.
SPEAKER_00And the message contains several components. First of all, I must set up the system message, system role. System role, that's like a role that my AI will have. In my case, I say you are an incident response expert. Your role will be to provide guidance on incident response and recovery techniques to mitigate potential risk. Your response should have this structure. Incident summary, containment,
SPEAKER_00should I isolate device from the network, and yes or no, and recovery. And also what is important here, yes, yes and no, they are between these two hash signs. So that's the system message. Just in case, do I need to explain a bit more details about system message?
SPEAKER_02I don't think so. Maybe we could, I'll try to include some links on how those are formatted potentially in the show notes. Yeah.
SPEAKER_00Okay, let me just give you a simple example. So I just want to show simple system messages. You are Yoda. Speak like Yoda. So all the responses from my model now will be based on this. Let's ask if this model knows about you. Who is a million dollars man?
SPEAKER_00A wrestler he is. I'm not sure.
SPEAKER_02No, I don't know. Six million dollar man. How about that?
SPEAKER_00Oh, $6 million miles. Sorry.
SPEAKER_02You're disappointing me, Sergei.
SPEAKER_00I'm not that old. Come on. Nobody is, Sergei. Nobody's that old. How long have we known each other?
SPEAKER_02Oh, my goodness. I've shared Pop-Tarts with you, Sergei.
SPEAKER_00I didn't like it. It was too sweet. Okay, so is it correct? And now it's talking really like Yoda rebuilt with bionic parts he was, enhanced strength, speed, and vision he possessed, and so forth. And even if I ask, what is your name? Your name.
SPEAKER_00Yoda, my name is Jedi Master I am. So we set up here a role. And in my Logic App, the role will be you are an instant response expert. Okay? And then the actual message, that's the message that I'm sent, like who is the $6 million man and so forth. And here I'm using Logic App. Again, if you are, again, security experts, you know how to build these playbooks, you know that we use these dynamic fields. and add alert title and alert description.
SPEAKER_00So then I need to parse it, parse the response. In Compose, I can just see the output, like message content will be very handy to see what happened. What is next condition? In my condition, I'm saying here, if message content contains yes, so it means I need to isolate machine from the network, like part of my response, it will get information about alert,
SPEAKER_00isolate machine from the network, and also place information from the message content into... um commentary of the internet um i guess now we have some kind of um already some we have already something let's click refresh here succeed let's see the result for
SPEAKER_00each condition but it wasn't isolated. Let's see why. So now we have the, let's see the, let's, let's decompose. Oh, let's see. First of all, HTTP request. So that was a system message and content. That tool was prevented. And that's what was sent. Let's see what, what was the response. So incident summary.
SPEAKER_00Nice. Containment, good. Should I isolate from the network? And look at this. So that's a bit of shame of the basic model, of GPD model. Even if I ask, like, add a response between those hash symbols, it still gave me between asterisk. And because my condition is based on the hash keys, it did not work. So it did not isolate the machine.
SPEAKER_00Of course, I can make a much better condition. I don't have to, based on these hash keys and so forth, I can make it better. But I'm using this as a part of the demo. How can we also improve the model in the future? All right. So now we received the response, but my automation did not work. I mean, automation did work, but I did not receive... They did not isolate the machine because of this not very accurate response.
SPEAKER_00And that's what we're going to improve our response soon. Okay?
SPEAKER_02Well, just thinking as well, since it was detected and taken care of, it probably doesn't need to be isolated anyway,
SPEAKER_00right? So here it did not explain why, but I can explain why. So it should be considered... First of all, this logic app is very simplified because I remove all steps that are optional. So I don't look for severity because you definitely should check severity. You don't need to isolate every time when we have low... low severity alerts.
SPEAKER_00But I can explain why in case of netcat, it may be useful to isolate. Because if netcat was removed, netcat is used to drop, like establish reverse shell. So maybe attacker was able, if the netcat was detected, then attacker tried to establish reverse shell at least. And if attacker tried to establish reverse shell, maybe he adds some other backdoors to other than netcat so if the machine because netcat is used as a tool for remote access maybe attacker was able to get somehow get that somehow
and then add something else for for establishing a reverse shell so you still need to check this machine um yeah in the first words of incident people if you have one you have none
SPEAKER_03if you have two you have one because once i have to take one Outward bound or C2 mechanism, the attack is immediately going to go to their backup, right? Because now they're owned to you.
SPEAKER_00Yep, exactly. Mm-hmm. All right. But this one is really basic that you can use. And this one is very cheap and very straightforward. We can make it better. But even in this case, again, if you create more accurate Logic App, because, again, in my case, I was trying to make Logic App simple to fit on the single screen. But, again, you add more filters. You only react on the high-severity alerts. You can also add some approvals if you want.
SPEAKER_00You can send approval message. So you can add more steps for more verifications and more options. But even here, it's not too bad. And of course, you can make a much better condition, not really rely on those hash symbols. Yes. Well, I was just thinking the other, you know, Logic App is another cost, but that is minuscule. So it's like a thousandth of a cent every time you run a Logic App, right? So not only are you running a Logic App, but you're also running a lower cost,
SPEAKER_02AI model to get that information, correct?
SPEAKER_00Yep. But it's not really... Not big money at all. Because you probably don't have instance on every minute. And... Every minute. Of course, it depends on your stock. It depends on your stock, of course. It depends on your stock. Right. Depends. All right. But let's take it to the next level. Since we have, like, probably... 15 more minutes, I guess. Let me just take it to the next level. So next level could be is, so now all the response we received, we got the response from the model itself,
SPEAKER_00from LLM. Oh, by the way, just in case, let me just go back for a moment. Do you know, probably you heard of that. that GPD for all is, uh, is limited to October of year 23rd. So it doesn't know anything about like, uh, something happened after it. So if you ask, um, who is the president of United States, uh, it says Joe Biden.
SPEAKER_00Um, oh, it's still Yoda. Um, So don't use it for news. Yeah. So we are limited to the point that was in the past.
SPEAKER_02But what if you have a new malware which did not exist in October 23rd? In that case, your LLM, GPT-4O, will not give you a really nice response.
SPEAKER_00What we can do, we can bring more data. So... our model can get more data, can retrieve more data from internet or in our case, our own knowledge base. So, and for that, we can use the process called RAC or Retrieval Augmented Generation. So I just give one example. By the way, this example was also generated by Copilot. So example, user asked, can you tell me about the history of quantum computing? And the retrieval, so the first step, it will look for the...
like different data sources and try to gather information about this quantum computing. So then the information that was found will be added, augmented to the user prompt.
SPEAKER_00and send to the model. And then model will be able to generate the response based on the overall data. So again, the response will still be generated by the model, but now we also give more information to this model. So now the model is not really limited only to the data that was based for training purposes, but also you give more information to this model.
SPEAKER_03But when you start extending this rat down, don't you start to exponentially increase the amount of hallucinations?
SPEAKER_00So it depends on quality of your data, of course, as usual. If your data is clear, then it should be even more clear for the model. If you have some contradictions, you have like one document that say that NETCAT is safe, another document that says NETCAT is super dangerous, then of course it may like have some model may start to hallucinate more. So it depends how clear your data is. So if we want to,
SPEAKER_00so again, Rack, a way to make AI response smarter and more accurate, and you can bring your own knowledge base. So here you need to pay a bit more because for Rack, you need to deploy Azure AI search service, which costs money. So you deploy Azure AI Search Service. You need to create index, which is quite straightforward. It, of course, depends on your data sources. And then you also need to create a prompt flow. I will not do prompt flow here because that will be more for...
SPEAKER_00It will be important to do for the... for the ultimate response, but I will show example in the chat, in the, in the playground where we don't need to deploy Promflow. Promflow is just like a sequence of steps that will be, so where Rack will be executed. So first to retrieve data from, from the source and so forth. So I already have, I already have, have, have, where's my Azure portal. I already have deployed a search service. I search.
SPEAKER_00And here I should have zero indexes. Tell me that I don't have anything. Yeah, I don't have anything. So let's bring more data. Now I have a document. Let me quickly show you that. I have a document. that says that netcat tool is like normal tool, not really, it's like Swiss army knife of networking.
And then there's, and I even clearly say there's no need to isolate machine from the network.
SPEAKER_00And I'm trying to say here that this one is okay, just a tool for networking and not really something super dangerous. Let me take this file. And let me bring... that data to my playground. So this time, let me just click refresh here. Now, let me set our system message that we had before.
SPEAKER_00Okay, so now we have a system message. And now what I would like to do, I would like to paste my prompt that was generated from XDR. That's what XDR was detected. And let me just send it to basic model that we did not train. We don't have our information. And look at this. This time it answers yes between hash, But at this point, at this moment,
I will point your attention to that slightly later.
SPEAKER_00Now what I would like to do, I would like to add my own data. So let me add data source. By the way, just in case, I don't want to show you my folders. I don't know where it will open. Oh, not here. So later on. So let me add data source, upload files. Here I'm going to choose blob storage where this file will be uploaded. And the search that will build the index. OK, let me give a name for it. Let's say, let's call that Rack and click Next.
SPEAKER_00Now we need to upload. Let me just do it in my second screen. Yeah, that was a good idea. So your hash is manifested because creating this reference, you're giving a source of authority. I'm not sure if I heard everything correct. So your hashtags are manifesting inside your logic after your response because you
SPEAKER_03gave it a social authority, a reference, rather than it going out and having a model or having a reference, it couldn't confirm. Because in here, I can see the hashtags, but then the other, what was there? Was it asterisks?
SPEAKER_00Yep. OK. At this point, I'm not going to solve this problem. Now I would like to bring data that netcat is safe. So not about hashes. Hash will be later. We'll play with hash later. Now what I'm doing, I'm telling to my model that netcat is safe. And now what I would like to do, I would like to, now it will quite quickly build the index, so it won't take long.
SPEAKER_00That's why I'm doing that in front of you. Of course, it depends how much data you have, but one file will be quite quickly indexed. And now after this, come on, dude. Okay, it's a bit longer than I expected. After this, it should be able to give a response. Oh, finally. Now, if I restart this, I may not even clear the chat.
SPEAKER_00Yeah, I need to clear to flush the memory. And now it's been do the same. Now, my expectation is that it must say no. You don't need to isolate because this tool is safe. Fingers crossed. Yeah, look at this. No. Because from the document that was retrieved, there is no need to ask that machine from the network when dealing with Netcat. As long as proper security measures are in place, such as closing a use port and monitoring system activity.
SPEAKER_00Again, it's still a response from the model, but this time it also takes my knowledge as well and generates the response according to this knowledge. All right. That makes sense? So we just... Yes, go for it.
SPEAKER_0350-59. 50% yes, 50% no, 90% that is going to get it wrong. So what is the flipping moment that says between yes and no? What is the... I can't even think of it. I just say the tertiary person, like when you have a quorum, like we used to set up clusters, right? Somebody was the voting quorum, the voting note. What's the voting note over here that tells me yes or no? Because if your document's a source of authority in this, it's going to fall to no.
SPEAKER_00So sometimes I can run this prompt several times. And sometimes it explains why it makes this decision. So here it says that because of the according to document, if we made all of the appropriate stuff. Let me just remove data source. And let me restart. Let me send the prompt again. And now maybe it will explain why it says yes. Yeah, so it's isolating the machine from networks is precautionary
measure to prevent any further unauthorized access or potential data filtration until this investigation
SPEAKER_00cleanup are completed. So it usually explains why, like, it says yes. What you could also do is say, put a condition in that says, yes, if NETCAN has been... determined to either attempt it to install on another machine in the node,
SPEAKER_03because now you may have a problem. Like, wait a minute, why on a single machine? But when you start seeing multiple machines coming from your environment, then I will go with a yes, because now I'm trying to reduce the blast range right so i can see what i can say you can put a condition on the yes if you see this activity across more than one machine then yes but if it's a single machine don't isolate could that be a logic you could put in um good
SPEAKER_00question so here we need to um yeah we need to check if this um if If this guy can have access to the information, how many machines were affected, I need to check it. I'm not sure that we can do so.
SPEAKER_03Let's save that question to April when we have our tech heavy month. Sweet announcement, everyone. Tech heavy month.
SPEAKER_00Go ahead, Sam. All right, so that was Rack when we bring our own data. Okay, so now what I'd like to do, I would like to run this prompt several times and find some inconsistency. So it always tells me yes in between hash. Okay, let's try again. Because you remember, once it was between, still like, yes.
SPEAKER_00Okay. Try again. I mean, yes, of course, but still between hash. Doesn't want to show me. Okay. Let's try to go back. Go to chat. Send again. Okay, now it's really consistent with my system message.
SPEAKER_00All right, so maybe I don't even need to fine tune based on, but you saw that the problem, yeah, every time now it's asking, saying yes between hash. Okay, I can also try to, let me, Um, let me do something here, like me, go to another model. Um, send it here.
SPEAKER_00Oops, sorry.
SPEAKER_03Um, and the back end to clear. So it's going to keep saying yes, for the amount of time I think in this, because it may, it may take up to 15 minutes before it changes.
SPEAKER_00Could be, but let's see here. Is it yes again? I mean, yes. Here it's not, it must say yes. So, sorry. It must say yes, that's fine. I'm okay with yes. It must say yes, because we removed the data. I'm just trying to, I'm complaining about the fact that it always show me between this. Oh yeah, finally, look at this. So now no hash keys. So what I would like to do, let me just go back to my previous model.
SPEAKER_00Maybe now it will be done on the project. Clear all that stuff again. And I hope it will be now sooner or later it will tell me that yes will be without hash keys. Still with hash keys. Okay. But... Fingers, but you know, sometimes it may be without hash key. So what we can do to increase the accuracy of the response, because you saw sometimes it doesn't add this hash keys.
SPEAKER_00We can also fine tune the model. So fine tune, the idea of fine tuning the model is when we add additional training data to the model and for specific purposes, For specific questions, it may give you better response. It's not really about the content because to bring more content, we use Rack. But fine-tune the model, we show to model how to respond to this prompt better.
SPEAKER_00So if we have the system prompt like this and user prompt like this, how to respond better on this kind of prompts. And that also may help you to remove inconsistency between system message and the response that was received. So to fine tune the model, what we need to do, we need to bring more training data. Let me show you how it looks. It looks like this.
SPEAKER_00So here I give 10 examples. It's the same system message that you saw before. Let me show it like this. The same system message. The same user message even. Doesn't have to be the same, but in our case it's the same. So about Matcat. But every time I give different... Maybe it looks too large. Every time I give different... So there is a one more role called assistant. That's the response from AI. And I tell to AI how to respond to these kind of messages.
SPEAKER_00And every time it's different. So we can see here, improvements in procedures, it ends up on improvements in procedures. On next, another one, it says prevent future instance. So they're different. But every single time I put yes between hash keys. So I show how to respond to this kind of prompts. Now, next step is to upload this data to my
SPEAKER_00OpenAI. So I'm going to click on fine-tuning. I already fine-tuned the model because it takes around an hour. So for me, it took 56 minutes. So I upload this JSON document. And then I can deploy this model. And this model is called FT. So the same model, but fine-tuned. And here I will always have a consistent response. So let me try to do that. So here I will always have yes between hash keys every time.
SPEAKER_00I wonder why I had the same for the previous model. It was not fine-tuned, but every time it will return me here yes between hash keys. It's not only about the format, of course. Also, we teach how to answer this specific, how to handle this kind of prompt.
SPEAKER_00Let me do it one last time. Maybe we'll get some inconsistency from my original model. Still between hash keys. No, we didn't get it. We didn't get it. Okay. I think we just need time for the backend intelligence to clear out that reference.
SPEAKER_03It's going to come back. What I like about this though,
SPEAKER_00Okay. So, but that's called fine-tuning. It's available in several regions. One problem with fine-tuning, the hosting of fine-tuned model is not expensive like copilot for security, security copilot, but still pricey. So to host this model, fine-tuned model, you will spend like around... 1200 per month just to host the model. So it's additional money.
SPEAKER_02Well, it's got to consider too. I think people have to kind of apples to apples. It's not just the host. Oh, where'd it go? Not just the hosting, but also it's the maintenance, maintaining the fine tuning. Do you, what do you see as someone that needs to be in this role? Is there someone that actually needs to be in a role where they're fine tuning this model constantly to match the
the organization or is there some way you could automate that potentially?
SPEAKER_02Because when I think of security co-pilot, I look at, you know, like the defender threat intelligence that's part of it. So there's a lot of, you know, those different signals that are automatically part of it. How would you include something like that in here? Or is that something that has to be done manually?
SPEAKER_00Yeah, there is a continual fine-tuning. So if you bring data on the weekly, whatever, monthly basis, it will be able to fine-tune model as well on that period.
SPEAKER_02And that's the Azure AI service, that cognitive search service, I guess?
SPEAKER_00Yep. So it's possible to do it continuously. This brings some great ideas that I have about maybe creating those for your rag.
SPEAKER_03So you're on the offensive side. One of the things we were talking about last year, you know, the SANS organization and their different courses. I took the forensics 508. You know, you know what that one is. Something has happened now, I'm doing an investigation because Sergey has been in an environment we just detected because he's been dwelling for a year. I'm wondering with the acceptable use of their documentation, which I still keep this reference, if we take some of that learning and look at that and make that
part of the repository because that particular thing is probably in the section that's talking
SPEAKER_03about exploit kits, right? You know, Mimicats, Cobalt Stripe, and a couple of others. And so now you can reference these, and now I want to put conditions on saying that if you see net cash, and at the same time, there's evidence of a hit, whether it be one of those kits, you know, let's say that in combination with PowerShell Impact, one of those things. I definitely want a yes.
SPEAKER_03I want yes, yes, yes, yes, yes, yes, yes, and go that route. But if I see it, And maybe I have another yes where I see some failed RDP sessions, or I see someone trying to do invoke session or PSS session at the same time, and this is just a step for them to do it. That seems very interesting to be able to take the established documentation and do it. We should have a show about that because I'm wondering if you could take well-known references of that to help build unconditional to do that. Because you've got yes and no. You were very binary.
SPEAKER_03Nobody wants to be the person in the middle. What if you had hash, hash, yes, slash, I mean, and then hash, hash, yes, and then slash, hash, hash, no, hash, hash, slash, and then maybe. It depends.
SPEAKER_00It's all about your system message. So here it's, you know, prompt engineering is like one of the basics of working with AI. So how you want to, again, if you say that this guy is Yoda, it will speak like Yoda. If you say like hash, hash, maybe, hash, hash, yes, it will say so. So it's all about your system prompt and what do you want to return? System message is maybe semi-synonymous with personality and the other word I was looking for.
SPEAKER_03that describes how someone speaks. So I'm thinking personality of something. That's interesting. This is solid. I like this here. We definitely got to continue this. When we go into our tech heavy session in April, we'll tell all our lessons about it, where it's going to be all demos. No lecture, all demos. This is awesome. Sergey, this is spot on being able to see where you can augment security copilot with other copilot mechanisms to do it.
SPEAKER_03or build this as an understanding. I think if more listeners or more people consuming security co-pilots had enough time to actually understand the underlying, you know, what the journey of AI and this is, you get away from the black box mentality. And now everything looks dumb because you don't understand it. You just read or seen this, say, okay, I understand the underlying premise of what they're trying to do with black box and the solution to make it turnkey. This is very good.
SPEAKER_03We tried to do this. Well, I tried to do this. Rod and I were playing with OpenAI last year. So now I put on my notes there, put Founder in our lab, Rod, and I knew what happened.
SPEAKER_02Well, yeah, if you remember, and our listeners, you know, that silly little Rod bot chat thing I created last year. Noodle asked, hey, now where's the code? He's asking Sergey for the code. But literally what Sergey did today was show you how to do this without code. You just need to go into- What kind of code? Well, yeah, but you can. Yeah,
SPEAKER_00it's on the JSON file with a structure, system message, user message, and assistant message. That's it.
SPEAKER_03Yeah. We'll get into the details. This is part one of three. We'll have to pay Sergey for his time and meals and everything when he comes over.
SPEAKER_00Look, I don't mind to share it if you need it. I don't know how to share it.
SPEAKER_03Oh, we'll get it figured out here.
SPEAKER_00Yeah, just let me know and I will. Not a problem.
SPEAKER_03So, Sergey, thank you so much for taking time. I know it's late where you are. And part of this series, I think, God, this is mini live that we've had in a long time. This is not even counting what people want to download afterwards tomorrow and they listen to it and watch it. If you're listening now, please recommend this that everyone go to YouTube and actually watch the demo. can slow it down you can actually follow it which i like um and this is this is where i believe that the education and the foundational operation of what ai is rather than you know buzzwords this takes it from being an ass
trap that this is something you can go do and i'm going to probably spend some time with it probably thursday friday and get it set up in our in our lab rod a little bit but i'm gonna try i'm gonna try what i was talking about with a different reference type of documentation documentation that i'm trying to figure out the yes no and i'm going
SPEAKER_03to i wanted to go with a maybe On whatever logic they always say, maybe, it depends. And see if it can get very human-like. Oh, it depends, man. Because the main thing is, I don't know, let me... get on Teams or get on Slack or get on something, hit Sergey. Hey, Sergey, I'm seeing this. What do you think about this? That's the maybe, right? I'm asking you to tell me, I don't like the binary, but yes or no. It depends if we can go from there and see. But this is solid. Thank you so much, Sergey.
SPEAKER_03I know we were trying to get this navigated to get you on the show. You took time. I was late. I see even there are some commentaries that there's a guy from my time zone.
SPEAKER_00So it's like 1144 and now it's 45.
SPEAKER_03Noodle, I'm keeping you up Friday until I'm calling you late also. And Sergei, you always welcome back on the show. We do have a requirement. We didn't tell you this. If you come on the show, you sort of volunteer to come on and co-host one day. So you have to come on and host the show. The host? The show?
SPEAKER_02Maybe we'll do it from MMS this year, Sergei.
SPEAKER_03I'm afraid. We'll do it from MMS or we'll do it in Atlanta or maybe I'll just fly over to put your geographic location.
SPEAKER_00You want to go to Lisbon? I know. I remember that.
SPEAKER_03I did it from Lisbon. Didn't I do the show from Lisbon two years ago? I did it from Greece one year. Then I did it from Prague that year.
SPEAKER_02I don't know about Lisbon, but yeah, definitely Prague and Copenhagen.
SPEAKER_00But I may go to Atlanta this year as well.
SPEAKER_03Do not come to Atlanta, Rod, and let me know. You are in my city, so it's for me to show you a good time and host, always.
SPEAKER_02Hey, Edward mentioned a little bit ago for our listeners, We do have a couple important months coming up. So March is our Women in Cyber month. April is what we're referring to now as a new theme month called Tech Heavy, which is going to be all demos. And then the following month in May, we're going to jump back into partners after RSA is over. So everybody should anticipate those months because it's going to be pretty cool.
SPEAKER_03In June... Rodman is throwing some ideas around. Go gather all your certification certificates. We may have a show.
SPEAKER_02Oh, right, right, right, right, right. Yep. But you're showing tell in June all the certifications you've achieved and tell us
SPEAKER_03a story about why they're important. Because a survey you asked me to impress me. Anyone that has the offensive certifications, you didn't play around. What I have noticed is that there are more Europeans that seem to have the offensive certifications than Americans. Wonder why.
SPEAKER_00Hmm.
SPEAKER_03Conspiracy theory. Yeah. Frank Grimberg, quote career of the show. Come on, man. I know this OCS and this offensive stuff is in your wheelhouse. Thanks to our listeners who stayed around for the long show. This is not Sergei's last time on the show. We'll definitely get more on this. And thank you, Sergei, so much for coming on. Thanks to all our listeners. We'll see you. All right.
SPEAKER_02Not next week. Next week we have a holiday. Oh, yeah, it's a holiday. No show next week. Three-day weekend. I'm looking forward to it. But, yeah. We'll see everyone the week after. Have a great week.
Security Insights - Foresight - HindsightNovember 19, 2026 Edition This is our 300th Episode!!! We celebrated it with our friends from Cyclotron. Nathan returns as guest to discuss their Agent 365 PoC offering with...
November 5, 2026 - Leonard Volling from Lock Base Cyber returns to the show to discuss ISOC and what is going on with Microsoft Sentinel these daysWE’RE BACK. The late-summer/early-fall break is over. The crew returned...
October 2026 Edition - Return from BreakThe late summer / early fall break is over. We return this Thursday, October 22nd to restart the show. October is Cybersecurity Awareness Month. * After six years of weekly shows,...
October 2026 Edition - Return from BreakThe late summer / early fall break is over. We return this Thursday, October 22nd to restart the show. October is Cybersecurity Awareness Month. * After six years of weekly shows,...
Purview is a thing or so we heard…or as my cat says it …Purrrrrr-view. Words of Wisdom: “Take the stairs.” Security Insights - Foresight - Hindsight 08/27/2026 General * What’s new in Microsoft Security: August 2026 |...