A machine identity breach is an attack that uses a leaked or stolen key, token or software account.
This guide is for students, newcomers and anyone who wants the big breach stories told simply. You do not need to be technical to learn from them: most of these incidents came down to a key kept in the wrong place, or one nobody changed in time.
In short
- Software uses its own keys, tokens and accounts to connect to other systems, and attackers go after them.
- In the ten cases here, the trouble started with a secret left in code, a shared link, a personal browser or a trusted tool.
- Many breaches got worse because a stolen secret was not changed quickly or completely.
- The same few habits come up again and again: store secrets safely, keep access small, change secrets fast, and know which apps hold keys to your data.
What you will learn
- Explain what a machine identity breach is in one sentence.
- Retell ten famous incidents and the lesson in each.
- Spot the five mistakes that come up most often.
- Ask simple questions about the keys and tokens your own team uses.
- Software identity (non-human identity)
- the identity a program, service or AI agent uses to connect to other systems.
- Software password (secret)
- a key, token or password that proves a program may act.
- Change the secret (rotation)
- replacing a secret with a new one so old copies stop giving access.
What is a machine identity breach?
Think of air accident reports. When a plane crashes, investigators publish what went wrong, so every airline can learn the lesson. Breach stories do the same job for security.
Modern software rarely works alone. Apps, scripts and cloud services connect to each other all day. To do that, each one needs an identity of its own. A non-human identity (NHI) is a digital identity, or the credential behind it, that represents a machine, application, automated process, service or AI agent. It lets them authenticate, carry out tasks and connect to other systems without a person.[11]
The credential is usually a secret. It might be an API key, a code one program shows another. It might be a token, a short code that proves access was granted. Or it might be a service account (an account a program uses to do its job). A machine identity breach happens when an attacker gets hold of one and uses it.
Where the comparison stops working: air crash reports are written by independent investigators to a set standard. Breach reports vary. Some come from the company, some from researchers, and some details stay unknown.
Why does it matter?
To the system receiving it, a stolen key looks just like the real app. There is often no password prompt and no phone code to stop the attacker. The ten stories below show how far one key can reach.
If you are new to IT or security
What could happen: you paste a key into a test script "just for now" and it ends up in a shared project.
Check this: before you share any file, look for keys, tokens and passwords in it.
If you run a team or a business
What could happen: a tool you connected years ago still holds a key to your customer data.
Check this: ask for a list of the apps and integrations connected to your main systems.
If you are studying for a security career
What could happen: you learn the attack names but miss the simple mistake behind each one.
Check this: for every breach you read, write the lesson in one plain sentence.
What does it look like?
When you read a breach story, fill in a simple card. Here is a made-up one.
Example only. All values are made up.
BREACH CARD: Example Shop Ltd (fictional) Which secret? API key EXAMPLE-KEY-0000-FAKE (1) Where was it? in a script on a public code site (2) Who used it? unknown outsider (3) What did it open? the customer orders database (4) How long open? about 14 months (5) The lesson keep keys out of code; scan for them
- The type of secret. In a real file, this line would contain only the kind of key, never its value.
- Where the secret was kept. This is often the heart of the story.
- Who used it. Sometimes this is never known.
- What the secret could reach. This decides how bad the breach was.
- How long the secret was exposed before someone changed it.
Why this is risky: a key that can open a whole database, sitting where anyone can read it, is a breach waiting to happen.
The safer way: keep keys in a locked store. Give each key only the access it needs. Change it quickly if it is ever exposed.
How does it work?
Most of these breaches follow a similar path.
- A secret is made. A team creates a key or account so one system can talk to another.
- It ends up somewhere unsafe. It lands in code, a shared link, a personal browser or a tool run by someone else.
- Someone finds or steals it. An attacker copies it, often without anyone noticing.
- They use it. To the receiving system, the attacker looks like the real app.
- It spreads. The first secret often opens a place holding many more.
- The clean-up. The secrets are changed, and the team checks what the attacker reached.

