[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f5-K1Odb3CLLSheeba6zmjxeoCG1NfhmB8ETpWiCA_Ww":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"40513ebb-0c09-4797-97ee-301ca128c2e0","stolen-github-tokens-expose-sap-source-code-and-supply-chain-risk","4a4d952b-28bc-4126-a0ad-20a4f67ec35a","Stolen GitHub Tokens Expose SAP Source Code and Supply Chain Risk","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.","**Immediate actions:**\n- Revoke and rotate all potentially compromised GitHub access tokens and audit recent repository activity for unauthorized changes.\n- 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.\n- Enable GitHub secret scanning and push protection to detect and block accidental or malicious token exposure in commits.\n\n**Long-term improvements:**\n- Implement a secrets management platform (e.g., HashiCorp Vault, AWS Secrets Manager) to centrally issue, rotate, and audit all developer credentials.\n- Apply the principle of least privilege to all CI\u002FCD pipeline identities, restricting write access to production branches through branch protection rules and required code reviews.\n- Establish a software supply chain integrity program including signed commits, artifact signing (e.g., Sigstore), and reproducible builds to detect unauthorized code changes.\n\n**Detection measures:**\n- Deploy continuous monitoring and alerting on GitHub audit logs for anomalous token usage, off-hours access, or bulk repository cloning.\n- Integrate source code repository activity into the SIEM to correlate developer identity events with threat intelligence on stolen credentials.\n- Conduct periodic access reviews to identify and remove stale or over-privileged tokens and OAuth app authorizations.",[12,13,14,15,16],"CIS Control 5: Account Management (v8)","CIS Control 12: Network Infrastructure Management (v8)","NIST SP 800-53 IA-5: Authenticator Management","NIS2 Article 21(2)(d)","MITRE ATT&CK T1528: Steal Application Access Token",{"NIS2 Article 21(2)(d)":18,"CIS Control 5: Account Management (v8)":19,"NIST SP 800-53 IA-5: Authenticator Management":20,"MITRE ATT&CK T1528: Steal Application Access Token":21,"CIS Control 12: Network Infrastructure Management (v8)":22},"This point specifically mandates security measures addressing supply chain risks, which is the primary downstream concern raised by attackers using stolen tokens to tamper with SAP's source code.","This control requires managing the lifecycle of credentials — including access tokens — by enforcing least privilege, revoking unused credentials, and preventing credential misuse, all of which failed when stolen tokens granted broad repository access.","IA-5 requires establishing rules for the generation, distribution, storage, and revocation of authenticators such as access tokens, directly addressing the failure to properly scope and protect the stolen GitHub tokens.","This technique describes exactly what occurred — adversaries stealing OAuth or personal access tokens to authenticate as legitimate users and access protected resources like source code repositories.","This control covers securing developer infrastructure and administrative access channels; applying it to CI\u002FCD and code repository access would have limited the scope of what stolen tokens could reach.","published","2026-11-27T12:20:23.454916+00:00","2026-11-27T12:20:23.438+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fsecurityaffairs.com\u002F204121\u002Fdata-breach\u002Fsap-security-incident-stolen-tokens-raise-supply-chain-concerns.html","sap-security-incident-stolen-tokens-raise-supply-chain-concerns-716282","SAP Security Incident: Stolen Tokens Raise Supply Chain Concerns",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",{"id":38,"name":39,"slug":40,"description":41,"color":42},"f0c2a0af-58aa-4128-87c9-6acd30f2dc48","Supply Chain","supply-chain","Third-party risk, compromised dependencies","#8b5cf6",[],[45,49,53],{"slug":46,"name":47,"problem":48},"identity-threat-detection","Identity threat detection and response (ITDR)","Attackers who log in with real, stolen credentials get noticed.",{"slug":50,"name":51,"problem":52},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files.",{"slug":54,"name":55,"problem":56},"software-supply-chain","Software supply chain security","Malicious and vulnerable open-source packages are caught before they ship."]