By NHI Mgmt Group Editorial TeamPublished 2026-04-01Domain: Breaches & IncidentsSource: Aqua Security

TL;DR: The Trivy supply chain attack used compromised credentials, mutable version tags, and incomplete rotation to publish malicious releases and persist across open-source automation, showing how CI/CD trust assumptions can be abused when identity controls lag behind release workflows, according to Aqua Security. Mutable tags and residual access turn repository automation into a credentialed attack surface, not just a software delivery problem.


At a glance

What this is: This is Aqua Security’s update on the Trivy supply chain attack, which shows how compromised credentials, tag poisoning, and residual access enabled malicious releases and broader repository abuse.

Why it matters: It matters because CI/CD, service-account, and token governance failures can expose both open-source release pipelines and downstream enterprise build trust, with direct implications for NHI and IAM controls.

By the numbers:

👉 Read Aqua Security's analysis of the Trivy supply chain attack and tag poisoning


Context

The core issue is not just a malicious release, but the trust model behind CI/CD identities, repository automation, and mutable tags. When a service account or token can outlive the condition that created it, release pipelines become a place where access can be reused long after the initial containment step.

For NHI governance, this is a classic lifecycle and privilege-scope problem: credentials were compromised, rotation was incomplete, and downstream automation still trusted the original execution path. The article shows that open-source build systems, signing workflows, and tag-based consumption patterns must be treated as identity-controlled infrastructure, not just developer tooling.


Key questions

Q: What breaks when CI/CD pipelines trust mutable version tags?

A: Mutable tags break the assumption that a release reference always points to the same code. If an attacker can rewrite the tag, every downstream pipeline that resolves by name may execute a different artifact without noticing. Teams should treat tag mutability as a trust control failure and require immutable references for build integrity.

Q: Why do incomplete credential rotations keep supply chain incidents alive?

A: Incomplete rotation keeps incidents alive because one surviving token, bot account, or secret can preserve attacker access after the first response. In supply-chain environments, that residual identity can reach release automation, repositories, and signing paths. The real containment test is whether any credentialed path remains valid after rotation.

Q: How should teams govern service accounts that can publish software?

A: Teams should restrict service accounts that can publish software to the narrowest possible scope and separate them from workflow administration. A bot that can both trigger releases and alter repository automation creates a direct path from credential theft to distribution abuse. Least privilege should include the release lifecycle, not just repository read and write access.

Q: Who is accountable when a release automation identity is abused?

A: Accountability sits with the teams that own the identity lifecycle, the release process, and the downstream systems that trust the artifacts. Security, platform engineering, and software owners all share responsibility for revocation, provenance, and consumer validation. If mutable references remain accepted, the governance gap is organizational as well as technical.


Technical breakdown

How tag poisoning changes a trusted release path

Tag poisoning works when an attacker rewrites a version reference so consumers still ask for a familiar label while the underlying commit or artifact has changed. In this incident, the malicious actor force-pushed tags in repositories that many pipelines consumed by version name rather than immutable commit hash. That means the pipeline did not need to be broken in the traditional sense. It simply continued trusting a mutable pointer. The technical failure is not only code tampering, but the absence of immutability in the trust chain that CI/CD depends on.

Practical implication: pin build dependencies to immutable commits or digests, not mutable version tags.

Why incomplete credential rotation leaves residual access

Credential rotation only closes the gap if every surviving token, key, and service account is actually revoked. The article says the initial rotation was not fully comprehensive, which left residual access available to the attacker. That matters because repository automation often contains multiple credential types across human logins, bot accounts, release systems, and external integrations. If one of those remains valid, the adversary does not need to re-compromise the environment. They simply re-enter through a still-authenticated identity and continue using trusted automation.

Practical implication: inventory every credential path before declaring containment complete.

How service accounts can trigger malicious automation at scale

A service account is not dangerous because it exists. It becomes dangerous when its scope is broad enough to publish, sign, or distribute artifacts without a second control boundary. The article describes the compromised aqua-bot account triggering release automation and attempts to push malicious workflows to additional repositories. That pattern shows how an NHI can become the execution bridge between credential theft and supply-chain impact. Once the account can initiate trusted actions, the attacker no longer needs to impersonate a developer continuously. They only need the account’s standing authority.

Practical implication: segment bot privileges from release publishing and workflow administration.


Threat narrative

Attacker objective: The attacker aimed to hijack trusted software distribution paths, steal additional credentials, and turn a release ecosystem into a broader supply-chain propagation channel.

  1. Entry occurred when attackers exploited a misconfiguration in Trivy’s GitHub Actions environment and extracted a privileged access token.
  2. Escalation followed when incomplete early containment left residual access available, allowing the attacker to reuse still-valid credentials and trigger release automation through the compromised aqua-bot service account.
  3. Impact came when malicious tags and releases were published, downstream CI/CD pipelines continued to trust mutable references, and additional workflows were targeted for further credential theft.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Mutable release references are an identity problem, not just a DevOps convenience. This incident shows that version tags behave like credentials when pipelines trust them more than content integrity. Once an attacker can rewrite those references, the release system itself becomes a credentialed attack surface. The practitioner takeaway is that tag trust must be governed with the same discipline as any other privileged identity.

