WebhookAgent
SAP Replaced Its Signing Keys. The Harder Question Is What They Already Signed

SAP Replaced Its Signing Keys. The Harder Question Is What They Already Signed

Nov 29, 2026 25 min read

TL;DR

  • SAP confirmed on November 27 that it is investigating suspicious activity in its software development environment on GitHub. It says it has found no evidence so far of unauthorized access to customer business data.
  • German press reports say SAP restricted GitHub access, halted automated development processes and replaced its signing keys. Der Spiegel, citing an insider, reported that attackers stole employee authentication tokens and used them to copy and alter source code. SAP has not confirmed the token theft or any code changes.
  • Replacing signing keys is the step that sounds most decisive, but it protects the future. If the insider account is right, the harder work is the past: every change a stolen token could have made, and every artifact the old keys signed while it was live. Halting the automation was probably the move that mattered most.

Several days before anyone outside the company knew about it, SAP sent its employees a letter. According to heise and the German Press Agency, which reviewed parts of the internal communication, the letter said technicians had detected suspicious activity on what SAP calls its "GitHub platform for developer productivity and software delivery." It asked staff to check whether they needed to take security measures, such as changing their login credentials. It did not, as far as the reporting shows, say which repositories were involved.

On Thursday, November 26, Der Spiegel broke the story publicly, describing a cyberattack and citing an insider who said the attackers had stolen SAP employees' authentication tokens and used them to copy and modify source code stored on GitHub. Handelsblatt, citing internal sources, reported the emergency response: SAP had restricted access to GitHub, halted its automated software development processes and replaced its signing keys. The internal operation, German outlets reported, carries the codename Project Granite.

By Friday morning SAP had confirmed an incident to BleepingComputer, The Record, SecurityWeek and the German Press Agency. Its statement was short and careful: "Based on our investigation to date, we have found no evidence of unauthorized access to customer business data." The company did not say what the suspicious activity was, when it began, which teams or products were involved, or whether any code had been changed.

Most of the coverage settled on two questions: was SAP's proprietary source code taken, and did anything reach customers? Those are the right questions for SAP's customers. For developers who run their own pipelines, there is a third question nobody is asking out loud, and it is the more useful one. Of the three emergency measures, the one that sounds most like a cure, new signing keys, is the one that does the least against the attack the insider described. The measure that got the least attention, stopping the automation, is the one doing the real work. Explaining why takes a short detour through what a signature actually promises, and then a look at three other incidents from this year that ran on exactly the same fuel.

What a signing key actually promises

Start with the literal mechanism. When a software vendor signs a release, its build system computes a cryptographic hash of the artifact (a package, an installer, a container image) and encrypts that hash with a private key the vendor guards closely. Anyone with the matching public key can check two things: that the artifact has not changed by a single byte since it was signed, and that whoever signed it held the vendor's private key. The Record described the keys SAP replaced in exactly those terms, as keys "used to verify that its software was genuine and had not been tampered with."

Notice what is missing from that list. A signature says nothing about whether the code inside the artifact is good, reviewed or intended. It certifies the path from the build machine to your machine. It cannot see upstream of the build machine, into the repository, where the code was written.

The closest everyday comparison is a notary. A notary's stamp on a contract tells you the document passed through a licensed office, that the person in front of the notary showed identification, and that nobody has swapped a page since. It does not tell you that the clauses are fair, or that the person holding the pen was the person whose name is printed at the bottom. A notary stamps what is placed in front of them. That is the job.

Software signing works the same way, and the comparison holds up surprisingly well, with one limit worth flagging now: a notary at least looks at a human face, while a build server looks at nothing. It signs whatever arrives on the branch it watches. The same is true of the webhook signatures many readers of this site implement every day. As we covered in our piece on HMAC versus JWT for webhooks, a valid signature proves the sender held the secret. It does not prove the event was a good idea.

A signature is a statement about the journey of an artifact, never about the intentions of whoever wrote it.

The turn: a stolen token does not need the keys

Now place the insider's account next to that mechanism. If the attackers held valid authentication tokens belonging to SAP employees, they did not need SAP's signing keys at all. A token for a developer account carries that developer's rights. On a platform like GitHub, those rights typically include pushing commits, opening and sometimes merging pull requests, and editing the workflow files that tell the build system what to run. To every system downstream, a commit pushed with a stolen token is a commit from that employee.

The build server then does what it always does. It notices the new commit, runs the pipeline, produces an artifact and signs it with the company's real key. The notary stamps the contract, because the contract arrived through the front door with the right name on it. Nothing was forged, in the cryptographic sense. The signature on the result would be perfectly valid.

