Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Entra.Chat

Entra.Chat artwork

How a Pharmacist Became a Pro Hacker (And What She Found in YOUR Tenant)

Sep 20, 20251 hr 1 minAudioEpisode 28
ShareXLinkedInFacebookWhatsAppEmail

Cybersecurity expert Erica shares her incredible journey from pharmacist to becoming a professional hacker. She reveals how attackers are bypassing modern security controls like MFA and what you can do to protect your tenant. We talk about the most common configuration vulnerabilities that exist in almost every organization, the dangers of application onboarding, and the top five phishing vectors threat actors are using to gain initial access, including clever abuses of Microsoft Teams. Subscribe with your favorite podcast player or watch on YouTube ๐Ÿ‘‡ About Erica Erica has an amazing career arc, starting in pharmacy before pivoting to cybersecurity. With a deep, hands-on understanding of offensive security gained from platforms like Hack the Box and real-world penetration testing, she specializes in protecting and defending Microsoft Cloud tenants. Erica is passionate about sharing her knowledge on how to better protect your tenant and what bad guys are looking for. LinkedIn - https://www.linkedin.com/in/erica-z-b4169598/ ๐Ÿ”— Related Links * Blog - https://ericazelic.medium.com/ * Hack The Box - https://www.hackthebox.com/ * Altered Security - https://www.alteredsecurity.com/ ๐Ÿ“— Chapters 00:00:00 Intro 00:02:14 From Pharmacy to Cybersecurity 00:07:19 Learning to Hack with Hack The Box 00:11:45 The First Cloud Hack: M365 Public Groups 00:17:50 The Hidden Dangers of App Onboarding 00:25:53 The 5 Modern Phishing Attack Vectors 00:30:36 Bypassing MFA with Device Code Phishing 00:34:34 Adversary-in-the-Middle & Auth Downgrade Attacks 00:48:24 The Secret to Mastering Cybersecurity Skills Podcast Apps ๐ŸŽ™๏ธ Entra. Chat - https://entra.chat ๐ŸŽง Apple Podcast โ†’ https://entra.chat/apple ๐Ÿ“บ YouTube โ†’ https://entra.chat/youtube ๐Ÿ“บ Spotify โ†’ https://entra.chat/spotify ๐ŸŽง Overcast โ†’ https://entra.chat/overcast ๐ŸŽง Pocketcast โ†’ https://entra.chat/pocketcast ๐ŸŽง Others โ†’ https://entra.chat/rss Merill's socials ๐Ÿ“บ YouTube โ†’ youtube.com/@merillx ๐Ÿ‘” LinkedIn โ†’ linkedin.com/in/merill ๐Ÿค Twitter โ†’ twitter.com/merill ๐Ÿ•บ TikTok โ†’ tiktok.com/@merillf ๐Ÿฆ‹ Bluesky โ†’ bsky.app/profile/merill.net ๐Ÿ˜ Mastodon โ†’ infosec.exchange/@merill ๐Ÿงต Threads โ†’ threads.net/@merillf ๐Ÿค– GitHub โ†’ github.com/merill Get full access to Entra. News - Your weekly dose of Microsoft Entra at entra.news/subscribe

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

SPEAKER_01From the latest hacks to cool updates, join the ride, don't be late.

SPEAKER_00Hey, folks, welcome to another episode of IntraChat. And I'm repeating this for the first time, for the second time, because I forgot to hit record the first time. I have a fantastic guest today. She's someone who I really admire and someone who I wanted on the chat for a long time. I asked her even before I started the first batch of recordings for IntraChat. And I'm super glad that Erica can now join us. Erica has an amazing career arc.

SPEAKER_00She started in pharmacy and now she's in security, cybersecurity, protecting tenants, defending tenants, and knows a lot about Entra. And what I really like about Erica is all the questions she asks on X. Twitter is where I sort of, met up with her and, you know, really practical guidance and advice that Erica gives. So I want to get on the chat so she can share a bit more about,

SPEAKER_00you know, how she learns and all of the knowledge she has and, you know, various tricks and tricks that she has come through. She has some amazing stories to tell. And I'm sure a lot of us can learn more at the you know, how to better protect your tenant and, you know, what are the things that bad guys are looking for and so on. So Erica, welcome to the show. Sorry, you had to repeat some of the stuff again.

SPEAKER_03It's okay. It's okay. Thank you so much for having me. First of all, I'm a big fan of the show. I'm honored that you would invite me because you have so many talented people here that come on the show and talk about real life stories and what it is to manage Microsoft Cloud and Active Directory. And so, yes, so thank you for having me on the show. I really appreciate it.

SPEAKER_00Yeah, it's fascinating. You started in pharmacy, right? So how did that happen? How did you get into that space?

SPEAKER_03Yeah, no, that's a great question. So I graduated pharmacy school in 2009, and I went into the workforce, and everything was dominated by the digital world at that time in 2009. You know, the drugs that I would order, we would have the password on the computer where everybody shared the password and went on to the supplier. And, you know, three days later, we would get the drugs. We had our inventory systems. We had our pharmacy management systems.

The digital world was so utilized and I knew nothing about computers or how they worked.

SPEAKER_03So I went back to you.

SPEAKER_00For me, it's fascinating because when I was in school in like grade 10, that's what the curriculum I did, we had chemistry. And I hated it so much because for me, it didn't have any logic. It was like I had to memorize a lot of things and like just memorize facts. And I was like, like I work better if there's some logic to it. Like I preferred math and physics because you could like start somewhere and end somewhere. And, you know, there's a journey. But I don't know, maybe it's wrong,

SPEAKER_00but I felt chemistry was, I just need to just remember there's so many things I need to remember. And I hated it. So I actually dropped out. Like I didn't do chemistry. Did all the other subjects.

