Security operations

Trivy Supply Chain Attack: What Happened in March 2026 and How to Respond

In March 2026 attackers turned Trivy, a trusted vulnerability scanner, into a credential stealer. Here is the timeline, the affected versions, and the response steps.

Cysoro Security TeamPublished · 9 min read
[email protected]TAG REPOINTED76 of 77 tags poisoned ! SECURITY OPERATIONS Trivyattack The scanner became the stealer.
Quick answer

The Trivy supply chain attack was a March 2026 compromise in which attackers used credentials left over from a February incident to publish a malicious Trivy v0.69.4 release, force-push 76 of 77 tags in aquasecurity/trivy-action and all 7 tags in aquasecurity/setup-trivy to credential-stealing code, and later push poisoned Docker images v0.69.5 and v0.69.6. Pipelines that ran the affected versions should treat exposed secrets as compromised and rotate them.

Key takeaways

  • Attackers poisoned Trivy v0.69.4, trivy-action tags 0.0.1–0.34.2 and setup-trivy tags 0.2.0–0.2.6 on 19 March 2026.
  • The payload stole cloud, SSH, Kubernetes and CI/CD secrets, then ran the real scan so pipelines looked normal.
  • Safe versions are Trivy v0.69.2/v0.69.3, trivy-action v0.35.0 and setup-trivy v0.2.6, plus pinning actions to commit SHAs.

Trivy is the scanner many teams trust to find vulnerabilities before attackers do. In March 2026, attackers turned that trust against its users: they poisoned the scanner itself, its GitHub Actions and its Docker images, so the tool that was supposed to protect pipelines quietly stole their secrets instead.

What is the Trivy supply chain attack?

The Trivy supply chain attack was a March 2026 compromise of Aqua Security's open-source vulnerability scanner, in which attackers injected a credential stealer into official Trivy releases, GitHub Actions and container images. Pipelines that ran the poisoned versions executed the stealer first, then ran the real scan, so everything looked normal while secrets were exfiltrated.

Trivy scans container images, file systems, code repositories and infrastructure-as-code for known vulnerabilities. It is embedded in thousands of CI/CD pipelines, often running with access to pipeline secrets by design. That made it a high-value target: compromise Trivy, and you get cloud credentials, SSH keys and Kubernetes tokens, not just code.

The campaign is attributed to a threat actor identifying as TeamPCP. Microsoft's analysis describes it as a sophisticated CI/CD-focused supply chain attack, and the vulnerability was later assigned CVE-2026-33634. CISA added it to its Known Exploited Vulnerabilities Catalog on 26 March 2026.

How did the Trivy attack unfold?

The March attack was the second act. It began with a February incident that was not fully contained, and the attackers used credentials left over from that incident to strike again on 19 March 2026.

Trivy attack timeline, February to March 2026Late FebFirst intrusion;token stolen1 MarDisclosed;rotation incomplete19 Marv0.69.4 published;76 of 77 tags poisoned20 MarTags restored~05:40 UTC22–23 MarPoisoned Dockerimages v0.69.5–6The key failure: non-atomic credential rotationAfter the 1 March disclosure, credentials were rotated — but not all at once.The attacker kept a valid token during the multi-day rotation window andused it to capture newly rotated secrets, retaining access for the 19 March strike.
Timeline of the Trivy compromise, based on the NVD entry for CVE-2026-33634 and Microsoft's analysis. Illustration by Cysoro.
  • Late February 2026: the attacker exploited a misconfiguration in Trivy's GitHub Action component, including a vulnerable pull_request_target workflow, to steal a privileged access token and enter the release environment.
  • 1 March 2026: Aqua Security disclosed the initial intrusion and rotated credentials. The rotation was not atomic — not all credentials were revoked at the same time — so the attacker retained access and could capture newly rotated secrets during the window.
  • 19 March 2026, 17:43 UTC: the attacker force-pushed 76 of 77 version tags in aquasecurity/trivy-action and all 7 tags in aquasecurity/setup-trivy to malicious commits, and triggered release automation to publish malicious Trivy v0.69.4.
  • 19 March, about 18:26 UTC: poisoned binaries reached GitHub Releases, Docker Hub, GitHub Container Registry and AWS ECR Public, plus deb and rpm packages.
  • 20 March, about 05:40 UTC: all trivy-action tags were restored to safe commits, closing the roughly 12-hour exposure window for the Action. The v0.69.4 binary was available for about 3 hours.
  • 22–23 March 2026: the attacker used separately compromised Docker Hub credentials to publish poisoned images v0.69.5, v0.69.6 and latest, bypassing GitHub controls entirely.

