Trivy Scanner Breach Delivers Infostealer
Executive Summary
The popular Trivy vulnerability scanner was compromised in a sophisticated supply chain attack. Threat actors injected credential-stealing malware into official GitHub Actions, distributing the payload to thousands of CI/CD pipelines that rely on the tool for security scanning.
Attack Overview
- Attack Path: Attackers used a compromised Personal Access Token (PAT) from a previous incident to gain access. They then force-pushed malicious code to 75 of 76 existing version tags in the `trivy-action` repository, hijacking the update mechanism.
- Attacker: TeamPCP
Impact Assessment
- Data Stolen: The malware was designed to harvest sensitive data from CI/CD environments, including SSH keys, cloud credentials (AWS, GCP, Azure), and Kubernetes tokens by dumping runner process memory.
Detection & Hunting
- IOCs: Monitor for network connections to `scan.aquasecurtiy[.]org` and IP `45.148.10[.]212`. Search for the creation of a public GitHub repository named `tpcp-docs`, a fallback exfiltration method.
Strategic Takeaway
This incident highlights the critical risk of mutable infrastructure tags and incomplete credential rotation, turning a trusted security tool into a widespread malware distribution vector.
Relevant professional terms
- Supply Chain Attack
- An attack strategy that targets less-secure elements in a software supply network, such as third-party libraries or build tools, to compromise a final product.
- Infostealer
- A type of malware designed specifically to collect and exfiltrate sensitive information, such as login credentials, financial data, and system information, from a victim's computer.
Source: BleepingComputer