SPEAKER_03That's funny. Chemistry was my favorite and I had a very opposite experience with it. I thought that it made a lot of sense because it was all algebra, pretty much, and calculus. Maybe I didn't make the connection.

SPEAKER_00Yeah. Well, when you get into organic chemistry, you learn how to push electrons. And if you learn how to push electrons and you have your modeling kits and whatnot,

SPEAKER_03then you can basically visualize. I can close my eyes and visualize how interactions are working based on the knowledge that you get. And anyway, we're going a little off topic here.

SPEAKER_00Yeah, yeah. It's fascinating for me, like the difference in the path that you took, the path that I did. So cool. Okay. So you did that. And then how did you end up in cybersecurity? Like it's a vast...

SPEAKER_03So I went back to school for computer science. My first programming language was C++, which is why I don't like to program. But now with AI, I love to program because it makes it so much easier.

SPEAKER_00That's the wrong language, yeah. I started with GW Basic, the basic that Bill Gates wrote, right? And I loved it, like... You could do so much. It was just like print and run and go to. It was so simple. And it was easy to make the computer do what you wanted. And I really fell in love with programming from that point.

SPEAKER_03Yeah, I didn't have the same experience with programming.

SPEAKER_00See, we swapped over from chemistry to programming. Yeah.

SPEAKER_03Yeah, yeah. So I also did digital logic, which was really cool. I liked that a lot better than C++ programming. And I continued on in my pharmacy career, but I continued on as a self-learning path because I was fascinated with IT and computers and networks and software and how it worked. In 2014, I went to a DEF CON because there was a hacker conference in town, and I was like, hmm, that's interesting. I wonder what this is all about. So it was $200, and I paid my way in,

SPEAKER_03and I went to some talks, and I was like, wow, this is really interesting. And these people are like me. They get into the weeds about topics, you know? Yeah.

SPEAKER_01Yes, yeah.

SPEAKER_03Yeah, so I left there feeling very inspired and continued to learn IT by reading books like A+, Network+, Security+, CASP, CISP, CEH. I read all of those books, I think, in like 2014, 2015. And then in 2016, I went to another DEF CON, and that's... That was kind of like the trigger point for me that began my fascination because I went to the talk where they released Bloodhound and Six Degrees.

SPEAKER_00Andy Robbins. Andy?

SPEAKER_03Yeah, Andy Robbins and Will Schroeder and CPT Jesus. I don't remember his real name, but anyway, they were all up there on the stage and they were demoing And I was like, God, that's fascinating. And I got to learn how to do that. And I left there very inspired. And I did learn how to do that. And I knew I was going to learn how to do that. So anyway, how I learned how to do that was playing Hack the Box. I started playing Hack the Box in 2017.

SPEAKER_00What is Hack the Box? For people, I've known a lot of IT admins. They're like, what's Hack the Box? What do you mean by that?

SPEAKER_03It's the best game ever on the internet. Right, man. So it's a it's a hacking game. And basically, it's very similar to when it first came out anyway, it's very similar to penetration testing. So you set up a VM, and you get the open VPN connection back and you connect to the network and on And then they give you an IP and then you hack the box.

SPEAKER_03So, you know, it starts out with a port scan. You got to figure out what ports are open, what services are running. And then there's always a way in. Right. And then eventually you have the box. And the goal is to get, you know, a user flag and a root flag or excuse me, on Windows, it would be, you know, system. You would try to get a system. So, yeah. So, yeah, I started playing bad. And you got really good at it.

SPEAKER_03Really good at it. I had a lot of friends that were really good at it that helped me. And I became skilled in their presence. So, yeah. And I did. I learned a lot because I didn't just, you know, wait for people to give me the answers like a lot of people do. And there's nothing wrong with that because you still learn in the process. But I was constantly in Microsoft documentation, constantly on blog posts, reading blog posts, and trying to understand what these security researchers,

SPEAKER_03this wizardry that they did, to be able to come up with these vulnerabilities. And I don't know if you know about Hack the Box, but They were very focused on configuration-related vulnerabilities. So there is a lot of machines and labs that had CVEs as well. But most of it is based on configuration-related vulnerabilities that you exploit. So there's no...

SPEAKER_03like you can't just patch it, you know, you have to go in and reconfigure things or, or put in mitigations and controls,

SPEAKER_00um,

SPEAKER_03to be able to remedy those situations. And so, um, I think that that was a really important point into what led me into what I do now, which is focused on configuration related vulnerabilities and Microsoft cloud and an active directory. But, um, Yeah, I played these labs and these pro labs that were like mini corporate environments with multiple domains and trust set up. And they had file servers and databases and enterprise software and,

SPEAKER_03you know, the stuff that you would see in a real organization. Right. But without all of the user traffic, right? Right. So I did that for several years before I even started pen testing. And so when I went into pen testing, it was very, very easy for me. I was like, wow, this is easy.

SPEAKER_00Yeah, it's easier than the hack the box.

SPEAKER_03It was a lot easier than hack the box. I was like, all of these pro hackers, and they're talking about being, I'm a real hacker. And I'm like... This is so easy.

SPEAKER_00So how did you get into the Intra and the Microsoft Cloud?

SPEAKER_03Yeah, no, that's a great question. Thank you. My boss came to me in 2022 and said, I want you to do a Microsoft Cloud assessment. I said, I don't know Microsoft Cloud. And he was like, but you have an offensive security background. You think like a hacker, so you'll be able to do it. You'll be fine. And I was like, okay. So I went on to GitHub and I looked at, you know, I tried to find the tool repositories that penetration testers use in the cloud. And I found some and I did the password spring and all of that stuff.

SPEAKER_03And in 2022, a lot of organizations were still, they didn't have MFA. They didn't even have regular MFA. And today we're going to talk about other things beyond MFA. Yes. So my first Microsoft Cloud M365 assessment, I got Global Admin, which was really cool. It was a common configuration error that I see in almost every org that I've done. consulted with, and that is M365 Public Groups.

