SAP Project Granite: How Stolen GitHub Tokens Put the Software Supply Chain at Risk

November 30, 2026
Profile Icon

Jason Franscisco

SAP has confirmed a security incident, and the most serious details point to a quiet attack path: stolen GitHub tokens. At Loginsoft, we read this as a warning about source-code integrity, not only data theft.

What SAP Confirmed in the Project Granite Security Incident

SAP confirmed on 26 November 2026 that it detected suspicious activity and took steps to protect customers. DER SPIEGEL reported, citing an insider, that attackers stole SAP employees' authentication tokens and used them to copy and alter source code on GitHub. An internal memo reportedly calls the incident active and names the investigation Project Granite. Sources also suggested the attackers may have used AI agents. SAP has confirmed neither the token theft nor the AI claim.

  • Severity: No CVE or CVSS score exists, because this is an intrusion, not a product flaw. Our assessment is high potential impact: altered code can reach customers through legitimate builds.
  • Affected products: None named. The repositories are not identified, and it is unclear whether the code was public or private.
  • Customer impact: SAP says it has found no evidence of unauthorized access to customer business data so far. Management reportedly sees no need to notify customers proactively, so do not wait for a notice.
  • Unknown: How the tokens were obtained.

How Stolen GitHub Tokens Let Attackers Copy and Alter Source Code

A token is a bearer credential. Whoever presents it inherits its owner's permissions, and because it is issued after login, it triggers no password prompt or MFA challenge. Its scopes decide whether the holder can only read a repository or also push commits, edit workflows and read secrets. Public reporting does not say which token types were stolen, so this is the attack path we would expect:

  1. Theft: An infostealer, a malicious IDE extension, a poisoned dependency or leaked CI logs. SAP's method is undisclosed.
  2. Reconnaissance: API calls list the repositories and teams the token can reach. They look like normal developer activity.
  3. Collection: Bulk cloning of repositories (MITRE ATT&CK T1213.003, code repositories).
  4. Tampering: Commits or workflow edits that plant backdoors or harvest more secrets (T1565.001, T1195.002).
  5. Persistence: New tokens, deploy keys or OAuth grants that survive revocation of the first token.

Copying code hands attackers a map for finding zero-days and hardcoded secrets. Altering code is worse: a malicious commit that flows through a trusted build inherits the vendor's reputation. Outlets citing Handelsblatt report that SAP replaced signing keys, paused automated development workflows and restricted GitHub access. SAP has not confirmed this, but it matches textbook containment after suspected pipeline exposure.

Treat the AI-agent claim with caution. If true, it would shorten the gap between theft and impact, because agents can enumerate repositories and search for secrets faster than a human operator. It remains unverified.

Software supply chain risk starts with your dependencies. See how our researchers secure them.

Secure Your Supply Chain

Loginsoft Analysis: Project Granite Read Against SAP's April npm Compromise

On 29 April 2026, malicious versions of four SAP-related npm packages (@cap-js/sqlite, @cap-js/postgres, @cap-js/db-service and mbt) were published and replaced within hours. The payload stole GitHub and npm tokens, GitHub Actions secrets and cloud credentials. Researchers attributed it to TeamPCP, and SAP documented it in SAP Note 3747787. Public reporting does not link that campaign to Project Granite, and we do not claim a link. It does show that the same credential class was already being harvested around SAP's developer ecosystem seven months earlier.

At Loginsoft, we have examined over 80,000 open-source libraries for malicious packages, and we treat token theft and dependency compromise as one connected problem. Our three takeaways:

  • Tokens are the new perimeter. MFA at login does not protect a token that is already issued.
  • Integrity is the real exposure. The key question is not what was copied, but what was committed and shipped.
  • Customer blast radius runs through the pipeline. If your teams consume SAP open-source components or SAP-signed artifacts, verify provenance and watch SAP notices.

Detection starting points for GitHub audit logs and your SIEM (event names vary by GitHub plan, so validate them first):

Signal What to hunt for
Bulk collection git.clone or git.fetch spikes from one token, or from a new IP or ASN
New credentials personal_access_token.access_granted, deploy_key.create or oauth_authorization.create outside change windows
Workflow tampering Pushes touching .github/workflows by non-owners, or unfamiliar workflow runs
Protection bypass protected_branch.policy_override or protected_branch.destroy events

What Security Teams Should Do Now to Contain Token and Pipeline Risk

Whether or not you use SAP, these steps close the same gap.

  1. Revoke and rotate. Audit every PAT, OAuth app and deploy key. Revoke the unused and rotate any exposed on laptops or CI.
  2. Replace classic PATs with fine-grained, short-lived tokens. Require organization approval and set expiry.
  3. Review 90 days of audit logs for token-based clone and push activity, using the signals above.
  4. Protect branches with rulesets that require review and signed commits, and block force pushes and admin bypass.
  5. Harden GitHub Actions. Pin third-party actions to commit SHAs, default GITHUB_TOKEN to read-only, and use OIDC instead of stored cloud keys.
  6. Enable secret scanning and push protection, and scan history for committed secrets.
  7. Verify what you ship. Generate SBOMs, check provenance and signatures, and be ready to rotate signing keys.
  8. Treat AI coding agents and bots as identities with scoped, expiring credentials.
  9. Prepare to respond. Monitor SAP security notices, ask vendors about exposure, and rehearse a token-compromise playbook.

Know which risks to fix first. LOVI ranks vulnerabilities with exploit and ATT&CK context.

Explore LOVI

How Loginsoft Helps You Prioritize and Contain Supply Chain Risk

  • LOVI vulnerability intelligence: Pre-NVD enrichment, EPSS, CISA KEV mapping and ATT&CK context show which weaknesses attackers actually use.
  • Software supply chain security: SCA content with reachability, dependency defense and zero-day discovery (1,000+ zero-days found) catch weak and malicious components before they ship.
  • Cytellite threat intelligence: Real-time search across IPs, domains, CVEs and threat actors lets you pivot on indicators the moment an incident breaks.
  • Research-as-a-Service and 200+ integrations: Extend your team with researchers, and push intelligence into the SIEM, SOAR and ticketing tools you already run.

Unsure of your supply chain exposure? Talk to a Loginsoft expert.

Talk to Our Experts

SAP Security Incident: Frequently Asked Questions

Q1. What is SAP's Project Granite?

Project Granite is the reported internal name for SAP's investigation into suspicious activity in its development environment. Per DER SPIEGEL, attackers used stolen employee tokens to copy and alter source code on GitHub. SAP confirmed an incident, but not those details.

Q2. Is there a CVE or patch for the SAP security incident?

No. Reports cite no CVE, no CVSS score and no affected product. This is an intrusion into a development environment, not a software flaw, so there is no patch to apply.

Q3. Were SAP customers affected?

SAP says it has found no evidence of unauthorized access to customer business data so far. It has not said whether builds or published software changed, so customers should watch SAP communications and verify artifact integrity.

Q4. How do attackers use stolen GitHub tokens?

A stolen token lets attackers act as its owner within the granted scopes: listing and cloning repositories, pushing commits, editing workflows and creating further credentials, often without a password prompt or MFA challenge.

Q5. How can I protect GitHub tokens?

Use short-lived fine-grained tokens, require organization approval, enable secret scanning and push protection, enforce branch protection, and review audit logs for unusual clone and push activity.