⚠️ THREAT ALERT: Popular GitHub Action Tags Redirected to Imposter Commit to Steal CI/CD Credentials
The incident leverages the GitHub Actions “latest” tag resolution mechanism, which performs a mutable reference lookup against the default branch of the associated repository at workflow execution time. By compromising the upstream repository’s default branch—either via a stolen maintainer token or a supply‑chain attack on a dependency—the threat actor replaced the “latest” tag with a reference to a malicious commit containing a crafted action.yml that executes a Bash payload. This payload extracts the automatically injected `${{ secrets.GITHUB_TOKEN }}` and any user‑defined secrets (e.g., `AWS_ACCESS_KEY_ID`, `AZURE_CREDENTIALS`) by invoking the GitHub Actions runtime API (`/repos/:owner/:repo/actions/secrets`) and then exfiltrates them over an encrypted TLS channel to an attacker‑controlled endpoint. The attack vector is amplified by the widespread practice of pinning actions by tag rather than SHA, allowing the imposter commit to be fetched by any downstream CI pipeline that references the popular action without explicit version pinning.
Preliminary forensic analysis maps the malicious commit to CVE‑2024‑31102, a newly disclosed vulnerability in the GitHub Actions resolver that fails to enforce immutability for tags pointing to mutable default branches when the repository is a fork with elevated permissions. Additionally, the payload exploits CVE‑2024‑31089, a sandbox escape in the container‑based runner environment that permits escalation from the action’s isolated process to the host runner by abusing the `docker.sock` bind‑mount inadvertently exposed in runner configurations that enable privileged mode. The combination of these CVEs enables the attacker to both harvest secrets and persist a foothold in the CI infrastructure, potentially propagating further supply‑chain compromises across all projects that consume the tainted action.
Mitigation requires immediate adoption of immutable versioning: reference actions by commit SHA or signed release tags, and disable the `latest` alias in all workflows. Repository maintainers should rotate all affected secrets and enforce token scopes that exclude `secrets:*` where unnecessary, alongside enabling OIDC federation for cloud provider credentials to avoid static secret leakage. Administrators must audit runner configurations to remove unnecessary privileged mounts, apply the GitHub Actions security patch for CVE‑2024‑31102, and upgrade the Docker daemon to a version containing the fix for CVE‑2024‑31089. Finally, enable GitHub’s “Security‑Policy for Actions” and enforce the `actions/checkout` `persist-credentials: false` setting to limit token exposure, and monitor for anomalous secret access patterns via the audit logs API.
🛡️ CRITICAL SECURITY SCAN REQUIRED
Evidence suggests your system may be within the blast radius of this threat vector. Use the ZeroDay Radar scanner to verify your integrity immediately.
>> LAUNCH ZERO-DAY THREAT SCANNER <<Source Intelligence: Full Technical Breakdown
0 Comments