SPEAKER_03They had set up a SharePoint site when they were onboarding their tenant, and they had a bunch of accounting information and Excel spreadsheets in there, and they had passwords in there. They had passwords to box, passwords to other technologies that they had in the environment. They had their EIN, corporate IDs. It would have been like a Beck actor's dream, you know? Yeah.

SPEAKER_00I can tell an interesting story. I worked in a company and the search was really bad. And then we introduced a new search platform. And then it could search all of SharePoint and show things. And then suddenly someone found his name. He just searched for his name. And, you know, some HR complaints that he had made or someone made against him, they were all like public. Like it was not meant to be there. And then like, so he raised the big thing.

SPEAKER_00And you know what the fix was? They said, we can't go and fix all these permissions. It's too much work. Can you just turn off search and go back to the old search that we had, which didn't work? Yeah. Like people, it's so hard to get folks to go and fix the permissions because it's like a weed, right? Like there's so many sites and we can say like, hey, like you found that. It's easy. You found it. But the fix is actually they have now even in SharePoint

Online, terabytes and terabytes of. data and sites and they need to find then go find the owner of it and like there's

SPEAKER_00a whole lot of work it's not something you can just flick a switch and fix it. You don't want to cause, you know, business disruption. So it is a hard problem for, you know, the other side of the defensive side of the admin team. But this is a really good example of, you know, why it's important, even though it's a hard thing to do, you will find ways to get, you know, get global admin through that.

SPEAKER_03Yeah, data is king. And there's always credentials. I mean, just like in Active Directory, how there's unproductive credentials on shares, even with third-party solutions that go in and crawl the shares and constantly look for that. We still find unproductive credentials on shares in Active Directory. And it's no different in M365. And now you have all these cloud services. And you think about SharePoint. And you think about OneDrive. And you think about Teams.

SPEAKER_03people don't realize that you, if you think of them like a share in Active Directory where you have to set up, you know, who can access these shares, it's the same thing in M365. And there's just as many, if not more unprotected credentials in M365. And it's something that's not really talked about, you know, as much. But, you know, privacy is really important in all of M365 services. And you have to set up you know, private sites and private teams and not have those M365 public

groups unless they are intended to be public and all of the data that is stored within those groups

SPEAKER_03and teams chats and whatnot is intended to be public data. Because if anyone gets compromised in your organization, you know, If it's an M365 public group and the data is within that, then anybody is going to have access to it across the organization. So you need to protect it. But it's not easy, like you said. Some of the most simple things on the defensive side are very, very difficult because it's just like you said.

SPEAKER_03You have to find, you know, who owns the site. And not only that, most organizations, especially the larger organizations, are still very siloed. So you have to go through all of the stakeholders. Correct.

SPEAKER_00Yeah. And their priorities are different. And they are focused on making money. And they're going like, why are you troubling me with this? Like, I need to do the sales and bring in revenue. If not, this won't exist in the first place.

SPEAKER_03Exactly. User experience and security is a very, very delicate balance. Very delicate balance. Because when you impede the users too much... You know, it slows down the organization's productivity quite a bit. So you have to be very cognizant and do everything that you can to make it effortless for them to where they don't feel an impact. And that's very difficult.

SPEAKER_00Exactly. Yes. Yeah. There's always a two sides. And I think that's what makes it interesting as well. When you're looking at it from the offensive side, you go like, oh, that's dumb. Like, why did they do it? Like, You know, they should not have had a share and so on. But it's hard to, it's like herding cats, right? Like there are so many different accounts and passwords and people do the easier thing. Like today, I'm sure a lot of people just share credentials maybe on chat

or on email.

SPEAKER_00They think email is secure. Yeah. But then knowing little that someone can really search across your entire email repository to find those passwords with those terms.

SPEAKER_03And teams, you know, people sharing like client secrets and, you know, let's talk about application onboarding a little bit, right? Yeah. So when applications are getting onboarded, you know, a lot of times vendors... and this is really bothersome to me, but some vendors won't have the ability to set up, you know, a certificate in private key and they require you to have a client secret. Right. And so those client secrets then become your responsibility to secure.

SPEAKER_03And if they're shared in a teams, then attackers can just use regular expressions to search across teams and then find those client secrets. And then you have an application service principle that, being compromised, which is not going to follow your named locations. It's not going to abide by the named locations, I should say. You know, an attacker could literally sign in from anywhere as the service principal. And then the detections, if you don't have an SSPM like App Omni or Obsidian,

then it's going to be incredibly hard for you to detect that unless you have custom

SPEAKER_03detections. So sharing credentials is very, very common in M365. especially with client seekers, even with the certificate and keys, like some vendors, they'll have you create them yourself and then send them over to the vendor or send them over to the engineer to, you know, to put them in and onboard the application. But then you as the admin, you still have that certificate and key,

right?

SPEAKER_03And what if it's in your OneDrive?

SPEAKER_01Yes.

SPEAKER_03Do you see what I'm saying? So, like, unprotected credentials across shares, like, you know, you have API keys. You'll find all kinds of stuff across M365. You can search for it all on Purview. They have, you know, out-of-the-box sticks to help you do that and information protection. So you can find them, you know. But anyway, that's another discussion. Yeah, that's, I mean, that's, like, so even with the appboarding, an interesting story.

SPEAKER_00Like, just today I was on a call with someone and their app, something with the provisioning side of things, it failed. And they were looking into it and the token, one of the tokens they had given for the app that was registered in Entra, the token had expired. And so a secret, it was like a long secret. And so this person was asking the other app owner, like, why did it expire? When does it expire?

SPEAKER_00Like, how do we make sure that we know in advance he said don't worry I've said they expired to 10 years now so it won't happen and that's like just like it just happened today and I was like shaking my head and you need to now go through and like you know educate them like you know don't do that yeah but it still happens today so there's a lot of work we all have to do to

