Project Granite: Inside the SAP Code Breach

November 28, 2026·9 min read·
By
PKParth Khullar

A few days before the world heard anything, a short message went round inside one of the most important software companies on Earth. It did not say much. It mentioned "suspicious activity". It asked staff to think about changing their login details. And it asked them to keep quiet. Inside the company, the work that followed was given a code name: Project Granite.

Granite is the stone people build foundations from. It is an odd name for a quiet week, unless what you are protecting is the foundation itself.

On Thursday, November 26, 2026, the German magazine Der Spiegel lifted the lid. On Friday, the company confirmed it. The company was SAP. And what was at risk was not a customer database or a website. It was the source code behind software that runs a large share of the world's economy.

What SAP does

Picture a chocolate factory. Cocoa gets ordered, the production line gets planned, stock gets tracked, trucks go out to shops, and staff and suppliers get paid. In many large companies, all of that runs inside one shared system, called ERP (Enterprise Resource Planning). Think of it as the company's central nervous system. The biggest name in ERP is SAP.

SAP was founded in Germany in 1972 by five former IBM engineers. Today its software sits underneath car makers, banks, hospitals, airlines, retailers, governments and, yes, chocolate makers.

By SAP's own count, 99 of the world's 100 largest companies are its customers, and about 80% of its customers are small and mid-sized businesses. So when something goes wrong inside SAP, it is not one company's problem.

The breach

In simple terms: source code is the recipe book behind every SAP product, GitHub is the shared kitchen where SAP's engineers write it, and a login token is a keycard that opens the door without checking whose face is behind it.

According to Der Spiegel's sources, attackers got hold of tokens belonging to SAP employees. With those keycards, they walked into SAP's development space on GitHub, copied source code and reportedly changed some of it. The same sources said they may have had help from AI tools.

Nobody has said how the keycards were stolen, or which code was taken or changed. SAP has not confirmed these details. But if the reporting is right, the attackers did not just read the recipe book. They picked up a pen.

SAP's response

Changed code is dangerous because of what happens next. It flows down an automated factory line (a pipeline), gets a digital seal saying "genuine SAP", and customers install it on trust. That is what security people call a supply chain attack.

According to Handelsblatt and the news agency dpa, SAP:

  1. Locked the kitchen. Access to GitHub was restricted.

  2. Stopped the factory line. Automated build and delivery pipelines were paused.

  3. Replaced the seal. The digital keys that prove SAP software is genuine were swapped for new ones.

Replacing the seal is a big deal. It is slow, costly and disruptive, and companies only do it when they cannot rule out that the old one was exposed.

On Friday, SAP confirmed it had found "suspicious activity" and said its investigation so far had found "no evidence of unauthorized access to customer business data." So far, no report says any altered code reached a customer.


The April npm attack 

On April 29, 2026, four of SAP's official open-source packages on npm (a public software library) were found to contain malicious code. The attack, nicknamed "Mini Shai-Hulud" and blamed on a group called TeamPCP, stole exactly what is at the centre of this new story: developer tokens.

What's confirmed and what isn't 

Rumours spread faster than facts in a story like this. Here is a clean split, as of November 27, 2026.

For researchers: at the time of writing there are no public indicators of compromise (no hashes, IP addresses or repository names). The type of token (personal access token, OAuth token, CI secret or session cookie), the start date of the intrusion and whether it is fully contained have not been disclosed.


What the attackers could reach 

Not all "breaches" are equal. This one touched the parts of a software company that customers never see but completely depend on.

Notice what is not on the list: customer data, customer SAP systems, the ERP itself. On the current evidence, this was an attack on how SAP makes software, not on the software customers run. That is exactly why industries outside tech should pay attention. Almost every business today makes, changes or depends on software in the same way.


Lessons for other companies

1. Every company is now a software company. A bank's mobile app, a car's dashboard, a factory's robots, a retailer's checkout: all of it is code, written in a "kitchen" like GitHub and shipped through a "factory line" like SAP's. If attackers can walk into SAP's kitchen with a stolen keycard, they can walk into yours.

2. The front door is no longer the target. Attackers did not break SAP's firewall or its customer systems. They went after the people who build the product, and the keys those people carry. Developer laptops and logins are now as valuable as the bank vault.

