[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fn1jOItuUClNuGIg6MPQ_lHP4TwPXNCAIPexnl_Hpw6M":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},"64084f2b-6a67-4610-838c-23afd233b8e5","stolen-developer-tokens-open-the-door-to-production-systems-via-github","565faefe-b104-4f60-8eef-004455e47735","Stolen Developer Tokens Open the Door to Production Systems via GitHub","When developer machines are compromised, attackers can harvest GitHub personal access tokens and OAuth tokens to pivot directly into production environments, CI\u002FCD pipelines, and secrets stores. The incidents affecting SAP, Todoist, and LiteLLM demonstrate that development access is not isolated — it is often a privileged on-ramp to sensitive source code, build secrets, and downstream systems. Organizations frequently underestimate the blast radius of a single compromised developer credential because CI\u002FCD pipelines are trusted implicitly and rarely audited with the same rigor as production infrastructure. This matters because attackers can inject malicious code, exfiltrate secrets, or compromise the software supply chain affecting customers at scale.","**Immediate actions:**\n- Rotate all GitHub personal access tokens and OAuth tokens immediately upon any suspicion of developer machine compromise.\n- Audit existing token scopes and revoke any tokens with broader permissions than the minimum required for their specific task.\n- Scan CI\u002FCD pipeline configurations and repository secrets for exposed credentials using tools such as GitHub Secret Scanning or truffleHog.\n\n**Long-term improvements:**\n- Enforce short-lived, fine-grained tokens with least-privilege scopes and require re-authentication for sensitive operations rather than relying on long-lived personal access tokens.\n- Implement mandatory code review and branch protection rules so no single developer account can push directly to main or modify workflow files without approval.\n- Treat CI\u002FCD pipeline access and secrets management with the same rigour as production infrastructure, including regular access reviews and just-in-time provisioning.\n\n**Detection measures:**\n- Enable audit logging on GitHub organisations and alert on anomalous token usage, such as access from unexpected IP addresses or unusual hours.\n- Monitor for unexpected changes to GitHub Actions workflow files or new repository secrets being created or accessed.\n- Integrate developer endpoint detection (EDR) telemetry with SIEM to detect credential-harvesting activity on developer machines before tokens are leveraged.",[12,13,14,15,16],"CIS Control 5: Account Management (v8)","CIS Control 16: Application Software Security (v8)","NIST SP 800-53 IA-5: Authenticator Management","MITRE ATT&CK T1552.001: Credentials in Files","NIS2 Article 21(2)(i)",{"NIS2 Article 21(2)(i)":18,"CIS Control 5: Account Management (v8)":19,"MITRE ATT&CK T1552.001: Credentials in Files":20,"NIST SP 800-53 IA-5: Authenticator Management":21,"CIS Control 16: Application Software Security (v8)":22},"This point requires human resources security, access control, and asset management policies — covering the governance of developer credentials and privileged access that, if properly enforced, would have limited the impact of compromised developer accounts.","This control requires inventorying and managing all credentials including developer tokens, enforcing least-privilege access, and disabling unused accounts — directly addressing the over-privileged, long-lived GitHub tokens that enabled lateral movement to production.","Attackers harvesting GitHub tokens from compromised developer machines matches this technique, where credentials stored on endpoints or in configuration files are stolen to enable further access.","This control mandates managing the lifecycle of authenticators such as tokens, enforcing expiration, and limiting scope — which would have reduced the value of stolen GitHub tokens had short-lived, scoped tokens been in use.","This control covers securing the software development pipeline, including protecting CI\u002FCD systems and ensuring code integrity — the exact vector exploited when attackers modified workflows and exfiltrated CI\u002FCD secrets.","published","2026-12-01T17:21:53.103604+00:00","2026-12-01T17:21:53.083+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.stepsecurity.io\u002Fblog\u002Fdeveloper-github-cicd-cloud-attack-path","from-developer-access-to-production-the-github-attack-path-8445fb","From Developer Access to Production: The GitHub Attack Path",[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},"phishing-resistant-mfa","Phishing-resistant MFA","A stolen password, or a user who taps Approve on a push prompt, is no longer enough to log in.",{"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."]