educate the the community and the industry on in these things right so yeah definitely don't put them in m365 just don't don't share them in teams you know don't share them in sharepoint don't make a confluence site with all of the

SPEAKER_03credentials for the application registrations don't do that right And even with certs, it's confusing because, yeah, you have the private and the public.

SPEAKER_00And for some people, it just confuses them. And they're like, oh, I'm sharing. I need to give the public key. So some end up just sending the private key as well to the other party. It's very challenging. Application onboarding is a lot of organizations, you know, the IT department,

SPEAKER_03or a lot of organizations will call it digital whatever, their goal is to get everything up and running. And that is still the way that it is. And they have very tight deadlines. People expect them to do this fast. There's not a lot of time for them to really think about the security of the situation. And a lot of organizations won't undergo a security review before they onboard an app, which they should.

SPEAKER_03But, you know, budget, you know, I understand that a lot of organizations, they don't have the budget to do it. But there's things that you need to look at, like the token flows and the API permissions and how it's being onboarded, where the client secret is going to be stored, or the certificate and everything. You have to look at all of the information so that you can understand your attack surface and your blast radius if an account becomes compromised,

SPEAKER_03right? Yeah.

SPEAKER_00Yeah, it's definitely like if last week's podcast that we shared was all about app governance and like, you know, bringing it's a lot to do with educating the community and the folks who are given this work because they come, as you said, right from a background of get things done, get the app deployed, move on to the next app. Their only thing is they are not really security folks in the sense. They come from maybe M365, digital workplace.

And so they're just relying on the cybersecurity team to do that job and do it.

SPEAKER_00But if everyone is educated, it really helps them make sure they are doing it right the first time.

SPEAKER_03Yeah, and then not only that, I mean, you know, larger organizations like some of the global banks, they'll have a bigger process of doing an entire security review where the security team will go in and pick apart and try to figure out every different way that an attacker might exploit it, right? Yeah. And then they'll create these reports and threat models and then send it to risk. And then, you know, they evaluate, you know, all of the stuff that the security team says.

SPEAKER_03And that's a really good practice. Not a lot of organizations can afford to do that, but they should really find the budget because everybody has M365. Everybody has applications onboarded. Everybody uses ENTRA. So not everybody. There's, you know, there's the Google suite space. You know, I don't work in the Google suite space. But most organizations, we all know that M365 has the dominant market share. And because of that,

it makes them a target because attackers know that's where the data is. They know that if they get in there, they might be able to move to on-prem Active Directory.

SPEAKER_03Yeah. They can probably move to Azure. There's a lot of different pivot points for them. And then also the data is money, right? To them, data is money. So they want to go directly to the places where the data is. So you have to do things to try to protect the data and decrease the blast radius if accounts get compromised.

SPEAKER_00Absolutely. Yes. Yeah. So tell us, so like what, should, like, enter admins do, you know, the easy things they can do to protect their tenants? Yeah. Easy in the sense the things that are, you know, low-hanging fruits that will give them the best bang for buck.

SPEAKER_03The low-hanging fruits from entry. Yeah, because everything starts through identity, right? All the attacks come in through identity. And so when you're looking at your organization, you want to focus on the initial access vectors first, right? And then move inward. Kind of, you know, Follow the kill chain. And in Entra, in the cloud, with phishing, right? Most organizations get phished, right? So they're...

SPEAKER_03There's about five different attack vectors in phishing. So you have illicit consents, which is application onboarding, where the attacker is going to trick a user into consenting to an application so that they can get rights to the tenant based on whatever API permissions are granted to their data. On that one, I remember you tweeting once about how easy it was using Teams as a vector to...

SPEAKER_00send a message and get people to click on things.

SPEAKER_03Yep, yep. So Teams is a big one. And the reason why Teams is a big one is because impersonation, right? So I'll tell you a story. My last work, I was testing some Teams impersonation. So I set up my public Teams account with... a Microsoft personal account, right? And then I changed the name to my CISO's name.

SPEAKER_03And when you send a meeting invite to people, then it would come up as, oh, my CISO is inviting me to a meeting. It could be anybody. It could be the IT department, but it's very easy to impersonate And then since I'm the meeting organizer and a public teams client, then I control the team. So if I can get somebody to join the meeting and I effectively impersonate them, which is very easy now with AI...

SPEAKER_01Right. Yeah.

SPEAKER_03If I can get them to click on the link and join the meeting, then I can have them download malware from Teams. I can have them download signed binaries, which are not going to be detected because they're signed binaries. Right. Most organizations don't have effective controls in EDR with RMM tools. So that's another common vector is they get somebody to download an RMM tool and You could do follow-on with device code phishing. Say, I need you to re-log in so that I can fix your email account, right?

SPEAKER_00Right. Yeah, so Teams has that wall, right? Where if it's someone new, you see the wall. But I guess if you do a calendar, like if you do a meeting invite, you sort of avoid that, right? Like a user will never see that they'll... just jump on the meeting and then the meeting chat shows up and then you control what links you can share from there.

SPEAKER_03Exactly. And then you, it's kind of like a hacker's dream if you think about it, because we don't have to go through all of the hard work of trying to get past the entry controls,

SPEAKER_00you know?

SPEAKER_03So that's the problem. And there's ways to harden teams to prevent against those types of things. But those are not, You can't implement those controls because I tried and I failed because it makes Teams unusable.

SPEAKER_00Yeah, that's true. So I think that Teams will continue to be a problem, even though there's things like Teams app.

SPEAKER_03When you have somebody impersonating... Somebody from the organization, like I said, signed binaries are not going to get caught. And you're going to have to depend on your EDR solutions for those binaries and hope that you have custom... Things for RMM tools and signed binaries like sysinternals tools, you know? Right.

SPEAKER_01Yeah. Because they're not going to throw a detection when the user downloads them.

