GhostAction Adds Git-History Credential Harvesting to Malicious GitHub Workflows

· Original article ↗

Summary

Step Security reports that an Oct. 8 GhostAction wave injected malicious GitHub Actions workflows into 345 repositories, harvesting configured secrets and credentials from working trees and full Git histories. A run log confirmed exfiltration from uber/athenadriver.

Key points

  • Step Security reports that attackers used two compromised maintainer accounts to inject malicious workflows into 345 repositories on Oct. 8: 27 repositories in one sweep and 318, including forks, in another.
  • Disguised as security audits, the workflows targeted configured GitHub Actions secrets and credentials found in working trees and Git history, including credentials deleted from the current tree.
  • The newer workflow used a full-depth checkout and git log -p --all to inspect repository history; it also captured context around AWS key IDs to help pair them with secret keys.
  • The payload sent collected data over plain HTTP to 193.32.204.199. Step Security says an Uber athenadriver run log showed the server acknowledging receipt four seconds after the workflow started.
  • The article reports 378 repositories with a live malicious workflow on the default branch as of Oct. 9; 182 contained a history-mining marker and 88 showed a marker indicating named secrets were templated.
  • Step Security recommends rotating credentials ever committed to affected repositories, revoking the compromised GitHub credential, removing malicious workflows from all branches, and restricting runner egress. A workflow-run approval gate reportedly stopped exfiltration in one observed case.

Article Details

Attack Vectors
  • The attackers used compromised maintainer accounts to push malicious workflows directly to repositories’ default branches, bypassing pull requests and review.
  • The workflows triggered on pushes or manual dispatch, collected configured GitHub Actions secrets, and searched working trees and full Git histories for credentials.
  • The payload sent collected data to attacker-controlled infrastructure using HTTP POST requests to a hardcoded IP address.
  • The article says the maintainer credentials were most plausibly leaked personal access tokens from infostealer logs or credential dumps; this is presented as an assessment, not a confirmed acquisition method.
Defensive Notes
  • Treat any appearance or completed run of the named malicious workflows as a breach; remove them from all branches and review workflow runs and audit logs.
  • Revoke the compromised GitHub credential and rotate all Actions secrets and credentials ever committed to any branch, including credentials deleted from current files.
  • Require approval for workflow runs where feasible, and protect workflow files with branch rules requiring pull-request review.
  • Restrict runner egress with an enforced allowed-endpoints policy; review network telemetry for connections to the listed C2 infrastructure.
  • Check forks and avoid publishing releases until repositories and credentials have been cleaned up.

Indicators of compromise

TypeIndicatorContext
DOMAINbold-dhawan[.]45-139-104-115[.]plesk[.]pageDomain listed as a legacy GhostAction exfiltration endpoint.
DOMAINcarte-avantage[.]comDomain listed as a legacy GhostAction exfiltration endpoint.
IPV4170[.]39[.]218[.]2Additional legacy GhostAction endpoint identified by the article for historical log review.
IPV4193[.]32[.]204[.]199Current campaign exfiltration endpoint; the article reports successful data delivery and acknowledgment from this IP.
IPV445[.]139[.]104[.]115Legacy GhostAction exfiltration infrastructure identified by the article for historical log review.
URLhxxp[:]//193[.]32[.]204[.]199Attacker endpoint used by the classic workflow variant to POST repository secrets.
URLhxxp[:]//193[.]32[.]204[.]199/?c=monamiAttacker exfiltration URL used when the workflow had templated named repository secrets.
URLhxxp[:]//193[.]32[.]204[.]199/?c=newAttacker exfiltration URL used by the history-sweep payload; the article reports a successful request to this endpoint.

MITRE ATT&CK

People

Vendors

Products

Related Articles