Latest / Blue Security / Microsoft Sentinel Deep-Dive with Henrik Wojcik
Transcript
- 0:06Welcome to the Blue Security Podcast, a weekly podcast for
- 0:10Information Security defenders where we bring you discussions
- 0:13on best practices, tools and implementation for enterprise
- 0:16security. Now here are your hosts for
- 0:19today's show, Andy Jha and Adam Brewer.
- 0:21Welcome to this week's episode of the Blue Security Podcast.
- 0:25I'm Andy, your host. I'm Adam, your Co host.
- 0:28This week we have a great show planned for you.
- 0:30We have Henrik Voisik, who is a newly minted Microsoft MVP who's
- 0:37going to join us and we're going to do a Microsoft Sentinel deep
- 0:41dive, and we haven't done one in a really long time.
- 0:44So we're going to go through basically all the way from what
- 0:48considerations you have when you're developing and deploying
- 0:51a brand new Sentinel instance and then some of the things that
- 0:54you might want to think about as you get more mature, even if you
- 0:57already have a Sentinel deployment.
- 0:59Some of the things that will make it better for you when it
- 1:01comes to looking at alerts, automation, maybe some of the
- 1:05playbooks and workbooks that you can take advantage of.
- 1:08So, Henrik, can you give us a little introduction for our
- 1:13listeners about yourself and your expertise in this area?
- 1:17Yes, thank you, Andy. Hello everyone.
- 1:20My name is Henrik Voisik and I live in Denmark and I work in
- 1:27the banking sector at a company called Bank Data.
- 1:32And what we do actually, let's just boil it down, we are
- 1:37developer house for the banks in Denmark, a lot of them.
- 1:41So we are like the IT department.
- 1:43So we developed the mobile apps for banks and yeah, my area at
- 1:51the moment is that I'm located in bank data at a team called
- 1:55the Cloud Center of Excellence where I work with Sentinel and
- 2:01the Microsoft 365. Well, XDR platform very good.
- 2:06You always got to think of those name changes.
- 2:08I saw the gears turning with yeah, Defender XDR now, Yes.
- 2:12Yes. So the first thing when you're
- 2:14looking at a Sentinel deployment is usually if there are any type
- 2:20of data residency requirements, especially for U.S. companies
- 2:25like working with EU companies, maybe GDPR or if you have
- 2:31regulated industries and you need to keep that separate.
- 2:35And then also if you have multiple tenant considerations,
- 2:39in your case, Henrik, when you designed your Sentinel
- 2:42deployment, did you take any of that into consideration?
- 2:44Yeah. So we are mainly based in
- 2:47Denmark. Well, we are only in Denmark.
- 2:49So the, the single tenant multi tenant was pretty simple for us
- 2:54since we have we are owned by 7 banks and they each have their
- 3:00own tenant, it was natural just to put a single Sentinel
- 3:03deployment in each of those tenants.
- 3:08Yeah and with the workspace manager now it wasn't back then
- 3:11when we made the decision, but it is now.
- 3:13So we we kind of made the right move back then and our data
- 3:19recently see because we are in the EU, yeah, you guys know we
- 3:23have the GDPR which is pretty yeah it's regulated.
- 3:28So we have to follow that one and yeah data needs to stay
- 3:33within the EU border basically. Yeah, we we had, we had one
- 3:40issue though with the SoC two type 2, if you guys know what
- 3:44that is. And I think it's a regulation
- 3:48from the US right Actually the core service, the Sentinel core
- 3:54service is not listed there as a SoC two type 2 and all regulated
- 4:01companies in Denmark needs to have the SoC two type 2.
- 4:06So we we had a, we had this, yeah we had to take another
- 4:10approach on it back then with the Sentinel because it's not
- 4:14listed at the core service at Microsoft.
- 4:16So we had to take a risk approach to it that we accept
- 4:19the risk and analyze the risk and so on.
- 4:23That's what I remember from the data residency and compliance
- 4:26when we first implemented. So you have a workspace within
- 4:31each single tenant at 7 different tenants, and then now
- 4:35you're using the workspace manager which is a preview
- 4:39feature to manage all those different workspaces.
- 4:43The plan is yes, to use to to get started on the workspace
- 4:48manager. At the moment we have another
- 4:50set up where it's collected instead to yeah.
- 4:54Have you used Azure Lighthouse at all to try to manage these
- 4:58different workspaces? Funny, funny.
- 5:00Yes, we actually have. It quickly went chaotic, so to
- 5:06speak, and we we pushed from the git, we we pushed from the
- 5:11GitHub repos with all the analytic rules back then, before
- 5:14Workspace manager, right. It was really it.
- 5:18It went, it went fast and it got out of hand fast.
- 5:22So we're trying to get back on track with the workplace manager
- 5:26actually deploying the same rules because there was a lot of
- 5:30issues with the GitHub push and stuff like that what we
- 5:34experienced. OK.
- 5:36And then I think a lot of other considerations for companies
- 5:40when it comes to a deployment for Sentinel is Sentinel is a
- 5:44CIM. And so the idea behind it is it
- 5:48is a security incident manager and a lot of companies want to
- 5:53use a log aggregator as well as a CIM, but they're not really
- 5:59the same thing. And so like your say, for
- 6:02example, your firewall logs, whether it's using too much
- 6:06memory at your firewall or you're out of disk space or
- 6:08something like that, like operational logs that IT may
- 6:12want to know about, but not necessarily security
- 6:15professionals where we're looking at specific security
- 6:18alerts and they want to push all those logs together because they
- 6:22want a log aggregator and then they want to push all that data
- 6:24at the Sentinel. And what I think a lot of
- 6:27organizations don't realize is that the cost of using log
- 6:34analytics workspaces which is our storage in Azure that has a
- 6:38cost and then when you push data to Sentinel, that also has a
- 6:42cost. And so you'd be paying double on
- 6:45things that you probably wouldn't need because it doesn't
- 6:49need to go through Sentinel, right.
- 6:51And so how do you look at separating out data that
- 6:56security professionals need versus say non SoC data, data
- 7:01that is it only that maybe would be beneficial for IT sys admins
- 7:09but not necessarily security incident responders?
- 7:12Short answer we just log it on. Yeah we we we started out like
- 7:19you just mentioned that the ah CM yeah we need some analytics
- 7:24and unlock place let's just throw it in Sentinel everything.
- 7:28So what we actually did, every time we spin up a landing zone
- 7:32with the subscription for a team, it locks to their own log
- 7:36analytics workspace in their subscription, right?
- 7:39So they can get their application insight figures and
- 7:42stuff like that. But we also put it over the
- 7:45central one where the Sentinel instance is.
- 7:48So we actually double book all the data because we need a
- 7:52central place to keep track of it.
- 7:54All that that's. So we haven't split it up, the
- 7:58operations logs and the security logs combined in the same
- 8:03workspace today, but we have actually talked about splitting
- 8:06it up because you're you're right, we need to differ from
- 8:11the operation logs and the security logs, but we need to
- 8:14have them both because if you wanted to do some hunting in the
- 8:17operations logs or something, I guess yeah, it's a work in
- 8:22progress. The reason why we haven't split
- 8:25it up yet is because that we the cost is not that high at the
- 8:29moment. But we got some questions from
- 8:31the fin up side of it saying how do we identify who is paying the
- 8:36bill for this data And this data we have some planning to do,
- 8:42let's just say it like that. Yes, but it is possible and I
- 8:45want to let our listeners know that it is very possible to
- 8:48split up your operational logs from your security logs.
- 8:53So if that is something that you want to do, you can absolutely
- 8:58do it with this with a Sentinel deployment.
- 9:00Kind of a a really simple rule of thumb for making that
- 9:04decision is are you writing alerts based upon that data?
- 9:08And if you're not, then it's probably more appropriate for a
- 9:11Log analytics workspace than a Sentinel enabled log analytics
- 9:14workspace. But that's interesting feedback
- 9:19in the sense that the the costs weren't prohibitive and so it
- 9:21was actually easier to just have it all in one place.
- 9:25Certainly there is, you know that's that's something you
- 9:27weigh when you make these decisions is administrative
- 9:30overhead, having two workspaces, having to spend all the effort
- 9:35and time to decide what goes where and there's costs
- 9:38associated with that too. And so if you don't find the
- 9:40cost prohibitive to just put it on a Sentinel enabled workspace,
- 9:43then you know that that could make sense as well.
- 9:45So that's that's a really good point Henrik, Is that it?
- 9:48You know, it's not a one-size-fits-all approach for
- 9:49some folks. It's just we we didn't see the
- 9:52the cost benefit analysis come out on the right side of it.
- 9:55So we just did it this way. Yeah, because we we had the the
- 9:58discussion I was at experts live last year in Prague where I met
- 10:04AMVP from the Netherlands I think Coos I think you I I
- 10:09forgot his first name. He actually wrote about a
- 10:12company that in the US where they split up the logs and save
- 10:15like $1,000,000 or something like that.
- 10:17Because they split it up and I went home to my team and we
- 10:21talked about it and they were like, but it's the overhead of
- 10:26the work we have to do, splitting it up versus the cost
- 10:30that it costs. At the moment, it's not even
- 10:31worth it. So why do we want to bother?
- 10:34Because it's burning in other areas, right?
- 10:37Yeah. The, the build back comment that
- 10:40you had though is interesting because sometimes you have a
- 10:43security budget and then you have an overall IT budget and
- 10:45then who is paying for what. That usually I get that a lot
- 10:50when we're talking to customers is they're looking for a log
- 10:54aggregator plus a SIM because they can kind of combine budgets
- 10:59with IT and share that cost together because it's a dual
- 11:02purpose thing. And so I do think that that
- 11:05resonates with a lot of people in the fact that like well, all
- 11:09of a sudden if the cost becomes so high and you need to do an
- 11:12actual build back to a department, how do you separate
- 11:16that out so? Fin OPS Department Program.
- 11:20Exactly. OK, so let's talk about getting
- 11:22data into Sentinel. And that's done through
- 11:25connectors. And there are a ton of built in
- 11:29connectors. We'll link the documentation for
- 11:32the Sentinel data connectors, but pretty much every major
- 11:37connector that I can think of, you know from firewall logs like
- 11:41Palo Alto, Cisco, Fortinet, and then you're looking at obviously
- 11:46anything M365. There are things like Octa in
- 11:50there, Z Scaler, Crowdstrike, so there's a ton of different
- 11:54connectors. Were there any connectors that
- 11:58you found that were interesting, Henrik, or or anything that you
- 12:01had to design specifically because you can also make custom
- 12:04connectors. Yeah, we we didn't have to
- 12:08design anything because it was pretty straightforward for for
- 12:11us in the tenants because it was cloud native only for the
- 12:14Microsoft products in that meaning that we are a 5
- 12:19customers. So we just enabled all the E5
- 12:22connectors and started collecting on all those tools
- 12:26and because all of the other logs we actually have the cut on
- 12:32premise side where the firewalls and yeah everything is goes to
- 12:38on premise SIM and we have the Sentinel on the cloud SIM side
- 12:43which acts as a forwarder which we will probably get back to at
- 12:47some point and later. So it was pretty easy for us.
- 12:52The only extra connector that wasn't a building was when we
- 12:56wanted the Dynamics 365 view, right?
- 12:59Because in the back in the old days, you didn't have the
- 13:03opportunity actually to look into what was going on in the
- 13:06dynamic 365 ethanol. But some smart guys in Israel
- 13:11made a connector for that. So you can actually see if
- 13:15people transfer, change bank numbers in the ethanol and
- 13:20transfer money out and stuff like that actually to look for
- 13:22the suspicious behavior, right. So that was the only connector
- 13:27which wasn't a building at that point of time.
- 13:31I I believe it's it's been a long time.
- 13:34So your architecture, you actually have it going to a
- 13:38separate on Prem SIM you said yes.
- 13:41OK, so there are. So for our listeners there are
- 13:44multiple ways to get quote UN quote on premise data to
- 13:49Sentinel. With Sentinel being a cloud
- 13:51native SIM, there's actually no infrastructure that you actually
- 13:54need to deploy to get it running however.
- 13:58So for example there are like firewall logs which are on Prem
- 14:02and maybe you have other things that you want to get on Prem.
- 14:06There are syslog or SEF forwarders that you can deploy
- 14:10and forward those logs to your syslog SEF forwarder, which is
- 14:14just a Linux box that has a connector that you run to
- 14:20connect it to your Sentinel instance.
- 14:22When you do that it can take all sorts of different types of logs
- 14:27and for them on the Sentinel and then you can see and make
- 14:29queries and different analytic rules off of that.
- 14:33I'm curious though, I want to get back to you.
- 14:35Henrik is you're using an on Prem SIM.
- 14:39Do you mind sharing either how you're forwarding those logs, or
- 14:46maybe the name of the SIM that you're using to do that?
- 14:50Somebody will probably come after me if I mention the name.
- 14:55It's another department, but let's just say that we have.
- 14:59I believe it's inside the. I should probably know because I
- 15:03have set it up. You know, you guys know that in
- 15:06the XDR portal there is the API where you can forward out all
- 15:12the Defender products alerts, right?
- 15:16And we have, that's the one part.
- 15:19And the other part is that we also forward the Sentinels.
- 15:24I forgot because it was 2020 when we set this up and I
- 15:28actually forgot how we set it up.
- 15:30But we are, I know we are forwarding it because the guys
- 15:35are sock, let's just call them that, which is what they are.
- 15:38And they get all the alerts that actually go into Sentinel today
- 15:44and they receive it on their side.
- 15:46So there's definitely a connector there.
- 15:48I can't remember it actually. I see.
- 15:50So you're actually taking the data from M365 and Sentinel and
- 15:55then forwarding it to your on Prem SIM, which your SoC is
- 16:00using as their main incident response.
- 16:03I see. OK, I was saying that you can
- 16:06also do the opposite. You can.
- 16:09You can have Sentinel be the upstream, you can also have it
- 16:12be the downstream. And so in your case, you're
- 16:15having it be the upstream. Where it goes to Sentinel, first
- 16:19it gets it filtered with its analytic rules and maybe you
- 16:23have a rule to forward those off to your downstream SIM, which is
- 16:28your on Prem SIM. You can also have it be your
- 16:31downstream SIM where it goes through say your on Prem SIM 1st
- 16:35and then forwards those on to Sentinel.
- 16:38A lot of companies do like the upstream model that you're using
- 16:43because Sentinel can do some filtering first and then forward
- 16:48maybe only like the important stuff over to your downstream.
- 16:51So you get kind of that first look and then it gets down to
- 16:54your downstream. So it doesn't overwhelm your
- 16:57sock and you can kind of tune it on the cloud side and then say
- 17:03for example if you're using, I don't know, Splunk or something
- 17:08else, then you can save some money because it's all based on
- 17:13data ingestion, right? The the cost is based on how
- 17:16much data is flowing through. So if you can limit the amount
- 17:18of data that's going through by having Sentinel B the upstream
- 17:22SIM, then that can be a a bit of cost benefit.
- 17:26Well, and tying this back to something Henrik said in in
- 17:29passing a little bit ago. He mentioned they're an E5
- 17:32customer and so there's two types of logs that can be
- 17:37ingested at lower, no cost. In Sentinel #1, there's a set of
- 17:40logs that are free for everyone if you're Microsoft customer
- 17:44period. Doesn't matter what you have,
- 17:45what your licensing is, there's a set of logs and this is all
- 17:48documented. We can put this in the show
- 17:49notes that you can ingest into Sentinel in store for 90 days,
- 17:53no cost. It's a great way to dip your toe
- 17:55in the water if you're Sentinel curious.
- 17:57And then also for customers who own E5, there is an E5 benefit
- 18:02for Sentinel. Now there's a separate set of
- 18:04logs and these are also documented and called out where
- 18:08you get, I believe it's 5 megabytes per user and either
- 18:12per day per month, whatever it is for those set of logs too.
- 18:17And so those tend to be a little bit noisier logs like cloud app
- 18:20discovery, Azure I I believe it's enter ID activity or sign
- 18:25in log, something like that. And then there's like
- 18:28information protection logs, I think are a couple of them
- 18:30called out there, but you can use that benefit to offset or
- 18:34eliminate that cost of ingesting those as well.
- 18:37So tying this all back to the larger architectural discussion,
- 18:41you can use Sentinel then to bring in those logs that lower
- 18:43no cost. And then Andy to your point,
- 18:46start to kind of whittle it down a little bit before you maybe
- 18:49forward that to your your standard SIM you've been using
- 18:53to date. And it's a great way to dip your
- 18:55toe in the water, but also start to get some value out of
- 18:57Sentinel where it's reducing your ingestion burden at your
- 19:01your destinations SIM solution too.
- 19:04And that's tying all those benefits together and just
- 19:06basically taking advantage of those opportunities.
- 19:09I know a noisy log in intra ID. The non interactive sign in they
- 19:15are noisy. Yeah, have you had any issues
- 19:21using any syslog or stuff forwarders as far as sizing?
- 19:25Have you ever run into any size issues?
- 19:28OK I I have in the past and I actually ran into a customer
- 19:32with some sizing issues because most IT sys admins when they
- 19:39deploy a Linux server, they think Linux is fairly
- 19:42lightweight. They don't really need a lot of
- 19:44size and so they give you something like, you know, two
- 19:48cores, maybe 4 gigs of ram and then a 30 gig hard drive, 3030
- 19:54gigs of space. When you're looking at SEF
- 19:57orders and syslogfolders, you do want to make sure that you have
- 20:01enough space to have those logs there for a period of time.
- 20:06You're not using the log folder as your storage.
- 20:09Just understand that like you need to have log rotation dialed
- 20:14in usually about seven days of logs that are stored locally on
- 20:19the SEF folder and then it gets rotated and deleted.
- 20:23But you need to have enough space for those seven days, and
- 20:26usually when you're looking at a specific source.
- 20:32For example, in my in my previous org we had Z Scaler and
- 20:36so I used Z Scaler as a Sep forwarder.
- 20:39And with an organization about four to 6000 people, we needed
- 20:45at a minimum probably 100 to 120 gigs to maintain.
- 20:50And so if you want to have more just in case at about 5000
- 20:55users, you're looking at I would say to be safe, about 200 gigs
- 20:58of space of seven days worth of log rotation.
- 21:03When I talked to this other organization, they're like,
- 21:05yeah, we're at about, you know, I think they had 20,000 users or
- 21:0930,000 users and they ran with 100 gig log forwarder.
- 21:15And I said that's just not going to be enough space.
- 21:18You're going to need a lot more. And they did have their log
- 21:22rotation dialed in as seven days because I don't think that's
- 21:26default on Linux. When you're looking at log
- 21:29rotation, you might want to look at what the default value is,
- 21:33but you don't need it to be super long because again, you're
- 21:35not doing any type of incident response on your sys log
- 21:38forwarder. Those logs get forwarded on to
- 21:40Sentinel where they're stored for, you know, 9000 and 80 days.
- 21:44Whatever you have for your data retention, so make sure that you
- 21:49take that into consideration as part of your architecture.
- 21:52It's funny because you just mentioned 190 days or 180 days,
- 21:58right? A lot of people miss the point
- 22:01in the XDR portal that the data is there for 30 days and then
- 22:06it's gone. From what I hear from people is
- 22:10that they they normally just put Sentinel in the back of that to
- 22:14get a larger retention time. Well, it was like that in the
- 22:17old days that if you wanted 180 days or 365, you had to have a
- 22:23Sentinel log analytics to spoot it over or do some other voodoo
- 22:27stuff, I guess. Yeah.
- 22:29Yeah. I would say it's a little bit
- 22:31confusing for customers for Defender because it is
- 22:34accessible via the query for 30 days, but it's actually retained
- 22:40in the GUI, right? The the data itself, the alerts
- 22:45and all of that are retained there for 180 days.
- 22:49So if you're looking at the advanced query and you're trying
- 22:52to do that like advanced searching, as far as like
- 22:54forensics, that's 30 days. So if you do want more, as
- 23:00Henrik was saying, if you want more for advanced searching and
- 23:04and forensics and all that, then yes, you can forward the raw
- 23:08logs over to Sentinel, which is not free.
- 23:12That does cost money. But if if you want additional
- 23:17data retention, you can forward the raw logs over, which
- 23:21obviously has a one click connector within Sentinel.
- 23:24There's no additional infrastructure that you have to
- 23:26deploy and then you get the 90 days included with Sentinel or
- 23:29you can pay for a longer retention period as long as I
- 23:33don't know what the longest I've seen Adam, but I think you can
- 23:36do it for multiple years. Yeah, if you got the money,
- 23:40we'll keep it. Yeah.
- 23:42So, yeah, I think 710 years, you can keep it for a very long time
- 23:48if you really wanted to, but it does cost money.
- 23:50And now you do have that cold storage and hot storage
- 23:54available. So you could put it into hot
- 23:56storage. I think I've seen customers do a
- 23:58hot storage of like 12 months, like a year of hot storage.
- 24:01That way it's available and then you can also do cold storage and
- 24:05archive it away and then load it in when you need to and you can
- 24:08have the cold and cold storage is by far fractions cheaper than
- 24:14the hot storage. OK.
- 24:16So let's talk about once you have the data in, now we want to
- 24:21alert off of the data. And I'm curious your
- 24:26architecture thoughts and how you've deployed Henrik, because
- 24:31there are built in analytics rules, but they're not all
- 24:33turned on. And so you had mentioned in the
- 24:35beginning that you had a GitHub where you deployed analytic
- 24:40rules. So you must have tuned it at
- 24:41some point and got got it and so that you can just, you know do a
- 24:46a GitHub. How did you get that stood up at
- 24:50first? Well like like all new tools and
- 24:57my background is from sys admin side so we perhaps switched on
- 25:04all the basic alerting rules, all the building ones which was
- 25:10fine at first right? But then as time goes by and
- 25:17alert fatigue starts to sit in on the sock because of all the
- 25:21false positives. Yeah, it's it's not recommended
- 25:26to turn off stuff that sounds great.
- 25:29Oh, we need that. It's a high one.
- 25:31It's a medium. It's a low.
- 25:33So we just turned it. We turned on everything right,
- 25:36and then the sock got wasted in alert fatigue.
- 25:41So we had to trim it. After that we should probably
- 25:44have use the best practice or threat intelligence right?
- 25:49What is what is going after our sector in our country and stuff
- 25:55like that instead of just something that probably will
- 25:57never happen. And we have learned that the
- 26:01hard way, because we had to build actually playbooks to turn
- 26:05off some of the things or to auto resolve them quickly
- 26:09because it was insane. All the events, you get in and
- 26:12you yeah, you, you drown an alert.
- 26:16Yeah. And so when you turned on the
- 26:20analytics rules to begin with, you just went through the GUI to
- 26:23turn them all on essentially. Yeah yeah because click it click
- 26:29and we were spinning up right and and that's why the the
- 26:32GitHub repo came one year later and that then it worked also
- 26:39great but then if people change jobs and stuff like that so
- 26:44sometimes knowledge get lost and yeah so let's just say we are
- 26:49really happy to see workspace manager at this point of time
- 26:54regarding to our situation at the moment.
- 26:56So we're really. Yeah we have tested it out and
- 27:00hoping that it will solve it because we, we, we, we know now
- 27:05it's like buying a house, right. For the first time you don't
- 27:08know what you're walking into. Then after if you buy the
- 27:11second-half, you know exactly what to look for.
- 27:14It's with the same with Sentinel I would say because the.
- 27:18First time, do you also have any scheduled queries that are built
- 27:23into your alert rules? Yes, tons of them.
- 27:27Yeah. Thank you.
- 27:28Can you explain the difference between like a schedule query
- 27:32and some of the built in analytics rules?
- 27:34Yeah, so the schedule query right is a KQL query that runs.
- 27:40It can run hourly, daily, or yearly or weekly I believe it
- 27:45is, and it automates a process. It looks into the log data where
- 27:51it actually sees. Hey, there's something
- 27:53mysterious here. Maybe you should look into this
- 27:58That that's our scheduled courage when they run on items
- 28:02that don't need to be checked on immediately, right.
- 28:07So yeah, versus defender for the isolation rule, the when a
- 28:15machine hits high or medium alerts and Defender for
- 28:19endpoint, it sends the immediate signal over to the Sentinel part
- 28:23where it's where the playbook instantly kicks in and just
- 28:26isolates the machine right away. With the BI directional sync I
- 28:31believe it is, yeah, that's not a scheduled career.
- 28:35That's actually a rule, right? It is, yes.
- 28:40OK. And so as part of the analytics
- 28:43rules, there's also a portion that is UEBA or the user
- 28:50analytics based rules, the behavior based and it's fairly
- 28:56simple to turn on. I don't know why anyone would
- 28:59not turn it on, but when you turn this on it gives you, you
- 29:04know, a lot more signal. Have you used the UE BA stuff
- 29:07within Sentinel at all? Yeah, we we have it turned on as
- 29:10you said because why wouldn't you have the, what's it the user
- 29:14and entity behavior, right Analytics from what I recall.
- 29:19And yeah it it keeps track of users.
- 29:23Actually, hey, this user is acting not normal.
- 29:26Please investigate. I guess that's a good thing,
- 29:29right? Yeah, it can be.
- 29:31It can be users or entities, right?
- 29:33So it's that you said you said entities, so it could be
- 29:36endpoints, it could be identities, You know non user
- 29:41entities, right? Service principles.
- 29:44Service principles, Yeah and yeah.
- 29:47So you can click into these and then connect them to different
- 29:50incidents and look at, you know what's exactly going on with
- 29:53this user and dive into the specifics of each one.
- 29:57So very helpful, I think, and a big part of Sentinel, but you
- 30:03actually need to enable it, which I think is kind of funny.
- 30:06So yeah, definitely do that. You know, going back to the
- 30:09scheduled queries for a second too.
- 30:11One thing Henrik mentioned is their KQL based or the Cousteau
- 30:15query language. And if that gives you nightmares
- 30:18trying to figure out how to write KQL, one thing to be aware
- 30:22of is the upcoming Copilot for security.
- 30:26Note the new name, by the way, copilot for Security.
- 30:30One of the major features of that will be that natural
- 30:33language ability to describe what you want in a query and it
- 30:37will generate it for you and then you can validate that it's
- 30:40correct and then you can use it moving forward.
- 30:43One of the use cases we see that's going to be very valuable
- 30:47for Copilot for Security will be using it with a junior analyst.
- 30:51Folks who don't have as much experience in the business to
- 30:54this point still being able to be really effective because they
- 30:58may know what they want to do and they can describe it in
- 31:00plain language, natural language.
- 31:02They just might not be able to know how to write in exactly
- 31:05that query language yet. So that's one of the ways if if
- 31:09that again gives you pause, a way to get over that hump coming
- 31:13soon will be Copilot for security and can help with that
- 31:16and of course many other things too.
- 31:17There's also built in queries as well in Sentinel and so they can
- 31:23give you a start of maybe what you're looking for.
- 31:27And then also on the Defender side there is a GUI based where
- 31:33you can do drop downs and form a query based on just drop downs.
- 31:38So you don't necessarily need to know the language.
- 31:41Now of course that only looks at M365, but you can use it as a
- 31:45basis if you're not sure where to start, copy the query over
- 31:49into Sentinel and then modify it to what you want as well.
- 31:52So definitely take a look at those.
- 31:57OK. So Henrik, you had mentioned
- 32:01that you had some alert fatigue when you initially deployed the
- 32:06analytics rules. And so part of how you solved
- 32:10that was actually forming some playbooks to kick off and auto
- 32:13resolve some incidents so that you're essentially reducing the
- 32:17number of incidents or alerts. And that's that's one of the
- 32:21things that you can do as far as automation.
- 32:24So kind of talk through how that actually works, like what are
- 32:28the specifics of the playbook when something prompts and then
- 32:31what does it actually do? I can mention one of the the
- 32:34rules that was running every time MSPM is running in the
- 32:41tenant, it will give an an alert that this user has been
- 32:47elevated. And let's just say if you have a
- 32:50lot of PIM users it will we have like 200 elevations by PIM every
- 32:56day because people get these privileged.
- 32:59So I need to elevate and and that was really annoying to see
- 33:05that we had 200 incidents in Sentinel by PIM, but it was
- 33:10grouping them but we had yeah, then the SARC came and said hey
- 33:15we need to fix this because it's just noise right?
- 33:18And we're drowning so please fix it.
- 33:21So we we did it resolved. But what we probably should have
- 33:25done instead was to look at the alerting and actually just does
- 33:30it give value? I guess if it's.
- 33:34Yeah, the alert rules need to give value, right, for your org.
- 33:38And and that's probably not what we have done to start with, but
- 33:41that's what we are working on at the moment.
- 33:43Now because we want to trim it. I I believe every org needs to
- 33:48trim it for their needs because the.
- 33:51Yeah, you you just need to customize it for your needs
- 33:54because the banking sector in Denmark is probably targeted by
- 33:59whatever out in the world, right.
- 34:02Compared to a car dealership in Denmark, it's probably not the
- 34:07same baddies going after us, I guess.
- 34:11Yeah. So you have a specific example
- 34:15of a role PIM, which is Privileged Identity Management.
- 34:18So users are elevating it and that kicks off an alert.
- 34:21And you said the keyword I think which is really important, it
- 34:25didn't really provide value because there's so many alerts.
- 34:28You're getting 200 of these alerts.
- 34:30They're not necessarily malicious because they're part
- 34:34of your operational daily things.
- 34:36People are elevating to do certain tasks and so you can use
- 34:41a playbook to do many different things.
- 34:43One of the things is auto resolve and so it just closes it
- 34:47out. The data is there.
- 34:49If you ever need to go back and look at it, yes, just
- 34:53understand. I think from a risk perspective,
- 34:57you are accepting the risk that if a privileged user gets
- 35:01compromised and then elevates, you're not going to necessarily
- 35:04see that specific alert. You would hope it would get
- 35:07caught somewhere else, probably in the identity stack, maybe as
- 35:12a risky sign in or something like that.
- 35:14But you accept a tiny small risk just because the volume of
- 35:20alerts is so great that it's overwhelming and so you can auto
- 35:24resolve. You can also do other things,
- 35:26like when you see a specific alert that has an IP address,
- 35:31you can auto look up that IP address to see if there's any
- 35:35Iocs associated with it from a threat intelligence source and
- 35:39then toss it into the notes section.
- 35:42Or you can auto assign an event to a specific analyst or a
- 35:49security group or something like that.
- 35:51There's a lot of different things you can do with the
- 35:53playbooks as far as the store and automation goes.
- 35:55Have you taken advantage of any of those, Henrik?
- 35:58Yeah. So actually we played around
- 36:01with what's it called the widgets and Sentinel, right, the
- 36:05enrichment widgets, I believe it's called where we could every
- 36:11time we see an IP address, we could do AAPI call to Virus
- 36:14Total or Recorded Future, I think it was.
- 36:19We looked into that because yeah, as you just mentioned, who
- 36:22knows this IP address, What is that?
- 36:25Then we have to do who is and stuff like that.
- 36:28Or it was just a nightmare before all this automation now
- 36:31with the widgets? Yeah.
- 36:33I got a lot of customers who are like, well, I could just go to
- 36:36Virus Total and look it up or do something else.
- 36:38But it's really nice when it's automatic and it does it for you
- 36:42and it's already in the notes. When the alert happens, there's
- 36:44an IP address associated with it.
- 36:46You go right to the notes and it can say, OK, this is a good IP
- 36:49or this is associated with malicious behavior.
- 36:51You know, so on and so forth. Precise precisely.
- 36:55Yeah, it's the same thing with Copilot for security, which Adam
- 36:58had mentioned on the KQL stuff. You can ask it questions in
- 37:04natural language to form you a AKQL query.
- 37:07And then I had some customers say, oh, well, I could just do
- 37:10that in Google or something like that.
- 37:12Yes, you can and it may work, but it's a lot easier to do it
- 37:17when you're already in the portal.
- 37:18You don't have to pivot to something else as well as it
- 37:21looks at your data within your tenant rather than just a
- 37:26generalization of what a KQL query might be, right?
- 37:30Yeah. Do you have any workbooks?
- 37:32And cuz there are workbooks within Sentinel and there are
- 37:36playbooks and I think there's a distinct difference between the
- 37:41two. Playbooks I think are ones that
- 37:44are run. You know, as far as you you can
- 37:46manually kick off a playbook too.
- 37:49We didn't mention that. But it you can automate A
- 37:52playbook where it does the certain actions that we talked
- 37:54about. You can also manually have
- 37:56playbooks to run. For example, like when you're
- 38:00looking at an incident, there can be multiple playbooks that
- 38:02you say I want to run this one or I want to run this one.
- 38:04A A playbook could simply just be.
- 38:07I wanted to send a team's message to this channel to
- 38:11notify the team that there's this incident.
- 38:14It could be as simple as that, right?
- 38:15It could be send an e-mail out to this DL, but that's not what
- 38:20workbooks do. Do you have any workbooks in
- 38:23your organization? Yeah, quick when we just
- 38:28mentioned the playbooks, actually funny you mentioned
- 38:31sending it to teams. We had an incident where some a
- 38:36department in our company wants to know every time a machines
- 38:40gets isolated and then we had to you can in Sentinel create a
- 38:44playbook that sends the e-mail but yeah you can but you are
- 38:49going to need a managed identity to actually send the e-mail or
- 38:53the message to the to the teams channel right.
- 38:57A managed identity that's not a feature saying send e-mail and
- 39:00Sentinel will automatically fix it in the background.
- 39:03You have to, yeah. You have to assign it the
- 39:06service principle. If you use a Managed Identity
- 39:08AP1 license for Exchange Online and it just became a nightmare.
- 39:12Just can't you guys just go into poll or just go in and look.
- 39:17It was a lot of work just to notify somebody on the Sentinel
- 39:21part when some some alert was triggered, right?
- 39:26Yeah, yeah, I yeah, sorry, mini rant.
- 39:30That's. OK.
- 39:32Yeah, workbooks. Actually we we do it for
- 39:36firewalls. The actual firewall one we have
- 39:38a workbook for that, which is actually one of the more awesome
- 39:44ones because firewalls have a lot of data, right?
- 39:48And visualizations and we have created a lot of dashboards also
- 39:52where we also use a lot of workbooks in where we switch
- 39:57between, we have a central screen and our team where we
- 40:02switch. Well, the plan is we have to
- 40:04switch now it's manually we switch between the workbooks on
- 40:08the dashboards. But working on it, we're going
- 40:13to have it switch every tab in different workbooks because
- 40:17there's so much. Information, right?
- 40:20If you want to see user sign insurance and stuff like that,
- 40:23you want to see some firewalls and then you want to see the
- 40:27Azure keywords, how many sign insurance and stuff.
- 40:31That's a lot of data that needs to be presented and we need to
- 40:34figure out which actually gives us value in our org.
- 40:37And we're also working on that because you can throw a lot of
- 40:42stuff on the dashboard, right? But does it actually give any
- 40:45value? Yeah, I think you mentioned the
- 40:47keyword there, which is visualization and that's what
- 40:51workbooks are really good at is being able to visualize your
- 40:54data in a graphical form, which I think is good for strategic
- 41:02views and kind of getting an overall view of where data is
- 41:05trending. It's usually what I would use as
- 41:08far as if you needed a slide for AC suite briefing or something
- 41:12like that. But they can take your data and
- 41:16on the back end of these workbooks is essentially just a
- 41:19KQL query. And you can modify that KQL
- 41:24query, which I'm not sure a lot of people know, but you can go
- 41:27into these workbooks, go into the KQL query, modify it for a
- 41:31specific period of time or specific users, security group,
- 41:36whatever it is that you want to look at because it has built in
- 41:39workbooks that you have that you can use as a basis.
- 41:42And then of course you can go and modify the views.
- 41:44If you want it as a bar chart instead of a pie chart, you can
- 41:48do that. And so workbooks are really good
- 41:51at visualizing your data. They don't run anything like a
- 41:56playbook does. They're just there for looking
- 42:00at data trending and your current data.
- 42:03And so I think what you said, Henrik was really good is it's
- 42:07visualizing and then you've got to find what is useful to your
- 42:10org and figuring out you know what is important to display for
- 42:16the each individual workbook. We actually did at the start,
- 42:20when Legacy Protocols was still something connecting to Exchange
- 42:24Online. We used the workbook for that
- 42:26one to see how many insecure Legacy Protocols there was
- 42:30connecting to our Exchange Online.
- 42:32That was funny to see. And thank God we stopped all
- 42:35that Legacy stuff. Yeah, there's a ton of different
- 42:38workbooks that are already built in.
- 42:40You can look at some simple things like your subscription
- 42:45costs, you know, like where are your subscription costs for
- 42:48Azure? For Sentinel, you can look at
- 42:50things like identity, sign insurance, what identities are
- 42:54using conditional access, which identities are not using
- 42:57conditional access, what apps are getting accessed without
- 43:00conditional access, you know, so on and so forth.
- 43:02There's There's workbooks for a ton of different ones.
- 43:05There's also I think some community githubs that have
- 43:10workbooks that you can import. You can import custom workbooks.
- 43:14You can create your own workbook if you really want to.
- 43:16Like I said, it's just a KQL query on the back end.
- 43:19So you could say for example look at one of the built in
- 43:23ones, take the query on the back end and then create your own
- 43:26maybe like. All the different things are not
- 43:28exactly what you want. You want to create an aggregate
- 43:30of multiple different workbooks, you can do that.
- 43:32You can just take the KQL query from 1:00 and pop it into
- 43:37another workbook and it's just one pane of that workbook,
- 43:41right. All right.
- 43:42So really the last thing that I wanted to go over is the
- 43:47advanced hunting, which we touched on a little bit
- 43:50throughout. But obviously if you're really
- 43:54into kind of that threat hunting, you can look at the
- 43:59different KQL queries we mentioned some of the built in
- 44:03ones and if you're also you know we mentioned that we could use
- 44:08different sources like Security copilot.
- 44:10You can also use like Bing Enterprise to ask the questions
- 44:13in natural language to come up with a KQL query.
- 44:16But that's how advanced hunting works.
- 44:20Henrik, what has been your experience as far as hunting
- 44:23goes? Have you done any hunting within
- 44:25Sentinel or or really used any of the the KQL stuff?
- 44:29I have probably stolen from stack Stacko or googled it and
- 44:36and copied it in and I got the and then mingled it right before
- 44:41the copilot era because we're not allowed to use check GPC in
- 44:46our company so we had to. It's the manual way.
- 44:51We just got Copilot, so I can't, I can actually ask it now, but
- 44:57but yeah, I have put them together myself, but it's not my
- 45:01role actually to advance fund. We have a sock for that, so.
- 45:04Yeah, very good. Yeah, you're more on the
- 45:06architecture side. Right.
- 45:08I I hope. I I also like to get my hands
- 45:12dirty. I I like to see it.
- 45:13I I have my own instance with my own sentence and my own Sentinel
- 45:17stuff. I'm curious what your experience
- 45:20has been with copilot for security.
- 45:23You said you just got it. Sorry, we only have the Ms. 365
- 45:29and I'm still waiting on the getting I yeah, I have asked to
- 45:34be in the preview for the other one, but there's a mix up with
- 45:39our tenant IDs and subscriptions at the moment.
- 45:41I'm working on it because that that it's really, it's going to
- 45:46be great. OK.
- 45:47So you have the M365 copilot and and that has been.
- 45:51The Bing one the the Bing Enterprise.
- 45:53I believe it's renamed to something else now.
- 45:57Yep, that's just Microsoft Copilot now.
- 45:59Yeah, yeah, yeah. I I only have tried the team sum
- 46:03up. Now that's that's maybe the
- 46:07killer app of it Is that be able to walk into a meeting and say,
- 46:10what did I miss? Yes, yeah, it's brilliant.
- 46:13I use that all the time so or the the e-mail one, where you
- 46:17can ask it to help you tone down the e-mail or I can't remember
- 46:23what it what it language it uses at on there's the, there's the.
- 46:26Coaching One, which will coach you on the e-mail.
- 46:28And then there's the one to help you draft the e-mail, too.
- 46:30Yeah. Right.
- 46:31Yeah, I do like the coaching one because sometimes when you're
- 46:35when you're banging out an e-mail and you hit the thing and
- 46:38they're like, this sounds a little hostile, here's how you
- 46:42can tone it down. So.
- 46:45Yeah, that's great. All right.
- 46:47Well, that's about all we had for our listeners.
- 46:50Anything you wanted to add, Henrik?
- 46:53As far as your brand, you know where to reach you if you have
- 46:55questions. Yeah, you can find me on
- 46:57LinkedIn and on Twitter. XI mean X.
- 47:02We can call it Twitter. Yeah, yeah.
- 47:06It's a whole new ballpark. The whole MVP.
- 47:09I'm still getting used to. It yeah.
- 47:13Do you have a blog or anything like that or website?
- 47:16No, no. I write articles on LinkedIn
- 47:21occasionally. All right, Yeah, that's perfect.
- 47:25And then I attend the CCP program a lot.
- 47:28I loved testing out new features.
- 47:30Yep. And that's how that's how we got
- 47:32involved here with the podcast was the the customer connection
- 47:36program, the CCP. And so we'll have all the links
- 47:40to contact Henrik in the show notes and as well as the links
- 47:44that we talked about documentation for all the topics
- 47:47we talked about today. That's our show for this week.
- 47:49Thanks for listening and watching.
- 47:51As always, our contact information, me and Adam will
- 47:54also always be in the show notes as well if you have any
- 47:57questions or topics you wanted to talk in the future.
- 47:59Thanks. We'll talk to you guys next
- 48:00week. Thank you for listening to the
- 48:02Blue Security Podcast. Please check out the show notes,
- 48:05catch up on episodes you may have missed, and subscribe so
- 48:08you don't miss any future episodes.
- 48:10Find Andy on Twitter at a Jaw Zero and Adam at AJ Brewer.
- 48:14See you at our next episode.