That is why replacing signing keys, on its own, answers a different threat from the one described. Rotating keys after suspicious activity is sound practice, and it is what responders do when they cannot rule out that key material was exposed. If the attackers ever touched the signing infrastructure itself, rotation is essential. But a new key only governs what gets signed from now on. It does not unsign anything, and it says nothing about what the old key signed during the window when a stolen token was live.

The other two measures look very different in this light. Restricting GitHub access shrinks who can place a contract on the notary's desk. Halting the automated development processes takes the notary off duty entirely. While the pipelines are stopped, nothing a stolen token pushes can be built, signed and shipped without a human noticing. That is a blunt instrument, and expensive for a company that ships as much software as SAP does, but it is the measure aimed squarely at the attack the insider described.

New keys change who can sign tomorrow. Stopping the pipelines changes what gets signed today. Only an audit can say what was signed yesterday.

The SAP incident in three layers

  1. Confirmed by SAP. Suspicious activity was identified, measures were taken to protect customers, and its investigation so far has found no evidence of unauthorized access to customer business data.
  2. Reported from internal communications. Employees were warned days earlier about suspicious activity in the GitHub environment and told to check whether they should change their credentials (heise and the German Press Agency). Numerous development teams were affected by emergency measures that restricted GitHub access, halted automated development processes and replaced signing keys (Handelsblatt, relayed by SecurityWeek and The Record).
  3. Reported from an insider, unconfirmed. Attackers stole employee authentication tokens and used them to copy and alter source code on GitHub (Der Spiegel). Sources inside the company suggested the attackers may have used AI tools.
  4. Not known. How the tokens were obtained, when the intrusion began and ended, which repositories were touched, whether proprietary code was accessed, whether any altered code was built or shipped, and who is behind it. SecurityWeek and other outlets note that no published report indicates tampered code reached customer software.

Three incidents, one fuel

It would be easy to treat the SAP case as a one-off. The calendar argues otherwise. In the space of a few weeks, the same ingredient, a valid token for a developer or bot account, has powered at least two other major incidents, and SAP's own open-source packages were hit by a variant of it in the spring.

The closest parallel landed two days before Spiegel's report. On November 25, 1Password published a disclosure stating that on November 19 it had begun investigating indications that an attacker gained access to an employee's corporate GitHub account. The company's own wording is worth reading slowly: "The actor used the account to access source code and push malicious code to backend services, which downloaded administrative data pertaining to our customers." The attacker also copied source code from private repositories and gained access to 1Password's CI/CD system. The data taken included names, email addresses, account identifiers and tokens embedded in emailed invitation, provisioning and recovery links. 1Password says vault contents were never accessed or available to the attacker, that it found no internal evidence of account takeovers, and that it disabled the account, revoked the stolen token, rotated credentials and lengthened emailed codes from six digits to ten alphanumeric characters. A root cause analysis is promised once the investigation ends.

Read that sentence about backend services again. 1Password does not say how the malicious code reached production, and it would be wrong to assume the details. But the shape is plain: an employee's GitHub identity was enough to get attacker-written code running inside the company's own services, where it did the collecting. Nothing in 1Password's account mentions a stolen signing key. By its own description, the account and its access were enough to push the attacker's code to its backend services.

Earlier in the month came a broader version of the same idea. In the campaign Aikido Security named wfx-loot, which began on November 10 and which we examined in detail in our report on the wfx GitHub attack, an attacker used compromised accounts to send probe pull requests to more than 61,000 repositories, according to Aikido's count reported by SecurityWeek, and planted a credential stealer in workflows, CI shell scripts and npm install hooks. StepSecurity's analysis made the point that matters here: the attacker was not exploiting a bug in GitHub Actions. The campaign relied on valid tokens belonging to developer and bot accounts. It also cleaned up after itself, reverting code changes and deleting workflow runs, which is precisely what makes the "what happened during the window" question so hard to answer afterwards.

And then there is April. On April 29, four npm packages in SAP's own developer ecosystem were published in malicious versions: the Cloud MTA Build Tool package mbt 1.2.48, plus @cap-js/db-service 2.10.1, @cap-js/postgres 2.2.2 and @cap-js/sqlite 2.2.2, which together drew more than 500,000 weekly downloads, according to SecurityWeek. The campaign, dubbed Mini Shai-Hulud and attributed by Wiz to a group it tracks as TeamPCP, added a preinstall script that stole GitHub and npm tokens and cloud secrets from developer machines and build environments, then used stolen tokens to republish poisoned versions of other packages. Onapsis put the exposure window at two to four hours. Aikido's assessment of the likely entry point is telling: a compromised npm token that had been exposed to pull request builds through CircleCI. The Record noted it is unclear whether April's incident and Project Granite are connected, and nothing published so far links them.

