-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmirhanUcan.yar
92 lines (92 loc) · 5.25 KB
/
EmirhanUcan.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
rule INDICATOR_SUSPICIOUS_FAN_MADE_MALWARE {
meta:
author = "Emirhan Ucan"
description = "Detects fan made malwares"
reference = "625f4bae4d6188fe231c28914281c5000f39117feb70f3847fd1b94951cd15e3 3bdab09c77fda2c0afe9cafd76202cd33f9a1d7adee9e437a931d2ba366ebf87 5dd4ea169cabf9226f54bb53e63ea6a1b5880a0d1222242aee378efb6255b57da 9188c9e15123585764eeaf2664acab784a64c629ad7bde14696788bd4fe9e805 b6ef7d7410a44494a09973b7b0ca173ca4f67f52ea542c7393e3d1874257dfb5"
strings:
$r20 = "SOFTWARE\\Policies\\Microsoft\\Windows\\System" ascii wide
$k46 = "DisableAutomaticRebootOnCrash" ascii wide
$r21 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System" ascii wide
$k70 = "DisableAutomaticRestartSignOn" ascii wide nocase
$k47 = "DisableAutomaticRestartScheduledMaintenance" ascii wide
$k48 = "DisableAutomaticRestartWithLoggedOnUsers" ascii wide
$k49 = "DisableAutoRebootOnCrash" ascii wide nocase
$r22 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System" ascii wide
$k50 = "DisableCMD" ascii wide nocase
$k51 = "DisableRegistryTools" ascii wide nocase
$k52 = "DisablePerformanceMonitor" ascii wide nocase
$k53 = "DisableTaskMgr" ascii wide nocase
$k54 = "DisableMMC" ascii wide nocase
$k55 = "DisableEventViewer" ascii wide nocase
$k74 = "NoWinKeys" ascii wide nocase
$k56 = "DisableSnippingTool" ascii wide nocase
$k57 = "DisableMagnifier" ascii wide nocase
$k58 = "DisableEaseOfAccess" ascii wide nocase
$k59 = "DisableCAD" ascii wide nocase
$r23 = "SYSTEM\\CurrentControlSet\\Control\\MiniNT" ascii wide
$k60 = "DisallowWinPELicensing" ascii wide nocase
$r24 = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System" ascii wide
$k61 = "DisableChangeTime" ascii wide nocase
$r25 = "SOFTWARE\\McAfee" ascii wide
$k62 = "bDisableSelfProtection" ascii wide nocase
$r26 = "SOFTWARE\\AVG" ascii wide
$k63 = "DisableAv" ascii wide nocase
$r27 = "SOFTWARE\\Bitdefender" ascii wide
$k64 = "BlockUserModeAccess" ascii wide nocase
$r28 = "SOFTWARE\\Microsoft\\Security Center" ascii wide
$k65 = "AntiVirusDisableNotify" ascii wide nocase
$k66 = "AntiVirusOverride" ascii wide nocase
$r29 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System" ascii wide
$k67 = "disablelogonbar" ascii wide nocase
$r30 = "SOFTWARE\\Policies\\Microsoft\\Windows Defender" ascii wide
$k68 = "DisableScanOnRealTimeEnable" ascii wide nocase
$k69 = "DisableAntiSpyware" ascii wide nocase
$k72 = "DisableWinDefender" ascii wide nocase
$r31 = "SOFTWARE\\Microsoft\\Windows Defender" ascii wide
$k71 = "DisableAntiSpyware" ascii wide nocase
$k75 = "DisableAntivirus" ascii wide nocase
$r50 = "SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU" ascii wide
$k73 = "NoAutoUpdate" ascii wide nocase
$r32 = "SOFTWARE\\Microsoft\\Security Center" ascii wide
$k76 = "aswidsagenta" ascii wide nocase
$k77 = "DisableAv" ascii wide nocase
$k78 = "BlockUserModeAccess" ascii wide nocase
$k79 = "bDisableSelfProtection" ascii wide nocase
$k80 = "ProtectEnabled" ascii wide nocase
$k81 = "MalwareProtectionEnabled" ascii wide nocase
$k82 = "ProductEnabled" ascii wide nocase
$r33 = "SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell" ascii wide
$k83 = "DisablePowerShell" ascii wide nocase
$r34 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer" ascii wide
$k84 = "NoViewContextMenu" ascii wide nocase
$r90 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer" ascii wide
$k85 = "NoRunAs" ascii wide nocase
$r36 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer" ascii wide
$k91 = "NoFileOpen" ascii wide nocase
$r37 = "SYSTEM\\ControlSet001\\Control\\Keyboard Layouts\\Scancode Map" ascii wide
$k86 = "DisableLockWorkstation" ascii wide nocase
$k87 = "DisableChangePassword" ascii wide nocase
$h15 = "Hacked" ascii wide nocase
$h16 = "gdi32dll" ascii wide nocase
$h17 = "onion" ascii wide nocase
$h18 = "attention" ascii wide nocase
$h19 = "efi.h" ascii wide nocase
$h20 = "protonme" ascii wide nocase
$h21 = "discordnitro" ascii wide nocase
$h22 = "monero" ascii wide nocase
$h23 = "rust" ascii wide nocase
$h24 = "bitcoin" ascii wide nocase
$h25 = "guardshield" ascii wide nocase
$h26 = "appxalluserstore" ascii wide nocase
$h27 = "wextracmui" ascii wide nocase
$h28 = "Yourfileshasbeenencrypted" ascii wide nocase
$h29 = "bootmgfw.efi" ascii wide nocase
$h30 = "memztrojan" ascii wide nocase
$h31 = "destructive" ascii wide nocase
$h32 = "FINAL WARNING" ascii wide nocase
$h33 = "executed a Trojan" ascii wide nocase
condition:
uint16(0) == 0x5a4d and
(3 of ($r*) or 3 of ($k*)) or
(2 of ($h*))
}