On the same day, using a stolen service-account token, the attacker also defaced all 44 repositories in Aqua Security's aquasec-com GitHub organization, renaming them with tpcp-docs- prefixes. The NVD entry advises checking for repositories named tpcp-docs in your own organization.

How did the attack work?

The attack abused two features of Git and GitHub that work exactly as designed: mutable tags and self-declared commit identity. Anyone with push access can reassign an existing tag to a different commit, and Git does not verify that a commit author is who they claim to be.

Instead of releasing a new, obviously suspicious version, the attackers rewrote existing version tags. Every pipeline that referenced aquasecurity/[email protected] or a similar tag began running attacker code on its next run, with no visible change to release metadata. That is why the attack was so effective: nothing looked new, and nothing looked broken.

For the binary, the attacker pushed a commit that swapped an actions/checkout reference for an imposter commit, added --skip=validate to the release tooling to bypass binary validation, and tagged the result v0.69.4, triggering the normal release pipeline.

How the poisoned Trivy payload worked1. Tag repointedExisting version tagnow points at amalicious commit2. Stealer runsReads runner memory,env vars and 50+filesystem locations3. ExfiltrationAES-256 + RSAencrypted archivetpcp.tar.gz sent out4. Real scan runsLegitimate Trivyscan completes, sothe job looks greenThe malicious entrypoint added about 105 lines of attack code before the real scanner logic.Stolen data went to a typosquatted domain, scan.aquasecurtiy.org — note the missing “t”.Source: Microsoft Security Blog, March 2026; CrowdStrike and Snyk analyses.
The poisoned payload stole secrets first, then ran the genuine scan to hide itself. Illustration by Cysoro.

What did the malicious payload steal?

The payload was a credential-harvesting infostealer. On GitHub-hosted runners it decoded a Base64 Python script that located the Runner.Worker process and read its memory directly through /proc, scraping GitHub Actions secrets from process memory. On self-hosted runners it harvested credentials from the filesystem.

Microsoft's analysis lists the targets: AWS environment variables and instance metadata, Google Cloud service-account keys, Azure environment variables, Kubernetes service-account files and a full kubectl get secrets --all-namespaces dump, SSH keys, Docker configuration, database connection strings for MySQL, PostgreSQL, MongoDB, Redis and Vault, Slack and Discord webhooks, WireGuard VPN configuration, and cryptocurrency wallet material.

The stolen data was encrypted with a hybrid AES-256-CBC and RSA-4096 scheme, bundled into an archive named tpcp.tar.gz, and exfiltrated by HTTP POST to the typosquatted domain scan.aquasecurtiy.org. The malware then deleted its temporary files and launched the legitimate Trivy scan, so the workflow completed successfully.

The campaign did not stop with Trivy. Microsoft observed the same playbook expand to Checkmarx KICS on 23 March, LiteLLM on 24 March, and the Bitwarden CLI npm package v2026.4.0 in April 2026, each time harvesting credentials from developer and CI/CD environments.

Which versions were affected, and which are safe?

Use this table to check your exposure. If you used any affected version during its window, treat the secrets it could reach as compromised.

ComponentAffected versionsExposure windowSafe version
Trivy binary / imagev0.69.419 Mar 2026, about 3 hoursv0.69.2 or v0.69.3
Trivy Docker imagesv0.69.4, v0.69.5, v0.69.6, latest19–23 Mar 2026v0.69.3 or later clean release
trivy-action0.0.1–0.34.2 (76 of 77 tags)19–20 Mar 2026, about 12 hoursv0.35.0
setup-trivy0.2.0–0.2.6 (all 7 tags)19–20 Mar 2026v0.2.6 (recreated with a safe commit)

