Skip to content

Commit e1c049f

Browse files
committed
Yara rules updated.
1 parent 7100e9a commit e1c049f

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

notebooks/static-attributes.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
},
8080
{
8181
"cell_type": "code",
82-
"execution_count": 99,
82+
"execution_count": 4,
8383
"metadata": {},
8484
"outputs": [],
8585
"source": [
@@ -1359,7 +1359,7 @@
13591359
},
13601360
{
13611361
"cell_type": "code",
1362-
"execution_count": 17,
1362+
"execution_count": 5,
13631363
"metadata": {},
13641364
"outputs": [],
13651365
"source": [
@@ -1378,7 +1378,7 @@
13781378
},
13791379
{
13801380
"cell_type": "code",
1381-
"execution_count": 73,
1381+
"execution_count": null,
13821382
"metadata": {},
13831383
"outputs": [],
13841384
"source": [

yara_rules/Ransomware.yar

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ rule nastyware_branch1
1818
}
1919

2020

21-
// Improving this rule. With 42 false positives.
2221
rule nastyware_branch2
2322
{
2423
meta:
@@ -28,15 +27,27 @@ rule nastyware_branch2
2827
rule_version = "v1.0"
2928
malware_type = "ransomware"
3029

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+
3142
condition:
3243
( pe.imports("kernel32.dll", "GetProcAddress") and pe.imports("kernel32.dll", "ExitProcess") )
3344
and not
3445
( pe.imports("msvcrt.dll", "_amsg_exit")
3546
or pe.imports("msvcrt.dll", "__C_specific_handler")
3647
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+
4051
}
4152

4253

0 commit comments

Comments
 (0)