Incomplete rotation is the same as partial containment. The article’s timeline shows that one compromised credential set was not enough to stop reuse, because at least one access path survived the initial response. That is a lifecycle failure, not a post-breach housekeeping issue. In NHI governance terms, revocation that leaves residual authority behind is not a closed incident. The implication is that containment should be measured by surviving access, not by the act of rotation itself.

Service-account authority should not extend across publish, sign, and distribute functions. The compromised aqua-bot account became the operational bridge between token theft and malicious release activity. That is a standing-privilege failure mode, where one non-human identity can reach too many control points at once. The broader lesson is that release automation should be segmented so a single identity cannot both initiate and disseminate trusted artifacts.

Tag poisoning should sharpen the category’s named concept of release-reference trust debt. Once teams build delivery confidence around mutable labels, they accumulate dependency on references that can be rewritten after approval. This debt is invisible until an attacker changes the label without changing the consumer workflow. Practitioners should treat that as a governance exposure in the release chain, not an isolated repository incident.

Supply-chain security now sits at the boundary of NHI governance and downstream enterprise identity trust. When open-source automation is compromised, enterprises inherit risk through their own build pipelines, secret stores, and deployment credentials. That means IAM, PAM, and NHI teams cannot separate source integrity from access governance. The practitioner conclusion is that release identities must be managed as part of the same trust fabric as production identities.

From our research:

  • When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes, and as quickly as 9 minutes in some cases, according to LLMjacking: How Attackers Hijack AI Using Compromised NHIs.
  • DeepSeek accidentally embedded over 11,000 secrets in its training data and left a database exposed online, revealing more than one million sensitive records including chat histories, backend credentials, and API keys.
  • That same research helps explain why release and pipeline identities need tighter lifecycle control, as shown in the 52 NHI Breaches Report.

What this signals

Release-reference trust debt: teams that still allow mutable tags in CI/CD are carrying a hidden governance liability that only appears when a trusted label is rewritten. The practical signal to watch is not just secret exposure, but whether build systems can be forced to consume a different artifact under the same name. Framework-wise, this maps cleanly to OWASP NHI controls and Zero Trust assumptions around continuous verification.

For practitioners, the next priority is to review where bot identities can still cross between repository admin, workflow editing, and release publishing. If those roles are combined, a single compromised credential can move from repository access to artifact distribution with little friction. That is exactly the kind of privilege convergence that identity lifecycle reviews are meant to surface.

The broader signal is that supply-chain compromise now reaches IAM and NHI programmes through the control plane, not just through endpoint malware. Teams should use release integrity reviews, secret inventory checks, and provenance validation as recurring identity controls, not one-off incident responses.


For practitioners

  • Pin pipelines to immutable artifacts Require commits, digests, or signed provenance instead of mutable version tags for every build and release dependency.
  • Revoke every residual access path Treat containment as incomplete until every token, service account, workflow secret, and integration credential has been inventoried and invalidated.
  • Separate publish authority from workflow control Limit bot accounts so they cannot both trigger releases and modify repository automation or workflow files.
  • Audit downstream consumers of mutable tags Identify CI/CD jobs, build systems, and developer environments that still resolve dependencies through tags rather than immutable references.

Key takeaways

  • This incident shows that mutable release tags can function like compromised identities when CI/CD systems trust them more than artifact integrity.
  • The evidence points to incomplete containment, residual credential validity, and privileged service-account reuse as the key reasons the attack persisted.
  • Practitioners should separate release authority, pin dependencies immutably, and treat token revocation as a lifecycle exercise rather than a single response step.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Mutable tags and incomplete rotation are direct NHI governance failures.
NIST Zero Trust (SP 800-207)PR.AC-4CI/CD trust must be continuously verified, not assumed from repository provenance.
NIST CSF 2.0PR.AC-1Access authorisation and lifecycle control were central to the residual-access failure.

Apply continuous verification to build identities and artifact provenance before release trust is granted.


Key terms

  • Tag Poisoning: Tag poisoning is the abuse of a mutable release label so consumers retrieve attacker-controlled code under a trusted version name. In CI/CD, it turns a naming convention into a security dependency, because pipeline trust often follows the tag instead of verifying the underlying commit or artifact.
  • Residual Access: Residual access is any still-valid credential, token, or service-account permission that survives an attempted rotation or containment step. It matters because one forgotten identity path can preserve attacker control even after the primary compromise is believed to be closed.
  • Release Automation Identity: A release automation identity is a non-human identity that can publish, tag, sign, or distribute software artifacts. It should be narrowly scoped and lifecycle-managed because it sits on the path from source control to downstream trust and can be abused to push malicious releases.
  • Immutable Artifact Reference: An immutable artifact reference points to a specific commit, digest, or signed object that cannot be silently changed after approval. It reduces supply-chain ambiguity because the consumer verifies the exact build output, not a version label that can later be reassigned.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.

This post draws on content published by Aqua Security covering the Trivy supply chain attack: ongoing investigation and continued remediation. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-04-01.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org