Skip to content
Threat Feed
critical advisory

Compromised trivy-action GitHub Action Leads to Credential Theft

The trivy-action GitHub Action was compromised through git tag repointing, injecting a multi-stage credential stealer into CI/CD pipelines that runs before the legitimate scanner.

Triage facts

Revision 2
Evidence
Unknown
Severity
Critical
Sources
1 public source
Freshness
Revision 2Mar 29, 14:22 UTC
Detection
2 rules
Revision history 1 entry · Revision 2
  1. Revision 2

    Repaired a legacy canonical identity collision

    Changed: slug

On March 20, 2026, CrowdStrike's Engineering team discovered a supply chain compromise affecting the aquasecurity/trivy-action GitHub Action, a popular open-source vulnerability scanner used in CI/CD pipelines. The attacker retroactively poisoned 76 out of 77 release tags by repointing them to malicious commits. This injected a multi-stage credential stealer that executes before the legitimate Trivy scanner, maintaining the appearance of normal workflow completion. The attack code, consisting of approximately 105 lines, targets secrets and credentials stored within the runner environment. This incident highlights the risks associated with mutable tags in Git and the potential for widespread impact through compromised CI/CD components. The initial spike in malicious activity was observed on Linux platforms linked to GitHub Actions runners on March 19, 2026.

Attack Chain

  1. Attacker compromises the aquasecurity/trivy-action GitHub repository and modifies the release tags via git tag repointing.
  2. The malicious code is injected into the entrypoint.sh script of the trivy-action.
  3. A developer triggers a CI/CD pipeline that uses the compromised trivy-action (e.g., version 0.24.0).
  4. The GitHub Actions runner downloads and executes the malicious entrypoint.sh script.
  5. The malicious script enumerates process IDs (PIDs) to identify potential targets for credential theft.
  6. Credential theft occurs, targeting secrets and credentials available within the runner's environment.
  7. The legitimate Trivy scanner executes, masking the malicious activity and ensuring the workflow appears normal.
  8. Stolen credentials are used to access internal infrastructure, cloud resources, or other sensitive systems.

Impact

This supply chain compromise has the potential to affect a large number of organizations using the trivy-action in their CI/CD pipelines. The silent nature of the credential theft allows attackers to gain unauthorized access to sensitive resources without immediately alerting victims. The compromised credentials can be used for lateral movement, data exfiltration, or further malicious activities within the victim's environment. The CrowdStrike team observed the initial spike of this compromise affecting multiple customers.

Recommendation

  • Inspect your CI/CD pipelines for usage of aquasecurity/trivy-action and evaluate the risk of using mutable tags. Consider using specific commit SHAs instead of tags to ensure immutability.
  • Monitor process execution on GitHub Actions runners for suspicious activity originating from entrypoint.sh within the trivy-action directory, as described in the Attack Chain. Deploy the Sigma rule Detect Suspicious trivy-action Execution to your SIEM and tune for your environment.
  • Review and audit the secrets and credentials stored within your CI/CD environments to identify any potential unauthorized access or modifications.
  • Enable Sysmon process-creation logging on Linux runners to gain better visibility into process execution and detect malicious scripts. This will help activate the Detect Suspicious trivy-action Execution rule.

Detection coverage 2

Detect Suspicious trivy-action Execution

high

Detects execution of the trivy-action with suspicious arguments or parent processes, indicating potential compromise.

sigma tactics: credential_access techniques: T1552 sources: process_creation, linux

Detect Process Enumeration in trivy-action

medium

Detects process enumeration commands within the trivy-action script, indicative of reconnaissance activity.

sigma tactics: discovery techniques: T1057 sources: process_creation, linux

Detection queries are available on the platform. Get full rules →