When an employee leaves, there's a process. Their laptop comes back, their accounts get disabled, their access is reviewed. It isn't perfect, but it exists.
Now think about the integration a former engineer set up three years ago. The CI token. The service account for a vendor's tool. The OAuth grant that lets a SaaS app read your CRM. Who offboards those?
Usually, nobody. And attackers have noticed.
A different kind of identity
Non-human identities are every credential that belongs to software instead of a person: service accounts, IAM roles, access keys, API tokens, OAuth grants and, increasingly, AI agents. In most cloud environments they vastly outnumber humans, they're created by many teams and they rarely have an owner on paper.
OWASP published a Top 10 for Non-Human Identities in 2025. The list reads like a description of most companies' machine credentials. Three risks stand out because they keep turning up in real breaches:
- Improper offboarding: credentials that outlive the reason they were created.
- Long-lived secrets: credentials that never expire and rarely rotate.
- Vulnerable third-party identities: access you granted to a vendor, which is only as safe as the vendor.
Here's one real incident for each.
Four tokens out of thousands
In late 2023, after Okta disclosed a breach of its support system, Cloudflare rotated credentials it believed had been exposed. As Cloudflare later explained, it missed one service token and three service account credentials, out of thousands, because it wrongly believed they were unused.
They weren't unused by attackers. Over Thanksgiving 2023, an attacker used those credentials to get into Cloudflare's internal wiki, issue tracker and source code system, and downloaded dozens of repositories. Cloudflare responded by rotating more than 5,000 production credentials.
Cloudflare is a company with a strong security team, and its write-up is a model of transparency. That's what makes it instructive. "We thought it was unused" is the most dangerous sentence in credential management.
Credentials four years stale
In 2024, attackers accessed data from many customers of the cloud data platform Snowflake. Mandiant's investigation found that about 165 organizations were potentially exposed. The breaches didn't come from a flaw in Snowflake. They came from credentials stolen by infostealer malware, some of them years earlier.
Mandiant reported that at least 79.7% of the accounts used had prior credential exposure, the affected accounts didn't have multi-factor authentication, and some credentials had gone unrotated for up to four years. Nothing about the attack was sophisticated. It was simply logging in with keys that should have stopped working long ago.
One vendor, many doors
In August 2025, attackers stole OAuth tokens from Salesloft's Drift integration, a chat tool many companies had connected to Salesforce. According to Google's threat intelligence team, the attackers used those tokens to export large amounts of data from customers' Salesforce instances over about ten days.
Then they went looking inside the stolen data for more secrets: AWS access keys, passwords and other tokens. One compromised integration became a way to find the next set of keys. Google's advice was to treat every token connected to the integration as compromised.
Why this keeps working
Look at the three incidents together and the common thread isn't a clever exploit. It's that a valid credential looks like legitimate activity. There's no malware to catch at the door. The attacker logs in, the system says yes, and the logs show a known identity doing things.
Unless you know what that identity normally does, and notice when it does something else, the attack is invisible.
What to check this week
For an AWS-heavy team, here's a short list that covers most of the risk:
- Find unused access. IAM Access Analyzer can list unused roles, unused access keys and unused permissions. Anything unused is a door with no reason to exist.
- Hunt long-lived keys. List every IAM user access key and its age. Replace them with roles and federation wherever you can. A key that's years old is a key that's been in a lot of places.
- Review third-party grants. List every OAuth app and integration with access to your code, CRM, email and cloud. For each one: who owns it, does it still need that scope, and when was it last used?
- Give every machine identity an owner. If nobody owns it, nobody will notice when it's misused, and nobody will feel safe turning it off.
- Watch behavior, not just logins. A service account that suddenly reads new data, works at odd hours or connects from a new place is worth an alert even though the login itself was valid.
Treat machines as part of the attack surface
Machine identities are where a lot of modern breaches start, precisely because they're nobody's job. At Antivenom, an AI red team looks for these forgotten credentials in your own environment, only with your permission, and shows what each one can actually reach. The AI blue team revokes and narrows them, watches for unusual use, and the red team checks again.
For a related problem, read the leak isn't the breach: the years after it are.