# SAP Project Granite: the GitHub incident and the question of code integrity

> SAP Project Granite: what SAP has confirmed, how developer-token attacks unfold, the business impact for SAP customers and eight checks to run now.

- Source: https://snok.ai/en/news/blog/sap-project-granite-github-incident-code-integrity/
- Author: Jarosław Zdanowski
- Published: 2026-12-01

---
## Key takeaways

- SAP has confirmed suspicious activity and says that, based on its investigation to date, it has found no evidence of access to customer business data. It has not named repositories, products or a time window.
- According to Der Spiegel, attackers used stolen SAP employee tokens to copy and alter code on GitHub. SAP has not confirmed this.
- For customers, code integrity matters more than code confidentiality: is what they install exactly what SAP meant to ship?
- Keep applying security patches. Take stock of what you have imported since April 2026, starting with November, and review your own tokens, SAP BTP keys and transport path.

On 26 and 27 November 2026, SAP confirmed a security incident in its software development environment which, according to Der Spiegel and Handelsblatt, the company is handling internally as Project Granite. SAP said it had identified suspicious activity, taken measures to protect its customers and, based on its investigation to date, found no evidence of unauthorised access to customer business data. Der Spiegel reports that attackers stole authentication tokens belonging to SAP employees and used them to copy and alter SAP source code on GitHub.

That is the state of play on 30 November. SAP has not said which repositories, products or time period are involved, and the SAP Trust Center carries neither a statement nor guidance for customers. Most of the checks below can be run without waiting for that statement.

## SAP Project Granite: confirmed by SAP, reported by the press

The line between the two determines how the incident should be discussed with a board or an auditor.

**Confirmed by SAP.** Suspicious activity, prompt protective measures, and no evidence of access to customer business data, all qualified by "based on our investigation to date". An SAP spokesperson declined to tell BleepingComputer which environments were involved or whether customers who pull code or updates from SAP repositories need to act.

**Reported, not confirmed.** The German news agency dpa saw part of an internal letter to staff that placed the activity on GitHub and asked employees to check whether they should change their credentials. Der Spiegel, citing an insider, reports the token theft and the copying and alteration of code. The same sources suggest the attackers may have used AI agents, though no report explains what role AI played. Handelsblatt reports that SAP detected the incident the week before it became public, restricted GitHub access, paused automated development processes and replaced its code-signing keys.

**Unknown.** SAP has not disclosed which repositories were accessed, whether they hold public or private code, or whether altered code was published or reached software and updates delivered to customers. Nobody has said how the tokens were obtained or what permissions they carried.

On 27 November the German-speaking SAP user group DSAG asked SAP when the development environment could first have been affected, when SAP learned of it, and which versions, updates and cloud services it shipped in that period. According to SecurityBridge, DSAG cannot yet give its members concrete instructions and advises calm, attentive action. SAP has not answered publicly.

## The public trail of the incident in SAP's GitHub repositories

Douglas Mun, a threat intelligence analyst, reviewed 13,897 commits across the 186 public SAP repositories that received changes after 1 November. According to his report of 27 November, some of the measures Handelsblatt describes are visible in public data. The sync from SAP's internal Gerrit system to the public OpenUI5 repository stopped on 18 November at 14:58 UTC, eight days before the first press report. Signed direct pushes rose from 6% of the total between 1 and 18 November to 34% between 19 and 27 November, which Mun links to a requirement, reported by Handelsblatt, that every code change must now be signed.

Mun rates the link between the stopped sync and the incident as likely rather than certain: a planned freeze or an outage would look the same in the data. He also notes that the report was drafted with AI assistance and has not been independently reviewed. He found no attacker commits, no indicators of known worms and no leaked copy of non-public SAP code in the public history of those repositories. SecurityBridge calls this reassuring but not conclusive, and the distinction matters: the analysis covers public code only, and deleted branches, rewritten history and internal repositories are out of reach. Until SAP issues an advisory, nobody outside the company can say that code integrity is fully intact.

## The developer-token attack chain: five stages from GitHub to an SAP customer

Attacks built on stolen developer tokens follow a recognisable path. The diagram below shows five stages and marks which ones the press attributes to this incident and which one is the scenario customer controls must be able to rule out.

<figure>
  <img src="https://snok.ai/images/blog/sap-project-granite-schemat-ataku-en.webp" alt="Attack chain from a stolen developer token: token theft, access to GitHub repositories, code copied, code altered, build and signing through to customer systems" width="1600" height="900" loading="lazy" />
  <figcaption>Five stages of a developer-token attack. Der Spiegel describes stages 1 to 4, which SAP has not confirmed. No source describes stage 5; it is the scenario customer controls need to rule out.</figcaption>