Here are ten real incidents, in date order, with one plain lesson for each.
1. Uber (2016): a key on a code-sharing site
The US Federal Trade Commission said intruders used an access key that an Uber engineer had posted on a code-sharing website. With it, they downloaded files from Uber's cloud storage. These held the names and email addresses of more than 25 million people. Uber paid the intruders through its bug bounty programme and did not tell the regulator until November 2017.[1] Read our Uber 2016 breach page.
The lesson: code is shared more widely than you think. Keep keys out of it.
2. Toyota (2017 to 2022): a key that sat in public for years
Toyota said a contractor uploaded part of a website's code to a public GitHub account in December 2017. The code held a key to a data server. Nobody noticed until 15 September 2022. Toyota said up to 296,019 customers' email addresses and customer numbers may have been exposed, and it changed the key two days later.[2] Read our Toyota T-Connect key exposure page.
The lesson: a leaked key can stay hidden for years. Scan for keys, including in suppliers' code.
3. Codecov (2021): one key that harvested many more
Codecov makes a tool that many teams ran inside their automated build systems. It said an error in how it built one of its software packages let an attacker take a cloud storage key. The attacker used it to change Codecov's upload script, which then sent customers' build secrets to an outside server. Codecov told customers to replace every key and token their build systems held.[3] Read our Codecov breach page.
The lesson: build systems hold many secrets at once, so protect them like a safe.
4. CircleCI (2022 to 2023): a stolen session from a laptop
CircleCI said malware on an engineer's laptop stole a valid sign-in session that had already passed its extra checks. The attacker used it to reach production systems and copy customers' stored keys and tokens. CircleCI told every customer to change all the secrets they kept on the platform.[4] Read our CircleCI breach page.
The lesson: when many secrets sit in one place, one break exposes them all. Be ready to change them quickly.
5. Microsoft storage link (2023): a share link that opened too much
Microsoft said an employee put a storage link in a public GitHub project. The link carried a token that gave far more access than needed. Researchers used it to reach backups of two former employees' computers and internal Teams messages. Microsoft said no customer data was exposed, and it now advises short expiry times and the smallest possible access for such links.[5] Read our Microsoft SAS token exposure page.
The lesson: a share link with a token in it is a secret. Keep its access small and its life short.
6. Microsoft Storm-0558 (2023): a stolen master key
Microsoft said attackers it calls Storm-0558 used a stolen signing key, a master key used to create sign-in tokens. They forged tokens that its enterprise email system accepted. Microsoft's leading theory involves mistakes that let the key leave its protected system, but it has not confirmed exactly how.[6] Read our Storm-0558 key breach page.
The lesson: keys that create other keys need the strongest protection of all.
7. Okta (2023): a service account saved in a personal browser
Okta said an attacker reached its customer support system using a service account. The account's username and password had been saved to an employee's personal Google profile in Chrome on a work laptop. Files for 134 customers were accessed, and some held session tokens that the attacker used against five of them.[7] Read our Okta support system breach page.
The lesson: keep software account passwords in a secrets store, never in a personal browser.
8. Cloudflare (2023): four secrets nobody changed
Cloudflare was one of the companies hit through the Okta incident. It said it failed to change one service token and three service account credentials, out of thousands, because it wrongly thought they were unused. An attacker used them in November 2023. Afterwards Cloudflare changed more than 5,000 production credentials.[8] Read our Cloudflare Thanksgiving breach page.
The lesson: after a breach, change every exposed secret, including the ones you think nobody uses.
9. tj-actions (2025): a borrowed tool that printed secrets
tj-actions/changed-files is a small add-on that over 23,000 code projects used in their automated builds. Attackers changed it so it read secrets from the build system's memory and printed them in the build records. For public projects, anyone could read those records. The official advisory told users to change any secrets that may have appeared.[9] Read our tj-actions/changed-files compromise page.
The lesson: tools you borrow run with your secrets. Choose them with care and pin the version you checked.
10. Salesloft Drift (2025): a connected app's tokens
Drift is a chat tool that connects to Salesforce, a customer records system. Cloudflare said an attacker used stolen credentials from the Drift integration to sign in to its Salesforce and export support case text. Because customers sometimes paste keys into support cases, Cloudflare scanned the data and changed 104 of its own API tokens.[10] Read our Salesloft Drift breach page.
The lesson: every connected app holds a key to your data. Give it the least access it needs and review it often.