Each of these incidents has its own details, and none should be read as proof of what happened inside SAP in November. Taken together, though, they describe one mechanism. The attacker never breaks the cryptography. The attacker becomes, for a while, a legitimate participant in the pipeline, and the pipeline does the rest. We saw the bot-account version of this earlier in the month in Bitrise's breach through a test bot, and the delegated-credential version in Airbyte's shutdown, where the real question was who holds the keys on a customer's behalf.

The modern supply chain attack does not pick the lock. It borrows a badge and lets the conveyor belt carry the package.

The lesson from 2020 that the industry half learned

None of this is new in principle. The canonical case is more than five years old. In the SolarWinds compromise disclosed in December 2020, attackers planted an implant that CrowdStrike later named SUNSPOT on the company's build infrastructure. According to CrowdStrike's technical analysis, SUNSPOT watched for the build process, and when it detected that the Orion product was being compiled, it swapped in source code carrying the SUNBURST backdoor. As Brian Krebs reported at the time, the resulting code was then digitally signed by SolarWinds and delivered to customers through the normal update process. SolarWinds said as many as 18,000 customers received the trojanized updates. Krebs also reported that the implant included safeguards to keep the injected code out of build logs and to avoid causing build errors.

The signatures on those updates were real. They were produced by SolarWinds' own key, in SolarWinds' own build system, and they verified perfectly on customer machines. The notary had stamped a contract that someone had altered on the way to the desk.

The industry's response to SolarWinds produced real progress. The OpenSSF's Supply-chain Levels for Software Artifacts framework, known as SLSA, pushed the idea of build provenance: a signed record stating which source revision and which build system produced an artifact, so a consumer can check not just that a vendor signed something but how it was made. GitHub now offers artifact attestations built on the same idea. These are meaningful tools. They make the notary write down which office the contract came from and which drafts it was based on.

What they do not do, by themselves, is tell you whether the author was really the author. Provenance can prove an artifact was built from commit X on builder Y. If commit X was pushed with a stolen token, the provenance is accurate and the artifact is still the attacker's work. The tj-actions incident in March 2025 made a related point from another angle: attackers changed the version tags of a popular GitHub Action, tj-actions/changed-files, so that they pointed to a malicious commit, and every workflow that referenced the action by tag began running the attacker's code and printing secrets into build logs. CISA added the flaw, CVE-2025-30066, to its catalog of known exploited vulnerabilities. Nothing about those runs was cryptographically forged. A name simply started pointing somewhere new.

Five years of supply chain hardening taught the industry to verify the build. Identity upstream of the build is where attackers moved next.

The green badge problem

One small, concrete detail shows how far the signature reflex can mislead, and it comes from GitHub's own documentation. Commit signing exists precisely so that a commit can prove who made it. Some organizations require signed commits on protected branches and treat the green "Verified" label as a check that the author is genuine.

But GitHub's documentation on signature verification states that "GitHub will automatically use GPG to sign commits you make using the web interface," and that "commits signed by GitHub will have a verified status." In other words, anyone who can act as a user inside GitHub's web interface, which is what a hijacked browser session amounts to, gets the badge without ever touching that user's personal signing key. The same documentation is candid about the limits in a related case, noting in its description of vigilant mode that "the commit signature doesn't guarantee the consent of the author." Vigilant mode, which tightens how verification statuses are shown, is off by default.

We do not know what kind of tokens were reportedly stolen at SAP, and Spiegel's phrase, employee authentication tokens, could describe anything from a personal access token to a session cookie to an OAuth grant held by a tool. The point is general. A verification badge is the notary's stamp again, applied one step earlier. It tells you which account produced the commit. It does not tell you who was holding the account.

Why stopping the robots was the real containment

For an audience that builds automations for a living, the most interesting line in the Handelsblatt account is the least dramatic one: SAP halted its automated software development processes. It is worth dwelling on what that phrase covers in a modern engineering organization, because it covers a lot more than a build server.

