SAP Confirms Security Incident After Stolen GitHub Tokens Altered Code

SAP confirmed on November 27 that stolen employee GitHub tokens were reportedly used to copy and alter its source code, with unconfirmed reports of agentic AI involvement. Here's what's confirmed, what isn't, and what to check in your own token inventory.

SAP confirmed a security incident on November 27, 2026, one day after Der Spiegel reported that attackers had stolen authentication tokens belonging to SAP employees and used them to read and alter source code in SAP's GitHub environment. SAP is tracking the case internally as "Project Granite." Anyone who runs SAP software, builds on SAP's public GitHub repositories, or manages GitHub tokens for their own engineering org should read this one closely.

What SAP has confirmed, and what is still just reported

The confirmed part is short. SAP told reporters it identified suspicious activity and took immediate action, and that so far it has found no evidence attackers reached customer business data. That is the extent of SAP's on-record statement.

Everything more specific comes from Der Spiegel's unnamed insider and the outlets that followed up. An internal SAP memo described the case as an "active security incident" under the code name Project Granite. According to that insider, attackers stole employee authentication tokens, used them to log into GitHub, and then copied and modified SAP source code. SAP has not confirmed the token theft or the code changes, and has not said which repositories were touched, whether the affected code was public or proprietary, or whether any altered code reached a shipped build.

Handelsblatt separately reported that SAP restricted GitHub access, paused automated development pipelines, and rotated its code-signing keys, now requiring every change to be cryptographically signed. If accurate, that response looks like containment for a live integrity scare, well beyond a routine data-exposure cleanup.

1 · Report

Der Spiegel publishes the first account on November 26, citing an insider who describes stolen employee GitHub tokens used to copy and alter SAP source code.

2 · Confirmation

SAP confirms a security incident on November 27, without validating the token theft or code-alteration details, and says it has no evidence of customer data access.

3 · Containment, as reported

Handelsblatt reports SAP restricted GitHub access, halted automated builds, and rotated signing keys, requiring cryptographic signatures on new commits.

How a stolen GitHub token turns into altered source code

The mechanism being described is ordinary and well understood. A personal access token or similar credential tied to one employee's GitHub identity grants whatever scopes that account has: read, write, sometimes admin on specific repos. If an attacker gets a copy of that token, they do not need the employee's password, their laptop, or their MFA device. They just replay the token from wherever they are, with the same permissions the real account holder had.

SAP has not said how the tokens were obtained. One recent, unrelated case involved a malicious VS Code extension harvesting GitHub tokens, but there is no public evidence tying that technique to this incident. The point that matters for defenders is upstream of the theft vector: once a long-lived token exists and an employee can hold it, copy it, or paste it somewhere, it is a standing liability regardless of how it eventually leaks.

The agentic AI detail, and why it is still unconfirmed

Some reporting citing Der Spiegel's sources suggested the attackers may have used AI systems, with at least one outlet describing this as agentic AI tooling acting on the stolen token. SAP has not confirmed this, and no outlet reviewed for this piece has shown direct evidence of it.

The detail is plausible for a specific reason that has nothing to do with this incident's facts: a bearer token does not care who or what presents it. If a developer's AI coding assistant is configured to hold that same personal access token to open pull requests or query repos on the developer's behalf, the assistant's session, its logs, its plugin sandbox, or its own compromise all become additional places that token can leak from. An agent that can read and write a credential is functionally equivalent to a person who can, for the purposes of a thief.

Why the credential's shape is the real finding here

This is the detail worth sitting with. It does not matter whether the thief in Project Granite was a phished contractor, a compromised laptop, or an AI agent with too much standing access. What let a single stolen token turn into copied and allegedly altered source code is that the token was long-lived, broadly scoped to that employee's GitHub permissions, and portable: something that could be lifted once and replayed indefinitely from any network, with no re-authentication step in between.

A scoped, short-lived credential collapses that blast radius. If access to a given repository is minted per session, expires in minutes, and is bound to the calling context rather than handed to a human or an agent to carry around, a stolen copy is only useful for the small window it is valid and only for the narrow action it was issued for. That does not stop every attack. It stops this specific failure mode: one token, replayed from anywhere, granting broad standing access until someone notices.

What to check in your own environment

  • Inventory personal access tokens with write access to any repository that builds, ships, or signs production artifacts. Classic PATs without expiration are the highest-risk class.
  • Check whether any AI coding assistant, IDE extension, or CI job in your org is configured to hold a developer's personal token rather than a scoped machine credential.
  • Confirm your GitHub organization enforces fine-grained tokens or GitHub Apps with repository-level scoping instead of classic PATs, and set a maximum token lifetime.
  • If you consume SAP code, packages, or build artifacts, ask your SAP account team directly which repositories were in scope and whether any altered code reached a release, since SAP has not published that itself.
What is not known yet matters as much as what is. SAP has not named affected repositories, confirmed the token theft mechanism, or confirmed AI involvement. Treat every specific technical claim beyond SAP's own statement as sourced to Der Spiegel's reporting, not to SAP.

KnoxCall is an API gateway and secrets platform built around this exact credential shape: scoped, short-lived tokens injected at the proxy, rather than long-lived tokens an employee or an AI agent can hold and replay. We make a product in this space, and we are flagging that plainly rather than claiming it would have stopped this specific reported attack.

Frequently asked questions

What is SAP Project Granite?

Project Granite is the internal code name SAP reportedly uses for a security incident confirmed on November 27, 2026, after Der Spiegel reported that attackers stole employee GitHub authentication tokens and used them to copy and alter SAP source code. SAP has confirmed it is investigating an incident but has not confirmed the token theft or code-alteration details itself.

Did SAP confirm its source code was altered?

No. SAP confirmed a security incident and said it has found no evidence of access to customer business data, but it has not confirmed that attackers altered source code. The claim that code was copied and modified comes from an insider cited by Der Spiegel, not from SAP's own statement.

Was AI involved in the SAP GitHub token theft?

Some reports citing Der Spiegel's sources suggest the attackers may have used AI systems, with one outlet describing this as agentic AI tooling. SAP has not confirmed this, and no publicly reviewed source has produced direct evidence of AI involvement in the attack.

What should developers do after the SAP GitHub breach?

Inventory any personal access tokens with write access to production repositories, check whether AI coding assistants or CI jobs hold a developer's personal token instead of a scoped machine credential, and move to fine-grained GitHub tokens or GitHub Apps with short expirations.

Sources

  1. SAP Security Incident: GitHub Tokens and Source Code
  2. SAP confirms security incident after reported GitHub breach
  3. SAP Security Incident: Stolen Tokens Raise Supply Chain Concerns
  4. Project Granite: SAP Source-Code Incident and Vendor Code Integrity
  5. CISO Daily Briefing (Nov 29, 2026)
  6. SAP Confirms Cyberattack; GitHub Code Copied, Spiegel Says
  7. SAP's 2026 Breach Explained: What Happened, What to Do

Long-lived tokens are the pattern behind Project Granite

SAP's reported incident turned on one stolen, long-lived employee token with standing GitHub access; scoping and shortening credentials narrows exactly that failure mode.

Start Free →

Or get new posts by email. Double opt-in, unsubscribe anytime.