
SAP Hack: What Happened and How It Could Be Prevented
The SAP hack is a security incident in the German company's GitHub software development environment, which SAP confirmed on November 27, 2026 and which is tracked internally as "Project Granite." SAP says it has found no unauthorized access to customer business data so far, but German press reports say attackers used tokens stolen from employees to copy and alter source code, which turns this into a supply-chain question for every company that runs SAP or keeps its own code on GitHub.
Below we separate what is confirmed from what is only reported, explain the mechanism in business terms, and lay out the controls a mid-sized company in the U.S. or Latin America can put in place this week.
What happened
SAP is not just another vendor. Headquartered in Walldorf, Germany, it has 110,000 employees in 157 countries, 300 million subscribers and more than $40 billion in annual revenue, according to BleepingComputer. Its software runs finance, supply chain and HR for many of the world's largest companies and public bodies, so any sign of tampering in its development pipeline becomes a supply-chain issue for customers, as Dealroom puts it.
Timeline
- April 2026: official SAP npm packages were compromised, the company's first code supply-chain incident of the year, per Dealroom.
- Thursday, November 26, evening: German magazine Der Spiegel reports a cyberattack on SAP based on an internal memo, according to Dealroom and BleepingComputer. SAP is treating it as an "active security incident" under the code name Project Granite and has asked employees to keep the details confidential.
- Friday, November 27: SAP confirms it "identified suspicious activity" and immediately took steps to protect customers, in a statement to the dpa news agency reported by Dealroom and Cybersecurity Dive. It adds that investigators have found no evidence of unauthorized access to customer business data, per Cybersecurity News.
Confirmed vs. reported
| Claim | Status | Source |
|---|---|---|
| Suspicious activity detected; SAP took action | Confirmed by SAP | Cybersecurity Dive |
| No evidence so far of access to customer business data | Confirmed by SAP | Cybersecurity News |
| Employee authentication tokens stolen | Reported by an insider; not confirmed by SAP | The Next Web |
| Source code copied and altered on GitHub | Reported; not confirmed by SAP | The Next Web |
| Attackers may have used agentic AI | Reported; unconfirmed | Dealroom |
| GitHub access restricted, automated builds paused, signing keys replaced | Reported by Handelsblatt | The CyberSec Guru |
| Who did it, how they got in, which repositories | Unknown | Dealroom |
SAP has not said how the attackers got in, who they are or which code was affected, and it declined to comment on root cause, according to Cybersecurity Dive. As Shattered notes, every claim about tokens and code changes rests on anonymous sourcing, so details may shift as the investigation matures.
How it happened
This section mixes reporting with our own analysis. We label which is which so a hypothesis is never read as a fact.
A key that never asks for a password
An authentication token is a digital key that lets staff log in to tools like GitHub, the platform SAP uses to build and ship software, as The Next Web explains. Developers pile up tokens in several places: personal access tokens used by scripts and command-line tools, and session tokens that sit in the browser after login, per Shattered. The part that matters for an owner or executive: whoever holds the token does not need the password or the second factor. To the system, they are the employee.
Read or write: the setting that decides the damage
A token's permissions decide whether its holder can only read a repository and its history or also push changes, explains Cybersecurity News. A token with write access lets an attacker alter code, tamper with branches and touch automated build workflows, according to CyberPress. If Der Spiegel's account is right and code was altered, the attackers held tokens with write access.
Why altered code is the real worry
Our analysis: stolen code is an intellectual-property problem and makes it easier to hunt for vulnerabilities. Altered code is a different category. If a malicious change makes it into an automated build and ships signed with the official key, customers would install it in good faith. That is why the measures Handelsblatt attributes to SAP make sense together: restricting GitHub access, suspending automated CI/CD processes and replacing code-signing keys, as reported by FinanceFeeds and CyberPress. Those three steps cut the path from tampered code to customers. As of today there is no report that altered software reached any customer.
How the tokens may have been taken
That has not been disclosed, per Cybersecurity News. Recent cases show common routes: a malicious VS Code extension that stole GitHub tokens (Cybersecurity News) and a campaign that poisoned repositories to hijack AI coding assistants and harvest GitHub tokens, npm credentials and cloud keys (CyberPress). We do not know whether either applies to SAP. We mention them because they show the developer's laptop is now a front-line target.
How it could have been prevented
No single control is bulletproof, and the root cause is still unknown. Layered together, these practices would have blocked or sharply limited an attack like the one reported.
- Short-lived, least-privilege tokens. What it is: every token is scoped to the repositories it needs, read-only unless writing is required, and expires in days rather than years. Why it works: a stolen token is worth little, for a short time. Effort: low to medium, mostly configuration plus a written policy.
- Protected branches with mandatory review. What it is: nobody, even with a valid token, can push to the main branch without a second person approving. Why it works: the attacker must compromise two accounts, and odd changes become visible. Effort: low; it is a GitHub setting, with some friction for the team.
- Builds without long-lived secrets. What it is: automated pipelines fetch temporary credentials on each run instead of storing permanent keys. Why it works: there is no valuable secret to steal from the pipeline. Effort: medium, a one-time redesign.
- Signing keys out of developers' reach. What it is: releases are signed in an isolated environment with human approval. Why it works: even if code is altered, nobody can produce an "official" release from it. Effort: medium to high.
- Alerts on unusual behavior. What it is: monitoring the audit log for bulk repository cloning, force-pushes or branch-protection changes. GitHub documents how to trace actions back to a compromised token and lets admins revoke credentials by user and token type, per Cybersecurity News. Why it works: it shrinks the gap between theft and response. Effort: medium; someone has to own the alerts.
- Hardened developer machines. What it is: an allowlist of editor extensions, review of AI tools with code access, and managed devices. Why it works: it targets the most likely source of token theft. Effort: medium, mostly cultural.
What to do today
If your company runs SAP
- Follow SAP's official security advisories and ask your account manager or integrator for written confirmation of any impact on the products you use.
- Install updates only from official channels and verify signatures. Be wary of "urgent" emails that use the news to push patches or credential resets.
- List the integrations holding credentials to your SAP systems and rotate any that have not changed in months.
If your company (or your vendor) keeps code on GitHub
- Inventory personal access tokens, OAuth apps and SSH keys; revoke anything unused.
- Turn on branch protection and required reviews for every repository that ships to production.
- Audit push events, force-pushes, branch-protection changes and GitHub Actions runs, as CyberPress recommends.
- If you run a network marketing company, ask your platform vendor (store, commissions, payments) how it protects its tokens and who can ship code to production. Your revenue and your distributors' payouts run through that code.
If you are an everyday user
- There is no sign so far that personal data was exposed in this incident. The practical step is to distrust messages that mention "SAP" or "security" and ask for passwords or payments.
If an outside vendor builds your software, these controls belong in the contract and in the handover. At Disruptive Studio we set them up from the first repository when we build custom software.
Frequently asked questions
What is SAP Project Granite?
It is the internal code name SAP uses for its response to the security incident in its development environment, according to the Der Spiegel report cited by BleepingComputer. It is not a product or a commercial project.
Was SAP customer data stolen?
SAP says its investigation has so far found no unauthorized access to customer business data (Cybersecurity News). The reported impact concerns source code, not customer databases. The investigation is ongoing.
What is a GitHub token and why is a stolen one dangerous?
It is a credential that lets people or programs act on GitHub without typing a password. Whoever steals it inherits its permissions; with write access, they can change code. That is why any exposed token should be treated as fully compromised and revoked (CyberPress).
Do SAP customers need to do anything?
No official customer action has been requested as of today. The prudent course is to follow SAP's advisories, install only verified updates from official channels and ask your vendor for written confirmation of impact.
Comments
No comments yet. Be the first to share what you think.


