Latest / Blue Security / Microsoft Deputy CISOs, Defending Identity Attacks
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 JA and Adam Brewer.
- 0:22Welcome to this week's episode of the Blue Screen Podcast.
- 0:24I'm Andy, your host. I'm Adam, your Co host.
- 0:27So I wanted to start off and talk about this blog that
- 0:32Microsoft has put out, talking about the Cybersecurity
- 0:36Governance Council that was actually formed in 2024.
- 0:39And they're introducing these named members in this blog
- 0:42series, which started in April of this year.
- 0:46And then the latest one, there's been three of them so far.
- 0:48The latest 1 was just a few days ago.
- 0:51And it talks about each one of these members, what they're
- 0:55responsibilities are and their goals and priorities as part of
- 0:58being in this governance council.
- 1:01And what's important to remember is we have a seaso at Microsoft,
- 1:07right? A seaso who was named, who
- 1:08reports to Charlie Bell, who directly reports to Satya
- 1:12Nadella and Arciso is Igor Sagansky and he is in charge of
- 1:19the office of the Seaso. And now we have this governance
- 1:22council which have named deputy Cisos.
- 1:26And these deputy Cisos, that's not their day job.
- 1:28They, they have a day job and, and we can talk about what their
- 1:31day job is, but then they also have this secondary
- 1:35responsibility as a deputy CISO to look at additional threats
- 1:40specific to their area of expertise to guard against
- 1:45threats that might be things that would secure Microsoft
- 1:49solutions, Microsoft platforms, the company itself or the
- 1:53customers. And so before we dive into that,
- 1:56since we are talking about Microsoft and the things that
- 2:00are involved in Microsoft, we usually have a disclaimer that
- 2:03we'll go through and add them, if you will.
- 2:07Or do the honors? Yeah, absolutely.
- 2:09So Andy and I both work for Microsoft.
- 2:12We work in our field security sales organization in different
- 2:16parts of it. However, we do this show outside
- 2:19of work on our own time and self fund the show.
- 2:22We're very appreciative that Microsoft has a very generous
- 2:25social media policy that allows us to do a show and express our
- 2:28own interests and opinions without direct oversight or
- 2:32editorial control from our employer.
- 2:35We recognize not everyone has that opportunity and we're very
- 2:38privileged and appreciative of it as a result of that.
- 2:41We don't take that privilege lightly and of course want to
- 2:44maintain the good graces of our employer.
- 2:46However, we think cybersecurity is something we should always be
- 2:49looking at through an academic lens.
- 2:51That is, what are the facts? What can we learn from it, how
- 2:53can we grow from it, and what can we share with our listeners
- 2:55and viewers. And so that's the lens through
- 2:58which we bring these conversations to you is we think
- 3:02this is interesting, We think there's value, we think there's
- 3:04something to learn from it, and you can too.
- 3:06However, we just want you to be aware of any potential conflict
- 3:10of interest. We, of course, try to again,
- 3:13evaluate things fairly and without bias or or other undue
- 3:18influence, but we think our listeners and viewers should
- 3:20know where we work and who signs our paychecks.
- 3:23So with that, Andy, let's get on with it and talk about this
- 3:28Cybersecurity Governance Council at Microsoft and the deputy
- 3:31CSO's that make it up and and some really good advice and
- 3:34interesting takes from them. I think there's some really
- 3:37interesting stuff here and I'm excited to get into it today.
- 3:39Yeah. So each one of these blogs, and
- 3:41you know, we're just going to go over the first one here and
- 3:42that's important because one of them is the deputy CSO for
- 3:46Identity. You know, maybe in other
- 3:48podcasts we'll talk about the other ones.
- 3:50But these blogs for the Cybersecurity Governance Council
- 3:54is AQ and a, they do like an interview and then they record
- 3:57their answers here. So really good questions, some
- 4:00really good answers. But in this first one, they
- 4:03introduced Yontan Zunger, who is a corporate vice president.
- 4:06He's the deputy Cecil of artificial intelligence.
- 4:10And his job is to really try to think about all the different
- 4:12ways in which AI can go wrong, make sure that Microsoft has
- 4:16good, thoughtful plans for each one of those things, and then
- 4:18develop the right tool so Microsoft can design and run the
- 4:21right incident response for AI issues.
- 4:24Igor Sanknoff is the CVP corporate vice president and
- 4:28deputy for Deputy C so for identity.
- 4:32And so he his day job is actually the CVP of engineering
- 4:36for identity. He reports to Joy Chick, who is
- 4:38the president of identity and he leads the data and platform
- 4:43engineering along with business facing initiatives.
- 4:45But then since this governance council was formed in 2024, he's
- 4:49also serving as that deputy Cecil focused on identity
- 4:54related risks. I thought it was super
- 4:56interesting that we have an entire deputy Cecil dedicated to
- 5:01just identity risks. I know that like identity has
- 5:04been this thing that we've talked about in security for so
- 5:08long, yet it is still top of mind as a threat vector, as
- 5:13something that needs to be, you know, a whole person dedicated
- 5:17to it on the Cybersecurity Governance Council here.
- 5:20And then Mark Rostovich, who is the sorry, how do you say it?
- 5:24Russinovich. Russinovich, Mark Russinovich,
- 5:27who is the Azure CTO, he's the Chief Technology Officer and
- 5:30he's the deputy C so for Azure. So in his role, he he looks at
- 5:36and he works with a large team to identify and resolve security
- 5:39risks that come up and evolve under the Microsoft Azure
- 5:43umbrella, the core operating system itself, the groups that
- 5:46make up the core engineering systems that the entire company
- 5:49depends on. And in these cases, Microsoft
- 5:51wants to mitigate these risks so that they're durable.
- 5:55And once they're done, the system stays in place and
- 5:57doesn't have to be revisited each year.
- 5:59So that's the, you know, the three that were introduced in
- 6:02this first blog series. And as I read through this, you
- 6:07know, one of the things which I thought was a really good take
- 6:10on the question was what are some of the biggest
- 6:13cybersecurity misconceptions that you encounter?
- 6:17And Igor replied, the desire to make the perfect solution.
- 6:21This is why Assume Breach is the mindset I cultivate with my
- 6:24team. We must focus on protection at
- 6:27all costs, but we should expect that any protection will be
- 6:30circumvented. How we detect, reduce, impact
- 6:35and mitigate in the shortest time is top of mind.
- 6:38Mark replied The assumption that unless you prove to me something
- 6:42is not secure, it is secure. You, of course, must invest in
- 6:46protection. And Microsoft has said for close
- 6:48to a decade now that you have to assume any system can and will
- 6:52be breached, so you have to minimize the impact and increase
- 6:55how you detect and mitigate those breaches.
- 6:57And Yon Tan replied the idea that security, privacy and
- 7:01safety are three distinct things.
- 7:03They're not. If you seen a security team say
- 7:06that sounds like a privacy problem and a privacy team say
- 7:09that sounds like a security problem, nobody fixes it.
- 7:12And you know where the story ends.
- 7:14Artificial boundaries like these are factories of nasty
- 7:18incidents. You know, Mark and Igor kind of
- 7:21have the same blended idea where you have to assume breach and
- 7:26then you have to focus on that mitigation.
- 7:29You know how you respond to that?
- 7:30And then also Yon Tan, I just thought it was great that like,
- 7:33you know, someone says, OK, it's not my job.
- 7:35Another person says it's not my job.
- 7:37And all of a sudden now it's nobody's job.
- 7:39And that's how things happen. So someone has to step up and
- 7:43say, OK, let's, let's get this done.
- 7:45So anyways, I thought that was really good.
- 7:47You can read through the entire blog.
- 7:50You know, we'll have the link in the show notes.
- 7:52They have some really good insights.
- 7:53And we're going to focus really on Igor's job because he
- 7:56published A blog that we're going to talk about in this
- 7:58incident in this episode about evolving identity techniques.
- 8:03This is really interesting and I'm glad you shared this, Andy.
- 8:06And if you've heard us talk about either on this show or
- 8:10other Microsoft people talk about the Secure Future
- 8:13initiative or SFI, this is one of those things that came out of
- 8:18that initiative was the creation of the Cybersecurity Governance
- 8:21Council of the Deputy Cecil role as a secondary role in addition
- 8:26to their day jobs and bringing them together to provide those
- 8:30unique domain specific threats. And I find it really interesting
- 8:33and something we can take away from this as our viewers and
- 8:37listeners. Take for example, Igor Sakhinov,
- 8:40who is that CVP of identity engineering and then also has
- 8:45that secondary role of deputy CSO.
- 8:47Who better to understand the threats facing identity than the
- 8:51person engineering the identity platform?
- 8:54And that is exactly the kind of mindset we need to cultivate
- 8:58across all our organizations is security isn't just the job of
- 9:02the security team, it's everyone's responsibility.
- 9:05It's the shared responsibility of everyone at the organization.
- 9:09I always harken back to one thing I love about the Delta
- 9:12airline safety briefing is when they talk about safety, they say
- 9:16it's the number one responsibility of the captain
- 9:18and crew, but also the shared responsibility of everyone on
- 9:22board the aircraft, which is 100% true.
- 9:25You need all the passengers to participate if you have an
- 9:29evacuation. If people are trying to pull
- 9:30stuff out of the overhead bins, it's going to slow the
- 9:32evacuation and make it unsafe, as an example.
- 9:35Everyone has to participate. Same with cybersecurity.
- 9:38And so I love that they're literally asking a gentleman
- 9:43who's responsible for engineering the identity
- 9:45platform, what are the big threats we need to be concerned
- 9:47about? What do we need to be protecting
- 9:49against? What should we be watching for?
- 9:51And we're building that thinking about securing the platform as
- 9:56we're engineering the platform. And that should be in everything
- 9:59you build in your organization and what you do at your
- 10:02organization. People building new solutions,
- 10:05people creating solutions or modifying solutions, always
- 10:08thinking about how do we secure this solution by design and by
- 10:13default. So I love that mindset that this
- 10:15cultivates. And then I find it interesting
- 10:18that as they interviewed these three gentlemen, that Igor
- 10:21Sakhinov and Mark Russinovich both gave more or less the same
- 10:24response. And I sincerely doubt each one
- 10:27was aware of the other's response.
- 10:29They were independently interviewed and they happen to
- 10:32give very similar responses, which they both talk about
- 10:37effectively. I love Russinovich's comment on
- 10:40just because you can't prove something's not secure doesn't
- 10:43mean it is perfectly secure. Effectively, you should assume,
- 10:47as we say, assume breach, assume breach.
- 10:48We've been saying that forever. But what's that really mean?
- 10:51It means we should look at every solution and look at it with
- 10:53that critical line and say, you know, there's probably a
- 10:56vulnerability in here. There's probably a way to bypass
- 10:58this. This is not bulletproof
- 10:59solution. So how do we create defence in
- 11:02depth? How do we increase and speed up
- 11:05our time to respond and our time to mitigate?
- 11:07And how do we do that at the speed and scale we need to be
- 11:11protect our organization? And those are great questions to
- 11:14ask. And Igor's mindset as well was
- 11:17the same thing. Everything will be circumvented.
- 11:19So think outside of that instead of well, we're on Crowdstrike so
- 11:23we're good, you know, they're the best we've got.
- 11:26Cybersecurity has been solved. Instead think about, OK, well,
- 11:28if that doesn't work, then what do I do next?
- 11:31What are my other detection methods?
- 11:32What is my defense in depth? How do I do I detect identity
- 11:35based threats, so on and so forth.
- 11:38So just really great overall food for thought here from
- 11:42leaders who see some really creative and novel attacks and
- 11:45the kind of mindset they cultivate amongst their teams.
- 11:48Really, really valuable to understand here.
- 11:50So great stuff and excited to dig into this identity stuff
- 11:53more because for long time listeners of the show, you know,
- 11:57if there's a sweet spot for both Andy and I, we love the identity
- 12:01stuff and we think it's still basically the front door to most
- 12:05attacks. And so it is where we should put
- 12:07most of our engineering effort in hardening and securing our
- 12:10organization. So let's get into it.
- 12:12Yeah. And and then one final thought,
- 12:14just on the cybersecurity council.
- 12:15I I thought this was just an interesting concept that
- 12:19organizations could have because, you know, you could
- 12:23make your own cybersecurity council in your own company.
- 12:27100%. You can look at areas that you
- 12:31know while the CSO or whoever is in charge of security is in
- 12:34charge of the overall security. You can bring in people for
- 12:38council that are experts in their own domain.
- 12:42Maybe you're hosting things on AWS.
- 12:43And so you have the person who's, you know, chief of
- 12:47engineering for AWS and you you bring them in on this council
- 12:51and say, OK, you are obviously in charge of maintaining the
- 12:55platform, maintaining availability and making sure
- 12:57that everything stays running. But what are you doing?
- 13:00You know, how are you securing that?
- 13:02Essentially the question how, what could you do more or how
- 13:06are you afraid that, you know, someone could bring down the
- 13:09platform from a security aspect, right.
- 13:12Physical security could be one thing, you know, customer
- 13:15experience or whatever. So like each area you can bring
- 13:18in someone into their council. And I think we've long talked
- 13:21about something like this, maybe security champions, but that's
- 13:25like pushing security initiatives out, I think whereas
- 13:30this is, you're bringing in people who are experts in their
- 13:33domain and then you want to have their opinion heard on, you
- 13:38know, how they can secure their area of expertise.
- 13:41So I I think this is something that easily you could do at your
- 13:44own company. And should do, right?
- 13:46I mean, this is a terrific idea. And I've worked with a lot of
- 13:49cybersecurity teams and they're very bright individuals.
- 13:53But one thing we have to adopt as cyber security professionals
- 13:57is that growth mindset that learn it all, mindset that we
- 14:00cannot possibly know everything. And so asking for help is not a
- 14:04sign of weakness, it's a sign of strength.
- 14:06And so when we bring in folks from other parts of our
- 14:09technical organization and learn from them and learn what keeps
- 14:12them up at night, what are they concerned about, and we build
- 14:15that into our overall security practice.
- 14:18We're only going to be stronger as a result of it.
- 14:20And we just can't know it all. There's things you just have
- 14:23very little visibility into you've line of business
- 14:25applications probably being developed in your in in your
- 14:28organization. And maybe you do have someone
- 14:31who really cares about software development like life cycle and
- 14:33securing that. But you can still learn from
- 14:37them. You could still learn from the
- 14:38identity folks. A lot of cybersecurity folks are
- 14:40not super comfortable with identity.
- 14:42So bring them in. And this is just a great idea
- 14:44that everyone can adopt and implement in their own
- 14:47organizations. All right, so let's get into it
- 14:49here. Igor Segnav published this blog
- 14:52about defending against evolving identity attack techniques, and
- 14:56I read through this whole thing and it is phenomenal.
- 14:59A lot of what he publishes here is a direct result of Microsoft
- 15:05threat intelligence, seeing advanced threat actors, nation
- 15:09state threat actors using these techniques.
- 15:12And so there's a lot of threat intelligence in here on what
- 15:15type of attacks they are, who's using them.
- 15:18And then he has a whole section on how to protect and secure
- 15:21against this stuff. Right off the bat, before he
- 15:24even gets into it, he talks about fish resistant and
- 15:27passwordless solutions like passkeys.
- 15:30And that is something, you know, like we've obviously harped on
- 15:32MFA for a very long time and there are still organizations,
- 15:36if you can believe it, they're not 100% protected with MFA.
- 15:41We've evolved beyond that. Now, like I would probably go as
- 15:45far as to say as it is a, it is a requirement to be on fish
- 15:50resistant MFA like everyone should be on pass keys.
- 15:53If you already have MFA deployed, it's trivial.
- 15:56You just register that same device as a pass key and you're
- 16:00good to go. And then with, you know, your
- 16:03privileged accounts, your admins, you use, you know, the,
- 16:07the Fido 2 keys, the, the actual physical keys that are that are
- 16:11required. So I would go as far as to say
- 16:13that that is a requirement, especially with, you know, he
- 16:16gets right into like adversary in the middle phishing as a
- 16:19service. Evil Jinx being open source, You
- 16:22know, we did a whole episode on Evil Jinx.
- 16:24Very early on, one of our first shows, yeah.
- 16:27And so you know with that type of threat vector, you have to
- 16:32have fish resistant MFA these days.
- 16:35Yeah, So I, I, Andy, that's such a good take.
- 16:38And I don't know if I've seen someone put it so succinctly and
- 16:41it's it's spot on at this point. I'm with you.
- 16:44Like password plus MFA, at this point I perceive that as as weak
- 16:48and old school. Like not only is that table
- 16:51stakes, like that's yesterday's table stakes, like today.
- 16:54You should have a plan in place now, now yesterday for how you
- 17:01are going to get to 100 persistent 100% fish resistant
- 17:05MFA across your organization. Like if you do not have that
- 17:09well down the planning and implementation phases, get on
- 17:13it. Like at this point, there is no
- 17:17effort you could undertake that delivers more security value
- 17:21than that. There's nothing you can do that
- 17:23will harden your organization more than that.
- 17:25So just get on it. Like you can do all these
- 17:28fishing exercises and teach people not to click links and
- 17:30teach all these things, or you could just fix the problem,
- 17:34right? Like it's one of those I, I love
- 17:36the way Igor put it and you put it like, just let's, let's do
- 17:39it. I recognize there are some
- 17:41challenges, but really today it's generally available in the
- 17:45Microsoft Authenticator app. If you're already using
- 17:46authenticator app and number matching and the password less
- 17:49technology, it's just a different password, less
- 17:51experience with a one time enrollment.
- 17:54And it's, it's effectively for most end users, they don't
- 17:56really see it as any different. But you know, it's, it's
- 17:59actually dramatically different and dramatically more secure.
- 18:02And so, you know, we're talking about using the the fish
- 18:07resistant, but also, you know, have some sort of risk based
- 18:10conditional access policy, right?
- 18:12So we, we at Microsoft talk about conditional access as a
- 18:15condition to authentication. So you must satisfy this
- 18:19condition. And obviously there are a ton of
- 18:22different static base conditions that you can have.
- 18:25MFA being primarily if you're using ENTRA or any other IDPMFA
- 18:31of course is the first condition.
- 18:34It shouldn't be at this point, the only condition to get in.
- 18:39You should have other conditions.
- 18:40Maybe it's signing in from a trusted IP.
- 18:44Again, that should not be the only condition and should also
- 18:48not be a condition where you disregard something else, right?
- 18:53So like if I come from a trusted IP, don't use MFA, that is a bad
- 18:58idea. So there should be multiple
- 19:00conditions that have to be satisfied coming from a trusted
- 19:04IP using MFA, using fish resistant MFA, coming from a
- 19:09known good end point, right? Something that is managed and
- 19:13safe. So these are multiple, multiple
- 19:17different conditions that have to be resolved.
- 19:18But if possible you can use something with ENTRA or maybe
- 19:23you know I, I actually don't know of other ID PS that have
- 19:27some sort of conditional access, risk based conditional access
- 19:30policy built in. I think Octa does have some sort
- 19:34of threat intelligence built in for some of them.
- 19:37But we have a very good way of I evaluating risk when it comes to
- 19:44a sign in. So it could be a sign in risk,
- 19:47it could be coming from a known IP.
- 19:49But also we have integration with devices.
- 19:52So Entra has that integration with device status, IP address
- 19:56and then they do real time and offline detection of that risk,
- 20:00that sign in risk or user risk. So sign in risk is just of the
- 20:05individual sign in at that point in time.
- 20:08But user risk looks at everything across the board,
- 20:11e-mail, device, you know, and we have all those signals across
- 20:15the Microsoft suite where we can determine whether or not there's
- 20:18a high probability that this user based on their activities,
- 20:21based on everything else is compromised.
- 20:23So if the user risk gets triggered for medium or high or
- 20:27the sign in is medium or high, you can have additional
- 20:31conditions, conditional access policies to say, OK, you must
- 20:34now, you know, come use fish resistant or you must re
- 20:38authenticate using MFA or something else or block that
- 20:42sign in completely. So, you know, start using things
- 20:46like that. And then also recommending you
- 20:50use something like a zero trust network access like global
- 20:53secure access. You know that is coming back
- 20:55into the play with that trusted IP.
- 20:58So you know with ZTNA you can use a SAS service like Z Scale
- 21:02or Microsoft where you say, OK, all your traffic must go through
- 21:07this trusted endpoint and then you have satisfied that
- 21:11condition. And so just as a side note, you
- 21:14know, Global secure Access, which is Microsoft ZTNA
- 21:17solution, Entra Internet Access and ENTRA Private access, those
- 21:21have been out for a while now and TLS inspection is now in
- 21:26public preview for that. And so we know, you know,
- 21:29encrypted traffic is really the standard in a lot of threat
- 21:33cyber threats. They're using that to hide, you
- 21:35know, advanced malware payloads, stealthy exfiltration attempts
- 21:38from within. And so TLS inspection is a way
- 21:41to route that traffic through the Microsoft Security Service
- 21:45edge where it is decrypted in real time and inspected.
- 21:50Of course, a lot of people have opinions on TLS inspection.
- 21:54It's still a widely used method for defense.
- 21:58This is as a service. And just like with anything
- 22:01else, you know, TLS inspection has been around for a while, we
- 22:03maintain that decryption in the TLS certificates.
- 22:06If your application has like certificate pinning, you know,
- 22:09you'll have to make exceptions to that.
- 22:11And so you can always make exceptions to what you need to.
- 22:13But anyways, just wanted to mention that.
- 22:15So these are multiple different ways to protect against that
- 22:18phishing as a service. Evil jinx those adversary in the
- 22:21middle attacks. Yeah, good stuff here.
- 22:24Again, going back to what we said at first, the number one
- 22:27mitigation is to move to fish resistant solutions like
- 22:31passkey, like hardware security tokens.
- 22:34Those defeat Evil Jinx 100% and attacker in the middle.
- 22:36You can use some of these other technologies as well.
- 22:38If you use zero trust Network Solutions and you demand that
- 22:43traffic is routed through them, that also defeats this.
- 22:46If you move to risk based models, those can defeat it some
- 22:48of the time if it's detected properly.
- 22:50And your condition action as a result of detecting elevated
- 22:55risk in the signin or the user has to be something that's going
- 22:59to either require another control that cannot be satisfied
- 23:02or it's going to block the connection.
- 23:03O it can't be require MFA that won't defeat it.
- 23:06If your action is well, require a managed device.
- 23:09If we detect the risk is higher, require a trusted network
- 23:14endpoint. Those can defeat it with the
- 23:16combination of hey, this looks weird.
- 23:17This is weird sign in. Nobody signed in from this proxy
- 23:20site in Russia before. Huh, That's weird.
- 23:22This is an elevated sign in risk.
- 23:23Then you have to chain that with as a result of the elevated sign
- 23:27in risk. I'm now going to require, hey,
- 23:30is this device managed by Intune and compliant?
- 23:32Well, no, it's not 'cause it's some weird proxy.
- 23:34OK, blocked. I'm going to just block all high
- 23:38sign in risk, OK, maybe potentially blocked.
- 23:40I'm going to require if I detect elevated risk that it comes
- 23:44through my ZTNA solution. OK, that could also, but for a
- 23:48lot of these it it gets down to OK, you could do that with risk
- 23:51or you could just do it all the time.
- 23:52Ultimately, I mean our our gold standard at this point, Andy,
- 23:55and what we would advise organizations is at a minimum,
- 23:59your conditional access policy should be always require MFA,
- 24:03always require it a compliant device and if you have a ZTNA
- 24:07solution in place, require the traffic to originate through it.
- 24:10That would be kind of a gold standard to be of of really
- 24:13significantly hardened access and that would pretty much
- 24:16defeat these attacker in the middle type attacks.
- 24:19Or the other, other way you can do it is with fish resistance.
- 24:23Now we go back to the first part of this podcast where we gave
- 24:27credit to if I should never assume a solution is completely
- 24:30bulletproof and can never be defeated.
- 24:33That's why we build this defense in depth.
- 24:35That's why we chain all of these things together, because
- 24:38attackers may be able to someday figure out a way around fish
- 24:41resistant MFAI don't know, attackers are smart, but maybe
- 24:44they can't then defeat the control for the ZTNA solution.
- 24:49And so our defense in depth has still kept us secure.
- 24:52That's why we don't just put all our eggs in the one basket of
- 24:55fish resistant. MFA will solve all the things,
- 24:58we're still going to require other things as a result of it
- 25:01and that just makes us better and more secure over time.
- 25:03So we're always building defence in depth in everything we do.
- 25:06Igor has this whole section on device code phishing, and I
- 25:10thought that was super interesting because it is a
- 25:12relatively new technique, but it has been incorporated into
- 25:16multiple threat actors and like with their attacks, and it's not
- 25:19something that is commonly talked about.
- 25:22And so let's first talk about what device code is.
- 25:26Device code is where you're being authenticated to a device,
- 25:30where all future connections from the device are treated as
- 25:33if they belong to that particular user.
- 25:35So when you're using that same device, it's usually you, and
- 25:38it's basically indirect user authentication.
- 25:41So imagine that you're trying to log into something on a device.
- 25:45It could be a smart TV, it could be a printer, it could be
- 25:48something that actually doesn't take input like a keyboard and
- 25:52you have to log into it. And that system sends you like a
- 25:55short code like an alphanumeric 6 digit code to a secondary
- 25:59previously registered and authenticated device like your
- 26:02phone or an iPad or or another portable device.
- 26:06And you get that prompt to log into that first device.
- 26:09And once you do, you are authenticating and logged in.
- 26:12Sounds like something that you probably have done.
- 26:15Like for example authenticating to Netflix on your TV.
- 26:19You might get a QR code to sign in and then it says OK, sign in
- 26:23on your device and use this code or any other streaming service.
- 26:27You name it, ESPNHBO Max. Yeah, all, all the things.
- 26:31Hulu, they all do it. Right, we do this in our
- 26:34personal life and we don't even think about it.
- 26:36Device code is is authenticated that we're not actually typing
- 26:39in our username and password, but we are authenticating it to
- 26:42it using a user ID and password. You know that token is then
- 26:46passed to the device and you are authenticated to that.
- 26:49And so how do attackers really take advantage of this?
- 26:52Well, they, they do it in a corporate environment, right?
- 26:54Like if you are invited to like a fake Teams meeting or some
- 26:59sort of phishing e-mail or chat message and you click on it and
- 27:03that link is legit and was long as Microsoft.
- 27:06But then you're asked to provide device code to authenticate.
- 27:09So you you type in the code or the service and then that
- 27:13authenticates that device, which is actually the threat actors
- 27:17device as being legitimate. So now the threat actors device
- 27:21is authenticated as one of your corporate identities devices.
- 27:26And so that can be easily, you know, once you have access to
- 27:29that, now you have, they have access to your services and, and
- 27:32whatever else that you possess legitimately.
- 27:35And so it's something that that has been taken advantage of and
- 27:39really the it's easily blocked like you, there's conditional
- 27:43access policies and it's something that has shown up.
- 27:46I mean, it's probably been around for maybe a couple years
- 27:49now, but people don't revisit like conditional hexes and see,
- 27:55you know, all these different things that you can do.
- 27:57We recently did a whole show on conditional access deep dive.
- 28:00But this is just something that's easily like if you don't
- 28:02need people to authenticate through device code and
- 28:04something that you can easily make an exception for if there
- 28:08is a corporate need for it, but then block everybody else, you
- 28:11just block it. Just go to Conditional access
- 28:14block authentications for all device code and and you're done.
- 28:17And and the thread, you know this thread vector is completely
- 28:20negated, right? I found out the name for this
- 28:23recently and I've advocated for it on the show many times, but I
- 28:26didn't know there was a name and now that I heard it, I love it.
- 28:29We ran one of these internally at Microsoft.
- 28:32They called it a screen test where you turn something off or
- 28:36turn something on and you wait to hear the screams.
- 28:38And that will tell you if you need to create exceptions for
- 28:40it. And this is probably one of
- 28:42those things where your most effective solution is run a
- 28:44screen test. People will let you know if they
- 28:46need this and then you can determine if there's business
- 28:49validity to those requests and exceptions to carve out.
- 28:52But for the most part, I'm with Andy, turn this off and wait
- 28:56till you're screaming. And likely you're not going to
- 28:59except for a very couple of isolated cases and either you
- 29:03need to carve out exceptions or you can educate on a better way
- 29:06to handle it. So definitely I would get this
- 29:09turned off org wide and find out where you need to carve out
- 29:12exceptions and then use the granularity of conditional
- 29:15access policies to do exactly that.
- 29:16Igor has a whole section on Oauth consent phishing, and this
- 29:19is something, you know, again we've talked about before, but
- 29:22where your users will consent to a third party application with
- 29:27certain permissions. Very commonly you can get a
- 29:30malicious consent link and then that app will then have those
- 29:33permissions within your organization.
- 29:35This is a very common threat vector you can easily go in.
- 29:39So of course the default, if you haven't gone in to look at app
- 29:43permissions is for users to consent to using their corporate
- 29:48Microsoft identity to consent to these application permissions.
- 29:53It's wide open to begin with. But you can change the default.
- 29:57And I, I suspect at some point we may change that default with
- 30:00the SFI initiative to something that is more secure.
- 30:05But right now it is still open and you can change it to
- 30:07multiple different ways. You can say allow low risk with
- 30:10verified publishers. You can say admin consent only.
- 30:14You can specify specific custom permissions as an organization
- 30:17that you've deemed low risk, and then they can automatically
- 30:20consent to those. We have our Casby solution
- 30:23Defender for cloud apps where I can look at all the different
- 30:27highly privileged OO auth applications and you can
- 30:30evaluate those. But the first thing is it's kind
- 30:33of, you know, cutting it off, right?
- 30:36Like make sure that you're only consenting to low risk
- 30:39permissions or admin consent only.
- 30:42And again, you can run a screen test here, right?
- 30:44Because if you, this is not something that happens all the
- 30:47time. So if you make it admin consent
- 30:51only, you're going to get a request at some point and say,
- 30:53Hey, we have this application that we need.
- 30:55And then you can evaluate. And a lot of times the low risk
- 30:58ones are, are are usually ones that don't have any, any huge
- 31:04implications. But every once in awhile you'll
- 31:05get one that's high risk and you'll push back as a security
- 31:08organization, say, hey, why do you need this?
- 31:11And then obviously go back and look at all those other
- 31:15applications that have been consented.
- 31:18You can always look at the number of users that are using
- 31:21it. I've done this in the past where
- 31:24I've gone and looked at different applications that high
- 31:27have, even if they are low risk, you know, like for example, I
- 31:31worked at a bicycle company, Trek Bikes, a long time ago and
- 31:35there were people who were consenting to Garmin.
- 31:37Not a huge risk, but it had GPS data involved in it.
- 31:41And so you go back and there's only like a handful of users who
- 31:44can send it to Garmin using their corporate identity.
- 31:46And you could ask them, hey, do you still need this?
- 31:48Like can you use a personal account instead of using your
- 31:52corporate identity? And they're usually pretty open
- 31:54to that. So something that you should
- 31:57definitely have a project to come over if you haven't done
- 32:00that already. Device joined phishing is
- 32:02another thing that is can be an issue.
- 32:05So make sure that you have authentication strengths like
- 32:08MFA for registering device at Microsoft.
- 32:11If we have a notification and an e-mail that triggers every time
- 32:15we join a device to Entra. And it goes to your manager.
- 32:19It goes to your manager, yes. And so the manager should, if
- 32:24you don't, you know, our policy is actually the manager should
- 32:28reach out to the individual and say, hey, is this you?
- 32:31I usually just kind of. I still proactively, yeah.
- 32:34Yeah, instead of waiting for them, I just say, hey, this is
- 32:36me. I'm, you know, just joining a
- 32:38new device on the weekend, blah, blah, blah.
- 32:40And they're usually good with it.
- 32:42But yeah, and, and same thing with MFA.
- 32:43You should have a trigger for MFA.
- 32:45There was, I can't remember what's the IR service that was
- 32:50just acquired by Google that's commonly used.
- 32:53Mandiant. Mandiant.
- 32:54You said recently and it made me not think of Mandiant, 'cause
- 32:56that was a while ago, yeah. Yeah, but Mandiant, I think they
- 33:00had that breach. It was, it was the they had a
- 33:04breach that that was pretty big and it was the reason why they
- 33:08found it was because they had an e-mail that triggered when the
- 33:12threat actor registered a new MFA for an employee that was
- 33:16phished. And so that e-mail triggered in
- 33:18there. The employee luckily followed a
- 33:21protocol and said, hey, they escalated it to security, said
- 33:24this was not me. Someone registered a new MFA and
- 33:27then they were able to, you know, do their investigation and
- 33:30find out that they were actually compromised.
- 33:32So that should definitely be a part of it.
- 33:36And then of course, risk beyond just phishing for e-mail, right?
- 33:38Like you should have a policies in place for phishing with
- 33:41teams. And we actually do have threat
- 33:45intelligence that looks at threat actors that are abusing
- 33:47teams where they're creating like fraudulent tenants,
- 33:50creating teams meetings and sending chat messages to
- 33:53potential victims using that. And they also like as recent as
- 33:57November 2024, threat actors are compromising tenants and
- 34:01directly calling users over teams to fish for their
- 34:04credentials as well. So this is just again, more,
- 34:07more cannon, you know, fodder for the cannon, like make sure
- 34:10that you don't have credentials, right?
- 34:13Like you should be on a password less path because for Microsoft
- 34:18employees, if someone were to ask me for my password, 1, I
- 34:22don't know it, I have to look it up.
- 34:23And two, we don't use passwords. And so like anytime I have have
- 34:27to be asked to put in a password or like ask for my password, I
- 34:30immediately know that that is usually a fraudulent request,
- 34:35right? It's a phishing attempt.
- 34:36So you can't Phish me for my credentials because I don't know
- 34:39them and I don't use them. So it's a red flag.
- 34:42Right. I mean, we, we've been saying
- 34:44that for years, but it's so true.
- 34:45And I always used to laugh because I did still know my
- 34:48password for a long time and I eventually have forgotten it.
- 34:50Now I, I don't know what mine is.
- 34:53It did finally happen because it became ubiquitous and it was, it
- 34:57was a slow boil. I mean, I've been at Microsoft 8
- 34:59years and you know, we still had to use my password sometimes in
- 35:02some circumstances and it just overtime became less and less.
- 35:06And then I didn't have to rotate it anymore.
- 35:09And I even I knew it even less. And so I haven't rotated it in
- 35:13years and I don't even know what it is.
- 35:15So I mean, it's hard to compromise when I don't have it
- 35:18in my brain to give out. But it, it's one of those things
- 35:22and it, you know, this word gets overused of journey, but it
- 35:25truly is a journey where you're reducing your reliance on it
- 35:29till you hit the point when you don't use it at all.
- 35:32And then the next stage is you remove it from the directory
- 35:35service entirely. And we're not there yet.
- 35:38My password is still hashed somewhere in some Active
- 35:42Directory instance. It's still in Azure Active
- 35:44Directory entry ID. Wow, I just dropped the old name
- 35:46as well. It's still there, but I don't
- 35:49know what it is. And at a certain point, we can
- 35:51blast those hashes away and that will be a glorious day.
- 35:54Yeah, so there's so much more in this blog and we could go on for
- 35:58a while, but it's definitely worth your read.
- 36:01We'll put the link in the show notes, but at the end, you know,
- 36:06there's recommendations throughout each one as he's
- 36:09talking about these threat vectors and threat actors.
- 36:11But at the end, he consolidated all of the recommendations.
- 36:15So if you want, like ATLDR, just Scroll down to the
- 36:18recommendations that you can then review and evaluate as a
- 36:22security team. One of the ones that actually
- 36:24jumped out at me is allowing MFA and passkey registrations only
- 36:29from trusted devices and trusted locations.
- 36:32And this one is interesting because I know we have this at
- 36:35Microsoft. I cannot register an MFA or pass
- 36:39key on something that is not a trusted location or, and, or a
- 36:45trusted device. And it has come to kind of bite
- 36:47me because in demo environments, I often have to register an MFA.
- 36:53And sometimes you're logging into that demo environment
- 36:57because it's, it's ours. We can log into it from a, a
- 37:00private browser or whatever, from, from a non trusted device,
- 37:04but I can't register the MFA from that browser, which is a
- 37:08pain. So, and, and because of single
- 37:12sign on, right, it automatically signs into the, the device, the
- 37:15browser, the regular browser. And so there's, there's all
- 37:18these like checks and balances. And so I often times from my
- 37:23demo tenants, I have to disable the policy because it's
- 37:26automatically put into our demo tenants must register MFA and
- 37:30passkeys from trusted locations and devices.
- 37:32I have to disable it. And then that gets flagged of
- 37:36course, because like it's not instantly, but it does get
- 37:39flagged and I'll get flagged for it and then I can register my
- 37:41MFA and then I turn it back on. It is something that can be a
- 37:45pain, but it's definitely recommended because for the most
- 37:50part, you should only be registering your MFA and pass
- 37:53keys from a trusted device from a trusted location and you know,
- 37:57as well as getting a, a notification for that.
- 37:59So I think that's a really good one.
- 38:01It's not something that is often, you know, I have seen at
- 38:04companies, but I know at Microsoft, we definitely do
- 38:07that. So this is definitely worth your
- 38:10time to review, look at, read, you know, again, if you want the
- 38:15TLDR, just jump to the recommendations at the end.
- 38:18It's something that we've talked about, you know, identity is
- 38:21something we we've continued to talk about for the last few
- 38:24years and it will continue to be something that we talked about
- 38:27as long as passwords can still be fished and, you know,
- 38:32identities can still be compromised.
- 38:34So this is still the the attack vector that is easiest for
- 38:40threat actors to exploit. That's our show for this week.
- 38:44Thanks for watching and listening.
- 38:45As always, our contact information along with the links
- 38:49to the articles that we talked about in the show will be in the
- 38:52show notes. Thanks.
- 38:54And we'll talk to you guys next week.
- 38:56Thank you for listening to the Blue Security Podcast.
- 38:58Please check out the show notes, catch up on episodes you may
- 39:01have missed, and subscribe so you don't miss any future
- 39:04episodes. Find Andy on Twitter at a Jaw
- 39:06Zero and Adam at AJ Brewer. See you at our next episode.