A worked example
Lina Marlow leads a small, fictional software team at a travel booking firm. She wants her new starters to understand why the team is strict about keys.
So she runs a lunch session using these ten stories. Each person picks one and fills in a breach card: which secret, where it was kept, what it opened and the lesson.
Anil Tanaka, a graduate developer, takes Toyota. "Five years," he says. "And it was a contractor's upload." Lina reminds them of the air accident reports. The point is not blame. It is spotting the same mistake before it happens here.
Then Lina turns it around. For each lesson, the team asks one question about their own work. Are any keys sitting in code? Which connected apps can read customer data? If a supplier were breached, could they list every secret to change?
Gita Erikson, who looks after the build system, finds two old keys in a settings file that nobody remembers adding. She checks with their owners, replaces both and moves the new ones into the secrets store.
The team also finds a chat tool connected to the booking system with far more access than it needs. Lina asks the supplier to cut it back.
By the end of the hour, the team has three fixes and a habit: read a breach story, write the lesson, check your own house.
Myths and mistakes
| What people think | What is true |
|---|---|
| Big breaches need clever hacking. | Many of these started with a key left in code or a password saved in the wrong place.[1][7] |
| Phone codes and extra sign-in checks protect software accounts too. | Software keys usually work alone, with no second check. A stolen session can skip the checks too.[4] |
| A secret nobody uses is harmless. | Cloudflare's attacker used credentials it believed were unused.[8] |
| Private code is safe for keys. | Code is copied to laptops, suppliers and sometimes public sites, often without anyone noticing.[2] |
| Once you change the leaked key, you are done. | Check what it opened. One key can lead to many more secrets that also need changing.[3] |
What can I do this week?
- Pick two of these stories and write the lesson of each in your own words.
- Ask where your team keeps its keys and tokens.
- List the apps connected to your email, files or customer records.
- Find out how quickly your team could change a key if it leaked.
Checklist
- Keys and tokens are kept in a secrets store, not in code, chat or personal browsers.
- Every key and software account has a named owner.
- Each key has only the access it needs.
- Share links and tokens have short expiry times.
- Code, including suppliers' code, is scanned for secrets.
- Connected apps and integrations are reviewed on a schedule.
- There is a tested plan to change every secret quickly after a breach.
Common questions
What is the difference between a machine identity and a non-human identity?
In everyday use they mean much the same thing: the identity software uses to connect to other systems. Some people use "machine identity" mainly for certificates and keys. "Non-human identity" is the wider term. It also covers service accounts, tokens and AI agents.
Why do attackers go after software keys instead of people's passwords?
Software keys are often easier to use. They usually work without a second check. They can have wide access, and they often sit in files where they can be copied. Many are also changed rarely, so a stolen key may keep working for a long time.
Were these companies careless?
Not in a simple way. These are large, skilled organisations, and several published honest reports so others could learn. Machine identities are numerous and easy to lose track of. The lessons apply to everyone, which is why we read the stories at all.
Where can I read the full stories?
Each incident above links to a full analysis on our site, with a timeline, what was exposed and the original sources. Start with the ones closest to your own work, such as build systems or connected apps, and read the lessons sections first.
What is the single most useful habit?
Know where every secret lives and who owns it. If you have that list, you can store secrets safely, keep access small and change them fast after a leak. Most of the stories here got worse because that list was missing or incomplete.
Where next?
Ready for the detail? Read the practitioner guide: Service Account Breaches Lessons Guide. It goes further into the full case table, the patterns across many breaches and how to measure your own exposure.
Also useful:
- Leaked secret breaches
- Leaked Secret Response for Beginners
- Secrets Rotation for Beginners
- Supply Chain Attacks for Beginners
- NHI Foundation Level Training
Related NHI Mgmt Group resources: Service Accounts for Beginners · Secrets Management for Beginners · Famous Vulnerabilities for Beginners
Key terms
- Non-human identity (NHI)
- A digital identity used by software, a machine, a service or an AI agent rather than a person.
- Secret
- The credential, such as an API key, token, password or certificate, that proves a non-human identity may act.
- Service account
- An account used by a program or automated tool rather than a person.
- API key
- A code one program uses to prove it may use another, often long-lived.
- Signing key
- A secret used to create trusted sign-in material, so it can affect many systems at once.
- Credential rotation
- Replacing secrets with new values so leaked copies stop giving access.
- Least privilege
- Giving each person or program only the access it needs, for only as long as needed.
Sources and further reading
- Uber Agrees to Expanded Settlement with FTC Related to Privacy, Security Claims. US Federal Trade Commission, April 2018. https://www.ftc.gov/news-events/news/press-releases/2018/04/uber-agrees-expanded-settlement-ftc-related-privacy-security-claims, accessed 28 Nov 2026.
- Notice of apology regarding the possible leak of customers' email addresses (Japanese). Toyota Motor Corporation, 7 October 2022. https://global.toyota/jp/newsroom/corporate/38095972.html, accessed 28 Nov 2026.
- Bash Uploader security update. Codecov, April 2021. https://about.codecov.io/security-update/, accessed 28 Nov 2026.
- CircleCI incident report for January 4, 2023 security incident. CircleCI. https://circleci.com/blog/jan-4-2023-incident-report/, accessed 28 Nov 2026.
- Microsoft mitigated exposure of internal information in a storage account due to overly-permissive SAS token. Microsoft Security Response Center, September 2023. https://www.microsoft.com/en-us/msrc/blog/2023/09/microsoft-mitigated-exposure-of-internal-information-in-a-storage-account-due-to-overly-permissive-sas-token, accessed 28 Nov 2026.
- Results of major technical investigations for Storm-0558 key acquisition (updated March 2024). Microsoft Security Response Center, September 2023. https://www.microsoft.com/en-us/msrc/blog/2023/09/results-of-major-technical-investigations-for-storm-0558-key-acquisition, accessed 28 Nov 2026.
- Unauthorized access to Okta's support case management system: root cause and remediation. Okta, 3 November 2023. https://sec.okta.com/articles/2023/11/unauthorized-access-oktas-support-case-management-system-root-cause, accessed 28 Nov 2026.
- Thanksgiving 2023 security incident. Cloudflare. https://blog.cloudflare.com/thanksgiving-2023-security-incident/, accessed 28 Nov 2026.
- tj-actions/changed-files security advisory (GHSA-mrrh-fwg8-r2c3, CVE-2025-30066). GitHub Advisory Database, March 2025. https://github.com/advisories/GHSA-mrrh-fwg8-r2c3, accessed 28 Nov 2026.
- The impact of the Salesloft Drift breach on Cloudflare and our customers. Cloudflare, September 2025. https://blog.cloudflare.com/response-to-salesloft-drift-incident/, accessed 28 Nov 2026.
- The Ultimate Guide to Non-Human Identities. Lalit Choda, NHI Mgmt Group, January 2025. https://nhimg.org/the-ultimate-guide-to-non-human-identities, accessed 28 Nov 2026.