File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 79
79
},
80
80
{
81
81
"cell_type" : " code" ,
82
- "execution_count" : 99 ,
82
+ "execution_count" : 4 ,
83
83
"metadata" : {},
84
84
"outputs" : [],
85
85
"source" : [
1359
1359
},
1360
1360
{
1361
1361
"cell_type" : " code" ,
1362
- "execution_count" : 17 ,
1362
+ "execution_count" : 5 ,
1363
1363
"metadata" : {},
1364
1364
"outputs" : [],
1365
1365
"source" : [
1378
1378
},
1379
1379
{
1380
1380
"cell_type" : " code" ,
1381
- "execution_count" : 73 ,
1381
+ "execution_count" : null ,
1382
1382
"metadata" : {},
1383
1383
"outputs" : [],
1384
1384
"source" : [
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ rule nastyware_branch1
18
18
}
19
19
20
20
21
- // Improving this rule. With 42 false positives.
22
21
rule nastyware_branch2
23
22
{
24
23
meta :
@@ -28,15 +27,27 @@ rule nastyware_branch2
28
27
rule_version = " v1.0 "
29
28
malware_type = " ransomware "
30
29
30
+ strings :
31
+ $ s1 = " Microsoft Corporation "
32
+ $ s2 = " Microsoft (R) Windows (R) Operating System "
33
+
34
+ $ g1 = " adprep.dll "
35
+ $ g2 = " dfshim.dll "
36
+ $ g3 = {64 67 67 70 65 78 74 } // dggpext
37
+ $ g4 = " mscoree.dll "
38
+ $ g5 = " msdadiag.dll "
39
+ $ g6 = " netfxperf.dll "
40
+ $ g7 = " WindowsAccessBridge-64.dll "
41
+
31
42
condition :
32
43
( pe .imports (" kernel32.dll " , " GetProcAddress " ) and pe .imports (" kernel32.dll " , " ExitProcess " ) )
33
44
and not
34
45
( pe .imports (" msvcrt.dll " , " _amsg_exit " )
35
46
or pe .imports (" msvcrt.dll " , " __C_specific_handler " )
36
47
or pe .imports (" WS2_32.dll " , " recv " )
37
- or pe .imports (" api-ms-win-core-libraryloader-l1-2-0.dll " , " DisableThreadLibraryCalls " ) )
38
-
39
-
48
+ or pe .imports (" api-ms-win-core-libraryloader-l1-2-0.dll " , " DisableThreadLibraryCalls " )
49
+ or any of them )
50
+
40
51
}
41
52
42
53
You can’t perform that action at this time.
0 commit comments