-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenssl_yara.rule
39 lines (35 loc) · 1.28 KB
/
openssl_yara.rule
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import "elf"
import "pe"
rule Vulnerable_Win_OpenSSL {
meta:
description = "Detects vulnerable version of OpenSSL Windows binary (3.0.0 and up to 3.0.6)"
author = "[email protected]"
date = "2022-10-31"
reference = "https://www.zdnet.com/article/openssl-warns-of-critical-security-vulnerability-with-upcoming-patch/"
license = "Apache License 2.0"
strings:
$ver = { 4F 70 65 6E 53 53 4C 20 33 2E 30 2E (30|31|32|33|34|35|36) }
$str1 = "SSLv3"
condition:
$ver and
(all of ($str*)) and
pe.imports("bcrypt.dll") and
pe.imports("WS2_32.dll") and
filesize < 5MB
}
rule Vulnerable_Linux_OpenSSL {
meta:
description = "Detects vulnerable version of OpenSSL Linux binary (3.0.0 and up to 3.0.6)"
author = "[email protected]"
date = "2022-10-31"
reference = "https://www.zdnet.com/article/openssl-warns-of-critical-security-vulnerability-with-upcoming-patch/"
license = "Apache License 2.0"
strings:
$ver = { 4F 70 65 6E 53 53 4C 20 33 2E 30 2E (30|31|32|33|34|35|36) }
$str1 = "SSLv3"
condition:
$ver and
(all of ($str*)) and
elf.type == elf.ET_DYN and
filesize < 30MB
}