[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fciTFUcdrumaK1EqWGGdH8pZNexLUoQa7grIK0sDuLr4":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},"c3419fa6-25dd-431a-8cfd-9da4d130c609","stolen-github-tokens-enable-sap-source-code-tampering","94c306aa-27c0-4259-93e2-ed95fb4c68ab","Stolen GitHub Tokens Enable SAP Source Code Tampering","Attackers compromised SAP by stealing authentication tokens belonging to SAP employees and using them to access and modify source code hosted on GitHub. The root failure was that long-lived or inadequately protected authentication tokens provided a pathway to sensitive development infrastructure without requiring further verification. This matters because altered source code in a major enterprise software vendor's repository could introduce backdoors or vulnerabilities affecting thousands of downstream customers. The incident also highlights the systemic risk posed when developer credentials and tokens are not treated with the same rigor as privileged account credentials.","**Immediate actions:**\n- Revoke all potentially compromised GitHub tokens and rotate all developer authentication credentials immediately.\n- Audit all recent commits and code changes in affected repositories to identify any unauthorized or malicious alterations.\n- Enable mandatory multi-factor authentication for all accounts with access to source code repositories.\n\n**Long-term improvements:**\n- Adopt short-lived, scoped tokens for CI\u002FCD pipelines and developer access rather than persistent personal access tokens.\n- Implement code signing and integrity verification so any unauthorized changes to source code can be detected before release.\n- Establish a formal secrets management platform (e.g., HashiCorp Vault, AWS Secrets Manager) to store and govern all tokens and credentials centrally.\n\n**Detection measures:**\n- Configure repository-level audit logging and alerting for unusual commit patterns, bulk cloning, or access from unexpected IP addresses.\n- Integrate GitHub Advanced Security or equivalent tooling to scan for exposed secrets and anomalous repository activity in real time.\n- Monitor for token reuse across unexpected geographic locations or outside normal working hours as an indicator of credential theft.",[12,13,14,15,16],"CIS Control 5: Account Management (v8)","CIS Control 6: Access Control Management (v8)","NIST SP 800-53 IA-5: Authenticator Management","NIS2 Article 21(2)(j)","MITRE ATT&CK T1528: Steal Application Access Token",{"NIS2 Article 21(2)(j)":18,"CIS Control 5: Account Management (v8)":19,"CIS Control 6: Access Control Management (v8)":20,"NIST SP 800-53 IA-5: Authenticator Management":21,"MITRE ATT&CK T1528: Steal Application Access Token":22},"This point mandates the use of multi-factor authentication and secure communications; requiring MFA on all GitHub accounts would have prevented token theft alone from granting repository access.","This control requires managing and controlling the lifecycle of credentials, including tokens; enforcing short-lived tokens and prompt revocation would have limited the attacker's ability to use stolen credentials.","This control calls for granting least-privilege access; scoping GitHub tokens to only necessary repositories and operations would have constrained the blast radius of the stolen tokens.","IA-5 requires establishing controls over the issuance, storage, and revocation of authenticators such as tokens, which directly addresses the failure to protect the stolen GitHub authentication tokens.","This technique describes exactly how attackers obtained OAuth or personal access tokens from SAP employees to authenticate to GitHub as legitimate users.","published","2026-11-27T04:20:18.249861+00:00","2026-11-27T04:20:18.228+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fcybersecuritynews.com\u002Fsap-security-incident\u002F","sap-confirms-security-incident-as-hackers-reportedly-steal-github-tokens-and-alt-6b6f0b","SAP Confirms Security Incident as Hackers Reportedly Steal GitHub Tokens and Alter Code",[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},"endpoint-detection-response","Endpoint detection and response (EDR and XDR)","Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped."]