Cyber Risks · The Hacker News

Trivy Security Scanner GitHub Actions Breached, 75 Tags Hijacked to Steal CI/CD Secrets

Summary: Trivy, the open-source vulnerability scanner maintained by Aqua Security, was compromised for the second time in a month when an attacker used a compromised credential to force-push 75 of 76 version tags in the aquasecurity/trivy-action repository to malicious commits carrying a Python infostealer, and force-pushed seven setup-trivy tags (v0.2.0 through v0.2.6) the same way. Aqua vice president of open source Itay Shakury said the attack stemmed from incomplete containment of the earlier hackerbot-claw incident, in which secrets and tokens were rotated but not atomically, and the stealer harvests runner environment variables, encrypts them, and exfiltrates to scan.aquasecurtiy[.]org, falling back to staging data in a public repository named tpcp-docs via a captured INPUT_GITHUB_PAT.

Why it matters: The payload targets SSH keys, cloud credentials, database and Git credentials, Docker configurations, Kubernetes tokens, and cryptocurrency wallets inside CI/CD runners, and Aqua's own guidance is that anyone who ran an infected version should treat all pipeline secrets as compromised and rotate immediately. Pinning to version tags offered no protection here because the tags themselves were rewritten, and the stolen data was already being used to push malicious npm packages containing a self-propagating worm.

Read the original at The Hacker News ↗

Topics
Vulnerabilities & Patching
Related