[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$feW5AEkv_qktOP0Dt3gQTmLL-T2qaKrZRb0QxaJVGo08":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":19,"status":27,"created_at":28,"published_at":29,"article":30,"tags":34,"podcasts":47,"controls":54},"9c85ba02-b01f-416e-be1b-95d1cb3628d3","stolen-github-tokens-weaponized-to-exfiltrate-secrets-at-scale","6780e100-e548-4ba5-a12e-774f823ad29a","Stolen GitHub Tokens Weaponized to Exfiltrate Secrets at Scale","The Gheist campaign exploited compromised GitHub personal access tokens to inject malicious workflow files into repositories, turning GitHub's own infrastructure against its users to silently exfiltrate secrets, environment variables, and cloud credentials. Because the attack used GitHub's native logging API as an exfiltration channel, it left no external command-and-control footprint, making detection through traditional network monitoring extremely difficult. The root cause lies in stolen tokens with excessive permissions and insufficient controls around who—or what—can commit workflow files to repositories. This matters because a single compromised token can cascade into full cloud environment compromise, and over 13,500 malicious branches demonstrate how quickly an automated campaign can scale before defenders respond.","**Immediate actions:**\n- Audit and revoke all GitHub personal access tokens with write access to workflows, replacing them with fine-grained tokens scoped to the minimum required permissions.\n- Scan all repositories immediately for unauthorized workflow files or unexpected branches introduced since September 15, 2026.\n- Enable GitHub's secret scanning and push protection features to block accidental or malicious secret commits in real time.\n\n**Long-term improvements:**\n- Enforce branch protection rules requiring signed commits and mandatory code review before any changes to `.github\u002Fworkflows\u002F` directories are merged.\n- Adopt a secrets management solution (e.g., HashiCorp Vault, AWS Secrets Manager) so credentials are never stored as repository environment variables or plaintext secrets.\n- Implement a zero-trust token lifecycle policy with automatic expiry, rotation, and usage anomaly alerting for all CI\u002FCD service accounts.\n\n**Detection measures:**\n- Monitor GitHub audit logs and Actions workflow run logs for anomalous branch creation events, unexpected workflow file modifications, or unusual API usage patterns.\n- Correlate cloud provider access logs with GitHub Actions runner IP ranges to detect credential misuse that originates from pipeline infrastructure.\n- Deploy a SIEM rule to alert on bulk branch creation activity or workflow file additions across multiple repositories within a short time window.",[12,13,14,15,16,17,18],"CIS Control 5: Account Management","NIST CSF 2.0 PR.AA: Identity Management, Authentication, and Access Control","NIST SP 800-53 SI-2: Flaw Remediation","ISO\u002FIEC 27001:2022 A.8.8: Management of technical vulnerabilities","MITRE ATT&CK T1566: Phishing","CIS Control 8: Audit Log Management","NIS2 Article 21(2)(b)",{"NIS2 Article 21(2)(b)":20,"MITRE ATT&CK T1566: Phishing":21,"CIS Control 5: Account Management":22,"CIS Control 8: Audit Log Management":23,"NIST SP 800-53 SI-2: Flaw Remediation":24,"ISO\u002FIEC 27001:2022 A.8.8: Management of technical vulnerabilities":25,"NIST CSF 2.0 PR.AA: Identity Management, Authentication, and Access Control":26},"NIS2 mandates incident handling and supply-chain security measures; organizations relying on GitHub-hosted CI\u002FCD pipelines must treat their pipeline credentials and workflow integrity as critical assets requiring formal protection and incident response procedures.","While Gheist is token-theft-driven rather than phishing-driven, the initial credential compromise likely involved social engineering or credential stuffing; user awareness of token hygiene and phishing risks is a prerequisite for preventing token theft upstream.","Stolen tokens with excessive repository permissions were the entry point; enforcing least-privilege access and lifecycle management for service and developer tokens would have constrained the blast radius of any single compromised credential.","The campaign exploited GitHub's logging API as a covert exfiltration channel, highlighting the need to centrally collect, normalize, and alert on GitHub audit and Actions logs so that anomalous workflow activity is detected rapidly.","GitHub introduced security controls to block public repository exploitation only after the campaign began; proactive configuration hardening and timely application of platform security features would have reduced the attack surface before exploitation occurred.","Organizations using GitHub Actions should continuously assess their pipeline configurations for exploitable weaknesses, including overprivileged tokens and unprotected workflow directories, as part of a formal vulnerability management process.","The framework requires that access credentials be protected, scoped, and monitored; had GitHub tokens been fine-grained, short-lived, and regularly rotated, the attacker's ability to traverse repositories at scale would have been severely limited.","published","2026-10-25T19:20:25.893828+00:00","2026-10-25T19:20:25.858+00:00",{"id":7,"url":31,"slug":32,"title":33},"https:\u002F\u002Fwww.wiz.io\u002Fblog\u002Fgheist-attempted-scaled-abuse-of-stolen-github-tokens-stumbles","gheist-attempted-scaled-abuse-of-stolen-github-tokens-stumbles-4e1ee9","Gheist: Attempted Scaled Abuse of Stolen GitHub Tokens Stumbles",[35,41],{"id":36,"name":37,"slug":38,"description":39,"color":40},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",{"id":42,"name":43,"slug":44,"description":45,"color":46},"859cf0ad-a7e9-42bb-a75d-bac6511fa5d5","Configuration Management","configuration-management","Misconfigs, default credentials, exposed services","#eab308",[48],{"id":49,"date":50,"edition":51,"title":52,"audio_url":53},"5e4cc0d3-8052-4487-989b-e8207bec5a12","2026-10-26","morning","ThreatNoir Morning Brief — October 26","https:\u002F\u002Fcdn.threatnoir.com\u002Fpodcasts\u002F2026-10-26\u002Fthreatnoir-morning-brief-2026-10-26.mp3",[55,59,63],{"slug":56,"name":57,"problem":58},"identity-governance","Identity governance and single sign-on","People who leave or change roles lose access everywhere at once, and forgotten accounts stop piling up.",{"slug":60,"name":61,"problem":62},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files.",{"slug":64,"name":65,"problem":66},"threat-intelligence","Threat intelligence","Attack campaigns reach your sector, suppliers or software before your team hears about them."]