Back to all lessons
Awareness Lessons
3 days ago

Stolen Auth Tokens Enable SAP GitHub Source Code Breach

Written by AI from the linked story. Not reviewed by an editor. How this works

Attackers used stolen employee authentication tokens to access, copy, and modify source code within SAP's GitHub environment — bypassing traditional credential controls entirely. This incident highlights the critical danger of long-lived or inadequately protected authentication tokens, which can grant broad access without triggering password-based protections like MFA. The fact that code-signing keys also had to be rotated suggests the attackers' access was deep enough to threaten the integrity of SAP's software supply chain. Even though no customer business data appears compromised, tampering with source code or signing keys could introduce vulnerabilities or backdoors into products used by millions worldwide. This underscores why developer environments and CI/CD pipelines must be treated as high-value targets requiring the same security rigor as production systems.

Tactical Insight

Immediate actions

  • Revoke and rotate all developer authentication tokens, code-signing keys, and secrets exposed or potentially accessible during the breach window.
  • Audit all GitHub repository access logs to identify what was accessed, copied, or modified and by which tokens.
  • Enforce short-lived, scoped tokens (e.g., via GitHub fine-grained PATs or OIDC-based authentication) and eliminate long-lived static tokens.

Long-term improvements

  • Implement secrets scanning in all repositories and CI/CD pipelines to detect and block committed credentials before they can be exploited.
  • Apply least-privilege access controls to GitHub environments, ensuring developers and automation accounts only access the repositories they strictly require.
  • Treat the software development pipeline as critical infrastructure with network segmentation, dedicated access policies, and periodic access reviews.

Detection measures

  • Deploy continuous monitoring and anomaly detection on repository activity to flag unusual access patterns such as bulk cloning or unexpected modifications.
  • Integrate SIEM alerting for GitHub audit log events, particularly around token usage, permission changes, and code-signing operations.
  • Conduct regular red-team exercises targeting developer toolchains and CI/CD systems to surface weaknesses before attackers do.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.