</figure>

**1. Token theft.** A personal access token, an OAuth token or a CI/CD secret is a bearer credential. Whoever holds it acts with its full privileges, usually without a second factor and from any network. How the tokens were taken in this case has not been disclosed.

**2. Repository access.** A developer token with write access to many repositories gives the attacker the same reach, and it keeps working until someone revokes it.

**3. Code copied.** This is a loss of confidentiality. Copied code lets an attacker hunt for vulnerabilities in SAP products at leisure, away from the vendor's monitoring. It does not, by itself, put anything into customer systems.

**4. Code altered.** This is an integrity breach, and it decides how far the damage can spread. The Cloud Security Alliance notes that if the AI-agent element is confirmed, its main effect would be speed: an agent holding a stolen token can enumerate repositories, locate build configuration and make plausible-looking edits faster than a human operator.

**5. Build, signing, release.** Altered code would have to pass through build, signing and release to end up in an npm package, an SAP Note, a support package or a cloud service. At this point a valid signature offers no protection, because it signs whatever the pipeline built. No source claims this happened here. The CSA nevertheless points to SolarWinds in 2020, where exactly this route delivered signed updates to thousands of organisations.

The measures Handelsblatt attributes to SAP map onto these stages. Restricting GitHub access cuts off stage 2, pausing automation stops changes flowing into builds, and replacing signing keys protects stage 5. The CSA adds that key rotation is a common precaution and does not in itself show that keys were compromised.

## Mini Shai-Hulud: SAP's second developer-credential incident of 2026

On 29 April 2026, four official npm packages in the SAP ecosystem (`@cap-js/sqlite`, `@cap-js/postgres`, `@cap-js/db-service` and the `mbt` build tool) were published in malicious versions as part of the Mini Shai-Hulud campaign. The payload harvested GitHub and npm tokens, GitHub Actions secrets and cloud credentials. SAP documented the case in SAP Note 3747787 and an FAQ.

A link between the two incidents is possible but has not been shown. Mun tested the idea and found none of the April worm's indicators in SAP's public repositories. What the two events share is the target: developer credentials and the environment where SAP keeps its code. Two incidents in one year are reason enough to design controls on the assumption that this will happen again.

## Business impact for SAP customers: three scenarios

What the incident means for an SAP customer depends on how far along the chain an attacker got. Each scenario carries a different cost and lands on a different desk.

<figure>
  <img src="https://snok.ai/images/blog/sap-project-granite-skutki-biznesowe-en.webp" alt="Three business impact scenarios: code copied, code altered but held before release, altered code in delivered software" width="1600" height="900" loading="lazy" />
  <figcaption>The further an attacker gets along the supply chain, the higher the cost on the customer side and the more regulation comes into play.</figcaption>
</figure>

**Scenario A: code copied.** An attacker who has read the code finds vulnerabilities faster. In our assessment, this could lengthen the time a new vulnerability stays unknown to SAP and speed up exploit development for notes that are already published. Organisations that apply SAP Security Notes months late carry a growing risk of intrusion into finance and HR systems.

**Scenario B: code altered but stopped before release.** There is no direct damage to customers, but there are knock-on effects: delayed releases, paused updates and uncertainty that has to be explained to auditors and the risk committee. Here the most expensive gap is the lack of a record. A team that does not know what it has installed over recent months cannot tell its board whether the incident affects them.

**Scenario C: altered code in delivered software.** No source describes this scenario and nothing suggests it has happened. We include it because it defines the scope of controls. Code running inside SAP sits in the processes where money moves: supplier payments, vendor bank details, payroll and inventory. An altered module could redirect a payment, bypass an authorisation check or exfiltrate data. For entities in scope of NIS2, a significant incident triggers an early warning within 24 hours of becoming aware of it, a notification within 72 hours and a final report no later than one month after that notification (Article 23). Financial entities report major ICT-related incidents under DORA (Article 19) and must demonstrate how they manage ICT third-party risk (Article 28); the ERP vendor is among the most critical of those third parties.

> "After an incident like this, the board's first question is whether our data has leaked. The more important question is whether what we install from a vendor is exactly what that vendor meant to deliver. SAP answers the first one. We have to be able to answer the second ourselves, from our own change record."
>
> **Jacek Bugajski**, CEO, SNOK