SPEAKER_03When it's a signed button.

SPEAKER_00Right.

SPEAKER_03Yeah. So. That's crazy. So, yes, there's Teams. That's not really Entra. That's more Teams, Microsoft.

SPEAKER_00Yes.

SPEAKER_03Teams.

SPEAKER_00But I think it's good for Entra folks and admins to know about, like, it doesn't always have to be Entra. It can be through Teams that they can then come through. So things to be aware of as well. Yeah, I think Teams is a really, really great attack surface for attackers.

SPEAKER_03It's probably underutilized and will probably be more utilized.

SPEAKER_00So you said illicit grant and you're saying there are five

SPEAKER_03Yeah, so we have Teams. We just talked about Teams. And there's other ways that you can use Teams, too, but we're not going to talk about that today. Maybe another time. Yes. But back to Entra. So you have device code phishing, right? And so you've seen that, you know, every threat actor that's even somewhat competent will use device code phishing, right? Because it's so easy to operationalize. And so you see it in the DFIR reports,

SPEAKER_03like, from Microsoft and from Mandian and from Veluxity, where attackers are using... Device code phishing to gain entry. And these are people, the ones that I'm talking about today are MFA bypasses. They're not bypasses because the protocols are working exactly the way they were designed to work. But it's easy to say bypass because that's what gets everybody's attention. It helps the executives understand like, oh, well, we have MFA.

SPEAKER_03Right. Oh, but they bypassed it. So I understand why people say bypass, because it's easier for people to conceptualize the threat by saying bypass, even though the protocol is working exactly the way it's supposed to. I digress. Sorry, went off on a tangent there. But back to device code phishing, there are caps. And Microsoft, I think it was... this year you all rolled out the microsoft um cap for blocking device code phishing

and there's a few challenges with it that a lot of larger organizations face and

SPEAKER_03that's with teams phones yes and then and then also um uh If you're doing device onboarding through Intune, sometimes you'll trigger those as well. So it's one of those caps that's really good, but you have to do it really slowly in a phased approach. And you have to identify your Teams phones and where they might be affected. Because when you look at the intro logs for the device code

login with Teams

SPEAKER_03phones, a lot of times it's going to show in the non-interactive log, sign-in logs.

SPEAKER_01Right.

SPEAKER_03And not in the interactive sign-in logs. So that makes it challenging for a lot of admins to really troubleshoot. And they just think, oh, the cap is not working. And so they shut it off. And,

SPEAKER_01you know,

SPEAKER_03then you have this huge vulnerability that nation states, ransomware groups, extortion groups, like BEC actors, everybody's using device code phishing, right? Right. And the combination of Teams and device code phishing is even more important, right? They're using Teams to send a message and a link and then get the person to do what

SPEAKER_00they want them to do.

SPEAKER_03Exactly. Exactly. And with AI, it makes it really easy for them to understand how organizations operate and really be effective in impersonating how an organization operates to make a very believable organization. for users. So anyway, with device code phishing, you know, there's other things that you can do with device code phishing. I think that they do abide by named locations.

SPEAKER_03So if you have a VPN, I'm not really sure. Don't quote me on it. But the best way to mitigate the device code phishing is to use the CAP. And, you know, use your report only mode to figure out, you know, who's going to be affected and when and and phase it out, you know, very slowly until you have the organization covered as much as possible,

SPEAKER_03because it's such a simple, simple attack.

SPEAKER_00Yeah, yeah, that's true. It's a really easy one. Like anyone can try and show it, right? Yeah.

SPEAKER_03And then we have the most common one. Adversary in the middle basically is reverse proxy phishing. So it's a man in the middle. Basically, an attacker sends somebody a link through whether it's their email, even Teams. They send them a link and it's really an attacker's link. And then they forward all of the information on to ENTRA login

and they get the MFA claim.

SPEAKER_03And then, you know, both of them log in. And so the defenses against adversary in the middle are a lot better now. Some of the things that you can do in ENTRA are... Device compliance, right? You can do the authentication protocols that are phishing resistant, like FIDO2 and WebAuthn. But the problem is that the threat landscape has evolved now to do authentication downgrade.

SPEAKER_00Downgrade, yes.

SPEAKER_03So one example of this is how it changes the flow. Yeah. The attacker will send the link, right? And when the user clicks the link, before the user clicks the link and it sends it back to Entra, but with a different user agent string that can't enforce the FIDO2 and WebAuthn protocols. So... Usually organizations will have a backup or a fallback second factor

SPEAKER_03authentication, like a one-time passcode or SMS or whatever. And so then it triggers that. those flows and the attacker sends that flow back to the user and if the user doesn't think about it which they won't yeah you know it goes into it goes from a phishing resistant to a phishable like lots of organizations turn on hello for business and they go like yeah all my users are now using hello for business but if that man in the middle or adversary in the middle attack does a

downgrade with that

SPEAKER_00url Then instead of using Hello for Business, the user will see like a Teams, like a SMS option or text or phone.

SPEAKER_03Exactly. And then the attacker sends it back and they get in because they downgraded the authentication. And the best way to do this, to prevent this in Entra is to use authentication strengths, right? Yeah. you can use authentication contexts as well. That's a little bit more advanced for like one discussion, but the authentication strengths and, um, In your CAP policies,

SPEAKER_03you want to make sure that they can't use those phishable, like even Microsoft Authenticator is even phishable, right? But if you use Microsoft Authenticator with pass keys, then it's not phishable. If you use the FIDO2 hard keys, then it's not phishable. So you want to use those phishing resistant keys. where the users only have those options. And I don't see a lot of organizations really doing that because it's going to

SPEAKER_03create a lot of tickets, right? It's going to create a lot of problems for ITs that I think that this attack, unless Microsoft comes up with something fancy to fix it, is going to be a long-lived attack.

