ghtier

These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.

← All incidents

tj-actions/changed-files supply-chain compromise (CVE-2025-30066)

March 2025 · Contained

Each compromised repository leaked the token for the next, from a spotbugs pull request to reviewdog to tj-actions, until the Action's moved release tags made every repository using it by tag print its own secrets into its workflow logs.

Access held
T0repoT1Workflows: WriteT2Contents: WriteSecrets in public workflow logs
Full summary

Four repositories, each leaking the token for the next. A pull_request_target workflow in spotbugs/sonar-findbugs leaked a maintainer's token in December 2024. Three months later the attacker used it to add a throwaway account to spotbugs/spotbugs, whose workflow dumped the repository's secrets, among them a reviewdog maintainer's token. With that they moved the v1 tag of reviewdog/action-setup, which tj-actions/changed-files ran in its own CI, and its log gave up the token of the tj-actions-bot account. That token merged a commit dressed as renovate[bot] and moved every tag of tj-actions/changed-files to it. Unit42 traced the intended target to coinbase/agentkit. Every other repository that used the Action by tag printed its secrets into its own workflow logs, which anyone can read on a public repository.

How it unfolded

Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.

Whole path

Untrusted input reaches aprivileged workflowway inRun PR code in a privilegedworkflowtechniquerepoA spotbugs maintainer's PATLeaked tokenway inAdd a collaborator or guestthat outlives the attackescalationWorkflows: WriteInvited throwaway accountChange a workflow, get itssecretsescalationContents: WriteA reviewdog maintainer's PATLeaked tokenway inMove release tags on awidely used ActionescalationCompromised Action orpackageway inRead secrets from therunnertechniqueContents: Writetj-actions-bot's PATLeaked tokenway inMove release tags on awidely used ActionescalationCompromised Action orpackageway inTake the workflow tokenfrom a runnerescalationContents: Writeagentkit's workflow tokenCompromised Action orpackageway inRead secrets from therunnertechniqueSecrets in public workflowlogsEach consumer's runner

The whole attack, one row per step. Pick a step on the left, or click a box in its row.

Frameworks

Part of

Contained. First seen March 2025. Mapping by ghtier, not yet reviewed. Threat landscape

Sources

Reported by: Unit42