For ERP customers, that second question sets the scope of their checks, because vendor code effectively becomes part of their own control environment.

## What to do after SAP Project Granite: eight checks

Nothing published by 30 November shows that customer systems are affected. The steps below make sense whatever SAP's investigation finds. SecurityBridge and the Cloud Security Alliance publish broadly the same advice.

1. **Keep patching.** Nothing suggests altered code reached delivered software, and delaying notes increases the risk described in scenario A. The next [SAP Security Patch Day](https://snok.ai/en/offer/sap-security/sap-security-patch-day/) falls on 8 December 2026. Install from official SAP channels via your usual test-then-production route. Non-urgent upgrades and new add-ons can wait until SAP answers DSAG.
2. **Take stock of everything installed.** Notes, support packages, kernel patches and dependencies: start with early November and work back to April 2026, the time of the Mini Shai-Hulud incident. SAP has not said when the unauthorised access began. Once it names the affected period, the check becomes a comparison against a ready list rather than a reconstruction from logs.
3. **List the SAP open-source code you use.** CAP, UI5 tooling, SDKs from GitHub, npm or Maven. Pin versions and review updates before taking them until SAP sets out the scope.
4. **Be ready for a key change.** If SAP confirms it replaced code-signing keys, check whether your signature checks and trust stores need updating. Until then, treat any failed or unexpected signature check as a reason to stop and ask SAP, not something to click through.
5. **Review your own tokens.** The same attack pattern applies to your landscape. Go through GitHub tokens and personal access tokens, CI/CD secrets, SAP BTP service keys and destinations with stored credentials. Narrow their scope, shorten their lifetime and rotate them.
6. **Confirm the April clean-up is complete.** Check dependency trees against the version list in SAP Note 3747787. A developer token exposed in April and still valid is a live risk.
7. **Monitor code changes in your SAP systems.** Know who can change code in production and alert on code that arrives outside the normal transport path.
8. **Watch SAP's channels.** The SAP Trust Center, SAP Security Notes and knowledge base articles in SAP for Me, and Patch Day on 8 December.

## How SAP code reaches your landscape

The inventory in steps 2 and 3 should cover every route by which SAP code enters the organisation. Each route needs a different check.

- SAP Notes, support packages, kernel patches and transports: signature verification of downloaded archives, transport review before import and change monitoring in production.
- Open-source libraries from npm and Maven (CAP, UI5 tooling, SDKs): lockfiles with integrity hashes, pinned versions, provenance attestation checks and install scripts disabled in CI.
- Code cloned from SAP's public GitHub organisations: pin to reviewed commits and review diffs before updating.
- SAP BTP and SaaS services: here the customer relies on vendor assurance, so the control is monitoring tenants for anomalous behaviour and outbound traffic.
- Developer tooling and IDE extensions: an extension allowlist, EDR on developer workstations and short-lived credentials.

ABAP code that changes outside the transport path is a separate risk, covered in our post on [the two code checks in Central ATC](https://snok.ai/en/news/blog/central-atc-sap-btp-abap-code-security/). The mechanism that catches a mistake by your own developer also helps flag an unexpected change in vendor code.

## Questions for SAP and your service provider

A general assurance about customer data does not close a vendor risk assessment. These questions translate directly into action and are worth getting answered in writing:

- Which repositories were affected, and do they feed shipped products or customer-installable artefacts?
- Did any released build contain unauthorised changes?
- Over what period could the development environment have been affected, and what did SAP deliver to customers during it?
- What are the new signing key fingerprints, and how should artefacts signed before and after the rotation be validated?

The same questions belong in future assessments of strategic vendors. As the CSA points out, third-party risk programmes usually examine how a vendor protects customer data and pay less attention to how it protects the integrity of the code customers run. We looked at security assessment under RISE with SAP in our piece on [the Security Score](https://snok.ai/en/news/blog/rise-with-sap-security-score-what-it-measures/); Project Granite falls squarely into the area that the score, by design, does not cover.

## How SNOK helps after an incident at an SAP vendor

When a vendor has an incident, we propose working through it with customers in three steps. First, an inventory of every route by which SAP code reaches the landscape, with a record of imports over recent months. Second, a credential review covering tokens, CI/CD secrets, SAP BTP service keys and destinations. Third, detection rules in [SecurityBridge](https://snok.ai/en/offer/sap-security/securitybridge/) for code and transports that arrive outside the standard path, running inside the SAP system itself. The board receives a risk list with an exposure assessment and an action plan; the security team keeps controls that stay in place after the incident is closed.

For organisations under NIS2 or DORA, the same material feeds the ICT third-party risk part of a [NIS2 and DORA audit](https://snok.ai/en/offer/sap-security/nis2-dora-audit/). Why controls inside the SAP system see more than tools sitting beside it is the subject of our [comparison of SAP security architectures](https://snok.ai/en/news/blog/sap-security-inside-or-beside-the-system/). The full scope of our services: [SAP security at SNOK](https://snok.ai/en/offer/sap-security/).

The situation is still developing. We will update this post when SAP publishes a statement or a security note on the incident.

## SAP Project Granite: frequently asked questions

**Has SAP confirmed that code was stolen or altered?** No. SAP has confirmed suspicious activity and, based on its investigation to date, no evidence of access to customer business data. The token theft and the copying and alteration of code are reported by Der Spiegel, citing an insider.

**Should SAP patches be held back until SAP Security Patch Day on 8 December 2026?** No. Nothing published by 30 November suggests altered code reached delivered software, and delaying notes adds risk. Non-urgent upgrades can wait until SAP answers DSAG's questions.

**Is Project Granite linked to the Mini Shai-Hulud campaign?** A link is possible but has not been shown. Douglas Mun found none of the April worm's indicators in SAP's public repositories.

**What can an SAP customer check today?** Take stock of notes, support packages and dependencies imported since April 2026, starting with November; review GitHub tokens, CI/CD secrets, SAP BTP service keys and destinations; and alert on code that arrives outside the transport path.

## Sources

1. [SecurityBridge: SAP's "Project Granite" incident: The facts so far](https://securitybridge.com/blog/sap-project-granite-incident/), Gert-Jan Koster, 27.11.2026, updated 30.11.2026. Accessed 30.11.2026.
2. [Cloud Security Alliance: Project Granite: SAP Source-Code Incident and Vendor Code Integrity](https://labs.cloudsecurityalliance.org/research/csa-research-note-sap-source-code-token-compromise-20261129/), 29.11.2026. Accessed 30.11.2026.
3. [Douglas Mun: Ghost in the Granite, SAP developer tokens CTI report](https://douglasmun.github.io/Douglas-Guidebook/Ghost_in_the_Granite_SAP_developer_tokens_CTI_report.html), 27.11.2026. Accessed 30.11.2026.
4. [Der Spiegel: SAP wird Opfer von Hackerangriff](https://www.spiegel.de/netzwelt/sap-wird-opfer-von-hackerangriff-a-6648b5ce-5d74-48dc-86ea-9469705bb91d), Marcel Rosenbach, 26.11.2026. Accessed 30.11.2026.
5. [heise online: SAP IT incident affects development systems](https://www.heise.de/en/news/SAP-IT-incident-affects-development-systems-11540040.html), Dirk Knop, 27.11.2026. Accessed 30.11.2026.
6. [BleepingComputer: SAP confirms security incident after suspicious GitHub activity](https://www.bleepingcomputer.com/news/security/sap-confirms-security-incident-after-suspicious-github-activity/), 27.11.2026. Accessed 30.11.2026.
7. [SecurityWeek: SAP Confirms Cyberattack, Source Code Reportedly Compromised](https://www.securityweek.com/sap-confirms-cyberattack-source-code-reportedly-compromised/), 27.11.2026. Accessed 30.11.2026.
8. [Handelsblatt: SAP: IT-Sicherheitsvorfall](https://www.handelsblatt.com/technik/ki/sap-it-sicherheitsvorfall-haben-verdaechtige-aktivitaeten-identifiziert/100273138.html), 27.11.2026. Accessed 30.11.2026.
9. [ERP Leaders: edition 80 (DSAG questions to SAP)](https://www.erp-leaders.com/edition/80/), 28.11.2026. Accessed 30.11.2026.
10. [SAP: FAQ Mini Shai Hulud npm Developer Package](https://www.sap.com/norway/documents/2026/05/8203a8b9-4d7f-0010-bca6-c68f7e60039b.html). Accessed 30.11.2026.
11. [Directive (EU) 2022/2555 (NIS2), Article 23](https://eur-lex.europa.eu/eli/dir/2022/2555/oj). Accessed 30.11.2026.
12. [Regulation (EU) 2022/2554 (DORA), Articles 19 and 28](https://eur-lex.europa.eu/eli/reg/2022/2554/oj). Accessed 30.11.2026.
