สำเนาบทสนทนา 🔗
WEBVTT
00:00:11.919 --> 00:00:17.519
Welcome back to Detection Dispatch, the show where we treat detections like the true scientific craft that it is.
00:00:17.760 --> 00:00:44.719
Uh today's conversation covers a lot of ground where AI actually earns its keep in the detection pipeline per se, uh, versus where uh it's actually being used, why purple teaming your own lab beats trusting or deploying from your vendor's library, and why some of the best detection engineers, in my opinion, uh that you'll meet uh come from former from being former Linux Sysman admins first.
00:00:45.119 --> 00:00:49.439
My guest has strong tested opinions on all of the three.
00:00:49.759 --> 00:00:51.439
Powell, welcome to the show.
00:00:51.520 --> 00:00:52.880
I am so happy to have you here.
00:00:53.039 --> 00:00:58.399
And just like coincidence that it's also the same week of Linux's birthday.
00:00:58.560 --> 00:00:58.960
Yeah.
00:00:59.520 --> 00:01:00.479
Hello everyone.
00:01:00.640 --> 00:01:01.439
Hi, Alexa.
00:01:01.600 --> 00:01:03.119
I'm really happy to be here.
00:01:03.280 --> 00:01:05.040
Thanks for inviting me.
00:01:05.359 --> 00:01:10.560
Yeah, I mean, 35 years um of Linux.
00:01:10.719 --> 00:01:14.239
I mean, uh pretty huge, pretty huge.
00:01:14.799 --> 00:01:20.239
Uh, detection engineers almost I would I would go as far as say calling it their favorite OS.
00:01:20.719 --> 00:01:22.799
At least at least a lot of them, I want to say.
00:01:23.120 --> 00:01:23.840
Uh true.
00:01:23.920 --> 00:01:32.719
I I would put actually maybe let's say more broadly, uh, like cybersecurity specialist OS.
00:01:33.120 --> 00:01:37.359
Um I guess maybe more because of the Kali Linux and and stuff like that.
00:01:37.599 --> 00:01:43.200
However, it doesn't give it get much love when it comes to the detection engineering, actually.
00:01:43.359 --> 00:01:47.519
That's kind of my personal observation, uh, but I think we'll get to that.
00:01:48.319 --> 00:01:49.439
We that is true.
00:01:49.519 --> 00:02:03.359
I did notice one of your posts that uh audit D gets a lot of uh crap from us, but before we get into that, um I oh, we always love to know how did you find your way into this world of detection engineering and threat hunting?
00:02:03.760 --> 00:02:04.319
Right.
00:02:04.560 --> 00:02:14.800
Um so you could say I started the usual road, like the usual system, a system, help desk.
00:02:15.039 --> 00:02:18.000
Yeah, the help desk, then software testing.
00:02:18.240 --> 00:02:22.479
Uh I did a little bit of admin stuff, not that much.
00:02:22.800 --> 00:02:47.199
Um then I well got into the SOC and I went through the L1 or level one, tier one, however you want to call this, uh, and then L2, and then eventually typical detection engineering jobs, which was very rare at that time, because we are talking like early 2023, 2022, late 2022.
00:02:47.280 --> 00:02:59.599
I think detection engineering by itself is not that uh old or it's pretty like the term is coin like relatively new.
00:02:59.759 --> 00:03:02.719
No, yeah, yeah, it's relatively relatively new, I think.
00:03:03.439 --> 00:03:08.639
I feel like it rebranded because we were all doing detection engineering work without being called that, right?
00:03:08.960 --> 00:03:25.360
Yeah, and mostly I was working at MSSPs, so I jumped from one to other to yet another where I was at the IBM, so you I know you were also at IBM at one point, so yeah, we're former IBMers.
00:03:25.520 --> 00:03:26.960
Okay, it is not a coincidence.
00:03:27.039 --> 00:03:35.840
Uh it's a it is a coincidence, sorry, that I have my last few guests have been also IBMers, but it's been pure coincidence, truly.
00:03:36.319 --> 00:03:42.000
Yeah, in Qradar, it's it's it's it's it's Curator, right?
00:03:42.080 --> 00:03:47.759
I mean, there are some bad things to say about it, there are also some good things to say about it for sure.
00:03:48.000 --> 00:03:51.599
Um I think it's Q radar was built on top of Linux.
00:03:51.919 --> 00:04:01.680
Yes, uh, and there are some solutions in Qradar that I haven't seen in different themes that I think they they have done like really good job.
00:04:01.759 --> 00:04:02.159
Yep.
00:04:02.319 --> 00:04:04.159
Like they I completely agree.
00:04:04.319 --> 00:04:08.719
The the custom roll engine that correlates the events and the flows.
00:04:08.879 --> 00:04:13.919
Like I I I still have yet to see it done in such a like intuitive way.
00:04:15.120 --> 00:04:16.399
Yeah, I see that.
00:04:16.560 --> 00:04:21.680
Also, the the categorization of events, I think that was really uh really good.
00:04:22.079 --> 00:04:29.279
Uh because in those like modern themes like the Sentinels Planck, actually, you need to do a lot of stuff yourself.
00:04:29.759 --> 00:04:34.000
Um obviously you can do it, but uh yeah, I think it's true.
00:04:34.160 --> 00:04:36.399
You know, you know which one has been very similar to that?
00:04:36.560 --> 00:04:37.680
What what was it called again?
00:04:37.839 --> 00:04:45.279
This I forgot what it was it was the yeah, where you like parsed and use rejects to select the fields you wanted.
00:04:45.519 --> 00:04:51.040
Uh that what is pretty good in Chronicle or Google SecOps.
00:04:51.360 --> 00:04:52.720
It's it's pretty it's pretty on par.
00:04:52.959 --> 00:04:55.199
So this is the one I haven't like used yet.
00:04:55.360 --> 00:04:55.519
Right.
00:04:55.680 --> 00:05:00.240
Yeah, but uh for sure I will get into the into everything else, not so much.
00:05:00.319 --> 00:05:01.120
Everything else about it.
00:05:01.199 --> 00:05:01.439
Uh-uh.
00:05:01.920 --> 00:05:02.160
Okay.
00:05:02.480 --> 00:05:02.720
Yeah.
00:05:02.959 --> 00:05:03.199
Yeah.
00:05:03.360 --> 00:05:04.560
So keep it that way.
00:05:04.879 --> 00:05:13.040
So lately it was Sentinel and Splunk, uh, mostly I think the two biggest ones.
00:05:13.199 --> 00:05:22.639
Uh I know that their vendors like CrowdStrike is trying to do something of
Load full transcript
their own and Sentinel one as well, but I haven't checked these.
00:05:22.800 --> 00:05:35.439
Um, but I think uh having like said about the Sentinel, KQL is actually one of the best things that Microsoft did lately, that's my kind of opinion.
00:05:35.680 --> 00:05:37.279
So yeah, I enjoy using it.
00:05:37.600 --> 00:05:38.399
I agree with you.
00:05:38.879 --> 00:05:41.920
So yeah, so yeah, I I'm ranting a bit.
00:05:42.000 --> 00:05:51.680
So coming back to the story, went through the SOC, got into the detection engineering, still doing detection engineering.
00:05:53.519 --> 00:06:02.959
Um on the side, really into the Linux security, which is connected with the offensive tool development.
00:06:03.120 --> 00:06:13.600
This is kinda it's all connected also with the stuff that I do for the blog, and actually that's that's kinda the driver for the blog.
00:06:13.920 --> 00:06:20.319
Me developing tools, seeing how uh the telemetry gets generated or not.
00:06:20.480 --> 00:06:29.680
Uh, this is also very valuable if you like play with the tools and you know execute something and you don't see the stuff.
00:06:29.920 --> 00:06:31.759
Um that's also valuable.
00:06:32.639 --> 00:06:42.879
Um pretty much uh how and that's that's what you're working on now is your purple team lab setup.
00:06:43.279 --> 00:07:02.399
Yes, I think um there is in the uh in like this era of AI having ability to validate stuff yourself, also you can use AI for help, of course, to speed things up and I don't know to develop tools.
00:07:02.720 --> 00:07:08.720
Um there are some also opinions about you know writing code with AI and stuff like that.
00:07:08.959 --> 00:07:10.560
Uh we can also get to that.
00:07:10.639 --> 00:07:21.040
Uh but yeah, the value from running stuff and seeing what is actually happening when you run it, what telemetry is generated, is so valuable.
00:07:21.360 --> 00:07:41.120
Um I I mean I think nowadays or moving forward in the future it will be like the most critical for the organizations to have this ability because now everyone is selling the tool, everyone says that you you know it's AI, it's packed with AI, everything will be detected and stuff.
00:07:41.279 --> 00:07:47.199
But I think as a company, if you take security seriously, you need to check your stuff, validate.
00:07:48.639 --> 00:07:49.759
I've I fully agree.
00:07:49.839 --> 00:08:09.519
So it sounds like uh you're using AI in the most impactful area where one as a detection engineer could be using AI, and that is to build tooling to run true adversarial like emulation to generate real data so that you can then build detections against them.
00:08:09.839 --> 00:08:21.199
That that's like the the real the realistic way that an advert an adversary takes versus just trying to kind of do guesswork and building a detection off of that.
00:08:21.680 --> 00:08:26.560
So I'm against the guest works, uh, guest work, it's as you said.
00:08:26.800 --> 00:08:36.799
Uh yes, um so how I use AI, and that's kind of the personal opinion where I see AI being useful right now.
00:08:37.440 --> 00:08:56.080
It's helpful with the research, uh it's like helping with the research a lot, so you can you know uh give it some articles and then it's going to summarize it for you and it's going to give you some code snippets that you can use to build uh tools.
00:08:56.240 --> 00:09:01.360
I myself like building tools, um, you know, myself.
00:09:01.519 --> 00:09:05.200
I use it sometimes to help me speed uh you know development.
00:09:05.279 --> 00:09:08.559
I'm like not anti-AI, let's let's call it that way.
00:09:08.720 --> 00:09:13.759
I'm kinda I have like this hate-love relationship with AI.
00:09:14.000 --> 00:09:15.919
Oh, sounds very toxic.
00:09:17.279 --> 00:09:19.679
Like the game, I'm not uh anti-AI.
00:09:20.240 --> 00:09:26.879
I don't like the what is happening with the market and the community about AI.
00:09:26.960 --> 00:09:34.399
I mean the hype is is getting um no hype is just on another level.
00:09:34.559 --> 00:09:36.080
It's it is too much.
00:09:36.159 --> 00:09:39.200
It is unit is overpromising and underdelivering.
00:09:39.360 --> 00:09:43.120
We're in the early stage of the find out in the F around and find out.
00:09:43.200 --> 00:09:44.639
I I agree with you on that one.
00:09:44.720 --> 00:09:54.480
And and that's why I was so excited about this episode because it's I think what that's what's missing is someone to have a very I've been calling it a very sober perspective on AI.
00:09:55.360 --> 00:10:15.200
Yes, because everyone's trying to bolt LLMs into their detection engineering process, like from the very start to like what you said, generating uh like the inspiration of what to build, like articles, all the way to once you deploy it, craft it, and then then let it sit for a little bit and monitor it for being healthy.
00:10:15.360 --> 00:10:19.360
But I actually find I'm against the the research part, actually.
00:10:19.519 --> 00:10:21.200
I I don't really think it's good.
00:10:21.440 --> 00:10:32.960
I'm I'll I'm gonna push you on that one because it is there's so because there's so much AI slop out there on the news, it's it's it's getting it's not getting good quality things to start from.
00:10:33.120 --> 00:10:38.080
So unless you give it, hey, I know Florian Roth is really good, right?
00:10:38.320 --> 00:10:39.360
His research is good.
00:10:39.519 --> 00:10:40.320
So give it that.
00:10:40.480 --> 00:10:46.559
Or like uh specific people you know, like the Mystic, like the Mystic team at Microsoft.
00:10:46.720 --> 00:10:49.519
Um, if we start in a good place, it's much better.
00:10:49.600 --> 00:11:13.840
But like if you just send it to go webs web crawling for uh articles, there's so much like bad, bad art written articles that don't they're not real research, it's really just how do I say like they're writing they're writing like threat research, but it's just to so that the company can show
up in the LLMs for but for good marketing.
00:11:14.159 --> 00:11:14.559
True.
00:11:14.720 --> 00:11:17.840
So and I agree, so let me kind of rephrase.
00:11:18.320 --> 00:11:38.799
It's good to start if you have an idea, or to it's good to start with it, but you need to validate uh, I think at uh many steps, but let's say at every single step you need to validate, and we will also see that um today because I I have this one thing uh that I want to show you.
00:11:38.960 --> 00:11:52.000
Um yes, yeah, and uh I mean uh I myself I don't utilize it for the full pipeline, as you said, as uh everyone is trying to push.
00:11:52.320 --> 00:12:06.559
I think there is a lot of um like value in keeping your skills sharp and writing actually writing your your queries or the KQL, for example, or the SPL.
00:12:07.279 --> 00:12:27.519
Um and also I follow this one simple uh rule which I think uh a lot of people would resonate is don't um don't write code you cannot own even if it was generated by AI.
00:12:27.759 --> 00:12:33.919
So even if I generate something by AI, I will make sure that I understand every single bit about it.
00:12:34.159 --> 00:12:35.679
Especially if this is detection.
00:12:35.919 --> 00:12:39.919
Detection has a lot of weight with itself.
00:12:40.080 --> 00:12:50.879
I'm not talking only about the maintenance because if you like create detection, then you depends obviously on the company and how how the structure, but you need to maintain that, right?
00:12:50.960 --> 00:12:55.120
So that's the cost and that you need to pay.
00:12:55.440 --> 00:13:02.000
But also there is a cost of um what if the detection is not working properly?
00:13:02.159 --> 00:13:06.720
Like if it's not going to catch something that it was intended to catch, right?
00:13:06.799 --> 00:13:08.399
That's the worst case scenario.
00:13:08.720 --> 00:13:10.240
Yeah, the false positives.
00:13:10.559 --> 00:13:17.759
Yeah, and you you know, then you sign your name uh underneath because we created that with the use of LLM or not.
00:13:18.480 --> 00:13:28.240
But if I have signed my name under something, I'm making you know every single needed check to make sure it's it's right, right?
00:13:28.320 --> 00:13:30.240
If I have written it myself.
00:13:30.480 --> 00:13:35.519
So again, I not against like I don't have anything against people using it.
00:13:35.759 --> 00:13:50.480
You can you know build uh uh like the custom distros of Linux that we have seen lately, and you have you can build detections, but just make sure it's you have checked this, you have actually read the code.
00:13:50.879 --> 00:13:52.080
You read the code, yeah.
00:13:52.159 --> 00:14:22.799
You but you back tested it, not just not just tested the syntax of of the of the query, but also like how it how it um behaves, how it performs against you know real information, like a look back, but also like what we've been doing here um at where I work at Nebulock is it's not we don't just look back seven days, 30 days to see if you know to tune it out and if it's like under 5% false positive rate, that's considered passable.
00:14:23.039 --> 00:14:27.360
But we also like let it before deploying it out to production, we let it soak.
00:14:27.519 --> 00:14:28.480
We call it soaking.
00:14:28.879 --> 00:14:39.759
We let it soak for about uh a period of time, I think seven days, so that we could see how it uh behaves concurrently with other detections that are running at the same time, right?
00:14:40.480 --> 00:14:53.279
Yes, and that's pretty pretty cool because uh not many people think about that because that then there you have those risk mechanisms that are embedded in the sim, and it's also going to be affected by your new rule, right?
00:14:53.519 --> 00:14:55.279
That's pretty pretty cool.
00:14:55.919 --> 00:15:03.039
Curious how you deal with with false positives, because there's like ranging maturity levels of how we treat false positives with AI.
00:15:03.279 --> 00:15:14.240
And this is where I also think it's very impactful work uh to apply AI uh in a way that can help us keep you know keep keep these this noise level down for us.
00:15:16.320 --> 00:15:44.399
So where I see AI being helpful there will be to up to gather statistics uh about your like rule triggering data, or create like what you can do is create a report with the usage of AI that will give you the statistics, and additionally, it can perform searches to give you the top talkers, however you call them, or the yeah, the the whole story.
00:15:45.759 --> 00:15:49.519
Yeah, the the ones that are causing too too many triggers.
00:15:49.759 --> 00:15:53.120
And the side note, were you a noisy chatter in school?
00:15:53.279 --> 00:15:54.960
Because I always got in trouble for talking to people.
00:15:55.360 --> 00:15:56.080
Actually, opposite.
00:15:56.159 --> 00:16:04.559
Uh I'm like, I'm just like sitting in you know, be in front of my my screen and just doing things.
00:16:04.960 --> 00:16:19.039
Uh but yeah, uh coming back to this based on statistics and um yeah, something that I don't think you really need to push AI into yet.
00:16:19.600 --> 00:16:35.679
It also would be depending on uh what is the scale of your um like the the sim solution, how many rules you have, you know, how many rules you have to be so and how many uh like detection engineering uh engineers you have, right?
00:16:35.759 --> 00:16:41.440
So it would be helpful there to streamline the output, right?
00:16:41.759 --> 00:16:45.919
Or to prepare you the output, and but you need to make a decision, right?
00:16:46.080 --> 00:16:54.639
I'm not going to to let AI take a wheel because with every single exclusion for the rule, you are uh introducing a gap, right?
00:16:54.799 --> 00:16:57.120
And that's uh that's given, right?
00:16:57.200 --> 00:17:02.799
Um so you need to to make a decision um and accept it, right?
00:17:03.840 --> 00:17:18.079
Yeah, that's a good point because when you're when
multiple people are in the mix in creating the code, if that if whoever creates the query, and if that person is different than who has to tune the query, they're gonna have different context.
00:17:18.240 --> 00:17:23.519
They're not gonna know that they're not gonna know why I built the query because they didn't they didn't build it themselves.
00:17:24.079 --> 00:17:40.160
But it's it's maybe they won't be faster at tuning it because they don't have the context of of why they you know the the origin behind building that rule and uh the the work it took to build it, but but it might be okay, it might be still good because you're like checking each other.
00:17:40.240 --> 00:17:43.039
You maybe you're you're seeing something that the other person didn't see before.
00:17:43.119 --> 00:17:49.440
So but yeah, working in a in a team of multiple detection engineers is provides that checks and balances too.
00:17:49.839 --> 00:17:51.920
Yeah, like the the usual peer review.
00:17:52.079 --> 00:17:56.240
And when you mentioned the documentation, this is where actually I think shines.
00:17:56.400 --> 00:18:00.079
Um yeah, to generate the documentation for the rule.
00:18:00.319 --> 00:18:07.200
Um to put it into the pro if you are like following the um detection as a code.
00:18:07.359 --> 00:18:12.559
Uh yeah, if you have a detection as a code and you follow my traffic, obviously, I think everyone is following.
00:18:12.720 --> 00:18:13.920
Hopefully, they follow.
00:18:14.160 --> 00:18:14.720
Hopefully.
00:18:14.799 --> 00:18:15.519
Uh hopefully.
00:18:15.759 --> 00:18:23.920
Uh so you if you have a detection as a code, and I think you should have it in so in some in some way in 2026.
00:18:24.000 --> 00:18:26.720
I think it's it's not even a debate now.
00:18:26.880 --> 00:18:28.400
You need to have it's not a debate.
00:18:28.480 --> 00:18:31.359
No, you need to have a detection as a code.
00:18:31.680 --> 00:18:36.319
If you want to have to work with the AI in the future, it's going only to to help you, right?
00:18:36.400 --> 00:18:39.920
Because then you can hook your agents into the repo and stuff like that.
00:18:40.079 --> 00:18:52.160
So, I mean, if you want to have an AI and you don't have a detection as a code, then I mean you need to again don't like get into the hype, right?
00:18:52.400 --> 00:18:54.480
Do your basic stuff first.
00:18:54.720 --> 00:18:57.759
That will get you you know far ahead.
00:18:57.839 --> 00:19:11.200
And then the foundation, yeah, yeah, the good foundation, and then you can introduce those different AI stuff, like I don't know, like the documentation generated with AI, the the additional checks.
00:19:11.359 --> 00:19:12.960
You can also introduce that.
00:19:13.200 --> 00:19:16.640
Um, but yeah, just don't get into the hype too much.
00:19:16.720 --> 00:19:17.279
I think that's a good thing.
00:19:17.920 --> 00:19:18.880
Don't fall for the hype.
00:19:18.960 --> 00:19:20.799
That that's such a that's such good advice.
00:19:21.200 --> 00:19:21.680
Yes.
00:19:23.519 --> 00:19:25.359
Um I it's true.
00:19:25.440 --> 00:19:38.160
I I I've seen different ranging levels of maturity, like the and it's so crucial to have the fundamentals uh done and correct and in place because that is what AI is being trained from, right?
00:19:38.240 --> 00:19:41.279
The the that's what's going into to the AI.
00:19:41.519 --> 00:19:51.759
Um and I've been really exploring here uh this playing with the false positives, like creating a kind of like how you were you were talking about statistics.
00:19:52.000 --> 00:19:58.480
So um there, I feel like rules don't break for a million different ways, right?
00:19:58.640 --> 00:20:02.880
Like rules break for probably like a handful of different ways.
00:20:03.039 --> 00:20:09.039
Like it can it, it's either a problem with the data, right, coming into the rule, or there's a problem with the logic.
00:20:09.119 --> 00:20:10.559
You didn't write it correctly.
00:20:10.880 --> 00:20:26.160
Um, or or if it's like if or maybe the it once it becomes an alert, there's there's too much of it happening, um, and then it creates like duplicates and duplicates and duplicates duplicates, and then that has to be kind of suppressed or throttled or whatever.
00:20:26.640 --> 00:20:30.559
So these three areas, like that's that's that's the breakdown.
00:20:30.720 --> 00:20:39.119
And then looking at each three individually, um, then we then we can start to kind of classify, okay, well, what's what is the problem with the logic?
00:20:39.200 --> 00:20:40.000
Is it too narrow?
00:20:40.079 --> 00:20:41.039
Is it a defect?
00:20:41.119 --> 00:20:41.920
Is it whatever?
00:20:42.079 --> 00:20:48.319
And then start to create these kind of like codes and then start to count, okay.
00:20:48.400 --> 00:21:08.160
Well, you know, last last I don't know, month we had this many uh deep defect logic tax like taxonomy code one, two, one, two, three, and then it happened like a hundred and fifty different times, and always like the culprit, like the the fault of it was the specific field.
00:21:08.319 --> 00:21:15.200
And so then it can start to compare in the future every every new rule, false positive that comes, is it similar to that one?
00:21:15.359 --> 00:21:16.799
Because it's happened that many times.
00:21:16.960 --> 00:21:18.160
Could it could it be this?
00:21:18.240 --> 00:21:21.039
And with like a like a level of confidence.
00:21:21.200 --> 00:21:24.319
Um, I feel like it might work, but I haven't tested it.
00:21:24.400 --> 00:21:25.039
I'm testing it.
00:21:25.119 --> 00:21:28.880
Um I'm this is this is my research that uh I'm I'm I'm planning to write about.
00:21:29.200 --> 00:21:30.319
That's pretty pretty good.
00:21:30.480 --> 00:21:39.920
I think it will work because it gives you yeah, it gives you the uh it gives you a lot of the context, right, for how the rule was closed.
00:21:40.079 --> 00:21:44.240
And hopefully the the data is
correct, right?
00:21:44.319 --> 00:21:47.519
Because at this uh with this you need the correct data.
00:21:47.680 --> 00:21:50.160
It was correctly uh classified.
00:21:50.400 --> 00:21:52.640
But uh let's say it is, right?
00:21:53.039 --> 00:21:56.400
I think it will give you a lot of value, to be honest.
00:21:56.640 --> 00:21:57.039
Yeah.
00:21:57.279 --> 00:21:58.720
I I will I will let you know.
00:21:59.200 --> 00:21:59.680
I will let you know.
00:22:02.400 --> 00:22:02.880
Baseling.
00:22:03.599 --> 00:22:04.079
Baselining.
00:22:04.240 --> 00:22:16.799
I want to get into baselining because a lot of the way that we tune false positives has to do with with you know getting kind of a baseline read on on the query and the baseline and what normal looks like.
00:22:17.279 --> 00:22:32.319
Um have you have you explored, have you made progress with uh baselining your uh with yeah with baselining because I feel like Sims and remember Q radar, Sims, the UEBA aspect of it never really got it right ever.
00:22:33.519 --> 00:22:46.720
I have never experienced um successful UEBA deployment or um solution like being part of it already being deployed.
00:22:46.799 --> 00:22:54.400
It uh it is um now there are so many moving parts and and stuff like that that it's pretty hard.
00:22:54.559 --> 00:23:08.640
Uh however, what I do in terms of baselining, I like to um first of all, I think the idea of baselining is is is very cool, um, because then you can detect the unknown unknowns, right?
00:23:08.720 --> 00:23:20.079
This is uh the stuff that you don't know that are potential to to happen that you know for sure will happen, and then you have the ability to detect that.
00:23:20.400 --> 00:23:24.480
Um so I usually implement them via the logic.
00:23:24.720 --> 00:23:29.039
I really like the time series from KQL.
00:23:29.119 --> 00:23:31.920
You have this ability to create time series.
00:23:32.720 --> 00:24:01.599
Uh a lot of and in Splunk I recall also creating a lot of statistics, basically like doing a feature engineering within the rule itself, because you like create those series, count the different um attributes of the event or the of the series of events, and then based on on the outliers, you have this nice um function in the kql.
00:24:01.839 --> 00:24:03.359
KQL is so so awesome.
00:24:03.519 --> 00:24:18.720
Uh out you have this uh outlier function, I don't recall now how it's called correctly, um, and then it gives you the it will give you the the outliers based on the statistics, based on the fields that you like put in there.
00:24:18.880 --> 00:24:23.759
So for example, you can create a rule that will alert every time.
00:24:23.920 --> 00:24:36.000
I don't know, the the amount of events from this single source is is big compared to obviously to the baseline that you establish with this uh this time series.
00:24:36.160 --> 00:24:36.400
Right?
00:24:36.480 --> 00:24:40.559
So this is kind of the baselining that I like to play with.
00:24:41.039 --> 00:24:46.720
Uh it is in terms of the searches, it it can be quite heavy.
00:24:46.960 --> 00:24:52.160
And also heavy as a noisy or heavy as an uh heavy as the performance, yes.
00:24:52.400 --> 00:24:53.759
Oh yeah, heavy as a performance.
00:24:53.920 --> 00:24:58.079
So so the search in in simple tenures, the search will be long, right?
00:24:58.640 --> 00:25:05.920
Um which is uh sometimes it's fine if if the search is not scheduled to be run very frequently, right?
00:25:06.160 --> 00:25:18.640
You can like you can like pay the cost of it being heavy if it's run, I don't know, once a day, but you need to ensure that it's not going to time out or something like that, because it will happen.
00:25:18.960 --> 00:25:22.319
Then you can alert on that, obviously, to yourself.
00:25:22.799 --> 00:25:39.759
Um the problem with that could be and with the whole baselining, and the idea of me doing kind of those baselining searches is it's going to work the best the more data you query.
00:25:40.000 --> 00:25:40.799
The more data you gather.
00:25:41.119 --> 00:25:47.680
Yeah, and that by itself is again problematic from the performance point of view.
00:25:48.000 --> 00:25:52.720
Uh I really encourage people to play with it.
00:25:52.880 --> 00:25:56.160
Uh like it's not UBA, UEBA, right?
00:25:56.319 --> 00:26:02.480
But those machine learning-based functions I think are found in almost every single theme.
00:26:02.640 --> 00:26:04.559
Those are very cool to play with.
00:26:04.720 --> 00:26:06.880
You can like get inspired.
00:26:07.359 --> 00:26:32.160
For example, the I don't know, you have you can like derive statistics on alert that is happening on a host frequently, uh, but the frequence is span across days, so it's not like it's spike, but uh there is like once a day for I don't know 30 days, right?
00:26:32.240 --> 00:26:36.480
And it's it's low priority, so maybe it's not hitting your queue.
00:26:36.559 --> 00:26:45.039
But if it's running for 30 days, every single day it's running once or every other day, maybe that's of interest, right?
00:26:45.359 --> 00:26:54.480
Maybe maybe the host is infected and it's trying to do something, but every time it is being killed by your uh AV or EDR.
00:26:54.880 --> 00:26:57.359
Um but it's infected, right?
00:26:57.440 --> 00:26:59.359
So you might take a look at this.
00:26:59.599 --> 00:27:04.400
So we can do stuff like that with those uh those functions.
00:27:04.880 --> 00:27:19.599
I I think that even if it if it is high per high compute, it it's one of those trade-offs that is worth it because the the like the qual the the the return is is higher than the risk.
00:27:19.759 --> 00:27:20.799
Like it's good.
00:27:21.039 --> 00:27:22.000
It's very, very good.
00:27:22.240 --> 00:27:25.200
Yeah, then the risk to pay for the cost, or uh something like that.
00:27:25.440 --> 00:27:40.480
Um and I I I will say I I feel like as an industry, we've been a little bit behind in
insecurity, specifically, because everyone outside of security I I think is so advanced in these things.
00:27:40.720 --> 00:27:52.400
Um, like for example, finance investment, investments, like stuff like this, uh probably because they generate you money, whereas uh security is a cost center.
00:27:52.640 --> 00:28:12.960
Yes, but but still, uh but still any work, any work advancements, any um like data science work against security data, uh I've seen either work extremely well with some some of the some of the best teams, like the Netflixes of the world, Meta, Link, LinkedIn too has a pretty top-notch team.
00:28:13.119 --> 00:28:16.480
Um that that's that's pretty that's pretty advanced.
00:28:16.720 --> 00:28:50.880
Do you think that taking a uh a new look, like a new re- attempt, new attempt, a retry uh at UEBA now that we can have agents that can reason and maybe suppress on the fly anytime something deviates from the from the normal baseline, but can automatically tell you it's okay and not just alert you when something reaches, like when something you know passes the threshold, but it can it can just so like kind of like a clawed gotcha's keep suppressing all of the things that it reasoned itself that it thinks it's okay.
00:28:51.279 --> 00:28:52.319
I haven't tried this.
00:28:52.559 --> 00:28:53.839
Um me neither.
00:28:54.000 --> 00:28:59.279
Um so I think it could be potential obviously.
00:28:59.359 --> 00:29:01.279
Now we are like doing the theories.
00:29:01.599 --> 00:29:03.359
We don't know what's going to happen in the future.
00:29:03.440 --> 00:29:04.960
Maybe AI will implode.
00:29:05.119 --> 00:29:07.599
Uh hopefully not, because the tech is awesome.
00:29:07.680 --> 00:29:10.319
I mean, again, I'm not anti-AI, I love the tech.
00:29:10.480 --> 00:29:12.079
I just don't buy into the hype.
00:29:12.319 --> 00:29:14.000
Coming back to the question.
00:29:14.480 --> 00:29:22.720
Uh maybe if you because now you need to think also about the performance and the cost, and the cost could be high, right?
00:29:22.799 --> 00:29:37.440
So maybe put it uh like shift more it to the right so it's at the end of this of this entire loop of the uh because UEBA usually has some machine learning in front, right?
00:29:37.519 --> 00:29:59.519
So it does some some some machine learning, some algorithms are checking some stuff, it's raising the risk for the user, for example, and then you can introduce maybe the AI that is going to perform some searches, and based on the output of the searches, we'll generate an alert, or I don't know, do some blocking actions maybe in the future.
00:29:59.599 --> 00:30:01.440
But maybe first let's generate alert.
00:30:01.599 --> 00:30:08.160
I I would see uh that um for now for AI, yeah, where it stands now.
00:30:08.319 --> 00:30:10.079
I think that might work.
00:30:10.559 --> 00:30:14.640
I wouldn't put it as a single engine for this.
00:30:15.279 --> 00:30:17.759
Um if you if you kind of get me.
00:30:18.000 --> 00:30:18.640
Yeah, yeah.
00:30:19.279 --> 00:30:22.079
On the on the once it generates the alert itself.
00:30:22.480 --> 00:30:23.119
Yep.
00:30:23.680 --> 00:30:25.200
Yeah, I see.
00:30:25.359 --> 00:30:27.119
I I it's groundbreaking work.
00:30:27.200 --> 00:30:31.920
It'd be cool to to do experiments because that's that's also another thing.
00:30:32.000 --> 00:30:35.839
I feel like that we have barely no time in the sock, right?
00:30:36.000 --> 00:30:53.119
Like we there's barely enough time to to resolve incidents and do the work, manage the backlog, uh by the time you deploy it, even even to deploy a knee detection, because you're still just keeping what you have working by the time you get to you know add whatever is net net needed new.
00:30:53.279 --> 00:30:56.319
And then all of a sudden, when do you have the time to test things like this?
00:30:56.480 --> 00:30:58.720
Like we have we're so limited on time.
00:30:58.960 --> 00:30:59.200
Yes.
00:30:59.359 --> 00:31:02.960
Uh, but um okay, purple teaming.
00:31:03.119 --> 00:31:14.799
I I love what you said about kind of purple teaming being the only real answer here when it comes to really deploying a resilient battle-tested detection.
00:31:15.039 --> 00:31:34.160
Um, you said real value comes from any time spent on this work uh running real attacks instead of just uh you know this guesswork of building a detection based off of an article, like just jump jumping from um an article to a detection without really validating and going through attack simulation.
00:31:34.319 --> 00:31:40.400
So, why do you think that so few teams uh get to this part?
00:31:42.160 --> 00:31:42.720
Alright.
00:31:43.039 --> 00:31:58.559
Um we have okay, cybersecurity is again very uh very young, and people like get this idea of those teams, like red, blue, and then you have all those different colors.
00:31:59.039 --> 00:32:19.599
Uh so the purple blends kinda the both of them, so it would require a lot of like uh ability from the team to perform the attacks, uh to develop tools, uh you know, to then do those simulations.
00:32:19.680 --> 00:32:26.480
It so why organization might have a problem is because they don't have the capability, right?
00:32:27.119 --> 00:32:30.799
Uh offensive, mainly the offensive capability, right?
00:32:31.200 --> 00:32:38.240
Like the the resources of like red teamers or like resources as in like tools to build this?
00:32:38.640 --> 00:32:49.200
Uh well you kind of need the people to build the well now you can um you can argue that uh everyone can can build a tool, but not necessarily.
00:32:49.359 --> 00:33:18.000
Uh I think you would require some people that have at least some knowledge in offensive uh ways, not only development, offensive ways, because then it's not only developing tools, but then you have you need this mindset of also finding different ways of bypassing uh the detections or the AV EDRs and stuff like that.
00:33:18.480 --> 00:33:24.960
It's true, and that is a very specialized um like skill, right?
00:33:25.279 --> 00:33:57.680
The ability to bypass those stuff to the detections and stuff like that, to develop your own tools, even with the help of AI, I think it's it's quite specialized, and that's why I also think um upskilling yourself in red teaming, even if you are a blue teamer, it's super valuable because you get uh to know how those attacks work, you learn how to you know perform them, and then you can see what is generated, right?
00:33:57.759 --> 00:34:02.640
Or what artifacts are being left after the certain activity is performed.
00:34:02.720 --> 00:34:07.519
If you are getting even better, then you can question those stuff like can I do it different ways?
00:34:07.680 --> 00:34:14.239
If I do it in different ways, what artifacts will be generated, or none of the artifacts will be generated, right?
00:34:14.400 --> 00:34:18.000
And but that's kind of we are getting into the next levels.
00:34:18.960 --> 00:34:20.559
I know it's it's so true.
00:34:20.719 --> 00:34:21.920
It is it's so true.
00:34:22.239 --> 00:34:35.360
So it sounds all all is all is to say that it sounds like you've you've you've got this opinion because you've you live it, you you've you've built something, you've got your own setup for exactly this, it sounds like.
00:34:35.519 --> 00:34:35.920
Yep.
00:34:36.320 --> 00:34:39.599
Can can you kind of give us an overview of what that looks like?
00:34:39.840 --> 00:34:42.480
Um what what's like your workflow?
00:34:42.639 --> 00:34:46.400
Uh what what is that like out what is the outcome you get from it?
00:34:46.880 --> 00:34:47.199
Sure.
00:34:47.440 --> 00:34:56.719
So uh actually I can do sharing of the screen because it would be nice to see this visually.
00:34:57.199 --> 00:35:00.000
Um so the lab is so you don't need a huge lab.
00:35:00.239 --> 00:35:15.280
Obviously, if you can like build yourself the representation of what you have in your organizations that is the best, or uh you know, you AD with the domain controllers and different hosts, different machines and stuff like that.
00:35:15.440 --> 00:35:19.760
However, no, this is personal stuff, so I'm like doing it at small scale.
00:35:19.840 --> 00:35:38.480
So I have um I think at minimum what you would want is to hook your um devices or hosts, for example Linux or Windows, to the sim or to the EDR that then you can access the console for.
00:35:38.639 --> 00:35:47.199
For example, uh my EDR of choice is NDE or the Defender for endpoint or the XDR, however it's called now.
00:35:47.440 --> 00:35:51.760
I think they they changed the name um recently.
00:35:52.000 --> 00:36:00.800
Uh no particular reason, I just like KQL and it's relatively simple to set up and it's not costing that much.
00:36:00.960 --> 00:36:03.360
Um, so you can do whatever.
00:36:03.679 --> 00:36:08.320
And KQL is awesome, that's kinda uh uh given.
00:36:08.880 --> 00:36:17.039
Uh so okay, let's let's say I I was lately into the kernel modules, stuff like that.
00:36:17.280 --> 00:36:24.719
Uh I I love low-level stuff, I love I I love developing you know low-level stuff, code debugging.
00:36:24.800 --> 00:36:27.360
So, this is also the driver here.
00:36:27.440 --> 00:36:41.039
Uh, I will most likely research something that I enjoy doing, and I think that's also very important because you are more driven and it's not feeling like a work, it's it's more fun to do it that way.
00:36:41.199 --> 00:36:46.400
Yeah, I think it's and then you can share it with the community and everyone wins basically.
00:36:46.559 --> 00:36:48.400
So let's say so.
00:36:48.480 --> 00:36:49.519
This is AI.
00:36:49.679 --> 00:36:55.039
I just wanted to also include some AI in this, it's not that great, it's Gemini.
00:36:55.360 --> 00:37:02.880
I know everyone will also say that maybe it's not the best, but for now it's let's say that that's the one that I have choose.
00:37:03.519 --> 00:37:07.440
Um just to have a like starting point, for example.
00:37:07.599 --> 00:37:18.559
Yeah, I also wanted to to know what Gemini is going to give me if I say I want to I want a KQL to detect the LK kernel modules.
00:37:18.800 --> 00:37:21.760
Most likely you could write this prompt better.
00:37:21.840 --> 00:37:25.679
It's not about the prompt engineering, it's about what it's going to give you.
00:37:25.760 --> 00:37:30.079
So it provides you with this kind of output.
00:37:31.119 --> 00:37:35.440
Um, so let's check this output because it looks kind of correct, right?
00:37:35.599 --> 00:37:46.960
But we now we are going to the uh thing or to the talk that we had at the very beginning to evaluate everything that is provided from the AI.
00:37:47.280 --> 00:37:48.000
The syntax.
00:37:48.239 --> 00:37:50.400
Yeah, the syntax and the correctiveness.
00:37:50.480 --> 00:37:53.760
It it's let's say it's it's looking relatively fine.
00:37:54.400 --> 00:38:20.880
Okay, so it's highlighting some stuff, so my most likely time generated it's not table that is here, but you have the um other fields are not uh red, so it's fine, so it's not uh catching anything, which is strange because now I know that I have created some of the events, so let's do uh let's do that once more.
00:38:21.039 --> 00:38:33.360
Uh so I have this uh simple actually let me make this this simple module that I have written and that I'm going to load.
00:38:34.480 --> 00:38:36.400
So it has loaded.
00:38:37.360 --> 00:38:38.159
There is this.
00:38:38.320 --> 00:38:44.000
Uh actually, we'll get to this um kernel information soon.
00:38:44.079 --> 00:38:47.360
But you saw me that I have executed the ins mod killer.
00:38:48.079 --> 00:38:58.000
There will be some time that needs to pass before it is going to appear in the EDR, but I have pre-run this before, so there is something uh wrong with this.
00:38:59.039 --> 00:39:02.320
Most likely this regex is bad, but let's see this.
00:39:02.880 --> 00:39:05.280
Let's not
include the the the regex.
00:39:05.440 --> 00:39:13.679
So it's it's catching something uh based on the the but it's catching something weird.
00:39:14.559 --> 00:39:22.320
So in this mod mode probe maybe more time that would be required for oh, yeah, and there is more stuff now.
00:39:22.480 --> 00:39:29.360
So it's catching some activity that I have written, but this regex is some there is something wrong with this regex.
00:39:29.679 --> 00:39:33.599
Also, whenever you look at this query, I'm not sure uh if this is big enough.
00:39:33.760 --> 00:39:34.800
Hopefully, it is.
00:39:35.119 --> 00:39:35.599
It is.
00:39:35.920 --> 00:39:36.960
It is big enough.
00:39:37.199 --> 00:39:48.320
You look at this and how it's structured, how it's looking for the particular name of the of the like the you know the name of the binaries, right?
00:39:48.400 --> 00:39:56.400
And then you have some excluded some mod like the directories that most likely are causing false positives.
00:39:56.719 --> 00:39:59.119
So the here you introduce yourself gap.
00:39:59.360 --> 00:40:04.400
Here you introduce yourself this uh attachment to the file names.
00:40:04.559 --> 00:40:08.800
File names is something that can be easily changed, very much so.
00:40:08.960 --> 00:40:10.880
And now you have this regex.
00:40:11.760 --> 00:40:15.039
Uh and this regex seems to be broken.
00:40:15.199 --> 00:40:18.880
I have actually took this regex regex and checked this out.
00:40:19.119 --> 00:40:21.519
You have like different regex validation.
00:40:22.800 --> 00:40:25.199
I've spent a lot of time on regex 101.
00:40:25.440 --> 00:40:26.719
Yeah, me me too.
00:40:26.960 --> 00:40:27.599
Uh-huh.
00:40:28.000 --> 00:40:36.320
So there is something wrong because it it should you know pick up those, uh, but it's not it's not like doing that.
00:40:36.559 --> 00:40:40.239
So for sure there is something wrong with that.
00:40:40.559 --> 00:40:44.239
Uh this but it's catching this, but this is not not correct, right?
00:40:44.320 --> 00:40:48.000
So most likely there is some issue with this boundary word here.
00:40:48.400 --> 00:40:52.400
I don't know, maybe you could introduce something like that.
00:40:53.039 --> 00:41:00.400
And then oh yeah, and then you you limit yourself with the uh directories, right?
00:41:00.559 --> 00:41:08.320
But in this case, I don't have directory because maybe I'm I am in this temp directory already, and I can do that, right?
00:41:08.400 --> 00:41:15.760
I can change to the directory of temp, and from the temp itself, I can you know do the loading.
00:41:16.400 --> 00:41:19.599
So already there are problems with that.
00:41:19.679 --> 00:41:29.119
You cannot take it from like what we got from the from the AI and just throw it in there and call it a day, because it's not going to work.
00:41:29.280 --> 00:41:33.519
So let's say uh we need to clean this up.
00:41:34.800 --> 00:41:45.280
Um so let's say you you kinda clean the regex, but then uh then it's
like when I like to ask myself a question.
00:41:45.920 --> 00:41:54.559
This is what is that everything that is there that is generated whenever I load a kernel module?
00:41:54.960 --> 00:42:07.840
Because uh like in comparison to the Windows, um you have those driver loads events, so this is very similar if you load the kernel module in Linux.
00:42:08.000 --> 00:42:11.760
This is let's say very similar to those drivers that you load.
00:42:12.239 --> 00:42:15.519
Um so then I started digging, you know.
00:42:15.679 --> 00:42:25.840
Um what if I myself create um uh program that is going to also load the modules?
00:42:26.159 --> 00:42:27.679
What's going to happen?
00:42:28.639 --> 00:42:32.000
Uh let's let's unload this killer for now.
00:42:32.480 --> 00:42:46.079
Um by the way, I also want to point this one thing whenever you uh let's run it again.
00:42:46.400 --> 00:43:09.199
Oh yeah, because regex is broken, we we haven't fixed that, but that's so whenever you go um in the XDR particularly if you go to the timeline, it's um providing you with those events as well, and those are not really one-to-one which you see in the advanced hunting, which is also sometimes a pain.
00:43:09.519 --> 00:43:26.880
But you will see um most likely if we find the ins mod, you will see that this is being tagged as a rootkit uh with this rootkit tag.
00:43:27.360 --> 00:43:32.159
Yeah, so this is tagged with this rootkit tag, uh, which is cool.
00:43:32.320 --> 00:43:38.960
However, you had you don't have a detection uh from the uh from the out-of-the-box, yeah, out of the box.
00:43:39.679 --> 00:43:40.559
You're not gonna have that.
00:43:40.880 --> 00:43:58.960
And you don't see the explicit data in the advanced hunting for it, only you see the process event, which is also very surprising because uh you see it's it somehow it's being tagged here, somehow it's here because it sees it, but it doesn't repa it doesn't represent itself in the events that you can query.
00:44:00.000 --> 00:44:03.920
However, yeah, I was like, uh can I load it myself?
00:44:05.360 --> 00:44:12.239
Uh and yes, you can do a lot of stuff if in Linux, so you can load it not using ins mod.
00:44:12.559 --> 00:44:34.159
You basically um you can call the syscalls itself like the init module uh or the like f-init, that's other syscall they can utilize to to load modules, and then uh it's also going to appear, it should appear in the events.
00:44:34.239 --> 00:44:35.920
Obviously, this rule now is broken.
00:44:36.079 --> 00:44:47.360
You're not going to catch our own tool because it's on it's relying on those files names, like the insmoded mode mod probe, which is very brittle, yeah.
00:44:47.440 --> 00:44:52.159
It is, it is, but you you saw we just use the the tool named uh what was it?
00:44:52.320 --> 00:44:53.840
It was loader, right?
00:44:55.280 --> 00:44:58.079
Uh and it's going to break this.
00:44:58.320 --> 00:45:05.920
And also, uh people also like to throw the ko at the very end in Linux.
00:45:06.079 --> 00:45:23.920
Um the extension doesn't matter, so you can move it to I don't know, killer x yz, and then first let's unload the first one, and it should work without any issues, right?
00:45:24.079 --> 00:45:31.440
So you cannot bound yourself to the stuff in Linux explicitly, it's very unforgiving if you do that.
00:45:31.599 --> 00:45:43.679
Maybe in Windows, the extension uh sometimes if you like run some programs and use some weird extension, it's going to throw maybe some errors and stuff like that.
00:45:44.000 --> 00:45:48.159
Uh, but in Linux it doesn't really matter, the extension doesn't matter.
00:45:48.320 --> 00:46:09.679
So now it's it's a matter you know of of the artifacts that are being generated for uh the XDR, which unfortunately is not much, which is fine because now you try to explore what are the different ways if I really want to detect the the kernel modules.
00:46:09.760 --> 00:46:16.719
Uh this is being also uh like very often utilized by the adversaries, those those modules and stuff like that.
00:46:16.800 --> 00:46:18.800
So it's not like very exotic technique.
00:46:19.440 --> 00:46:36.800
And it's say let's say that I did thread modeling for my organization, and the companies that are very similar to my were targeted, you know, and the Linux was was hit with the those modules, so I really wanted to you know to have detection for that.
00:46:37.039 --> 00:46:43.679
And now you are now you have checked, we have checked that there is not much stuff, there is not like explicit event generated.
00:46:43.840 --> 00:47:04.400
Let's also confirm that because there is this device events table, which is like this uh table that has different type of events if it's not um process or image being loaded or some like explicit event, then it's drawn to those device events.
00:47:04.480 --> 00:47:19.119
So you have like script content stuff from some Python Python scripts, like antivirus report on uh on sudo, which is uh very not really that helpful.
00:47:19.920 --> 00:47:29.679
Uh there is also DMI uh device image load events, which I think is not low, it's not showing anything.
00:47:29.920 --> 00:48:21.280
So, okay, so we have process events from XDR, but maybe there are some different uh like tools that I can utilize, and that that's where where you start asking yourself some questions or going to organization like to the like CISOs and stuff that maybe we need some additional monitoring like Audit D, and then ingest those events into the sim because this the Audit D is going to uh give you the I don't actually have the the samples for the but Audit D is working on the Syscall level, so it's going to go after the if you like uh configure it correctly, is going to go after the uh the syscalls itself, uh-huh.
00:48:21.440 --> 00:48:30.079
Like the F-init module, or a lot of people push back on that because they say that it gives you like a scattered set of record types.
00:48:30.480 -->
00:48:37.679
Uh so this is also um this is actually the post I have written some years ago about that.
00:48:37.760 --> 00:48:57.360
It's it was getting bad rep, and now I think it's um is getting quiet because you have the eBPF, which on the other hand you could also use to um to hook to the to those syscalls and to track those syscalls with the e BPF, yeah.
00:48:57.519 --> 00:49:15.679
Um but audit D is let's say it's older and has it's like it it has the history and it's robust and it's been done for for uh I for years and it's installed by default on the Red Hat, and you know it's easy to install stuff like that.
00:49:15.760 --> 00:49:18.320
So it matters actually, those stuff matters.
00:49:20.800 --> 00:49:30.239
Um but yeah, Aud D is getting this butt rep because the events are scattered, um but our tools actually understand them.
00:49:30.960 --> 00:49:35.199
There are parsers back in the day in 2021.
00:49:35.360 --> 00:49:45.280
Um when I was playing with the Aud D for Sentinel, it was it had the it had parsers.
00:49:45.599 --> 00:49:55.119
It had parsers for those events, it's it was still uh scattered um throughout the different event times, actually.
00:49:55.920 --> 00:50:19.519
Uh, because it would be easier to show that what I'm talking about if I uh have a like example, but if I don't find it um soon, then uh we just we will just go ahead because uh it would be easier to present that.
00:50:21.280 --> 00:50:27.840
But I don't think I have that, and I'm pretty sure I don't install that because with the MD.
00:50:27.920 --> 00:50:28.719
Oh yeah, okay.
00:50:28.880 --> 00:50:39.280
With the MD, I don't MD switch to the e BPF, and I don't want to introduce like some I don't know what's going to happen if I have ODD as well, and it's working on the EBP event.
00:50:39.840 --> 00:50:47.920
So people are saying that this is bad, which is I guess valid because every single this is single event, right?
00:50:48.000 --> 00:50:53.119
It will count your C SIM as um one record.
00:50:53.599 --> 00:51:01.920
If SIM does some kind of I don't know, merging of those, maybe if you put some work in your Logstash or something like that.
00:51:02.000 --> 00:51:14.079
Maybe there are I recall there were some open source solutions that would also do that, but most of the time, if you have the plane ODD, it will come in this form, which is one event.
00:51:14.239 --> 00:51:30.320
This is let's say one activity, and each activity the activity is scattered around it, has those different records that explain the activity, and each record explains a little bit more of the story.
00:51:30.400 --> 00:52:00.480
So we have the syscall, what was called, was called the syscall number two, which I don't recall from the head, but let's say it was um it was open, I think, and then from what uh directory, current working directory was um um the activity performed, then you have what different files were loaded also when the syscall or the arguments for the syscall.
00:52:00.639 --> 00:52:22.000
In this case, we have the SS SSHD config, and then you have the proc title um which is hex encoded command that was uh which that was um so we can actually pretty quickly see yeah.
00:52:22.159 --> 00:52:31.199
So someone just cut it the um this is this is HD config, right?
00:52:32.079 --> 00:52:38.320
And you need kinda to understand that those events are connected, and this is the connector, right?
00:52:38.400 --> 00:52:43.679
So this you have this unique ID that is connecting those events together, yeah.
00:52:43.840 --> 00:52:57.440
Um and this is unique ID per boot also, so it's incrementing, so you cannot it's not this uh GUID that you get from the Sysmon, for example, and stuff like that.
00:52:57.760 --> 00:53:02.159
So yeah, I mean I you can see why it's it's getting bad rev.
00:53:02.480 --> 00:53:10.800
It's not but I guess I mean if you understand it, um then it's it's almost like a Sysmon for Linux.
00:53:11.119 --> 00:53:22.079
Yep, and uh yeah, I think Sysmon like it's pretty pretty interesting, but I think it it kind of stopped.
00:53:22.159 --> 00:53:33.360
Uh I'm not sure whether they transitioned with with it to the eBPF, uh, but I know of different like Tetragon is a nice eBPF solution.
00:53:33.920 --> 00:53:37.119
And I'm not affiliated with any of those companies, by the way.
00:53:37.199 --> 00:53:40.320
Uh and I was gonna say it sounds like we need a sponsor here.
00:53:40.480 --> 00:53:41.599
No, no, no, no, no, no.
00:53:41.920 --> 00:53:45.039
Adjust some stuff that you can check out, Falco also.
00:53:45.199 --> 00:53:59.039
So yeah, I'm not affiliated with any of them, so um so yeah, and this is you know where you you know how how far we went from this AI idea, right?
00:53:59.119 --> 00:54:03.519
We check those stuff, we saw how we can bypass it.
00:54:04.079 --> 00:54:07.760
This simple detection for Inst also has some value, right?
00:54:07.920 --> 00:54:25.599
Because um let's say that well, it's better to have it than not have it, but you need of course to then to pay cost for the detection, to monitor that, to to play to kind of uh work with the false positives and stuff like that, right?
00:54:25.679 --> 00:54:39.199
But it would be valuable to have it, but then if you really want to have this robust detection in this case, you need maybe to explore different um telemetry sources like audit D, right?
00:54:39.760 --> 00:54:47.599
Yeah, and yeah, that's where you go, like you start digging deeper, or maybe you start going after the eBPF.
00:54:47.679 --> 00:54:58.400
So this is really the stuff that I am into, because then I can you know write down those those findings, and you know what can you do, what cannot you do.
00:54:58.639 --> 00:55:00.719
In this case, we cannot really do.
00:55:01.119 --> 00:55:17.119
So next time you look at those um detections that AI provides you, or that you find online also that people are sharing, maybe with the usage of AI or not, um,
that maybe there could be skeptics, yeah.
00:55:17.280 --> 00:55:25.360
Be a little bit more skeptic because there is also this idea of uh false sense of security, right?
00:55:25.519 --> 00:55:45.920
Yeah, so uh it really doesn't matter in the end if you have a checkbox in the audit, or if yeah, or if the heat map for the mitre is green for the mitre, yeah.
00:55:46.079 --> 00:55:48.639
Uh if you get compromised.
00:55:49.440 --> 00:55:49.840
Yeah.
00:55:50.400 --> 00:55:53.119
Um yeah, that's some fantastic advice.
00:55:53.280 --> 00:56:21.840
And and don't you think it also sounds like a little backwards, too, for Microsoft to have Defender for endpoint on Linux and expect their because one, they're Microsoft and and and two, uh yeah, like clearly we saw two, not only is AI generating detection logic not enough, but also the out-of-the-box stuff is not enough because it won't it won't detect this bypass of this like EDR killer pretty much on Linux.
00:56:23.599 --> 00:56:28.159
Uh so this is not backwards, yeah.
00:56:28.320 --> 00:56:30.559
But like Microsoft detecting on Linux, right?
00:56:30.719 --> 00:56:32.559
But I mean they do, they have that offering.
00:56:32.800 --> 00:56:43.519
Yes, yes, and um I I don't know how to feel about it because this is uh this is I also don't want to to this to be a hate on Microsoft and something like that.
00:56:43.679 --> 00:56:47.360
I don't want them to come after me after I'm just joking, obviously.
00:56:47.760 --> 00:56:49.840
Not not a hate, yeah.
00:56:50.639 --> 00:57:04.400
But it's more of a it's more of a like it's more of a lens on and more on highlighting how important it is to have Linux like Linux expert detection engineers working within the Microsoft tech stack.
00:57:04.639 --> 00:57:11.920
Yeah, I think it would be beneficial for sure, because there are some stuff that I have found lately that also are interesting.
00:57:12.079 --> 00:57:18.800
Um not sure if it will be able if I will be able to put put that uh publicly yet.
00:57:19.119 --> 00:57:20.639
Um no?
00:57:21.039 --> 00:57:23.840
Michael, you're not I thought you were working on something.
00:57:24.480 --> 00:57:32.559
Yes, but then I found another thing um uh with the configuration of the MD and stuff like that.
00:57:32.719 --> 00:57:38.880
So um that uh might be very interesting for Microsoft first.
00:57:39.119 --> 00:57:46.480
Um because yeah, if you find again, if you find something, please be kind of responsible and go to the vendor first.
00:57:46.559 --> 00:57:48.400
That would be my advice, I think.
00:57:48.880 --> 00:57:56.079
Um but and then share it, share it with the community, and then share it with the community because uh, yeah.
00:57:56.239 --> 00:57:59.119
I mean, sharing is I think it's important in this case.
00:57:59.199 --> 00:58:03.679
The more the people learn and are aware of it, um the better.
00:58:05.039 --> 00:58:06.719
That's what we're all about here, of course.
00:58:06.880 --> 00:58:09.840
We're we're coming up to the end of the episode, how well.
00:58:10.159 --> 00:58:30.639
I would love to leave the audience with some I mean more, uh just some tactical advice of uh more than you've than you've had of if you were advising a team uh that's like standing up Linux detection coverage from zero, like today, what would be the first thing you'd tell them to start with?
00:58:34.000 --> 00:58:34.719
ODD.
00:58:35.360 --> 00:58:45.039
That would be the first thing to start with, and there are awesome um publicly shared uh configurations for the ODD.
00:58:45.119 --> 00:58:51.840
Florian road is also uh I will grab the link and throw it in there.
00:58:52.239 --> 00:59:13.840
Uh is like um my maintaining the the biggest one, I think, and the oldest one because this was it was there when I was interested in the ODD back in 2000 in 2020, or it was 2021, or I think yeah, something like during COVID?
00:59:14.000 --> 00:59:15.199
Did you pick this up during COVID?
00:59:15.519 --> 00:59:16.400
Yeah, yeah, yeah.
00:59:17.199 --> 00:59:18.800
So I had some spare time.
00:59:18.960 --> 00:59:20.159
So it was there.
00:59:20.400 --> 00:59:55.679
Well, eight years ago, uh initial comment, so it was even before that, and then there was this one uh that was very recently shared that I also commented on LinkedIn from Taz, from he's I think doing some Sans stuff, also not affiliated with Sans, but he shared some well it's always nice to see the the guys that are um working in the industry for a long time to to share stuff basically.
00:59:55.840 --> 00:59:59.679
I think that gatekeeping is it's not cool.
00:59:59.840 --> 01:00:01.840
I mean it's not benefiting anyone.
01:00:02.000 --> 01:00:07.119
I mean anyone well I I guess if you I don't know.
01:00:07.280 --> 01:00:16.800
I don't know if you want to gatekeep knowledge for for what reason you're scared if someone is going to I don't know steal your money.
01:00:17.280 --> 01:00:23.199
I I think it's for I think it's been because they don't want the attackers to know how we're defending them.
01:00:23.599 --> 01:00:25.360
Uh that's valuable.
01:00:25.760 --> 01:00:30.559
There's ways to talk about it without like really sharing the the sauce, yeah.
01:00:30.960 --> 01:00:34.239
Yeah, I think uh and that's the other link.
01:00:34.400 --> 01:00:44.400
That's more minimal, uh, and that's uh very that would be easier to get into because it's it's um it's smaller, right?
01:00:44.480 --> 01:00:48.320
So you don't have a lot of stuff to understand.
01:00:49.199 --> 01:00:56.960
Especially if someone looks at it, there are some rules for the process events.
01:00:57.199 --> 01:01:03.599
So then if coming back to the initial question, like to setting up the the security.
01:01:03.920 --> 01:01:19.199
Let's say you had you have already this EDR for for some reasons, because not uh I know there are better tools, like um you could argue that there are better tools than EDRX, right?
01:01:19.360 --> 01:01:21.840
With those open source ones, for sure there are better.
01:01:22.159 --> 01:01:28.800
I mean, but it's not really representing what is happening in the on the enterprise level, right?
01:01:28.880 --> 01:01:35.920
Because you have the contracts, you have different um you know stuff, you buy tool with the support, for example.
01:01:36.719 --> 01:01:40.079
That's important for one company, and that's very valid, right?
01:01:40.159 --> 01:01:42.320
So you have a tool and you need to.
01:01:43.199 --> 01:01:54.000
I encourage you to do best with the tool you have and actually invest time to see what's going to generate with the tool you have.
01:01:54.320 --> 01:01:59.440
And if it's not being generated, then you introduce another stuff, right?
01:02:00.079 --> 01:02:04.480
So, for example, I have the MD, I saw the process events.
01:02:04.639 --> 01:02:07.360
Now I look at this what did the configuration.
01:02:07.519 --> 01:02:20.480
I see there are some stuff for the uh let me reach again, so it's like I know it's ending, but um, so yeah, I I have MD, I know I have process events.
01:02:20.719 --> 01:02:24.000
I see there are some rules for the process events.
01:02:24.639 --> 01:02:39.199
Uh so maybe let's say I don't need that because I have it covered, but then I have some stuff uh for the modules, those modules unload, load.
01:02:39.519 --> 01:02:42.800
Maybe I just need that and push it to sim.
01:02:43.519 --> 01:02:54.159
And let's configure that on one test host, let's test it, let's run those exact same tools, those techniques, those stuff that we we seen, and let's see what happens.
01:02:54.400 --> 01:03:03.119
Yeah, I think that was fascinating to see you have this like curiosity that jump made you jump from like question to question to question, like pivot to pivot.
01:03:03.280 --> 01:03:09.199
Like that's that's all what threat hunting is about, or rule tuning optimization.
01:03:09.280 --> 01:03:13.599
Like that's exactly what the that encap encapsulates this kind of work.
01:03:13.760 --> 01:03:28.960
And I do believe that the through line for everything we covered today, whether you're building an AI like assisted query pipeline, audit D correlation, or a kernel module, right, that you just loaded, do not trust the checkbox, right?
01:03:29.039 --> 01:03:32.639
Do not trust it as is uh at face value.
01:03:32.800 --> 01:03:34.000
You have to test it.
01:03:34.159 --> 01:03:43.760
Uh and the teams that are actually purple team testing their own stack are the ones that are finding out like what's real before an attacker does it for them.
01:03:44.000 --> 01:03:47.599
So thank you so much for for joining uh the show today.
01:03:47.920 --> 01:03:55.119
You're always welcome back, by the way, if you have any further research or advances in your Linux detection engineering work.