Latest / Blue Security / Lastpass Incident Update
Transcript
- 0:06Welcome to the blue security podcast, a weekly podcast for
- 0:10information security Defenders, where we bring you two sessions
- 0:13on best practices, tools and implementation for Enterprise
- 0:17security. Now here are your hosts for
- 0:19today's show, Andy jaw and Adam Brewer.
- 0:22Welcome to another episode of the blue security podcast.
- 0:24I'm Andy your host, I'm Adam your co-host.
- 0:27So this week I wanted to do a breakdown of an update on the
- 0:32last pass incident. There is some news articles that
- 0:35were released at last pass. It updated their blog and done a
- 0:38friend, Zack investigation, Adam saw the news and wasn't able to
- 0:42read all of it and maybe some of you weren't able to read all of
- 0:45it. I read through the entirety of
- 0:47the blogs, and the Deep dive on, everything that they've done and
- 0:51how the threat actors got in. So I wanted to chat about it
- 0:54because I think there's a lot that you can learn and the way
- 0:57that they got in is probably Vulnerability, at many
- 1:01companies. It doesn't.
- 1:02Forgive what happened? Because I think the security was
- 1:06laxed, however, hopefully as we all do in the security industry,
- 1:09we can learn from other people's mistakes.
- 1:12Hopefully not replicate them and Harden.
- 1:14Our own environments to prevent this from happening.
- 1:17So the first incident there were actually two of them.
- 1:20The first incident started on August 8th and lasted until
- 1:23August 12th of 2022. So, last year, and what happened
- 1:26was, they saw some behavior and access Sin.
- 1:30Consistencies with us Pacific last past software, engineering
- 1:34employee who had access to develop mental resources.
- 1:38What they determined was with the help of mandiant who was
- 1:42their partner in this investigation.
- 1:44That the software Engineers, corporate laptop had been
- 1:47compromised and that allowed the threat actor to have access to
- 1:51resources that the engineer legitimately had access to
- 1:54because it was on a Corp laptop. Now, due to some anti forensic
- 1:58activity, which means that the Actor actually like deleted,
- 2:01some logs and deleted some system artifacts.
- 2:03They're actually not able to determine how the threat actor
- 2:07got into the SES laptop, which is unfortunate, but they do know
- 2:11that the laptop was configured with their standard build
- 2:14applications utilities and security controls.
- 2:17They also do know that there was a need ER agent installed.
- 2:21However, it was tampered with in it was not triggered during the
- 2:24initial activity. I think that's important because
- 2:27I don't know what EDR agent they're using but I You know
- 2:30that one of the things that is important for Ed our agents is
- 2:33that tamper protection is enabled.
- 2:35Not all EDR Solutions have this, but I know that at least for
- 2:39Microsoft we do have something called tamper protection.
- 2:41We did an entire episode Deep dive on it because it is now
- 2:45turned on by default for anyone who's deploying Defender for
- 2:48endpoint. It's also available for the Mac
- 2:51in preview, so it's not turned on by default, but you can turn
- 2:54it on. That was episode 108.
- 2:56So if you're interested in how Microsoft does it, we have a
- 2:58whole Deep dive on that, but They were able to essentially
- 3:01modify the settings or turn off EDR so that it didn't alert the
- 3:06sock to anomalous activity that was going on.
- 3:08Then the threat actor used a third-party VPN service to
- 3:11office, Kate the origin of their activity.
- 3:14I think one of the maybe the first episode we did Adam was
- 3:17talking about geo-locating or geofencing for IP addresses.
- 3:22Yeah. And I think this is important
- 3:23because if you're just using network services and trying to
- 3:27geofence your IP address, in fact, we talk to A customer,
- 3:30maybe not. You and me, but I definitely
- 3:32talk to a customer this week where they were like, yeah, our
- 3:34security is solid. We geofence all of our IP
- 3:37addresses and I was like, okay, well, what happens if your
- 3:39corporate Network gets compromised?
- 3:41Now what happens is that they have access to your resources
- 3:45that are on that Network? So, you know, in this case they
- 3:47used a third-party VPN and then they tailgated into the
- 3:51development environment, using the corporate VPN, which was
- 3:55configured on the corporate laptop, they were able to
- 3:57connect because the computer was It via the main credentials and
- 4:01MFA, there was no privilege escalation that was identified
- 4:04or required to get into this development environment.
- 4:08And then from there they exfiltrated a bunch of data,
- 4:10technical documents source, code about 200 repositories from the
- 4:16development environment, and they identified that some of the
- 4:19code, repositories included, clear text embedded, credentials
- 4:23stored, digital certificates, and then some encrypted
- 4:26credentials that are used for production capabilities, such as
- 4:29background, the The encrypted credentials required a separate
- 4:32decryption key, which was not available to this software
- 4:34engineer, or throat actor, during this incident.
- 4:37But keep that in mind because it'll come in in the second
- 4:39incident that happened during the first one.
- 4:42There was no customer data that was taken and the cloud-based
- 4:46environments and physical on-prem production environments
- 4:50are separated, both, physically and logically.
- 4:52So, you know, that does harp to some of the practices that Adam
- 4:56and I have talked about where you keep in the to cloud and
- 4:59on-premise. Environments separate.
- 5:01So some things were done correctly here but man having
- 5:05clear text embedded credentials and other things in the code
- 5:08repository. That is definitely not good.
- 5:10So I'll pause there because this might have been the first time.
- 5:13I think you heard all of this Adam wanted to see what your
- 5:16thoughts are on so far. Real-time reaction a lot of this
- 5:21mirrors incidents. We've heard of before, when I
- 5:23think of solarwinds the remember, there was tampering
- 5:26with their EDR agent. I believe they had fire.
- 5:28I and they Were able to fly under the radar during some of
- 5:32the early stages of that attack as well.
- 5:35So tamper protection, obviously really important, you mentioned
- 5:39several instances of insecure code or insecure practices where
- 5:44secrets were stored in code. So having some sort of solution
- 5:47to do that monitoring GitHub, Advanced security is one to call
- 5:52that out and prevent that behavior is really helpful as
- 5:55well as just creating a culture where that's not something
- 5:57that's practiced in the environment and again, All of
- 6:00this, we've harped on the lot into you think to your point but
- 6:04getting into a VPN should not just be like we have got
- 6:07everything now like that is bad mean everyone listing knows
- 6:11that's bad and I get that there's an order of operations
- 6:15to ways were hardening our environments over time that is
- 6:18starting to become one. I think that is becoming a
- 6:20greater and greater risk where it shouldn't just be.
- 6:23Wow, I got in VPN, I'm on the network now like and I can just
- 6:26run amok. That's where having per app VPN.
- 6:29VPN or some of these more segmented, style connection,
- 6:33strategies like a Z scale or work really really well or just
- 6:37because they got access to. This one thing doesn't mean I
- 6:39can pivot to another thing and so already we're kind of
- 6:43stacking up Lessons Learned here and different ways we can start
- 6:46to harden the environment. Any one of these would have
- 6:48helped none of them are a silver bullet but the sum of all of
- 6:52these which organizations are doing really really help.
- 6:56And again, I get not everyone's going to be a sophisticated is
- 6:59like Microsoft with 200,000 employees globally by almost
- 7:03everything on that list. Like we already do, we have
- 7:05tamper protection antivirus in our machines?
- 7:07We don't have like, full-on, just get to everything VPN and
- 7:12we use it rarely when we do and we obviously have take pretty
- 7:15seriously the security of code, and some of those coding best
- 7:18practices application security stuff.
- 7:20So it's a practice and you're just trying to get better over
- 7:23time. So some interesting learnings
- 7:25here for sure. Nothing.
- 7:26That's egregious, though. Nothing.
- 7:27That's not common practice today.
- 7:29Like there isn't anything here where it's like, well gosh, you
- 7:31know, they installed like a log me in agent and then had the
- 7:35credentials as default or something, open to the public
- 7:37internet, like nothing egregious.
- 7:39And even some of the things that are probably would be most
- 7:41interesting, aren't documented because the threat actors, like
- 7:45you said deleted some of the audit logs and ways we could
- 7:48forensically tell what they did. And so that's probably maybe the
- 7:51most interesting bar though we don't get to hear about is how
- 7:53they got that initial axis on the corporate device, however
- 7:56nothing egregious, right. And that just kind of shows like
- 7:59why we have to keep Upping our game.
- 8:00What was really good? A while ago is not so great
- 8:03anymore and I think that if you're in infosec, you have to
- 8:06have that hunger of never being satisfied.
- 8:08Like this is good for right now. We have to get to the next
- 8:11stage. We have to get to the next
- 8:12place. And really one of the things
- 8:14that I took away from this is that this is a very specific
- 8:17targeted attack to last pass, right there, obviously, a very
- 8:22juicy Target, right? And not to say that all the
- 8:24things that we do at Microsoft would have prevented this,
- 8:27right? But like you said, Adam, there's
- 8:29nothing Regis here, definitely some things that could have been
- 8:31improved that may or may not have prevented it, but we don't
- 8:34know. The initial Vector of attack
- 8:36could have been an email to have been malware that they
- 8:39downloaded from somewhere. Could've been anything?
- 8:42Woohoo. But my assumption is because it
- 8:44was so targeted. It was probably some email or
- 8:46link that was sent directly to LastPass employees, and then
- 8:49they got a foothold in, right? So, a couple things they did to
- 8:53harden the environment after this first incident.
- 8:55And I'm not going to Deep dive on any of these because a lot of
- 8:58them are pretty straightforward. Word.
- 9:00But they obviously replace the laptop that the Su was working
- 9:03on. They also assisted in hardening,
- 9:05their home network and personal resources, which is interesting
- 9:08because I think a lot of companies don't think about
- 9:11that. Like it's one of those things
- 9:12that's kind of, again, bottom of the list or it gets pushed down,
- 9:16you're like, oh people are working from home, maybe we
- 9:18should Harden their home networks, you know, because it's
- 9:21not the same as your corporate Network.
- 9:22So it's unclear if their home network was compromised, as part
- 9:25of this, it could have been at also keep in mind for incident
- 9:29to because that We'll come in. They also deployed some
- 9:31additional EDR, solutions to augment.
- 9:33The security controls on the engineers laptops, they did some
- 9:36tuning, some preventive, configurations additional
- 9:39logging. They deployed a secure access
- 9:41service edge, or a sassy solution to manage direct split
- 9:44tunnel, internet access and begin.
- 9:46The replacement of VPN access with a zero.
- 9:49Trust network, access solution, right there.
- 9:52Right. I mean, like you talked about
- 9:54Adam start getting rid of VPN because once you have VPN and
- 9:58it's a full tunnel access to your For Network, then this
- 10:01really easy to Pivot to other things versus like an
- 10:04application proxy or Z scalar where it's a micro VPN tunnel or
- 10:08sassy solution where you just getting access to that specific
- 10:11application or resource. Right?
- 10:13They purchase new hardware authentication devices for
- 10:16software platform Engineers development, use cases vital to,
- 10:19right, right? We talked about that many, many
- 10:21times. They rotated the LastPass
- 10:23credentials certificate Secrets. There were known to the threat
- 10:25actor. They updated their wife, their
- 10:27web application, firewall to hide.
- 10:29And monitoring for a Malgus activity.
- 10:32They deployed a market leading Cloud security, posture
- 10:35management platform to provide additional attack surface,
- 10:38visibility asset and vulnerability management across
- 10:41the cloud platform. We talk about that all the time,
- 10:43ICS p.m. and we did talk about this on our episode for a cloud
- 10:47security which was episode 103. I do want to do a deep dive
- 10:51eventually on CS p.m., we won't do that here.
- 10:54But, you know, if you have a WS Azure gcp stuff in the cloud
- 10:58infrastructure in the cloud, You should have a call security
- 11:01posture management at least a basic one deployed somewhere
- 11:04they removed any potential for persistent and to ensure
- 11:08contamination and eradication date, disabled and removed
- 11:11access to the development environment, that was
- 11:13compromised. They preserve the artifacts for
- 11:15evidence and that ultimately destroyed the environment.
- 11:18I think this is one of the things that we talk about to is
- 11:20like, how do you know that the attacker is gone?
- 11:23You know, the only way to really trust is to destroy that, you
- 11:26know, reimage that laptop or do whatever, right?
- 11:29And In this case, they destroyed the development environment
- 11:32completely. And then rebuilt it from scratch
- 11:34over a six-week period and then they deployed some kubernetes
- 11:38and Docker configuration updates.
- 11:40They removed access to the underlying Cloud platform for
- 11:44the engineers and developers. So that to me says that they
- 11:47actually removed, you know, configuration access to like say
- 11:50Azure or AWS for those engineers and you're just providing them
- 11:55with the ability to like do their work within that platform
- 11:59which is really One. Because sometimes those
- 12:00developers like, oh, I need admin access to, you know, Azure
- 12:04or AWS or whatever. I need this role in order to do
- 12:07this thing and they restricted or remove that.
- 12:09And then they deployed some canaries within their production
- 12:12and development environments. Canaries are interesting.
- 12:15I don't think a lot of people use them but they're just there
- 12:18to appear as a juicy Target like a SMB file share or some
- 12:24spreadsheet that says passwords or something like that and then
- 12:26as soon as a threat actor, accesses that particular Canary
- 12:30it sends a alert and it's not real data.
- 12:32It's not a real thing that's just there to lure the threat
- 12:36actor in. So a lot of things they did, I
- 12:37think a lot of good stuff here. I wish that they would have done
- 12:40it before. We've talked about many of these
- 12:42things on a previous shows. Sure did get a lot of money for
- 12:45security updates. All of a sudden, didn't they?
- 12:47That's always frustrating. It really, really is, I mean, if
- 12:49these are identified needs and I get, we have to run a business
- 12:52here, but man, like all of a sudden all this stuff got done,
- 12:56you know, you mentioned the eradication of the entire
- 12:58development environment. Rebuilding that.
- 13:00I mean, that's impressive. I have been really Auntie, like
- 13:03trying to repair or clean machines for years.
- 13:06I've always subscribed to the philosophy of nuke.
- 13:08It from orbit. It's the only way to be sure
- 13:09like, paraphrasing from Alien or aliens, whichever one.
- 13:13It was, I don't like, trying to clean something, like, you just
- 13:15don't know, you just got to flatten it and repave it.
- 13:18So that's very aggressive, but kind of awesome like good for
- 13:21them. And we did an episode several
- 13:23weeks ago, about operational excellence and we are kind of
- 13:26riffing off of a Swift on security tweet talking about if
- 13:29you Don't rebuild PCS in your environment and minutes.
- 13:32Then not only does that help you with security, that helps you
- 13:35with other potential operational issues that aren't necessarily
- 13:39security-related, but their security benefits from being
- 13:42able to do it. And so, I think of stuff like
- 13:44that, like, the fact that they could even do it.
- 13:46So they took six weeks, like, that's still pretty fast.
- 13:48I think it's kind of awesome. The obviously had some pretty
- 13:50good operational excellence around how they ran their Dev
- 13:53environment. So that's kind of cool.
- 13:54This is actually more of a response than I expected which
- 13:57makes kind of the lingering storms.
- 13:59That there's going to be a second incident.
- 14:01It's much worse, really interesting because they did a
- 14:03lot of stuff here. Like this is pretty good, I'm
- 14:05sure. Not all this was done and fully
- 14:07operationalized, even if it was deployed.
- 14:10And we as Security Professionals know, there's a quite a
- 14:12distinction between the two but very, very interesting how much
- 14:16they got done in a pretty short period of time and honestly, an
- 14:18impressive effort, really, really good.
- 14:21Yeah, I think the timeframe of deploying some of these tools
- 14:24and maybe updating the blog. I don't think they got it all
- 14:27done before the second incident because what happened it was
- 14:30during the forensic investigation, they discovered
- 14:32that the first incident ended when they detected the activity
- 14:35on the corporate laptop and then the attacker was still in the
- 14:39environment until October 26 2022.
- 14:43And so they use the information that they exfiltrated from the
- 14:46first incident, they were able to stay on the network.
- 14:48Identify people, do some reconnaissance of, you know,
- 14:51other Engineers or titles that they might be able to Target and
- 14:56they pivoted. And so what they discovered was
- 14:58the alerting and logging. Was enabled during the second
- 15:01incident but it wasn't immediately indicating Anonymous
- 15:04Behavior because specifically and I think we've talked about
- 15:08this before. Adam the threat actor was able
- 15:10to leverage valid credentials stolen for a senior devops
- 15:14engineer to access a shared cloud storage environment which
- 15:17made it difficult for investigators to differentiate
- 15:20between the threat actor activity and ongoing legitimate
- 15:24activity. So I mean this is one of the
- 15:26most difficult things when it comes to attacks is Is when
- 15:30credentials are stolen, the user who ultimately has legitimate
- 15:34access to, the resource may still be logging in doing things
- 15:38that they need to all the threat actors just kind of in the
- 15:40background and that activity is actually hidden because it looks
- 15:44like legitimate access and our tools just aren't very good at
- 15:48detecting legitimate access. That might be malicious.
- 15:52That's just a. I think in general is a very
- 15:54difficult thing and ultimately their AWS guard Duty alerts.
- 15:58Informed them that Was a threat actor because the threat actor,
- 16:02attempted to use the cloud. I am role to perform
- 16:05unauthorized activity. So to access these S3, buckets
- 16:10that have this Vault data, they needed the decryption keys, and
- 16:14if you remember in the first attack, when they exported all
- 16:17that stuff, they didn't actually have access to the decryption
- 16:19keys for the encrypted data. And what last past this close to
- 16:23us? Was that there were only two
- 16:24places that the decryption keys were stored.
- 16:27Number one in a segregated and secure imitation of an
- 16:31orchestration platform and key-value store used to
- 16:34coordinate backups of the last past development and production
- 16:37environments with various cloud based storage resources.
- 16:40Now, that's obviously really difficult to get into the second
- 16:44one. However, was a highly restricted
- 16:46set of shared folders in a LastPass password manager,
- 16:49Vault, that were used by devops Engineers to perform admin,
- 16:52duties in those environments. Now, they disclose that.
- 16:55There were actually only for devops engineers with the keys
- 16:58to the kingdom that had Access to these decryption keys and
- 17:01what this threat actor did was actually Target one of them at
- 17:05home. So it turns out this home
- 17:07engineer had their corporate LastPass Vault signed into on a
- 17:12non-managed home computer and the threat actor was able to use
- 17:16and exploit a vulnerability in a third-party media software
- 17:20package. Which enabled remote code
- 17:22execution capabilities, that allowed them to implant a
- 17:25keylogger malware and then as the employee was typing in their
- 17:29Are master password it was captured and after they
- 17:31authenticated with MFA and they were able to gain access to the
- 17:34LastPass corporate Vault for this devops engineer that is one
- 17:38complicated but very targeted attack and it was actually
- 17:42reported in the media that the vulnerable software was Plex.
- 17:45And many people run Plex servers.
- 17:47And in fact, many people allow their Plex servers to be
- 17:50available over the internet. I have a Plex server.
- 17:53However I keep it internal to my network I don't actually allow
- 17:57externally because I know there's Characters who look at
- 18:00that and I also check it often for updates and if you're just
- 18:04sitting at home watching, you may not log into your Plex
- 18:06server and see that there's an update.
- 18:08Now it will actually tell you fortunately in whatever format
- 18:13you're playing it in. Like I have it on Apple TV I
- 18:15have it on my iPhone. Now when you actually log into
- 18:18the Plex app it'll say hey there is an update for the server.
- 18:21I used to not do that. You just have to actually going
- 18:23through the browser to look at that but now, it does that so
- 18:26really nice sounds like, you know, this Dev Ops It wasn't
- 18:29updating his Plex server. He probably had external
- 18:32capabilities enabled and they were able to take advantage of
- 18:35that so they were able to export to the Vault entries, in the
- 18:39contents of the shared folder. I'm pretty sure it's been a
- 18:41while since I've been a last past admin in a corporate
- 18:43environment, but I'm pretty sure you can actually have a setting
- 18:47to prevent exports of any shared folder.
- 18:50But in this case, this highly restricted, one with the keys to
- 18:53the kingdom Theory able to export it.
- 18:54Now, maybe he just copy and paste it or something like that
- 18:57with access to the corporate vault.
- 18:59Maybe he did it that way. It doesn't actually say how he
- 19:01exported. But there is a setting.
- 19:03I'm pretty sure where you can just prevent things from getting
- 19:05exported and so that's how he got access to the S3 bucket.
- 19:08And in there was production backups, which is what
- 19:11ultimately was stolen. And all the news, we did a whole
- 19:14episode on that. Now, there are two different
- 19:16ways to implement corporate LastPass.
- 19:18And this may also be something for other corporate password
- 19:22managers like bit Warden or one password you can implement it
- 19:25using a master password, which then is managed through LastPass
- 19:29And is only for LastPass. There's benefits to that because
- 19:32it's like it's a separate password from your corporate
- 19:34password. And, you know, if your corporate
- 19:36identity gets compromised and they wouldn't hopefully have
- 19:39access to your fault, but in this case, you can see that they
- 19:42still might be able to get access to it.
- 19:44The other way is Sam authentication like through your
- 19:46IDP. So single sign-on, there's
- 19:49benefits that for usability for the user.
- 19:51They don't have to remember another password and you can
- 19:54Implement most importantly, a device management solution that
- 19:57Force, compliance checks, and configurations.
- 19:59So, Get single sign-on. You can do conditional access or
- 20:02MFA, you can force it to only be on a compliant device.
- 20:06So I think in this case, LastPass probably didn't have
- 20:09it. They had a separate master
- 20:10password and they were able to compromise that that way.
- 20:13So obviously was on a home computer and there was no device
- 20:16management deployed for that. Wow.
- 20:21And that, that's impressive, right?
- 20:23You have to understand like obviously, the threat actor, had
- 20:26a significant amount of reconnaissance to Stand, like,
- 20:30where stuff was, who had access to it and all of that, you know,
- 20:34there's a lot here that had to happen for them to have the line
- 20:37of sight to know where to go and what to do.
- 20:39And then to make a plan to execute it.
- 20:40I mean, the plan, super impressive, how they even found
- 20:43the home computer ports? Candidate found Plex running.
- 20:47Wow, that's a targeted attack for you and that's why they're
- 20:49so hard to stop. And I think you're right.
- 20:51I mean, ultimately here like you talked about early on if the
- 20:55logging of those legitimate accounts being used in Ways had
- 21:00highlighted that better. They potentially could have
- 21:02caught that earlier and that is one of the biggest challenges in
- 21:04information security today, because most attacks remain
- 21:08identity attacks at their core. I'm going to take over an
- 21:11identity that is privileged to do something and then go do a
- 21:13thing and how do you how do you call that out?
- 21:16How do you see that? And it's something we're all
- 21:18still working on and we're all trying to get better at but I
- 21:20think this is where organizations do need to be less
- 21:23wound up about you know zero days and these really
- 21:26theoretical attacks and again like if somebody took over an
- 21:29account, how to Do we know how do we have visibility in it?
- 21:31What is giving us a behavioral Baseline of activity and
- 21:35alerting when something is anomalous to that, and part of
- 21:37what you have to do here, to be able to really make heads, and
- 21:40tails of that is be relentless, with making your logging
- 21:45valuable, improving your signal to noise ratio.
- 21:48Whether that's having a Sim that does some of that for you,
- 21:51automatic incident correlation, highlighting alerts that are
- 21:54higher Fidelity or potentially more relevant or potentially
- 21:58more dangerous or whatever. Case, maybe it's a multi-pronged
- 22:01effort to get better at this, but it's something we have to.
- 22:04Do you go all the way back to the big?
- 22:06Big, big Target Branch, many years ago, Target logged,
- 22:09everything. It was all there.
- 22:11They didn't see it. The signal-to-noise ratio was
- 22:13too poor. So if you have noisy alerts, and
- 22:17you have to dismiss a whole bunch of them to get to the good
- 22:19stuff, you got to find a way to automate that, you have to find
- 22:22a way to surface the most meaningful alerts.
- 22:25And let you take action on them and then doing everything you
- 22:28can with identity. To flag legitimate anomalous
- 22:31activity. This person sign in from a
- 22:33weird, IP address. They signed in at a weird time
- 22:35of day. They're using a different
- 22:37workstations are using a different internet service
- 22:39provider. If any of those sign in
- 22:40characteristics are different that should be flagged and
- 22:43potentially even blocked depending on how much it's
- 22:47Divergent from their normal, use case.
- 22:50And these are things. We just got to get better at.
- 22:51And some of this is available and some of this is still pretty
- 22:54early day. Like I don't think anybody's got
- 22:56all of this figured out, but you got to get better at all.
- 22:59These things to start to have a chance to find that needle in
- 23:02the haystack. And so again kind of I said with
- 23:05the first part of it, nothing egregious here.
- 23:07Nothing like so crazy. Not a great idea, just a bunch
- 23:11of little things that could be better that stack up and make a
- 23:15way, make a path. For again, a very targeted
- 23:19attack to be clear. This was obviously human driven
- 23:22from the get-go and for good reason.
- 23:24It's incredibly attractive Target.
- 23:26So that's really interesting to me.
- 23:27I think to just you're Right, it's a piling on at this point,
- 23:31maybe don't allow access from home devices at all.
- 23:33But you can argue like, perhaps from their home PC that are
- 23:37doing some sort of remote desktop, a keylogger, would
- 23:39still capture that keystroke going across.
- 23:41So even if you're like, we make everyone sign in with a Azure
- 23:45Bastion host or Windows 365, Cloud PC or insert third-party
- 23:49solution here to get to corporate resources that still
- 23:52would have worked in this case they still could have stolen
- 23:54those creds so you can definitely limit and restrict
- 23:57the ability of being able to work from.
- 23:59On manage devices. But I think everyone wants to
- 24:02find a way to say yes. And here's where you do give
- 24:05some Credence to the tinfoil hat guys who don't want to do that
- 24:07or gals? And again I mean that's that's
- 24:09where you balance like this, super targeted attack versus
- 24:12like normal. It's pretty uncommon for
- 24:15somebody to like, I'm going to go compromise your home PC and
- 24:17install keylogger on it. So I can steal your corporate
- 24:19credit because I know you've been signing in from home.
- 24:21That's really targeted, really unusual.
- 24:24I'd say the overwhelming majority of information security
- 24:27incidents don't involve something to that.
- 24:29At level. So while at the same time, I'm
- 24:31all for learn from this stuff and do better at the same time
- 24:34there's a part of me that says this is super attractive Target.
- 24:38This is a super isolated case and sometimes we don't need to
- 24:40overreact and be like, you can never work from any device,
- 24:43that's not a company managed device.
- 24:45Because for the most part, a virtual desktop type approach
- 24:48does reduce. If not eliminate the
- 24:51overwhelming majority of risk there, but in this use case, it
- 24:53actually went in a salt for it. So that's interesting to me.
- 24:56We're something that's considered a really good
- 24:58practice still. Not have been enough.
- 25:00But again really, really, really, really dedicated
- 25:03attacker and we've talked about this before but it's the level
- 25:06of access that you have, right? Like normal information worker
- 25:10probably don't need to overreact and you know, try to implement a
- 25:14bunch of security things but a senior devops engineer with the
- 25:18keys to the kingdom. Probably should only be
- 25:20accessing that from a paw, right?
- 25:22Right. Or a saw, right?
- 25:23So, like Microsoft allows you to me to have access to corporate
- 25:27resources, on personal machines that are in.
- 25:29Tune managed. But I bet if we were admins in
- 25:31the environment with some sort of thing like that would not be
- 25:34okay, right? So true.
- 25:36So they did do a couple of steps to harden after this as well.
- 25:39I'll go through these quickly because I think most of it is
- 25:41pretty straightforward. They again, assisted the devops
- 25:44engineer with Harding, the security of their home network
- 25:46and personal resources. That's great.
- 25:48We need to think about that because there are
- 25:50vulnerabilities, you know, how often do most people update
- 25:53their firmware on their routers and all of that, right?
- 25:56They enabled Microsoft's conditional Access pin matching
- 25:59m f Using an upgrade to the MFA application, which became GA
- 26:02during the incident obviously. Adam and I have talked about
- 26:05that a lot that is GA now, definitely go and Implement that
- 26:08they rotated critical and high privilege credentials, that were
- 26:11known to threat actor and they continue to rotate other lower
- 26:14priority items. They revoked.
- 26:16And reissued certificates, they analyzed the AWS S3.
- 26:20Storage resources and applied a bunch of hardening things there.
- 26:23I do want to say as far as that goes, there's a ton there that
- 26:26they went through. We don't have to do a deep dive
- 26:28on. U.s.
- 26:29S3 bucket security. But one of the things that I
- 26:32found interesting and this is coming, if you're an AWS
- 26:34customer is that all newly created S3, buckets starting in
- 26:38April of this year, are going to have block Public Access enabled
- 26:42by default, as well as ACLS. Disabled, both are console.
- 26:45Default both have been long practices, but now they're just
- 26:48going to be implemented by default which is great because
- 26:51that will reduce, you know, it's like the tyranny of the fault,
- 26:54right? Like most customers, create an
- 26:56S3 bucket and then it has Public Access in Will by default is
- 27:00like, come on, man. So, now, it's going to be
- 27:02disabled by default Azure blob, which is kind of the equivalent
- 27:06of AWS. S3, buckets have had Public
- 27:08Access disabled for a long time. So that is the default if you're
- 27:11using Azure storage. So you know, one of the things
- 27:14that really came to mind about this and Adam you mentioned it
- 27:17which is like don't allow corporate resources on home
- 27:20computers and that really comes down to like compliant devices
- 27:24and enrolling in device management, you know, obviously
- 27:27Microsoft we use in tune the The access to the corporate Vault
- 27:31was on-boarded with Samuel authentication.
- 27:34Then you can apply conditional access to it to say, only allow
- 27:37access to the last past corporate resource on a
- 27:40compliant device. Which means that they have to be
- 27:42enrolled, which compliance checking, a lot of people use,
- 27:45third-party idps, A lot of customers use OCTA.
- 27:48So, I just went and checked the OCTA device trust documentation,
- 27:51because I was curious, if anything had been updated in the
- 27:54last, almost two years now, since I've been an OCTA admin
- 27:56and unfortunately, not much has been updated.
- 27:59So, For OCTA. They're still only allowing
- 28:02device trust, which is their compliance, right?
- 28:05Like, you have to be on a quote-unquote trusted device in
- 28:08order to access an OCTA resource for Windows.
- 28:10It's only domain joined machines, which you have to
- 28:13upload a certificate that's from your domain controller into it.
- 28:17And then it checks to see that certificate is there?
- 28:19If it's there then it's assumes that it's a trusted device and
- 28:22then you can access OCTA resources.
- 28:24Maybe if they're assuming that if you're using Azure active
- 28:27directory, joined machines that your Using in tune to manage
- 28:30that but that only will work if the device access like Microsoft
- 28:35365 resources, because most likely your other Cloud apps are
- 28:38on border with OCTA and it won't be able to check.
- 28:41So this is a really important distinction for security because
- 28:45if you're using a third-party IDP, the only way you can limit
- 28:48it is really by IP. There's no other way because
- 28:51OCTA or ping, they don't have device compliance built into
- 28:56their solutions. They have these device trust
- 28:58things but it's awful. Bring the compliance to your MDM
- 29:01provider. Just says, hey, are you enrolled
- 29:04in some sort of MDM solution? Yes, then we assume that that is
- 29:08doing the compliance checking for us, it doesn't do any real
- 29:11time. Attestation of that device,
- 29:13which means, you know, if you don't do anything, like if I
- 29:16have an OCTA or Ping On Board, it's a sap.
- 29:19I can just sign into it, okay? Make sure that you have MFA
- 29:22enabled. Great.
- 29:23Okay. Well, that wouldn't have
- 29:24prevented this attack because they have a key logger and was
- 29:28already MFA, like, Authenticated.
- 29:30Like that's the only defense, you have either limited by IP
- 29:33and put in the corporate IPS, which again, we know that the
- 29:35downfalls of that. And then require MFA, there's a
- 29:38lot of Fate acts now. So, you know, that's pretty much
- 29:41it. If you have a valid identity,
- 29:43they can sign in the only way to prevent something.
- 29:45Like this is compliant devices which again, like OCTA.
- 29:48Has you can do it for Windows domain.
- 29:50Join machines, you can do it for Max with champ IOS and Android
- 29:53works with like AirWatch in tuna mobileiron, but you're
- 29:56offloading that compliance to the MDM solution and all it
- 29:59does. The say, are you enrolled in
- 30:00this? Good?
- 30:01Okay. Now you can access the
- 30:03application. They assume that the MDM is
- 30:05doing the compliance checking, which is about the same as the
- 30:09conditional access for hybrid Azure.
- 30:11Ad joined devices. We talked about like, moving
- 30:13your device's, the hybrid a surety join because then you can
- 30:15apply conditional access. There is a conditional access.
- 30:18It says, is this device hybrid Azure ad joint if it is allow
- 30:22access, okay, I mean, that doesn't really check the
- 30:24compliance of anything. Like we assume, if you're doing
- 30:27hybridize your 80, join your probably a Allowing SCCM to do
- 30:31that, compliance shock, or maybe you're doing co-management and
- 30:33you slid that bar over 2 in tune for the compliance check.
- 30:37But it's still using something else to do the compliance check
- 30:41and all it is is just checking. Okay.
- 30:42Is this enrolled? It is now you have access.
- 30:45So I won't like go down the rabbit hole of in tune because
- 30:48we're going to do another episode on some of the in tuned
- 30:51Advanced capabilities. But just know that this is
- 30:54something that is really for me. I like to come on my soapbox
- 30:58because third party. PS, they're great, but they're
- 31:00very, very limiting. Like I truly believe using Azure
- 31:04active directory for your sass apps to integrate with MDM in
- 31:08tune is the best way to secure your environment.
- 31:11Like you can do a third party EDR, I don't care like you want
- 31:14to get crowdstrike, you want to get mine cast or proofpoint,
- 31:18cool. But identity, which we've seen
- 31:20over and over again, as the main Vector of attack to be able to
- 31:24integrate that with Device, compliance is key to securing
- 31:27your environment. A lot of it.
- 31:29Tandy on his soapbox. Normally, I'm on my soapbox.
- 31:32So, this is awesome. Totally agree.
- 31:34Of course, with everything you said and honestly, like, I
- 31:37don't, I'm not here to pick on some of the other really good
- 31:40identity Solutions because they're very good.
- 31:42But this is a miss, and I don't understand if there's some sort
- 31:45of technical challenges with getting a better, I don't know
- 31:48why. There can't be some sort of
- 31:49partnership that shares like API status, like I'm in a query this
- 31:52API when they sign in and check with the status of it is it's
- 31:55mind-boggling to me because having those two things linked
- 31:59together. Is your identity valid, doing a
- 32:01whole bunch of checks on identity is anything anomalous
- 32:04about this sign in combined with what's the health of this device
- 32:08right now? Not did you do this a long time
- 32:11ago. But what's the status right now?
- 32:13Are you patched, are you under threat from the EDR solution?
- 32:17Are you on the proper operating system version?
- 32:20Do you have the security controls enabled and if any of
- 32:23those fail, you can't get to your stuff, you can't get to
- 32:27secure information. Like, Email or SharePoint or
- 32:30whatever third-party application work day.
- 32:33I know actually I comment at a not a common attack bit of
- 32:36clever attack. I heard a while ago, I probably
- 32:37share this on the show before was workday accounts were
- 32:41getting compromised and then people were signing in and
- 32:43changing the direct deposit to a different bank account and
- 32:46stealing people's paychecks. Just like that's really clever.
- 32:49Anyhow having this sort of control and place it hardens
- 32:52that automatically. And so we'll do another episode
- 32:54on it to your point Andy. But gosh, this is something you
- 32:57only get with that. Solution of in tune plus Azure
- 33:01active directory. Nobody else has this in the same
- 33:04way that platform does, and that's across the iOS Mac OS,
- 33:07Android windows. So, any major platform you can
- 33:10support and Linux to write and do these kinds of controls and
- 33:13their significant and they block all sorts of attacks.
- 33:16Like we did a show on evil Jinx forever ago that machine in the
- 33:19middle adversary in the middle attack to steal access tokens,
- 33:23this stops that won't work if you do this.
- 33:25So, anyhow, I love that. You're on your soapbox on this
- 33:28one and you're out. Absolutely, right.
- 33:29So let's talk about that more in a future show.
- 33:32Yeah, and to be clear you can use in tune with third-party
- 33:35idps. It will absolutely work but you
- 33:36can only really do it with Microsoft 365 apps.
- 33:40So if I'm an OCTA customer and I want to get to my Corporate
- 33:44email, yeah, then you can trigger conditional access with
- 33:47in tune to enroll that. However, if you have other SAS
- 33:50apps and that's like the important thing here is like if
- 33:52I wanted to go to my GitHub, that's not integrated with Azure
- 33:55active directory, or if I want to get to Dropbox or some other
- 33:59side. Sap, right development.
- 34:00And AWS, that's OCTA enabled or ping enable.
- 34:04Then you can't Implement conditional access and enroll
- 34:07that device and force it to be a compliant device.
- 34:10As long as they have MFA, your you go on a non compliant
- 34:13device. So that is the biggest security
- 34:15risk that I see. And yeah, I get pretty fired up
- 34:18about it because it is something that I truly believe in and it
- 34:22works. So yeah, pretty, pretty
- 34:24seamlessly to and that's our show for this week.
- 34:26Thanks for listening and watching as always, Our contact
- 34:30information will be in the show notes.
- 34:31If you have any questions or topics you want to stockpile in
- 34:34the future, thanks will talk to you guys next week.
- 34:36Thank you for listening to the blue security podcast.
- 34:38Please check out the show notes. Catch up on episodes.
- 34:41You may have missed and subscribe so you don't miss any
- 34:43future episodes. Find Andy, on Twitter at age 0,
- 34:470, and Adam at AJ Brewer. See you at our next episode?