-
Notifications
You must be signed in to change notification settings - Fork 0
/
EternalRomance.yar
33 lines (33 loc) · 986 Bytes
/
EternalRomance.yar
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
rule EternalRomance
{
meta:
author = "kevoreilly"
description = "EternalRomance Exploit"
cape_type = "EternalRomance Exploit"
strings:
$SMB1 = "Frag"
$SMB2 = "Free"
$session7_32_1 = {2A 02 1C 00}
$session7_64_1 = {2A 02 28 00}
$session8_32_1 = {2A 02 24 00}
$session8_64_1 = {2A 02 38 00}
$session7_32_2 = {D5 FD E3 FF}
$session7_64_2 = {D5 FD D7 FF}
$session8_32_2 = {D5 FD DB FF}
$session8_64_2 = {D5 FD C7 FF}
$ipc = "IPC$"
$pipe1 = "atsvc"
$pipe2 = "browser"
$pipe3 = "eventlog"
$pipe4 = "lsarpc"
$pipe5 = "netlogon"
$pipe6 = "ntsvcs"
$pipe7 = "spoolss"
$pipe8 = "samr"
$pipe9 = "srvsvc"
$pipe10 = "scerpc"
$pipe11 = "svcctl"
$pipe12 = "wkssvc"
condition:
uint16(0) == 0x5A4D and (all of ($SMB*)) and $ipc and (any of ($session*)) and (any of ($pipe*))
}