[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fkzjihameWqEdcTDKuSxQfuk-MVpOQfvbxyVRguWJCQQ":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},"92755df3-ea13-47f5-b3b9-87f6b661d235","stolen-authentication-tokens-enable-source-code-tampering-in-sap-github-breach","5f19d361-46e1-41a3-ba88-c23373d94abf","Stolen Authentication Tokens Enable Source Code Tampering in SAP GitHub Breach","Attackers stole authentication tokens from SAP employees and used them to gain unauthorized access to internal GitHub repositories, potentially modifying source code. This incident highlights how stolen or leaked credentials and tokens can bypass traditional perimeter defenses, granting attackers the same privileges as legitimate users. The use of AI tools to assist in code modification suggests attackers were capable of making subtle, hard-to-detect changes at scale. Even without confirmed customer data exposure, tampering with vendor source code poses a serious downstream supply chain risk to all organizations relying on SAP software. This case underscores why short-lived tokens, strict access controls, and continuous monitoring of code repository activity are essential safeguards.","**Immediate actions:**\n- Revoke and rotate all potentially compromised authentication tokens and secrets stored in or used with GitHub repositories immediately.\n- Audit GitHub repository access logs to identify all actions taken with the stolen tokens during the compromise window.\n- Enable secret scanning and push protection across all repositories to detect and block accidental or malicious token exposure.\n\n**Long-term improvements:**\n- Replace long-lived personal access tokens with short-lived, scoped tokens and enforce mandatory token expiry policies.\n- Enforce multi-factor authentication for all developer accounts with access to source code repositories.\n- Implement a software supply chain integrity program including code signing and automated diff analysis to detect unauthorized source code changes.\n\n**Detection measures:**\n- Deploy behavioral analytics on repository activity to alert on anomalous commit patterns, bulk changes, or access from unusual locations.\n- Establish continuous monitoring and alerting for any new OAuth app authorizations or token issuance events within developer environments.\n- Integrate SIEM alerts with GitHub audit logs so security teams receive real-time notification of privilege escalation or suspicious repository actions.",[12,13,14,15,16],"CIS Control 5: Account Management","CIS Control 8: Audit Log Management","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":19,"CIS Control 8: Audit Log Management":20,"NIST SP 800-53 IA-5: Authenticator Management":21,"MITRE ATT&CK T1528: Steal Application Access Token":22},"This point requires the use of multi-factor authentication and secured communications, which if enforced on all developer GitHub accounts could have prevented attackers from leveraging stolen tokens alone to gain access.","This control requires managing the lifecycle of credentials and tokens, including timely revocation of compromised credentials — directly addressing the stolen authentication tokens used in this incident.","This control requires collecting and reviewing audit logs from systems like GitHub repositories, which would have enabled faster detection of the unauthorized token use and source code modifications.","This control governs the management of authenticators including tokens, requiring controls over their issuance, storage, and revocation — failures in which directly enabled this breach.","This technique describes exactly how attackers obtained OAuth or API tokens from SAP employees to authenticate as legitimate users and access the GitHub repositories without needing passwords.","published","2026-11-27T10:20:19.287048+00:00","2026-11-27T10:20:19.267+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.bleepingcomputer.com\u002Fnews\u002Fsecurity\u002Fsap-confirms-security-incident-after-suspicious-github-activity\u002F","sap-confirms-security-incident-after-suspicious-github-activity-114715","SAP confirms security incident after suspicious GitHub activity",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"1732a005-556e-411c-a9db-5edec3058571","Logging & Monitoring","logging-monitoring","Missing logs, no alerting, blind spots","#a855f7",{"id":38,"name":39,"slug":40,"description":41,"color":42},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",[],[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."]