The figures come from the NVD entry for CVE-2026-33634 and the GitHub advisory GHSA-69fq-xp46-6x23. Note that one tag in trivy-action was not poisoned, and that setup-trivy v0.2.6 is safe only in its recreated form — the original v0.2.6 tag was among the poisoned ones.

Aqua Security's commercial Trivy offering was not affected, according to the company. The compromise was limited to the open-source scanner, its GitHub Actions and its public container images.

How do I check if I was affected?

Start with your pipeline definitions and your run history, not with a guess. The exposure depends on exactly which version you ran and when.

  1. Search your workflows for aquasecurity/trivy-action and aquasecurity/setup-trivy, and for any Trivy binary or image version. Note whether you referenced a tag or a full commit SHA.
  2. Check run logs from 19–20 March 2026 for any workflow using those actions, and check image pulls of Trivy v0.69.4 to v0.69.6 through 23 March.
  3. Look for the indicators: outbound traffic to scan.aquasecurtiy.org, unexpected tpcp.tar.gz files, repositories named tpcp-docs in your GitHub organization, and new or changed GitHub Actions secrets.
  4. Review cloud audit logs for use of credentials that were available to affected runners — new API keys, unusual regions, or access from unfamiliar addresses.
  5. Check downstream systems that shared those secrets, including Kubernetes clusters, registries and deployment targets.

If you pinned actions to full commit SHAs, you were not affected by the tag repointing, because a SHA points at one immutable commit. That is the single most important lesson of this incident, and it is why the response guidance below starts there.

What should you do if you ran an affected version?

Assume compromise of the secrets the pipeline could reach, and work through rotation and review in that order. Do not just upgrade Trivy and move on.

  1. Remove affected artifacts immediately — delete Trivy v0.69.4 binaries and images v0.69.4 to v0.69.6 from caches, registries and runner images.
  2. Rotate every secret the affected pipelines could access: cloud access keys, service-account keys, GitHub tokens, SSH keys, database passwords, webhook URLs and Kubernetes service-account tokens.
  3. Upgrade to safe versions: Trivy v0.69.3 or later clean release, trivy-action v0.35.0, setup-trivy v0.2.6 (recreated).
  4. Audit GitHub organizations for unexpected repositories, workflows, secrets and collaborators, including anything named tpcp-docs.
  5. Review cloud and Kubernetes audit logs for the exposure window and the weeks after it, since stolen credentials can be used later.
  6. Revoke and reissue tokens rather than just changing passwords where a token grants long-lived access.
Rotate first, investigate secondStolen CI/CD secrets are often used weeks later, after the incident fades from view. Rotation is the step that actually closes the exposure; log review tells you whether the secrets were used.

How do you prevent the next supply chain attack like this?

No single control stops a supply chain attack. The goal is to make each step harder and to limit what a compromised tool can reach.

  • Pin GitHub Actions to full commit SHAs, not version tags. Tags are mutable by design; SHAs are not. Use a tool such as Dependabot to propose SHA updates.
  • Limit pipeline permissions with least-privilege tokens, short-lived credentials such as OIDC, and per-job secret scoping, so a compromised action sees as little as possible.
  • Verify release artifacts with checksums and signatures before you run them, and mirror trusted images into a private registry you control.
  • Rotate credentials atomically after an incident: revoke every credential at once, then issue replacements. The Trivy attack succeeded because rotation happened over several days, leaving a valid token in the attacker's hands.
  • Monitor for tag and release changes in the actions you depend on, and alert on unexpected outbound traffic from runners.
  • Use ephemeral, isolated runners where you can, and separate build, test and deploy credentials so one compromised job cannot reach production.

For a wider starting point, our small business cybersecurity checklist covers these controls alongside backups, updates and device security.

You can also check whether your own site's security headers are in order with the free security headers checker.

What are the wider lessons from the Trivy attack?