SPEAKER_00Yeah, it is a hard one. But I would say the best place you can start is at least the privileged roles. And I know of organizations that have done it. So any intro role, any, like one organization I know, they said anyone even accessing Azure, we consider privileged. So if you're signing in, even if it's just to read logs, It's a privileged role. So if you're signing into Azure or you're having any intra role, they've basically forced those users not to have any other auth method.

SPEAKER_00So you can exclude that user from even registering phone SMS. And so they only have phishing resistant auth methods. So if there is a downgrade attack, the user will not be unable to complete the sign-in because they have no other choice.

SPEAKER_03Definitely start with the admins. And because we all know that nobody uses the pause. Yeah. And if they did, then we wouldn't have to worry about this quite as much. But I have not met one organization yet that really uses a true pause. So Privileged Access Workstation for those that might be listening. Yeah. which is a separate hard-end workstation for admins and their

cloud-only accounts.

SPEAKER_03But most organizations don't use a pause. And so admins are clicking email links and doing their regular day-to-day activities on the same workstations that they access Microsoft Cloud admin accounts. And then that becomes a problem because, and the fifth way of phishing, which is, We want to land on the device. The attacker, they get past the MTAs, like Proofpoint, Mimecast,

SPEAKER_03and Exchange Online Protection, and Office 365, Defender. And then they get malware onto the device, right? Yeah. So if you're not using a pause and then you have that, the attacker is on the device, there's just no way for you to sign in and steal your tokens. Steal your tokens and then they can use it from that device and then proxy it, you know, through their devices,

SPEAKER_03which... You want to make sure your admin computers have EDR that's properly working and test those controls, you know, because hopefully your EDR would detect those attacks. But if the attacker does land on the admin's device, then they will just steal the tokens when the admin elevates their role, even if they are using PIM. And they will still have access as the admin. But you still want to...

SPEAKER_03Put in your plan authentication contexts and... You still want to put it in your plan and hopefully soon because most organizations, the blast radius is very large for the data plane when a user gets compromised. And when an attacker compromises a user using a cloud method like adversary in the middle, device code phishing or illicit consent, what they're going to do is they're going to pull down all the data.

SPEAKER_03Yes. So whether that's slow, whether that's fast, on the threat actor. And the more scary ones, the more mature ones, they actually go into stealth mode.

SPEAKER_00A lot of nation states do that and they go and hide. So they're hidden and waiting for an opportune time. Then you don't even know that they are already in your tenant. So that is like a noisy threat actor is a lot more you know, a better story for you, you'll find them and you'll be able to lock them in. But the ones that are the more dangerous ones are the ones you don't even know that they are in your tenant. Because they lay low and they're very selective about the

things that they touch on

SPEAKER_03the endpoint in M365 because they know everything is logged. Everything is logged. And when I click on a file, it's logged. you know, or it should be logged.

SPEAKER_00Exactly. And they hide. And if it's a year old account and it does something, you're like, oh, that's always been there. So it's not something new that you feel like it's a threat. It's something that's been there for years. Exactly. And you let your guard down on those as well. So, yeah, those are the ones you really need to worry about, I would say.

SPEAKER_03Exactly. Yep. So with adversary in the middle, we're still going to see it just because even though the defenses are a lot better these days, the way that attackers are delivering them, they're doing browser in the browser attacks. Right. And so the way that we have trained users is to look at the link.

SPEAKER_01Yeah. Yeah.

SPEAKER_03Look for typosquatting. And what the browser does is it takes that away. And so then it looks exactly like the link is supposed to be, right? So how are they supposed to know?

SPEAKER_00Yeah. So for those who are listening, I would say our very first podcast episode on InterChat was with Kuba Gretzky, who is the creator of Evil Jinx, which is a red team tool to sort of make people more aware of these types of attacks and what they can do. And I can remember, like, I'm a part of their Discord. So he's very selective about who he gets on the Discord to make sure threat actors don't get in and be able to. Awesome. So one day I saw someone had made a fishlet that did the

downgrade attack for Hello

SPEAKER_00for Business. And they shared how that fishlet that allows you to do downgrade. Yeah. which everyone on Discord was really excited when they saw that because they could downgrade. So it really helps people learn about this in a real world. Like sort of you can show it to people how easy it is to do these sort of downgrades. Like it feels like it's very complex and will take a lot of effort.

SPEAKER_00But with the tools that are available today, It's really, really easy to, you know, even do a POC and show people that it can be done in minutes.

SPEAKER_03Yeah, and even though we're talking about Intra here, people need to realize that it's not just Intra. It's anywhere that an attacker can log in on your perimeter can be targeted by an adversary in the middle of attack. So it's not just Intra. So let's say you're a newer organization and you have your GitHub Pro and it's not behind a proxy and living within the internal network, then that might be targeted. We saw that with

the sales loft drift um attack where the attacker got into the github and now you have 700 organizations compromised because of that attack and i'm not saying that

SPEAKER_03it was uh an adversary in the middle fish but it could have been yes so I don't know. I haven't caught up with the news. Maybe it was, maybe it wasn't. I don't know. But the point is, is that attackers can use it for the GitHub logins. They can use it for any, your Salesforce login. They can use it for any login. It's not just Entra. Entra has ways that you can mitigate it, though, with conditional access. And so that's the important thing to remember and make sure that you're decreasing

SPEAKER_03your attack surface because... Initial access is, you know, where you should be focusing the majority of your time, in my opinion, because if you can prevent them from coming in or mitigate it to where there's a really small attack surface for initial access. Yeah.

SPEAKER_03That type of initial access is different, and that's why assume breach is still so important, because we're seeing that come to surface in the news a lot more lately. So you still have to be thinking from that perspective as well. But from your ransomware groups, extortion groups, back actors, and even... You know, state-sponsored actors that are using things like device code phishing. You know, there's things in Entra that you want to make sure that your caps are adjusted and protecting the organization so that you don't have to deal with those.