A push to a repository on a platform like GitHub is an event, and events fan out. A webhook fires to the CI system. The CI system builds, tests and publishes. A successful publish fires another event that tells a deployment tool to roll out. A dependency bot sees a new internal version and opens pull requests in a dozen other repositories. A release workflow tags, signs and uploads. Many of those steps run under bot identities with broad, long-lived permissions, because that is what makes the whole chain work without a human clicking through each stage. Our coverage of GitHub's late webhooks earlier this month showed how much of a typical delivery process hangs off those event streams.

From an attacker's point of view, that chain is an amplifier. One commit pushed with one stolen token can become an artifact, a signed release, a deployment and a set of downstream pull requests within minutes, all of it legitimate in every log. The wfx-loot campaign showed the reverse direction too: once malicious code runs inside a CI job, it can read the secrets that job holds, including the tokens of the bots, and use those to move further. Mini Shai-Hulud did exactly this with npm publishing tokens.

Stopping the automation cuts the amplifier. It is the incident-response equivalent of a circuit breaker, and it has an obvious cost: nothing ships while it is open. For a company of SAP's size, that is an expensive decision, and the fact that it was reportedly taken suggests the responders judged the risk of the pipeline acting on attacker input to be real. SAP has not said when normal operations will resume, and it should not be pressured to restart early. The restart is the moment that matters, because a pipeline turned back on will happily build whatever is sitting on its branches.

There is a design lesson in that for anyone who runs an event-driven delivery system. A kill switch for the automation is a capability, and it is one most teams have never rehearsed. Few organizations could say, today, how long it would take them to pause every webhook-triggered build, publish and deploy across their estate, or which ones would keep running because they live in a different account. The same theme ran through our analysis of release gates for agent-written code: the gate that matters is the one that can actually stop something.

An automation you cannot pause in an emergency is an automation the attacker gets to keep using.

The AI question, held at arm's length

Spiegel's sources said the attackers may have used agentic AI, and that detail has travelled fast. It deserves caution. SecurityWeek stated plainly that AI involvement has not been confirmed, and SAP has said nothing about it. No public evidence yet shows what, if anything, an AI system did in this intrusion.

The context is real, though. On November 26, Germany's Federal Office for Information Security, the BSI, issued a public warning about agentic offensive frameworks, naming ARTEX, CAIRN and PentAGI as examples of tools that can carry out much of an attack with little human direction. We covered a real-world use of CAIRN in our report on AI agents finding a zero-day in 11 minutes, and the way an agent swarm improvised infrastructure out of public webhook testers.

If automation on the attacking side is speeding up, it sharpens the argument above rather than changing it. A human attacker with a stolen token might push a handful of careful changes. An automated one can enumerate every repository the token can reach, every workflow it can edit and every secret those workflows hold, far faster than a human team can notice. That makes the window between theft and containment more expensive per hour. It does not change where the weakness sits. The weakness is still that a token is treated as a person.

What we know, and what we don't

It is worth being precise about the limits here, because the most dramatic details are also the least confirmed.

SAP has confirmed suspicious activity and protective measures, and that its investigation so far has found no evidence of unauthorized access to customer business data. That statement is narrow in a specific way: it is about customer business data, not about source code, build systems or the integrity of shipped software. That is not a sign of concealment. It is what a company can say a few days into an investigation. But it means the question most developers care about remains open.

The claims that tokens were stolen and code was altered come from a single insider quoted by Der Spiegel, relayed by every other outlet. They may be accurate, partially accurate or overtaken by the investigation. The reported response measures come from Handelsblatt's internal sources, and they are consistent with what a responder would do if the insider's account were true, which is supporting evidence, not proof. SecurityWeek notes that SAP publishes developer tools, sample applications and open-source projects on GitHub, and it is unclear whether proprietary code was involved at all.

Two other threads should be kept apart from this one. In late October, the Gentlemen ransomware group listed SAP on its leak site with references to Latin American operations; SecurityWeek reported that the two incidents do not appear to be connected. And April's npm compromise, while it hit SAP-maintained packages, has not been linked to Project Granite by anyone with knowledge of either investigation.

Finally, nothing in the reporting so far indicates that altered code reached software distributed to SAP customers. That is the single most important open fact, and it is the one an audit of the window, not a new key, will settle.

A practical framework for the token you have not lost yet

