Skip to content

Commit 7740a4e

Browse files
authored
chore: add rule for recent Trivy compromise (#1431)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 265e70d commit 7740a4e

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

rules/c2/addr/trivy.yara

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import "hash"
2+
3+
rule trivy_2026_03: critical {
4+
meta:
5+
description = "Contains IOCs from the 2026/03/19 Trivy compromise"
6+
7+
strings:
8+
$actions_commit = "8afa9b9f9183b4e00c46e2b82d34047e3c177bd0"
9+
$domain1 = "scan.aquasecurtiy.org"
10+
$domain2 = "tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io"
11+
$ip = "45.148.10.212"
12+
13+
condition:
14+
(hash.sha256(0, filesize) == "3350da5e45f99ec86eec5cb87efe84241d82a019822e4270facb818519778d12") // brew tarball
15+
or (hash.sha256(0, filesize) == "ef8a2c83882852c92d01a7356ca7a362aef98d1eae332ab48f993ea0ef3d8fe0") // workflow YAML
16+
or (hash.sha256(0, filesize) == "18a24f83e807479438dcab7a1804c51a00dafc1d526698a66e0640d1e5dd671a") // entrypoint.sh
17+
or (hash.sha256(0, filesize) == "c0d85c24e72327453868628991e3b8053b6dbb08e3c52bd29712d845e453f469") // arm64_tahoe (brew)
18+
or (hash.sha256(0, filesize) == "2376e3929b5c080f5d6acc4ebd6f94cc52557afe1287c927f5d25178c46026a6") // arm64_sequoia (brew)
19+
or (hash.sha256(0, filesize) == "aa279a677b68b3dc1ce5e615c0de05d6a446d34314060e56e0e74901aa8d6425") // arm64_sonoma (brew)
20+
or (hash.sha256(0, filesize) == "32a0cc6e2e2a1a5cb281383c6d87997f0728c7aa1abbee68dc33e7c1583b7ddf") // sonoma (brew)
21+
or (hash.sha256(0, filesize) == "65772bde6ffadea570171fadf208786852ace51516e88649c4f0de1fc5d1e7c1") // arm64_linux (brew)
22+
or (hash.sha256(0, filesize) == "729aa7df0d1f026ec18333fafc5f9a35547dc3f42a524bf83abc2017bb75833e") // x86_64_linux (brew)
23+
or any of them
24+
}

0 commit comments

Comments
 (0)