# tj-actions/changed-files: repointed tags shipped a memory scraper into public CI logs

- **Canonical URL:** https://breachidents.com/incidents/tj-actions-cve-2025-30066
- **Organization:** tj-actions/changed-files
- **Incident date:** Mar 12–15, 2025
- **Disclosed / updated:** Mar 15, 2025
- **Category:** CI supply chain
- **Primary source:** StepSecurity and GitHub Advisory (https://github.com/advisories/GHSA-mrrh-fwg8-r2c3)
- **CVE:** CVE-2025-30066

## In 30 seconds

- **How they got in:** Compromised maintenance PAT force-updated mutable tags _[Confirmed]_
- **What leaked / reached:** Tags v1 to v45.0.7 repointed; Runner.Worker memory dumped to public logs
- **What stayed safe:** Workflows pinned to a full commit SHA

## Summary

Between Mar 12 and Mar 15, 2025 an attacker used a compromised maintainer PAT to point tags v1 through v45.0.7 of tj-actions/changed-files at malicious commit 0e58ed8671d6b60d0890c21b07f8835ace038e67. Across more than 23,000 repositories using mutable tags, the payload fetched a Python memory scraper from a GitHub Gist and printed Runner.Worker secrets directly into public build logs.

## Attack sequence

1. **Mar 12–14 — Tags v1–v45.0.7 repointed to 0e58ed86:** Compromised PAT moves mutable tags across 23,000+ dependent repositories to the malicious commit.
2. **Mar 14 — Loader curls memdump.py into sudo python3:** Obfuscated Node.js action downloads memdump.py from gist.githubusercontent.com and pipes it to sudo python3.
3. **Mar 14 — Runner.Worker memory scraped with sudo:** Python payload scans Runner.Worker memory for cloud keys, npm tokens and GitHub PATs.
4. **Mar 14–15 — Double-base64 printed into public logs:** Encoded secrets print directly to public build logs, evading GitHub masking until v46.0.1 cleanup.

## How they got in

Using a stolen Personal Access Token tied to an automation account, the attacker introduced malicious commit 0e58ed8671d6b60d0890c21b07f8835ace038e67 on Mar 12 and retroactively force-updated nearly every semantic version tag from v1 through v45.0.7 on Mar 14. Consumer workflows referencing @v44 or @v45 automatically ran the tampered code with zero changes in their own repositories.

## What it reached

An obfuscated Node.js payload ran curl against an external GitHub Gist hosting memdump.py and piped it into sudo python3. On Linux GitHub-hosted runners, passwordless sudo let the script inspect /proc/<pid>/mem of the Runner.Worker process, extract AWS and GCP keys, GitHub PATs and npm tokens, double-base64 encode them to dodge GitHub’s log masker, and print them straight to stdout.

For public repositories, those build logs were globally readable without needing any outbound command-and-control server.

## What stayed safe

Repositories pinned to immutable 40-character commit SHAs ignored the force-moved version tags entirely. Workflows enforcing outbound egress allowlists with StepSecurity Harden-Runner blocked the download from gist.githubusercontent.com, and generated the telemetry that exposed the supply-chain attack.

## How to defend against this

- **Pin 40-char SHA** (Stops step 1): Referencing actions by full commit SHA prevents retroactive tag overwrites from ever entering your runner.
- **Egress allowlist** (Stops step 2): StepSecurity Harden-Runner in block mode denies unexpected runner connections to gist.githubusercontent.com.

## Evidence log

| Section | Claim | Evidence state | Source |
| --- | --- | --- | --- |
| How they got in | Malicious commit 0e58ed8671d6b60d0890c21b07f8835ace038e67 was force-tagged across v1 to v45.0.7 using a compromised PAT | Confirmed | GHSA-mrrh-fwg8-r2c3 and StepSecurity |
| What it reached | Node.js loader fetched memdump.py from gist.githubusercontent.com and scraped Runner.Worker memory with sudo python3 | Confirmed | StepSecurity and Sysdig analysis |
| What it reached | Double-base64 secrets printed to public workflow logs across impacted public repositories | Confirmed | GitHub Advisory and CISA |
| What held | Workflows pinned to full 40-char commit SHAs or blocking gist.githubusercontent.com egress were unaffected | Confirmed | StepSecurity and GitHub guidance |

## Indicators of compromise

- **commit:** `0e58ed8671d6b60d0890c21b07f8835ace038e67` (Malicious commit force-applied across v1 to v45.0.7 of tj-actions/changed-files.)
- **url:** `https://gist.githubusercontent.com/nikitastupin/30e525b776c409e03c2d6f328f254965/raw/memdump.py` (Secondary Python memory-scraping payload downloaded by the tampered action.)

---
Published by [breachidents](https://breachidents.com). Preserve evidence labels (Confirmed / Inferred / Withheld by vendor / Observed) when citing.