SPEAKER_00Yes. And for those who are wondering what caps are, like, it's conditional access policies. Just for the few folks who have not heard of it in that way. Cool. Awesome. Erica, I think we can spend like hours talking about all of the like.

SPEAKER_03But I think we have a good talk for now.

SPEAKER_00But I do want to ask you, right? Like, how do you like you do a really good job of being able to master things really quickly? Like you just got into, I said, in 2022 cloud stuff.

SPEAKER_01Yeah.

SPEAKER_00In like in like in three years. you really, really master things and you sort of, you're in the weeds, you know what works, what doesn't. And not just enter, like I know now you looked at Purview, I know you looked at Power Apps. you message me on lots of things. And a lot of the times when you ask me something, like I myself am stumped because I know you, you've done all the work before you come to me. So it's never an easy answer when you have questions. And I need to go find the different people to sort of try to

get that answer.

SPEAKER_00But I know when you come up with something that it is, it's something, you know, that's not in our docs and so on. So tell us your secret. Like, how do you, do it like how do you learn and what are the tips you can share for people i have no life i'm just kidding no it does make it a lot easier because um i don't have a family i don't have kids so i have a lot of free time that a lot of people don't have and you know i recommend living your life yeah but that's

just one part of it

SPEAKER_00right like we all have time and uh Like even if you have the time, we still find it hard to sort of read things and retain and remember them and be able to sort of connect the dots. And you do it like sort of very effortlessly. That's how I would want to say.

SPEAKER_03I spend a lot of time with it, an incredible amount of time with it. So, all right, let me talk about how I learned M365 in Azure. So in 2022, I did that. I pulled down the Sys benchmarks and I read them, I don't know, 30 times. I'm not kidding. And I got my test tenant. Back then we had the dev tenant.

SPEAKER_00For reference, what is a Sys benchmark for those who don't know? So they're security controls and you can actually map them to various compliance

SPEAKER_03frameworks as well. The Sys benchmarks are really great guiding points. You know, you can implement them wherever possible if you're a smaller org, but the larger the organization gets, the more complexity you have with third-party solutions and integrations. So a lot of times they don't work. Or sometimes they may not be the perfect guidance, but they're a great starting point to learn.

SPEAKER_00You can read a lot about the different configurations and why they're important and where you need to go and tweak them, right?

SPEAKER_02Exactly.

SPEAKER_00So you went through all of, you read all of that because then you go straight to the point of what are the things, the knobs that you would need to configure. I went in and clicked all the buttons and the knobs and I implemented all the

SPEAKER_03suspense benchmarks and test tenants. I implemented quite a few of them in Security engineering engagements with work. Not all of them, of course. I do recommend all of them wherever possible. But you have to assess... you know, where it's possible.

SPEAKER_01Yeah, that's right. Right.

SPEAKER_03Exactly. After that, I started doing the offensive courses. Pond Labs has a great offensive course that focuses a lot on Intra and Azure side of the house. Altered security was probably the best that I went to. Because I did Cart P and Cart E when they first came out, which is adversarial tradecraft that is happening in the real world today, right now. It is very good.

SPEAKER_03And these attacks, basically, I replicated their lab, built my own cloud infrastructure with attack tools and my own attack tenant.

SPEAKER_00Wow.

SPEAKER_03And yeah.

SPEAKER_00Nikhil from Altered Security. I've chatted with him and he sponsored the Entra newsletter as well. So like, yeah, they're really like I'm even interested in taking their courses and learning how, you know, how you how you secure Entra from. I highly recommend it just because the attacks that they discuss are things that

SPEAKER_03every organization is struggling with around the world right now. And it is the real threat landscape. It is real. There's nothing in there that... It's not real. And I haven't seen in real life and replicated in real life and POC'd in real life to organizations to either come up with better defenses and detection engineering or to put in mitigations like conditional access policies or different policies. tenant-wide settings that can decrease blast radius and whatnot

so we have altered security to those labs and those were very good um we have pond labs and then i did all of the microsoft learning um and sc300 took me forever oh my god i nearly i

SPEAKER_00nearly failed that exam which is the identity exam

SPEAKER_03Yeah. So SC300 is a Microsoft certification for identity and access management. And they have the, I have my Microsoft Cloud profile, certification profile, and I don't do the certifications. I just do all the learning modules. And then I apply them to my tenants because I have test tenants. I haven't. I have a business premium tenant with security and compliance and mobility, um, add on for all of the purview features and the Intune security features and everything, because I need those to be able to test in,

SPEAKER_03in my own environment. Um, But I do all of those and I don't just like read through the modules. I actually go into the tenant point and click and make sure that I understand what it's talking about. I set up a lot of infrastructure. I've set up a lot of tenants, attack tenants for different engagements. I set up a new one every time when I would do purple team engagements.

SPEAKER_00So what I'm hearing is like go hands on and do those things, right? Like going through your tenants and Just reading is not going to be enough to be able to master things.

SPEAKER_03No, you have to have hands-on. And I've been really fortunate to work with a lot of consultancies where I've been able to see a lot of organizations, about 30 different tenants now, and the various configurations that they have and third-party solutions they have implemented and integrations and whatnot. So that is really, really helpful. Yeah. But I know a lot of people, they, you know, they work for a big work. They stay in the same role for 15 years and they don't get that experience where

SPEAKER_03they see all of the different tenants.

SPEAKER_01Right.

SPEAKER_03So and the different configurations that they might be in. So that has been incredibly helpful. I always spend longer than what I'm supposed to on my engagements, even though we are scoped for so many hours. Right. And I don't spend longer because I have to. I do it because I have the opportunity in somebody's organization to learn how they did things. Exactly. So that's why I spend more time because I'm learning how people are doing things so

SPEAKER_03that I can... assess the overall, like this is what happens in 90% of tenants. This is what happens in some tenants. This is, you know, you see this game over and over again.