3. Trust is the real product. Customers do not install SAP updates because they have read the code. They install them because they trust the seal. Lose that trust, and every update becomes a risk to be checked by hand. Your own customers trust your software, invoices and portals in the same way.

4. Stolen source code has a long tail. Even if not a single line of tampered code ever ships, attackers who hold source code can hunt for new weaknesses in their own time. Expect researchers and criminals alike to watch SAP products closely for the next few months.

5. AI makes everything faster. If AI tools did help here, it fits a wider pattern seen across 2026: attackers using AI agents to search, test and break in at machine speed. The time between "keys stolen" and "damage done" is shrinking.

Lock 1: Keys that expire. The longer a keycard works, the longer a stolen one is useful. Logins to code and build systems should last hours, not months or years. For technical heads: replace long-lived personal access tokens with short-lived, narrowly scoped credentials. Use GitHub Apps and OIDC federation for CI instead of stored secrets. Require phishing-resistant MFA and keep a full list of every token that can push code.

Lock 2: Cameras on your code. Most companies watch their bank accounts closely and their code barely at all. Treat the place your code lives like a production system. For technical heads: send GitHub audit logs to your security monitoring. Alert on mass cloning, new tokens or deploy keys, changes to workflow files and logins from unusual places. Protect developer laptops and build servers with proper endpoint security.

Lock 3: The two-person rule. No change should reach the factory line on one person's say-so, and certainly not on one stolen keycard's say-so. For technical heads: enforce branch protection, required reviews and signed commits. Put CODEOWNERS on pipeline and workflow files so changes to the factory line itself need extra approval. Block install scripts by default (npm ci --ignore-scripts), route packages through an internal proxy, and wait a few days before adopting brand-new versions.

Lock 4: A receipt for every build. When something goes wrong, the most valuable thing you can have is proof of exactly what went into each release. For technical heads: produce build provenance (SLSA-style attestations, Sigstore) and software bills of materials (SBOMs). Aim for reproducible builds so a release can be independently checked against its source.

Lock 5: A big red button. SAP had to freeze pipelines and replace its signing keys in the middle of a crisis. The companies that handle this well are the ones that practised it on a quiet Tuesday. For technical heads: keep signing keys in a hardware security module or cloud key service, never on a build server. Write down and rehearse a "freeze and rotate" plan with a target time measured in hours.

Locks 1 and 2 stop the break-in. Locks 3 and 4 stop a break-in from reaching customers. Lock 5 limits the damage when everything else fails.

Questions for your team

These four questions work for your own company and for any software vendor you depend on:

  1. Who can change our code, and how long do their keys last?

  2. If our code were altered tonight, would we know before customers did?

  3. Can we prove what went into every release we have shipped?

  4. How long would it take us to replace our digital seal, and have we ever tried?

A confident, specific answer to all four is rare. That is not a failure. It is a to-do list.


What to watch next

  • SAP's next statement. Look for named products or repositories, indicators of compromise, and clear guidance on whether customers need to act.

  • Any sign that altered code shipped. This would turn an internal incident into a true supply chain attack.

  • Attribution. Whether a named group claims responsibility, and whether a link to the April npm attack is confirmed.

  • New SAP vulnerabilities. With source code possibly in the wrong hands, keep SAP patching fast over the coming months.

Conclusion

Project Granite is a fitting name after all. The whole story is about foundations: the keys, the recipe books, the factory lines and the seals that everything else is built on. None of them are visible to customers. All of them are what customers are really trusting.

SAP appears to have moved quickly: it locked the doors, stopped the line and replaced the seal. The rest of the industry gets something rarer than a warning. It gets a clear example, while there is still time to act on it.

The question for every industry leader is not "could this happen to SAP?" It already did. The question is: if it happened to us next week, how solid is our granite?


Sources

Image credits: all six figures are original diagrams made by FieldCISO for this post. Figure 1 is illustrative. Figure 2 uses SAP's own company figures. Figures 3, 4 and 5 are based on the news reports listed above. Figure 6 is FieldCISO guidance.






Did you find this article helpful?

Let the authors know by leaving a like or comment.

0
Leave a Comment
Share your thoughts on this article. We'd love to hear from you!

No comments yet

Be the first to share your thoughts!

Continue Reading