# Aqua Security Trivy: an incomplete token rotation let TeamPCP poison 76 of 77 GitHub Action tags

- **Canonical URL:** https://breachidents.com/incidents/aqua-trivy-mar-2026-supply-chain-cascade
- **Organization:** Aqua Security Trivy
- **Incident date:** Feb–Mar 2026
- **Disclosed / updated:** Mar 20, 2026
- **Category:** CI supply chain
- **Primary source:** Aqua Security Incident Advisory, Sygnia, and GHSA-92x9-889m-jgmw (https://www.aquasec.com/blog/trivy-supply-chain-attack-what-you-need-to-know/)
- **Supply-chain group:** The Aqua Security Trivy, 2026 chain (https://breachidents.com/chains#chain-trivy-2026-supply-chain)

## In 30 seconds

- **How they got in:** Late-February Actions workflow exploit stole a privileged token; incomplete March 1 rotation left residual access open for TeamPCP _[Confirmed]_
- **What leaked / reached:** Open-source trivy-action, setup-trivy, Trivy v0.69.4 (plus Mar 22 Docker Hub 0.69.5/0.69.6 and internal repos), cascading into Checkmarx, LiteLLM, and the European Commission AWS account
- **What stayed safe:** Aqua Security’s commercial platform (built off-GitHub with separate CI, secrets, and lagged gated fork), trivy-action tag v0.35.0, and SHA-pinned customer workflows

## Summary

On March 19, 2026 (CVE-2026-33634), attackers tracked as TeamPCP abused residual credentials left alive after Aqua Security’s incomplete March 1 token rotation to force-push 76 of 77 version tags on aquasecurity/trivy-action, all 7 tags on setup-trivy, and a tampered Trivy v0.69.4 binary. The 204-line entrypoint.sh stealer dumped GitHub Actions runner memory and 50+ credential paths before running normal scans, triggering downstream breaches at Checkmarx, LiteLLM, and the European Commission. Aqua’s commercial platform stayed architecturally isolated.

## Attack sequence

1. **Late Feb–Mar 1, 2026 — Late-Feb Actions exploit steals token; March 1 rotation leaves residual access:** An automated workflow exploit extracts a privileged token from Trivy’s GitHub automation; the March 1 credential rotation misses active credentials, leaving TeamPCP a path back in.
2. **Mar 19, 17:43–21:44 UTC — TeamPCP force-pushes 76/77 trivy-action tags, setup-trivy, and Trivy v0.69.4:** Forging original commit author dates onto master HEAD, TeamPCP swaps entrypoint.sh with a silent Runner.Worker memory stealer and ships tampered Trivy v0.69.4 binaries.
3. **Mar 19–25, 2026 — Harvested CI secrets trigger breaches at Checkmarx, LiteLLM, and European Commission:** Pipelines pinned only to mutable tags run the stealer silently, handing attackers live keys used to hit Checkmarx, LiteLLM on PyPI, and the European Commission’s AWS account (plus Mar 22 Docker Hub 0.69.5/0.69.6 re-entry).

## How they got in

Security scanners get handed the keys to the kingdom in almost every CI pipeline, which made Aqua Security's open-source Trivy repository an irresistible target.

In late February 2026, an automated GitHub Actions exploit (`pull_request_target`) extracted a privileged token from Trivy's repository automation. Aqua Security disclosed that early breach and rotated credentials on March 1, 2026. The problem was that the rotation was not atomic or complete: still-valid residual credentials remained live, giving the cloud-native group TeamPCP a quiet doorway back in nearly three weeks later.

## What it reached

At 17:43 UTC on March 19, 2026 (tracked as CVE-2026-33634), TeamPCP struck across every open-source Trivy channel at once. They force-pushed 76 of 77 version tags in `aquasecurity/trivy-action`, all 7 tags in `aquasecurity/setup-trivy`, and triggered `aqua-bot` to publish a tampered `Trivy v0.69.4` binary. Even more deceptively, for each forged tag they started from master HEAD (`57a97c7e`), swapped only `entrypoint.sh`, and cloned the original release commit's author, timestamp, and message so `git log` looked normal at a glance (though the commits were unsigned and carried an impossible March 2026 parent).

Lines 4–105 of the 204-line `entrypoint.sh` ran silently **before** the real Trivy scan so CI jobs stayed green. On GitHub-hosted runners, passwordless `sudo` let a Python script dump `Runner.Worker` heap memory from `/proc/<pid>/mem` to carve out `{"value":"<secret>","isSecret":true}` objects; on self-hosted runners, it swept 50+ credential paths across AWS, GCP, Azure, Kubernetes, Terraform, SSH, and crypto wallets, encrypted `tpcp.tar.gz`, and posted it to `scan.aquasecurtiy[.]org` (`45.148.10.212`) with a fallback `tpcp-docs` GitHub repo. Outside GitHub Actions, `Trivy v0.69.4` also dropped `~/.config/systemd/user/sysmon.py` polling an Internet Computer canister. On March 22, TeamPCP briefly re-entered to push Docker Hub tags `0.69.5` and `0.69.6` and expose internal Aqua repos before Aqua and Sygnia locked down all open-source automation.

The harvested CI secrets cascaded immediately across the industry: Checkmarx suffered GitHub repo and artifact compromises starting March 19, LiteLLM saw tampered PyPI wheels on March 24, and the European Commission lost 91.7 GB from an `europa.eu` AWS account.

## What stayed safe

Aqua Security's commercial platform never touched the bad code because it is built completely off GitHub with dedicated CI, signing keys, IP allowlisting, ZTNA, and a lagged gated fork. On the customer side, workflows pinned to full 40-character commit SHAs rather than mutable version tags never pulled the force-pushed commits, and `trivy-action` tag `v0.35.0` escaped poisoning because it already pointed at `57a97c7e`.

## How to defend against this

- **Atomic token revocation** (Stops step 1): Revoke all service-account PATs, SSH keys, and active sessions atomically during incident response and migrate release bots to short-lived GitHub Apps.
- **Pin Actions by full SHA** (Stops step 2): Reference every third-party GitHub Action by its immutable 40-character commit SHA rather than mutable version tags (even releases showing an Immutable UI badge).
- **Restrict CI egress** (Catches step 3): Block arbitrary outbound egress from CI runners and alert immediately on /proc memory reads of Runner.Worker or unauthorized tpcp-docs repository creations.

## Evidence log

| Section | Claim | Evidence state | Source |
| --- | --- | --- | --- |
| How they got in | A late-February GitHub Actions misconfiguration exposed a privileged token; Aqua’s March 1 credential rotation was incomplete, leaving residual access open to TeamPCP | Confirmed | Aqua Security Investigation Update, Apr 1, 2026 |
| What it reached | Starting 17:43 UTC on March 19, 2026, attackers force-pushed 76 of 77 tags in aquasecurity/trivy-action, all 7 tags in setup-trivy, and released tampered Trivy v0.69.4 (followed by Docker Hub 0.69.5 and 0.69.6 on March 22 at ~16:00 UTC) | Confirmed | Aqua Security Advisory (Apr 1, 2026) and GHSA-92x9-889m-jgmw |
| What it reached | The 204-line entrypoint.sh (SHA-256 18a24f83...) dumped Runner.Worker /proc memory on GitHub runners, swept 50+ credential paths, encrypted tpcp.tar.gz, and posted to scan.aquasecurtiy[.]org (45.148.10.212) or a fallback tpcp-docs repo | Confirmed | Aqua Security Technical Analysis, Apr 1, 2026 |
| What it reached | Developer hosts running Trivy v0.69.4 outside GitHub Actions received a persistent systemd dropper at ~/.config/systemd/user/sysmon.py polling ICP canister tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io | Confirmed | Aqua Security Technical Analysis, Apr 1, 2026 |
| What held | Aqua Security’s commercial platform (off-GitHub, isolated CI, lagged gated fork) and trivy-action tag v0.35.0 were unaffected | Confirmed | Aqua Security Advisory, Apr 1, 2026 |

## Indicators of compromise

- **Domain:** `scan.aquasecurtiy[.]org` (undefined)
- **IPv4:** `45.148.10.212` (undefined)
- **SHA-256:** `18a24f83e807479438dcab7a1804c51a00dafc1d526698a66e0640d1e5dd671a` (undefined)
- **Repository:** `tpcp-docs` (undefined)
- **File:** `~/.config/systemd/user/sysmon.py` (undefined)

## Linked companies in this chain

- **Checkmarx** (Mar 19–May 9, 2026): Actions, OpenVSX, KICS Docker, Jenkins, and repo leak. Story: https://breachidents.com/incidents/checkmarx-mar-2026-trivy-actions-cascade (Markdown: https://breachidents.com/incidents/checkmarx-mar-2026-trivy-actions-cascade/md)
- **European Commission** (Mar 19–25, 2026): 91.7 GB from 71 europa.eu clients. Story: https://breachidents.com/incidents/european-commission-mar-2026-aws-trivy (Markdown: https://breachidents.com/incidents/european-commission-mar-2026-aws-trivy/md)
- **LiteLLM** (Mar 24, 2026): Tampered PyPI wheels 1.82.7 & 1.82.8 (~40 min live). Story: https://breachidents.com/incidents/litellm-mar-2026-pypi-pth-stealer (Markdown: https://breachidents.com/incidents/litellm-mar-2026-pypi-pth-stealer/md)

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