The SAP case is still unfolding, but the pattern behind it is well enough understood to plan against. These seven steps are written for teams that run their own repositories, pipelines and event-driven deployments, at any scale.

  1. An inventory of who can place code on the notary's desk. The list that matters is every identity, human or bot, that can push to a branch a pipeline builds from, edit a workflow file, or publish a package. Most organizations find the bot column longer than expected, and older. Long-lived personal access tokens belonging to people who changed teams are the classic surprise.
  2. Short-lived credentials wherever the platform allows them. Workload identity federation, such as OIDC from a CI system to a cloud provider or package registry, replaces stored secrets with tokens that expire quickly, often within an hour. A stolen one is worth far less. The April npm incident is a reminder that the configuration of those trust relationships matters too; the wfx-loot payload, as we reported earlier, tampered with cloud trust settings so its access would outlast secret rotation.
  3. Review that a single token cannot satisfy. Branch protection with required reviews from someone other than the author, and code owners on workflow files, means a stolen developer token can propose a change but not land it alone. This is the one control that answers the insider's scenario directly, because it requires a second identity. GitHub's tightening of risky triggers, which we examined in our piece on pull_request_target, closes a related door.
  4. A rehearsed kill switch for the automation. A written, tested procedure to pause builds, publishes and webhook-triggered deploys across every account and platform, with a named owner and a measured time to complete. Teams that have never practised it tend to discover a forgotten pipeline in a side account during the real thing.
  5. A defined window, and a replay of everything in it. When a token is suspected stolen, the investigation needs the earliest plausible start time, then every push, workflow edit, tag change, release and package publish made under that identity since. Audit logs carry much of this, but retention and coverage vary by plan and configuration; on GitHub Enterprise Server, for example, Git events such as pushes and clones have to be switched on separately, and only after a finite retention period has been configured. A mirror of repositories held outside the platform makes it possible to compare history and spot rewritten branches or deleted runs, the cleanup step the wfx-loot attacker relied on.
  6. Provenance that ties each artifact to a commit and a builder. SLSA-style provenance or GitHub's artifact attestations will not catch a malicious commit, but they turn the audit question from "what did we ship?" into "which commits did these artifacts come from?", which is answerable. Without provenance, the old key's signatures cannot be traced back to source.
  7. For consumers: pinning by content, not by name. Referencing dependencies and actions by full commit SHA or digest, rather than by tag or version range, means a name that suddenly points somewhere new, as in the tj-actions case, does not silently change what runs. It also gives a downstream team a precise list of what it pulled during a vendor's incident window.

None of these require new products. Most require the unglamorous work of deciding that a token is a key to the building and managing it accordingly, a theme that also ran through our report on secrets that were never revoked after a patch.

The seal and the contract

The natural reaction to a story like SAP's is to look for the strongest-sounding remedy and take comfort in it. New signing keys sound strong. They are cryptographic, they are total, and they draw a clean line between before and after. For a reader skimming headlines, "SAP replaced its signing keys" sounds like the end of the story.

It is closer to the beginning. Replacing the notary's seal stops anyone who might have stolen the old one from stamping new documents. It does nothing about the contracts the office stamped honestly while someone else was holding the author's pen. Those contracts are still in circulation, still carrying a valid seal, and the only way to know whether any of them are bad is to read them, one by one, against the record of who wrote what and when.

That is the shift worth carrying out of this week. Trust in a software update has never really lived in the signature. It lives in the whole path behind it: who could write to the repository, what the automation did with what they wrote, and whether anyone could stop it. The seal certifies the last step. Everything that matters happens before the stamp comes down, and for SAP's investigators, as for anyone whose pipeline runs on tokens, that is where the work is now.

FAQ

What has SAP actually confirmed about the GitHub incident?

SAP confirmed that it identified suspicious activity, took measures to protect customers, and that its investigation so far has found no evidence of unauthorized access to customer business data. It has not confirmed reports that employee tokens were stolen or that source code was altered, and it has not said which repositories or products were involved.

Do SAP customers need to do anything right now?

SAP has not issued customer guidance tied to this incident, and no published report indicates that altered code reached customer software. Teams that pull SAP open-source projects or developer tools from GitHub can reasonably check which versions they fetched recently and keep an eye on SAP's security notes for updates.

Why does replacing signing keys not settle the question?

A signature proves an artifact came from the holder of the key and has not changed since. If an attacker used a stolen developer token to push code, the company's own build system would sign the result with the real key. New keys stop future misuse of the old key, but they do not reveal what was built and signed during the window when a stolen token was active.

Was AI used in the attack?

Sources quoted by Der Spiegel suggested the attackers may have used agentic AI, but this has not been confirmed by SAP or by any published evidence. Separately, Germany's BSI warned on November 26 about agentic offensive frameworks such as ARTEX, CAIRN and PentAGI.