blogs
SAP Confirms Security Incident Impacting GitHub

Although little information is currently available, and most of that information comes from press reporting rather than the company itself, SAP has confirmed that it detected suspicious activity and took steps to secure services after a reported intrusion into the company’s GitHub environment. SAP publishes source code for products and open-source projects on GitHub, although no information about which repositories were impacted or whether any code which was accessed was public or private is currently available.
German news magazine Der Spiegel first reported the incident on November 26th, allowing it to fly under the radar for those in many regions due to the focus on the US Thanksgiving holiday and accompanying Black Friday sales. The initial report cited an internal message to SAP employees which stated that SAP had detected suspicious activity in its GitHub environment and asked employees to verify whether they needed to change their credentials.
Information available suggests that the attackers stole authentication tokens belonging to SAP employees and used them to either copy or alter source code on GitHub. Authentication tokens act as a secure alternative to using a password when authenticating with GitHub via either the command line or the GitHub API. GitHub offers two main types of access tokens. Fine-grained tokens are generally restricted to specific repositories and grant very granular read/write permissions. These types of tokens generally have an expiration date. Classic tokens grant broad, account-wide access based on general scopes, for example an entire repository, and can be set to never expire. No information is available on the types of tokens compromised.
Following the initial report, the company released a statement which said that “SAP has identified suspicious activity and promptly implemented the necessary measures to protect its customers and preserve the security of its services. Based on our investigation to date, we have found no evidence of unauthorized access to business data.”
German language newspaper Handelsblatt, citing sources within SAP, reported that the company had restricted access to GitHub, paused automated development workflows, and replaced signing keys as part of an internal project. These measures apparently impacted multiple development teams.
Ongoing Cybersecurity Risk
Despite the company taking prompt action, the concern raised by the incident is that malicious code could have been added to the GitHub environment which will introduce vulnerabilities to future SAP releases. This would allow threat actors to access these vulnerabilities in the future as part of a supply-chain attack.
Examples of well-known supply chain attacks include the SolarWinds Orion update compromise, the CCleaner backdoor, and Magecart attacks on payment scripts. In each of these cases, a weak link was compromised to create vulnerabilities that were later exploited by threat actors. Because the GitHub repositories that have been accessed could potentially contain product source code, the threat remains real even if no customer or business data was directly accessed as part of the attack.
While the company responds to the incident, attacks of this nature are becoming increasingly common across vendors and companies around the globe. In the case of stealing GitHub tokens, threat actors can take steps like targeting developer machines, exploiting misconfigured pipelines, or simply tricking users into authorizing malicious applications through more traditional phishing attacks. Because a stolen token bypasses passwords and multi-factor authentication (MFA), it is a primary target for these types of supply-chain and cloud breaches.
What This Means for SAPinsiders
Closely observe and follow all patching and update guidance from SAP. With the recent attack it is absolutely vital that every SAP customer pay close attention to any SAP statements about product patching and updating that might be released in response to the attack. More information is likely to be released over the next weeks and this may well include instructions on patching certain products, or even avoiding installing updates for some solutions until SAP is able to provide assurances that no code has been impacted. Failure to do this will significantly increase the vulnerability of every SAP customer in the wake of the attack even if no data was compromised in the attack itself.
Immediately put in place measures to protect access and build pipelines and thoroughly monitor vendors. Many organizations may already have a layer of protection in place, but every organization should ensure that they put in place strict security measures to reduce the risk of supply-chain attacks. This includes steps such as vetting third-party vendors, or even new patches from SAP, enforcing strict access and build controls, tracking software and hardware dependencies, and continuously monitoring for anomalies. This should include applying a zero trust and least privilege model that segments networks, uses MFA everywhere, and restricts privileged credentials so a compromised vendor account cannot move laterally.
Work on the basis that threat actors are actively trying to breach every environment. Many organizations may feel as though they are unlikely to be attacked because they either lack importance or information of any real value. This could not be further from the truth. Every organization should implement cybersecurity strategies and policies that plan for an attack every day of every week. Even if threat actors are not actively targeting a specific organization, a newly discovered vulnerability in a system or environment might suddenly open that organization to attack. Threat actors will exploit this because they now can do so quickly and efficiently using AI tools and capabilities. Rather than having to focus on a specific target, AI allows relatively inexperienced threat actors to launch attacks against multiple organizations simultaneously. This makes it crucial for every SAPinsider to be always monitoring for potential attacks.