The Trivy attack is a reminder that security tools are part of the supply chain, not above it. A scanner runs with high privilege, inside the pipeline, with access to the secrets it is meant to protect. When that tool is compromised, the blast radius is the whole pipeline.

It also shows how an incomplete incident response creates the next incident. The February intrusion was disclosed and credentials were rotated, but the rotation was not atomic and the attacker kept a foothold. Incident response is not finished when the first rotation is done; it is finished when every credential, token and session from before the incident is provably revoked.

Finally, the attack shows why the same playbook keeps working. Microsoft observed it expand to Checkmarx KICS, LiteLLM and the Bitwarden CLI, each time through a trusted distribution channel. The defense is not to trust fewer tools, but to verify what you run, pin what you depend on, and limit what any one tool can reach.

The bottom line

The Trivy supply chain attack poisoned a trusted scanner, its GitHub Actions and its Docker images in March 2026, and it worked because pipelines trusted version tags and the scanner ran with broad access to secrets.

If you ran an affected version, rotate the secrets it could reach, upgrade to the safe versions, and pin your actions to commit SHAs.

You can start by checking your own attack surface with the free SSL checker.

Then tighten the controls in our small business cybersecurity checklist.

Frequently asked questions

What is the Trivy supply chain attack?

It is the March 2026 compromise of Aqua Security's open-source Trivy vulnerability scanner. Attackers used leftover credentials to publish a malicious Trivy v0.69.4 release and poison GitHub Action tags, so trusted CI/CD pipelines ran a credential stealer before the real scan.

Which Trivy versions were affected?

Trivy binary v0.69.4, trivy-action versions 0.0.1 to 0.34.2, setup-trivy versions 0.2.0 to 0.2.6, and Docker images v0.69.4 to v0.69.6. Safe versions are Trivy v0.69.2 and v0.69.3, trivy-action v0.35.0 and setup-trivy v0.2.6.

What did the malicious payload steal?

Cloud credentials for AWS, Google Cloud and Azure, SSH keys, Kubernetes service-account tokens and cluster secrets, Docker configuration, database connection strings, CI/CD tokens, Slack and Discord webhooks, environment variables and cryptocurrency wallet material.

How do I know if my pipeline was exposed?

Check whether you pulled or ran Trivy v0.69.4, or used trivy-action or setup-trivy by version tag, between 19 and 20 March 2026. Review workflow run logs for that window, look for unexpected outbound traffic, and check for repositories named tpcp-docs in your GitHub organization.

Should I rotate secrets after the Trivy attack?

Yes, if you ran an affected version during the exposure window. Aqua Security and the NVD entry advise treating all secrets accessible to those pipelines as compromised and rotating them immediately, including cloud keys, tokens and service-account credentials.

Is Trivy safe to use now?

Yes, on the safe versions listed above, provided you pin GitHub Actions to full commit SHAs, verify release hashes, and keep your scanner updated. The malicious artifacts were removed from distribution channels on 19 March 2026.

Who was behind the Trivy attack?

The campaign is attributed to a threat actor identifying as TeamPCP. Microsoft later observed the same playbook expand to Checkmarx KICS, LiteLLM and the Bitwarden CLI npm package.

What is CVE-2026-33634?

It is the CVE assigned to the Trivy embedded malicious code vulnerability. CISA added it to its Known Exploited Vulnerabilities Catalog on 26 March 2026, with a remediation due date of 9 April 2026.

Sources

  1. Microsoft Security Blog — Guidance for detecting, investigating, and defending against the Trivy supply chain compromise
  2. NIST NVD — CVE-2026-33634
  3. Dark Reading — Trivy Supply Chain Attack Targets CI/CD Secrets
  4. Snyk — Trivy GitHub Actions Supply Chain Compromise
  5. Wiz — GHSA-69fq-xp46-6x23 Impact, Exploitability, and Mitigation Steps
  6. GitHub — GHSA-69fq-xp46-6x23
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Microsoft's March 2026 analysis, NIST NVD entry CVE-2026-33634 and the GitHub security advisory GHSA-69fq-xp46-6x23.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free