News for hackers. Stuff that matters.
Re:Microsoft is a national security threat: ex-White House c... by helpfulclippy on Sunday April 21, 2024 @12:52PM (#40107223)
CSRB's report on the Exchange Online breach that dropped a couple weeks ago was pretty damning. Microsoft had a situation where a threat actor had access to the entirety of Exchange Online, and possibly their entire cloud. CSRB describes the entire incident as completely avoidable, and resulting from Microsoft's inadequate security culture, and it calls Microsoft out for making public statements about the breach and its response that it knew to be inaccurate.

The ONLY way that breach got detected was because the State department bought the premium package with extra logging that let them see when mailboxes get opened. It turned out, Microsoft had a signing key that could create access tokens for anything in their cloud, and it was stolen by Storm-0558. (More precisely, the key was only supposed to be useful for a portion of their services, but a bug allowed Storm-0558 to bypass that scope limitation.) And they used that to go read the e-mails of the State department and a bunch of other organizations, and private individuals. There was nothing customers could do to prevent the attack, and apparently no other indication in their logs that it was taking place, besides this category of entry that was gatekept behind a premium subscription package.

Microsoft generated the key in 2016 and discontinued it years prior to the incident, but it was never revoked. Microsoft didn't even bother with key rotations anymore after 2021 because one time they fucked it up and it caused an outage, so they decided to just not do that anymore. Also, Microsoft apparently didn't have any means of detecting the obvious use of a zombie key.

Also, Microsoft still doesn't really know how they got the key. They made a blog post about their theory, representing it as something they were highly confident in based on the evidence. After 6 months of pressure from the government, Microsoft finally updated the post to admit that they had no evidence of critical parts of what they claimed, and several key points in their narrative were factually incorrect.

Then earlier this year, Microsoft got hacked AGAIN because they had an unused-but-active test account with a guessable password and no MFA, and it was authorized for access to e-mail boxes of (at a minimum) numerous members of Microsoft senior leadership.

Microsoft has got serious problems.

edit: I keep futzing with my phrasing. Those wanting a much better account should just read the report, since it has a great deal more nuance and information. https://www.cisa.gov/sites/default/files/2024-04/CSRB_Review...

Re:Microsoft is a national security threat: ex-White House c... by smgit on Sunday April 21, 2024 @01:14PM (#40107384)
Re:Microsoft is a national security threat: ex-White House c... by quantified on Sunday April 21, 2024 @01:01PM (#40107288)
> Microsoft didn't even bother with key rotations anymore after 2021 because one time they fucked it up and it caused an outage, so they decided to just not do that anymore.

Key rotation is almost like restoring from backups. It's an absolutely necessary capability and practice.

Re:Microsoft is a national security threat: ex-White House c... by krooj on Sunday April 21, 2024 @01:22PM (#40107438)
You'd be surprised at how little cloud vendors give a shit about security internally. Story time: I recently went ahead and implemented key rotation for one of our authz services, since it had none, and was reprimanded for "not implementing it like Google". Fun fact: Google's jwks.json endpoint claims to be "certs" from the path (https://www.googleapis.com/oauth2/v3/certs). They are not certs - there is no X.509 wrapper, no stated expiration, no trust hierarchy. Clients are effectively blind when performing token validation with this endpoint, and it's really shitty.

Other nonsense I've seen: leaking internally signed tokens for external use (front-channel), JWTs being validated without a kid claim in the header - so there's some sketchy coupling going on, skipping audience validation, etc...

Not much surprises me anymore when it comes to this kinda stuff - internally, I suspect most cloud providers operate like "feature factories" and security is treated as a CYA/least-concern thing. Try pushing for proper authz infrastructure inside your company and see what kinda support you'll get.

Re:Microsoft is a national security threat: ex-White House c... by ajmurmann on Sunday April 21, 2024 @01:51PM (#40107682)
Are there any large companies that don't operate like feature factories? It seems to be such a common issue and the natural result of the incentive structure.
Re:Microsoft is a national security threat: ex-White House c... by mistrial9 on Sunday April 21, 2024 @02:20PM (#40107939)
although this is a valid insight, it reduces the detail of the conversation into "yes or no" on a topic that is not a "yes or no" topic.. it is behavior and messaging among a dozen critical functions of business. Almost every business is different in their mix.. perhaps faced with similar rhetoric, law says "show me an example then we can discuss" instead of "classify all examples then apply to a situation"
Re:Microsoft is a national security threat: ex-White House c... by mike_hearn on Sunday April 21, 2024 @02:22PM (#40107955)
Not necessarily. Scheduled key rotation has a lot of conceptual problems:

1. As MS found, revoking old keys is very risky because doing so creates outages. But if you don't do it then changing keys is useless. This isn't a problem specific to Microsoft. Lots of companies have learned this lesson the hard way.

2. It assumes that attackers don't just use stolen keys immediately (e.g. to issue more keys, change passwords, create new accounts etc). In practice they usually do.

3. It assumes that if you change the keys the attackers can't just immediately re-steal the new keys.

So it's only really a useful practice in one very specific scenario: you do something that boots undetected attackers out of your network without realising that's what it did, and the attackers need ongoing access that only that key can provide, and they can't use that key to elevate permissions in a more permanent way like by creating a new account on the system or stealing a user password. Pretty specific scenario.

Unfortunately, key rotation also comes with big downsides. Any software that works with keys has to be built to tolerate a change silently, because now it's a regular occurrence instead of a rare one (where maybe a bit of disruption can be absorbed). That creates complexity and therefore bugs. And because it's a repetitive piece of fiddly and complex work that can break your entire service if you get it wrong it inevitably gets automated, and that in turn means that you end up with a large collection of highly privileged subsystems that have the power to silently change keys in ways admins won't notice because they are expecting it: exactly the sort of thing attackers will immediately focus on.

Overall it's not an obviously winning move. Opportunity cost matters too. Whilst you're setting up all the infrastructure to do this, ironing out the bugs, cleaning up after the outages etc, your competitors might be investing in other kinds of security best practices that are more effective. It's especially useless here because MS don't know how the key was stolen to begin with, so there's no reason to think that if they changed it that would have had any effect. Most likely it could have just been immediately restolen and all the effort would have been theatre.

Re:Microsoft is a national security threat: ex-White House c... by ripjaygn on Sunday April 21, 2024 @01:54PM (#40107715)
Maybe the CSRB should look at their own agency, CISA, and get things fixed, since CISA has more power over CISA than it has over Microsoft.

https://securityintelligence.com/news/cisa-hackers-key-syste...

Re:Microsoft is a national security threat: ex-White House c... by codedokode on Sunday April 21, 2024 @01:30PM (#40107496)
Why does government use cloud for general public? Why don't they use government cloud with high security?
Re:Microsoft is a national security threat: ex-White House c... by K0HAX on Sunday April 21, 2024 @02:16PM (#40107902)
Do you really believe that the "government cloud" isn't just a duplicate of the public cloud?

What incentive do cloud providers have to add extra security to the government stuff, while not also adding that extra security to the public stuff?

"Oh, yeah, we have more security over in the thing you can't use, but you can trust us with your data anyway."