SPEAKER_00Yeah. I think the trait, what you're saying is being curious, right? Like just pulling on a thread and why is this tenant different? And you know, going deep into that because it's an opportunity to learn. Like it's not every day you get to go into a tenant and see what's happening there. So every new tenant you come across, you're trying to get the maximum. You're trying to learn from each tenant. So, okay, so now I'm starting to form a picture of, you know, how somebody can master Entra,

like being exposed to lots of different types of tenants and teams and different

SPEAKER_00cultures and how they work. are sort of unique things which you get to see and you're making the most of the time.

SPEAKER_03Yep, definitely. And I've worked with a lot of different stakeholders across the organizations as well, whether it's the, I work a lot with identity and access management teams, directors of security, CISOs. And, you know, sometimes I'll go through other stakeholders as well, like the purview. It's really funny to me. Organizations, they have the data plane and the identity and access management plane and security operations, all separate silos.

SPEAKER_03And those are the teams that need to be working together.

SPEAKER_00It's just the org chart, right? They're all broken into different org charts. And sometimes they don't even know that the person even exists, right?

SPEAKER_03Exactly.

SPEAKER_00Your compliance, what does compliance do? Like, I don't even know what that means.

SPEAKER_03Exactly. It's so siloed still. And that, you know, I understand that. Separation of duties. But that is, in my opinion, a killer of collaboration. And when you can't M365 is an ecosystem. of all interworking parts. You don't have these, this admin center over here does this and doesn't interact with this admin center over here, which does this and doesn't, it's not like that.

SPEAKER_03It's an entire ecosystem of interworking parts. So your organization should reflect that. And have communication and collaboration across the stakeholders because we understand the larger the tenant, we have to have more narrowly defined roles that can specialize and be able to handle the workload. But at the same time, you need to know how the tenant is working as a whole to be able to effectively defend against modern attacks.

SPEAKER_00Nice. Awesome. That's such an amazing question to have you mastered. And I think you covered a lot of things, right? Like being curious, being able to, you know, go and learn from the be able to read the different docs and trying out things like the altered security and those other things. So yes, lots of awesome advice from someone who has done it, right? Like the proof is that I can, like, you know, every time Erica says something,

I know...

SPEAKER_00She's always done her homework. She knows it all inside out and is trying to...

SPEAKER_03We all have knowledge gaps, all of us, and me especially. And if it wasn't for people like you and Nathan McNulty and Fabian Bader and Jim Baker...

SPEAKER_00And that's the other thing. Asking questions is the other one, right? Like asking and trying to learn from anyone. Like no one really all know the answer. So being able to... build that community and be able to, you know, draw from that community and help each other out is the other thing, right? It's not always take, like it's sharing that knowledge with others when they ask things that you can help answer.

SPEAKER_03Yep, exactly. I have had been very blessed to have a lot of mentors. And so I'm very thankful for people like you and Nathan McNulty who are always there to answer my questions and, you know, and then I try to share whenever I can. So, so yeah, it's a, it's a journey, right? It's a marathon, it's not a race.

SPEAKER_00It is, that is true. Awesome. Erika, it's been so much fun. And I really, really want to thank you for coming on. It's such a really early hour for you. And we had to repeat part of the recording as well. So thank you so much for your patience. Really appreciate it. And you shared a lot of good gems today. And I know there's lots of things people took away from this chat. that they will go and try out and practice from hack the box to

learning from

SPEAKER_00taking, you know, downloading that, going through those. Lots of good stuff. Thank you so much for coming in and sharing all your knowledge.

SPEAKER_03Thank you for having me. So great to talk to you in person. Yes.

SPEAKER_00Or on video. And for me to see you in, see who Derika is. And for the world to see as well. It's awesome.

SPEAKER_03Yeah. All right. Well, thank you. Have a great day, everyone. And thanks for tuning in.

SPEAKER_00See you all on X. And now you're on LinkedIn, so LinkedIn as well.

SPEAKER_03Yeah, definitely on LinkedIn too. So thanks a lot.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Which Passkey Should Your Users Get? The FIDO Alliance CTO on Passkeys and Post-Quantum Cryptography

    Nov 14, 202645 minAudio

    Microsoft is moving millions of users off SMS and onto passkeys, and most admins now have to decide which kind of passkey each group of users should get. Nishant Kaushik, CTO of the FIDO Alliance, the industry body...

    Credit the people on this episode

  2. Free AI Agents, the E7 Bill and AD vs Entra: The Workplace Ninjas US Special

    Nov 7, 202625 minAudio

    AI agents are arriving in every Microsoft 365 tenant, and the questions admins ask first are what they cost to run and what it costs to secure them. In this Workplace Ninjas US special, four of the eventโ€™s speakers...

    Credit the people on this episode

  3. Entra Multi-Tenant App Mistakes Every SaaS Builder and Admin Should Know, with Kelvin Tegelaar

    Oct 31, 202643 minAudio

    Most SaaS vendors connect to your tenant with one multitenant app and one credential, shared by every customer. Kelvin Tegelaar, founder of CyberDrain and creator of CIPP (used by well over 10,000 MSPs), sees it from...

    Credit the people on this episode

  4. Conditional Access Gaps and the App Back Door, with Brandon Colley

    Oct 24, 202639 minAudio

    Most Conditional Access gaps arenโ€™t exotic. They come from reading policies the wrong way: as firewall rules with an โ€œallowโ€, as a list of platforms that seems complete, as an MFA exception for the office that made...

    Credit the people on this episode

  5. Stop the Bleeding: Cleaning Up Apps, Secrets and Consent in Microsoft Entra

    Oct 17, 202651 minAudio

    Most tenants have the same problem: hundreds of app registrations and service principals, client secrets that were set to expire in a hundred years, permission grants nobody remembers approving, and test tenants that...

    Credit the people on this episode