Aquasecurity Trivy Embedded Malicious Code (CVE-2026-33634)
CVE-2026-33634 describes an embedded malicious code vulnerability (CWE-506) in Aquasecurity Trivy, a widely-used open-source vulnerability scanner. A compromised or trojanized Trivy binary may execute attacker-controlled code during container image scanning, CI/CD pipeline runs, or Kubernetes admission checks. Because Trivy is frequently granted elevated permissions to access container registries, Kubernetes API servers, and cloud credential chains, a backdoored instance poses critical supply-chain risk: exfiltration of secrets, lateral movement into CI/CD infrastructure, and persistent implant installation. This detection monitors for anomalous process behavior, unexpected network egress, and suspicious file activity originating from Trivy processes.
Vulnerability Intelligence
KEV — Known ExploitedAffected Software
- Vendor
- Aquasecurity
- Product
- Trivy
Weakness (CWE)
Timeline
- Disclosed
- March 26, 2026
References & Proof of Concept
CVSS
What is CVE-2026-33634 Aquasecurity Trivy Embedded Malicious Code (CVE-2026-33634)?
Aquasecurity Trivy Embedded Malicious Code (CVE-2026-33634) (CVE-2026-33634) maps to the Initial Access and Execution and Persistence and Exfiltration tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for Aquasecurity Trivy Embedded Malicious Code (CVE-2026-33634), covering the data sources and telemetry it touches: Microsoft Defender for Endpoint, Microsoft Sentinel. The queries below are rated critical severity at high confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
let trivyProcesses = DeviceProcessEvents
| where FileName in~ ("trivy", "trivy-linux-amd64", "trivy-linux-arm64") or ProcessCommandLine has "trivy"
| project DeviceId, DeviceName, InitiatingProcessId, ProcessId, FileName, ProcessCommandLine, AccountName, Timestamp;
let suspiciousChildren = DeviceProcessEvents
| where InitiatingProcessFileName in~ ("trivy", "trivy-linux-amd64", "trivy-linux-arm64")
| where FileName !in~ ("trivy", "sh", "bash") or ProcessCommandLine has_any ("curl", "wget", "nc", "ncat", "python", "python3", "perl", "ruby", "bash -i", "/dev/tcp", "base64")
| project DeviceId, DeviceName, InitiatingProcessId, ProcessId, FileName, ProcessCommandLine, AccountName, Timestamp;
let suspiciousNetwork = DeviceNetworkEvents
| where InitiatingProcessFileName in~ ("trivy", "trivy-linux-amd64", "trivy-linux-arm64")
| where RemotePort !in (443, 80, 8080) or RemoteUrl !has "aquasecurity" and RemoteUrl !has "ghcr.io" and RemoteUrl !has "github.com"
| project DeviceId, DeviceName, InitiatingProcessId, RemoteIP, RemotePort, RemoteUrl, InitiatingProcessCommandLine, Timestamp;
let suspiciousFiles = DeviceFileEvents
| where InitiatingProcessFileName in~ ("trivy", "trivy-linux-amd64", "trivy-linux-arm64")
| where FolderPath has_any ("/tmp", "/var/tmp", "/dev/shm", "C:\\Windows\\Temp", "C:\\Users\\Public")
| project DeviceId, DeviceName, InitiatingProcessId, FileName, FolderPath, SHA256, Timestamp;
union suspiciousChildren, (suspiciousNetwork | extend FileName = "", ProcessCommandLine = InitiatingProcessCommandLine, AccountName = ""), (suspiciousFiles | extend ProcessCommandLine = "", AccountName = "")
| order by Timestamp desc Detects anomalous child process spawning, unexpected external network connections, and suspicious file writes originating from Trivy processes, which may indicate a backdoored or trojanized Trivy binary (CVE-2026-33634).
Data Sources
Required Tables
False Positives
- Trivy updating its vulnerability database to non-standard mirrors configured by the operator
- Legitimate shell wrappers or CI scripts that invoke trivy with bash/sh as a parent
- Security tooling or EDR agents spawning from trivy's process tree during scan operations
- Custom Trivy plugins that perform network calls to internal artifact registries
Sigma rule & cross-platform mapping
The detection logic for Aquasecurity Trivy Embedded Malicious Code (CVE-2026-33634) (CVE-2026-33634) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
category: process_creation
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-33634
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Trivy Binary Hash Verification Failure Simulation
Expected signal: ProcessRollup or DeviceProcessEvents event for /tmp/trivy-test with a SHA-256 hash differing from the official trivy binary hash; file creation event for /tmp/trivy-test.
- Test 2Trivy Spawning Reverse Shell Child Process
Expected signal: ProcessRollup event showing trivy (or trivy-named process) as parent of nc/netcat; NetworkConnect event for local port 14444.
- Test 3Trivy Unexpected Outbound Network Connection
Expected signal: NetworkConnect event from a process named 'trivy' (via exec -a) to 169.254.169.254 port 80; DnsRequest or direct IP connection telemetry.
- Test 4Trivy Writing Dropper to Temp Directory
Expected signal: FileCreate event showing a trivy-named process writing an executable file to /dev/shm/; file hash and permissions captured in endpoint telemetry.
Unlock Pro Content
Get the full detection package for CVE-2026-33634 including response playbook, investigation guide, and atomic red team tests.