Stolen GitHub Tokens Expose SAP Source Code and Supply Chain Risk
Written by AI from the linked story. Not reviewed by an editor. How this works
Attackers stole GitHub access tokens belonging to SAP employees and used them to access, modify, and copy source code repositories — a classic credential theft leading to supply chain compromise. The core failure was insufficient protection and lifecycle management of developer access tokens, which act as long-lived credentials with broad permissions if not scoped and rotated properly. This matters because source code tampering can introduce backdoors or malicious logic that propagates to customers through software updates, multiplying the blast radius far beyond the initial breach. Even without confirmed customer data exposure, the integrity of SAP's software supply chain is now in question, undermining trust across its large enterprise customer base.
Tactical Insight
Immediate actions
- Revoke and rotate all potentially compromised GitHub access tokens and audit recent repository activity for unauthorized changes.
- Enforce short-lived, fine-grained access tokens (e.g., GitHub fine-grained PATs or OIDC-based tokens) scoped to only the repositories each developer requires.
- Enable GitHub secret scanning and push protection to detect and block accidental or malicious token exposure in commits.
Long-term improvements
- Implement a secrets management platform (e.g., HashiCorp Vault, AWS Secrets Manager) to centrally issue, rotate, and audit all developer credentials.
- Apply the principle of least privilege to all CI/CD pipeline identities, restricting write access to production branches through branch protection rules and required code reviews.
- Establish a software supply chain integrity program including signed commits, artifact signing (e.g., Sigstore), and reproducible builds to detect unauthorized code changes.
Detection measures
- Deploy continuous monitoring and alerting on GitHub audit logs for anomalous token usage, off-hours access, or bulk repository cloning.
- Integrate source code repository activity into the SIEM to correlate developer identity events with threat intelligence on stolen credentials.
- Conduct periodic access reviews to identify and remove stale or over-privileged tokens and OAuth app authorizations.