-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmalware.yar
9497 lines (9022 loc) · 380 KB
/
malware.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import "pe"
rule MALWARE_Win_Laturo {
meta:
author = "ditekSHen"
description = "Laturo information stealer payload"
clamav_sig = "MALWARE.Win.Trojan.Laturo"
strings:
$str1 = "cmd.exe /c ping 127.0.0.1" ascii wide
$str2 = "cmd.exe /c start" ascii wide
$str3 = "\\RapidLoader\\" ascii
$str4 = "loader/gate.php" ascii wide
$str5 = "Hwid:" ascii wide
$str6 = "Special:" ascii wide
$str7 = "logs=%s" ascii
$data1 = "cookies.%u.txt" nocase ascii wide
$data2 = "passwords.%u.txt" nocase ascii wide
$data3 = "credentials.%u.txt" nocase ascii wide
$data4 = "cards.%u.txt" nocase ascii wide
$data5 = "autofill.%u.txt" nocase ascii wide
$data6 = "loginusers.vdf" ascii wide
$data7 = "screenshot.bmp" nocase ascii wide
$data8 = "webcam.bmp" nocase ascii wide
condition:
uint16(0) == 0x5a4d and 5 of ($str*) and 1 of ($data*)
}
rule MALWARE_Win_XpertRAT {
meta:
author = "ditekSHen"
description = "XpertRAT payload"
snort_sid = "920003-920006"
clamav_sig = "MALWARE.Win.Trojan.XpertRAT"
strings:
$v1 = "[XpertRAT-Mutex]" fullword wide
$v2 = "XPERTPLUGIN" fullword wide
$v3 = "+Xpert+3." wide
$v4 = "keylog.tmp" fullword wide
$v5 = "\\TempReg.reg" fullword wide
$s1 = "ClsKeylogger" fullword ascii nocase
$s2 = "clsCamShot" fullword ascii nocase
$s3 = "ClsShellCommand" fullword ascii nocase
$s4 = "ClsRemoteDesktop" fullword ascii nocase
$s5 = "ClsScreenRemote" fullword ascii nocase
$s6 = "ClsSoundRemote" fullword ascii nocase
$s7 = "MdlHidder" fullword ascii
$s8 = "modKeylog" fullword ascii
$s9 = "modWipe" fullword ascii
$s10 = "modDelProcInUse" fullword ascii
$s11= "Socket_DataArrival" fullword ascii
$s12 = "cZip_EndCompress" fullword ascii
condition:
uint16(0) == 0x5a4d and (3 of ($v*) or 6 of ($s*))
}
rule MALWARE_Win_AgentTeslaV2 {
meta:
author = "ditekSHen"
description = "AgenetTesla Type 2 Keylogger payload"
strings:
$s1 = "get_kbHook" ascii
$s2 = "GetPrivateProfileString" ascii
$s3 = "get_OSFullName" ascii
$s4 = "get_PasswordHash" ascii
$s5 = "remove_Key" ascii
$s6 = "FtpWebRequest" ascii
$s7 = "logins" fullword wide
$s8 = "keylog" fullword wide
$s9 = "1.85 (Hash, version 2, native byte-order)" wide
$cl1 = "Postbox" fullword ascii
$cl2 = "BlackHawk" fullword ascii
$cl3 = "WaterFox" fullword ascii
$cl4 = "CyberFox" fullword ascii
$cl5 = "IceDragon" fullword ascii
$cl6 = "Thunderbird" fullword ascii
condition:
(uint16(0) == 0x5a4d and 6 of ($s*)) or (6 of ($s*) and 2 of ($cl*))
}
rule MALWARE_Win_AveMaria {
meta:
author = "ditekSHen"
description = "AveMaria variant payload"
strings:
$s1_1 = "PK11_CheckUserPassword" fullword ascii
$s1_2 = "PK11_Authenticate" fullword ascii
$s1_3 = "PK11SDR_Decrypt" fullword ascii
$s1_4 = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList" fullword ascii
$s1_5 = "AVE_MARIA" ascii wide
$s1_6 = "127.0.0." ascii
$s2_1 = "RDPClip" fullword wide
$s2_2 = "Grabber" fullword wide
$s2_3 = "Ave_Maria Stealer OpenSource" wide
$s2_4 = "\\MidgetPorn\\workspace\\MsgBox.exe" wide
$s2_5 = "@\\cmd.exe" wide
$s2_6 = "/n:%temp%\\ellocnak.xml" wide
$s2_7 = "Hey I'm Admin" wide
$s2_8 = "warzone160" fullword ascii
$d1 = "softokn3.dll" fullword wide
$d2 = "nss3.dll" fullword wide
$d3 = "logins.json" wide
$d4 = "Asend.db" fullword wide
condition:
(uint16(0) == 0x5a4d and (4 of ($s2*) and 2 of ($d*)) or (all of ($s1*))) or ((4 of ($s1*) and 2 of ($d*)) or (all of ($s1*)))
}
rule MALWARE_Win_ISRStealer {
meta:
author = "ditekSHen"
description = "ISRStealer payload"
clamav_sig = "MALWARE.Win.Trojan.ISRStealer"
strings:
$s1 = "&password=" wide
$s2 = "&pcname=" wide
$s3 = "MSVBVM60.DLL" ascii
$s4 = "MSVBVM60.DLL" wide
$s5 = "Core Software For : Public" wide
$s6 = "</Host>" wide
$s7 = "</Pass>" wide
$s8 = "/scomma" wide
condition:
(uint16(0) == 0x5a4d and filesize < 4000KB and 6 of them) or all of them
}
rule MALWARE_Win_QuasarRAT {
meta:
author = "ditekSHen"
description = "QuasarRAT payload"
strings:
$s1 = "GetKeyloggerLogsResponse" fullword ascii
$s2 = "GetKeyloggerLogs" fullword ascii
$s3 = "/>Log created on" wide
$s4 = "User: {0}{3}Pass: {1}{3}Host: {2}" wide
$s5 = "Domain: {1}{0}Cookie Name: {2}{0}Value: {3}{0}Path: {4}{0}Expired: {5}{0}HttpOnly: {6}{0}Secure: {7}" wide
$s6 = "grabber_" wide
$s7 = "<virtualKeyCode>" ascii
$s8 = "<RunHidden>k__BackingField" fullword ascii
$s9 = "<keyboardHookStruct>" ascii
$s10 = "add_OnHotKeysDown" ascii
$mutex = "QSR_MUTEX_" ascii wide
$ua1 = "Mozilla/5.0 (Windows NT 6.3; rv:48.0) Gecko/20100101 Firefox/48.0" fullword wide
$us2 = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A" fullword wide
condition:
uint16(0) == 0x5a4d and ($mutex or (all of ($ua*) and 2 of them) or 6 of ($s*))
}
rule MALWARE_Win_LimeRAT {
meta:
author = "ditekSHen"
description = "LimeRAT payload"
strings:
$s1 = "schtasks /create /f /sc ONLOGON /RL HIGHEST /tn LimeRAT-Admin /tr" wide
$s2 = "\\vboxhook.dll" fullword wide
$s3 = "Win32_Processor.deviceid=\"CPU0\"" fullword wide
$s4 = "select CommandLine from Win32_Process where Name='{0}'" wide
$s5 = "Minning..." fullword wide
$s6 = "Regasm.exe" fullword wide
$s7 = "Flood!" fullword wide
$s8 = "Rans-Status" fullword wide
$s9 = "cmd.exe /c ping 0" wide
condition:
uint16(0) == 0x5a4d and 5 of them
}
rule MALWARE_Win_GuLoader {
meta:
author = "ditekSHen"
description = "Shellcode injector and downloader"
strings:
$s1 = "wininet.dll" fullword ascii
$s2 = "ShellExecuteW" fullword ascii
$s3 = "Software\\Microsoft\\Windows\\CurrentVersion\\Run" fullword ascii
$s4 = "Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce" fullword ascii
$s5 = "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" fullword ascii
$s6 = "Startup key" fullword ascii
$s7 = "\\qemu-ga\\qga.state" ascii nocase
$s8 = "\\qga\\qga.exe" ascii nocase
$s9 = "\\Qemu-ga\\qemu-ga.exe" ascii nocase
$s10 = "WScript.Shell" ascii
$l1 = "shell32" fullword ascii
$l2 = "kernel32" fullword ascii
$l3 = "advapi32" fullword ascii
$l4 = "user32" fullword ascii
$o1 = "msvbvm60.dll" fullword wide
$o2 = "\\syswow64\\" fullword wide
$o3 = "\\system32\\" fullword wide
$o4 = "\\Microsoft.NET\\Framework\\" fullword wide
$o5 = "USERPROFILE=" fullword wide
$o6 = "windir=" fullword wide
$o7 = "APPDATA=" fullword wide
$o8 = "RegAsm.exe" fullword wide
$o9 = "ProgramFiles=" fullword wide
$o10 = "TEMP=" fullword wide
$url1 = "https://drive.google.com/uc?export=download&id=" ascii
$url2 = "https://onedrive.live.com/download?cid=" ascii
$url3 = "http://myurl/myfile.bin" fullword ascii
$url4 = "http" ascii // fallback
condition:
(3 of ($s*) and 2 of ($l*) and 2 of ($o*) and 1 of ($url*)) or (4 of ($s*) and 3 of ($l*) and 2 of ($o*))
}
rule MALWARE_Win_Arkei {
meta:
author = "ditekSHen"
description = "Detect Arkei infostealer variants"
strings:
$s1 = "C:\\Windows\\System32\\cmd.exe" fullword ascii wide
$s2 = "/c taskkill /im " fullword ascii
$s3 = "card_number_encrypted FROM credit_cards" ascii
$s4 = "\\wallet.dat" ascii
$s5 = "Arkei/" wide
$s6 = "files\\passwords." ascii wide
$s7 = "files\\cc_" ascii wide
$s8 = "files\\autofill_" ascii wide
$s9 = "files\\cookies_" ascii wide
condition:
uint16(0) == 0x5a4d and all of them
}
rule MALWARE_Win_DCRat {
meta:
author = "ditekSHen"
description = "DCRat payload"
strings:
// DCRat
$dc1 = "DCRatBuild" ascii
$dc2 = "DCStlr" ascii
$x1 = "px\"><center>DCRat Keylogger" wide
$x2 = "DCRat-Log#" wide
$x3 = "DCRat.Code" wide
$string1 = "CaptureBrowsers" fullword ascii
$string2 = "DecryptBrowsers" fullword ascii
$string3 = "Browsers.IE10" ascii
$string4 = "Browsers.Chromium" ascii
$string5 = "WshShell" ascii
$string6 = "SysMngmts" fullword ascii
$string7 = "LoggerData" fullword ascii
// DCRat Plugins/Libraries
$plugin = "DCRatPlugin" fullword ascii
// AntiVM
$av1 = "AntiVM" ascii wide
$av2 = "vmware" fullword wide
$av3 = "VirtualBox" fullword wide
$av4 = "microsoft corporation" fullword wide
$av5 = "VIRTUAL" fullword wide
$av6 = "DetectVirtualMachine" fullword ascii
$av7 = "Select * from Win32_ComputerSystem" fullword wide
// Plugin_AutoStealer, Plugin_AutoKeylogger
$pl1 = "dcratAPI" fullword ascii
$pl2 = "dsockapi" fullword ascii
$pl3 = "file_get_contents" fullword ascii
$pl4 = "classthis" fullword ascii
$pl5 = "typemdt" fullword ascii
$pl6 = "Plugin_AutoStealer" ascii wide
$pl7 = "Plugin_AutoKeylogger" ascii wide
// variant
$v1 = "Plugin couldn't process this action!" wide
$v2 = "Unknown command!" wide
$v3 = "PLUGINCONFIGS" wide
$v4 = "Saving log..." wide
$v5 = "~Work.log" wide
$v6 = "MicrophoneNum" fullword wide
$v7 = "WebcamNum" fullword wide
$v8 = "%SystemDrive% - Slow" wide
$v9 = "%UsersFolder% - Fast" wide
$v10 = "%AppData% - Very Fast" wide
$v11 = /<span style=\"color: #F85C50;\">\[(Up|Down|Enter|ESC|CTRL|Shift|Win|Tab|CAPSLOCK: (ON|OFF))\]<\/span>/ wide
$px1 = "[Browsers] Scanned elements: " wide
$px2 = "[Browsers] Grabbing cookies" wide
$px3 = "[Browsers] Grabbing passwords" wide
$px4 = "[Browsers] Grabbing forms" wide
$px5 = "[Browsers] Grabbing CC" wide
$px6 = "[Browsers] Grabbing history" wide
$px7 = "[StealerPlugin] Invoke: " wide
$px8 = "[Other] Grabbing steam" wide
$px9 = "[Other] Grabbing telegram" wide
$px10 = "[Other] Grabbing discord tokens" wide
$px11 = "[Other] Grabbing filezilla" wide
$px12 = "[Other] Screenshots:" wide
$px13 = "[Other] Clipboard" wide
$px14 = "[Other] Saving system information" wide
condition:
uint16(0) == 0x5a4d and (all of ($dc*) or all of ($string*) or 2 of ($x*) or 6 of ($v*) or 5 of ($px*)) or ($plugin and (4 of ($av*) or 5 of ($pl*)))
}
rule MALWARE_Win_ObliqueRAT {
meta:
author = "ditekSHen"
description = "ObliqueRAT payload"
strings:
$s1 = "C:\\ProgramData\\auto.txt" fullword ascii
$s2 = "C:\\ProgramData\\System\\Dump\\" fullword ascii
$s3 = "C:\\ProgramData\\a.txt" fullword ascii
$s4 = "Oblique" fullword ascii
$s5 = /(Removable|Hard|Network|CD|RAM)\sDisk\|/ ascii
$s6 = "backed" fullword ascii
$s7 = "restart" fullword ascii
$s8 = "kill" fullword ascii
$s9 = /(John|JOHN|Test|TEST|Johsnson|Artifact|Vince|Serena|Lisa|JOHNSON|VINCE|SERENA)/ ascii nocase
$v1 = "C:\\ProgramData" fullword ascii
$v2 = "auto" fullword ascii
$v3 = "plit" fullword ascii
$v4 = ":image/jpeg" fullword wide
condition:
uint16(0) == 0x5a4d and 8 of them
}
rule MALWARE_Win_FirebirdRAT {
meta:
author = "ditekSHen"
description = "Firebird/Hive RAT payload"
clamav_sig = "MALWARE.Win.Trojan.Firebird-HiveRAT"
strings:
$id1 = "Firebird Remote Administration Tool" fullword wide
$id2 = "Welcome to Firebird! Your system is currently being monitored" wide
$id3 = "Hive Remote Administration Tool" fullword wide
$id4 = "Welcome to Hive! Your system is currently being monitored" wide
$s1 = "REPLACETHESEKEYSTROKES" fullword wide
$s2 = "_ENABLE_PROFILING" fullword wide
$s3 = ": KeylogSubject" wide
$s4 = "Firebird.CommandHandler" fullword wide
$s5 = "webcamenabled" fullword ascii
$s6 = "screenlogs" fullword ascii
$s7 = "encryptedconnection" fullword ascii
$s8 = "monitoron" fullword ascii
$s9 = "screenGrab" fullword ascii
$s10 = "TCP_TABLE_OWNER_PID_ALL" fullword ascii
$s11 = "de4fuckyou" fullword ascii
condition:
uint16(0) == 0x5a4d and (1 of ($id*) or 7 of ($s*))
}
rule MALWARE_Win_Phoenix {
meta:
author = "ditekSHen"
description = "Phoenix/404KeyLogger keylogger payload"
clamav_sig = "MALWARE.Win.Trojan.Phoenix-Keylogger"
strings:
$s1 = "FirefoxPassReader" fullword ascii
$s2 = "StartKeylogger" fullword ascii
$s3 = "CRYPTPROTECT_" ascii
$s4 = "Chrome_Killer" fullword ascii
$s5 = "Clipboardlog.txt" fullword wide
$s6 = "Leyboardlogs.txt" fullword wide
$s7 = "Persistence'" wide
$s8 = "set_HKB" fullword ascii
$s9 = "loloa" fullword ascii
$s10 = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR1.0.3705;)" fullword wide
// Memory
$m1 = "- Screenshot -------|" ascii wide
$m2 = "- Clipboard -------|" ascii wide
$m3 = "- Logs -------|" ascii wide
$m4 = "- Passwords -------|" ascii wide
$m5 = "PSWD" ascii wide
$m6 = "Screenshot |" ascii wide
$m7 = "Logs |" ascii wide
condition:
(uint16(0) == 0x5a4d and 6 of ($s*) or 3 of ($m*)) or 9 of them
}
rule MALWARE_Win_BackNet {
meta:
author = "ditekSHen"
description = "BackNet payload"
clamav_sig = "MALWARE.Win.Trojan.BackNet"
strings:
$s1 = "Slave.Commands." fullword ascii
$s2 = "StartKeylogger" fullword ascii
$s3 = "StopKeylogger" fullword ascii
$s4 = "KeyLoggerCommand" fullword ascii
$s5 = "get_keyLoggerManager" fullword ascii
$s6 = "get_IgnoreMutex" fullword ascii
$s7 = "ListProcesses" fullword ascii
$s8 = "downloadurl" fullword wide
$pdb = "\\BackNet-master\\Slave\\obj\\Release\\Slave.pdb" ascii
condition:
uint16(0) == 0x5a4d and ($pdb or all of ($s*))
}
rule MALWARE_Win_AcridRain {
meta:
author = "ditekSHen"
description = "AcidRain stealer payload"
strings:
$s1 = { 43 6f 6f 6b 69 65 73 (5c|2e) }
$s2 = { 74 65 6d 70 6c 6f 67 69 ?? }
$s3 = { 74 65 6d 70 50 ?? 68 }
$s4 = "Connecting to hostname: %s%s%s" fullword ascii
$s5 = "Found bundle for host %s: %p [%s]" fullword ascii
$s6 = "encryptedUsernamencryptedPassworERROR Don't copy string" fullword ascii
condition:
uint16(0) == 0x5a4d and all of them
}
rule MALWARE_Linux_ChaChaDDoS {
meta:
author = "ditekSHen"
description = "ChaChaDDoS variant of XorDDoS payload"
strings:
$x1 = "[kworker/1:1]" ascii
$x2 = "-- LuaSocket toolkit." ascii
$x3 = "/etc/resolv.conf" ascii
$x4 = "\"macaddress=\" .. DEVICE_MAC .. \"&device=\" .." ascii
$x5 = "easy_attack_dns" ascii
$x6 = "easy_attack_udp" ascii
$x7 = "easy_attack_syn" ascii
$x8 = "syn_probe" ascii
condition:
uint16(0) == 0x457f and 6 of them
}
rule MALWARE_Multi_Exaramel {
meta:
author = "ditekSHen"
description = "Exaramel Windows/Linux backdoor payload"
clamav_sig1 = "MALWARE_Linux.Backdoor.Exaramel"
clamav_sig2 = "MALWARE_Win.Backdoor.Exaramel"
strings:
// Linux payload
$s1 = "vendor/golang_org/x/crypto/" ascii
$s2 = "vendor/golang_org/x/net/http2" ascii
$s3 = "vendor/golang_org/x/text/unicode" ascii
$s4 = "vendor/golang_org/x/text/transform" ascii
$s5 = "config.json" ascii
$cmd1 = "App.Update" ascii
$cmd2 = "App.Delete" ascii
$cmd3 = "App.SetProxy" ascii
$cmd4 = "App.SetServer" ascii
$cmd5 = "App.SetTimeout" ascii
$cmd6 = "IO.WriteFile" ascii
$cmd7 = "IO.ReadFile" ascii
$cmd8 = "OS.ShellExecute" ascii
$cmd9 = "awk 'match($0, /(upstart|systemd|sysvinit)/){ print substr($0, RSTART, RLENGTH);exit;" ascii
// Windows payload
$ws1 = "/commands/@slp" wide
$ws2 = "/commands/cmd" wide
$ws3 = "/settings/proxy/@password" wide
$ws4 = "/settings/servers/server[@current='true']" wide
$ws5 = "/settings/servers/server/@current[text()='true']" wide
$ws6 = "/settings/servers/server[text()='%s']/@current" wide
$ws7 = "/settings/servers/server[%d]" wide
$ws8 = "/settings/storage" wide
$ws9 = "/settings/check" wide
$ws10 = "/settings/interval" wide
$ws11 = "report.txt" wide
$ws12 = "stg%02d.cab" ascii
$ws13 = "urlmon.dll" ascii
$ws14 = "ReportDir" ascii
condition:
(uint16(0) == 0x457f and (all of ($s*) and 6 of ($cmd*))) or (uint16(0) == 0x5a4d and 12 of ($ws*))
}
rule MALWARE_Linux_HiddenWasp {
meta:
author = "ditekSHen"
description = "HiddenWasp backdoor payload"
clamav_sig1 = "MALWARE_Linux.Trojan.HiddenWasp-ELF"
clamav_sig2 = "MALWARE_Linux.Trojan.HiddenWasp-Script"
strings:
$x1 = "I_AM_HIDDEN" fullword ascii
$x2 = "HIDE_THIS_SHELL" fullword ascii
$x3 = "NewUploadFile" ascii
$x4 = "fake_processname" ascii
$x5 = "swapPayload" ascii
$x6 = /Trojan-(Platform|Machine|Hostname|OSersion)/ fullword ascii
$s1 = "FileOpration::GetFileData" fullword ascii
$s2 = "FileOpration::NewUploadFile" fullword ascii
$s3 = "Connection::writeBlock" fullword ascii
$s4 = /hiding_(hidefile|enable_logging|hideproc|makeroot)/ fullword ascii
$s5 = "Reverse-Port" fullword ascii
$s6 = "hidden_services" fullword ascii
$s7 = "check_config" fullword ascii
$s8 = "__data_start" fullword ascii
$s9 = /patch_(suger_lib|ld|lib)/ fullword ascii
$s10 = "hexdump -ve '1/1 \"%%.2X\"' %s | sed \"s/%s/%s/g\" | xxd -r -p > %s.tmp"
condition:
uint16(0) == 0x457f and (4 of ($x*) or all of ($s*) or (3 of ($x*) and 5 of ($s*)))
}
rule MALWARE_Multi_WellMess {
meta:
author = "ditekSHen"
description = "WellMess Windows/Linux backdoor payload"
clamav_sig1 = "MALWARE_Win.Trojan.WellMess_DotNet"
clamav_sig2 = "MALWARE_Win.Trojan.WellMess_Golang"
clamav_sig3 = "MALWARE_Linux.Trojan.WellMess_Golang"
strings:
// Linux and Windows payload
$s1 = "-----BEGIN PUBLIC KEY-----" ascii
$s2 = "-----END PUBLIC KEY-----" ascii
$s3 = "net/http.(*persistConn).readResponse" ascii
$s4 = "net/http/cookiejar.(*Jar).SetCookies" ascii
$s5 = "_/home/ubuntu/GoProject/src/bot/botlib" ascii
$s6 = "<;head;><;title;>" ascii
$s7 = "<;title;><;service;>" ascii
$s8 = "http://invalidlookup" ascii
$s9 = "<autogenerated>" ascii wide
//$ua1 = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" ascii
//$ua2 = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20130401 Firefox/31.0" ascii
condition:
(uint16(0) == 0x457f or uint16(0) == 0x5a4d) and all of them
}
rule MALWARE_Win_Konni {
meta:
author = "ditekSHen"
description = "Konni payload"
strings:
$s1 = "uplog.tmp" fullword wide
$s2 = "upfile.tmp" fullword wide
$s3 = "%s-log-%s" fullword ascii wide
$s4 = "%s-down" ascii wide
$s5 = "%s-file-%s" fullword ascii wide
$s6 = "\"rundll32.exe\" \"%s\" install" fullword wide
$s7 = "subject=%s&data=" fullword ascii
$s8 = "dll-x64.dll" fullword ascii
$s9 = "dll-x32.dll" fullword ascii
$pdb1 = "\\virus-dropper\\Release\\virus-dropper.pdb" ascii
$pdb2 = "\\virus-init\\Release\\virus-init.pdb" ascii
condition:
uint16(0) == 0x5a4d and (7 of ($s*) or (3 of ($s*) and 1 of ($pdb*)))
}
rule MALWARE_Win_BitterRAT {
meta:
author = "ditekSHen"
description = "BitterRAT payload"
clamav_sig = "MALWARE.Win.Trojan.BitterRAT"
strings:
$s1 = "getfile" fullword wide
$s2 = "getfolder" fullword wide
$s3 = "winmgmts://./root/default:StdRegProv" fullword wide
$s4 = "winlog" fullword wide
$s5 = "winprt" fullword wide
$s6 = "c:\\intel\\" fullword ascii
$s7 = "AXE: #" fullword ascii
$s8 = "Bld: %s.%s.%s" fullword ascii
$s9 = "53656C656374202A2066726F6D2057696E33325F436F6D707574657253797374656D" wide nocase
$pdb1 = "\\28NovDwn\\Release\\28NovDwn.pdb" ascii
$pdb2 = "\\Shellcode\\Release\\Shellcode.pdb" ascii
condition:
uint16(0) == 0x5a4d and (7 of ($*) or (4 of ($s*) and 1 of ($pdb*)))
}
rule MALWARE_Win_TJKeylogger {
meta:
author = "ditekSHen"
description = "TJKeylogger payload"
strings:
$s1 = "TJKeyLogger" fullword ascii
$s2 = "software\\microsoft\\windows\\currentversion\\run" fullword ascii
$s3 = "\\Passwords.txt" ascii
$s4 = "TJKeyLogItem" fullword ascii
$s5 = "TJKeyAsyncLog" fullword ascii
$s6 = "FM_GETDSKLST" fullword ascii
$s7 = "KL_GETMODE" fullword ascii
condition:
uint16(0) == 0x5a4d and 5 of them
}
rule MALWARE_Win_W1RAT {
meta:
author = "ditekSHen"
description = "W1 RAT payload"
strings:
$s1 = "/c /Ox /Fa\"%s/%s.asm\" /Fo\"%s/%s.obj\" \"%s/%s.%s\"" ascii
$s2 = "this->piProcInfo.hProcess" fullword ascii
$s3 = "index >= 0 && index < this->reg_tab->GetLen()" fullword ascii
$s4 = "strcpy(log_font.lfFaceName,\"%s\");" fullword ascii
$s5 = "WorkShop -- [%s]" fullword ascii
$s6 = "HeaderFile.cpp" fullword ascii
$s7 = "WndLog.cpp" fullword ascii
$s8 = "assertion fail \"%s\" at file=%s line=%d" fullword ascii
$s9 = "Stdin pipe creation failed" fullword ascii
condition:
(uint16(0) == 0x5a4d and 6 of ($s*)) or (all of them)
}
rule MALWARE_Win_Raccoon {
meta:
author = "ditekSHen"
description = "Raccoon stealer payload"
strings:
$s1 = "inetcomm server passwords" fullword wide
$s2 = "content-disposition: form-data; name=\"file\"; filename=\"data.zip\"" fullword ascii
$s3 = ".?AVfilesystem_error@v1@filesystem@experimental@std@@" fullword ascii
$s4 = "CredEnumerateW" fullword ascii
$s5 = "%[^:]://%[^/]%[^" fullword ascii
$s6 = "%99[^:]://%99[^/]%99[^" fullword ascii
$s7 = "Login Data" wide
$s8 = "m_it.object_iterator != m_object->m_value.object->end()" fullword wide
$x1 = "endptr == token_buffer.data() + token_buffer.size()" fullword wide
$x2 = "\\json.hpp" wide
$x3 = "Microsoft_WinInet_" fullword wide
$x4 = "Microsoft_WinInet_*" fullword wide
condition:
uint16(0) == 0x5a4d and ((3 of ($x*) and 2 of ($s*)) or (4 of ($s*) and 1 of ($x*)))
}
rule MALWARE_Win_Amadey {
meta:
author = "ditekSHen"
description = "Amadey downloader payload"
strings:
$s1 = "_ZZ14aGetProgramDirvE11UsersDirRes" fullword ascii
$s2 = "_libshell32_a" ascii
$s3 = "_ShellExecuteExA@4" ascii
$s4 = "aGetTempDirvE10TempDirRes" ascii
$s5 = "aGetHostNamevE7InfoBuf" ascii
$s6 = "aCreateProcessPc" ascii
$s7 = "aGetHostNamev" ascii
$s8 = "aGetSelfDestinationiE22aGetSelfDestinationRes" ascii
$s9 = "aGetSelfPathvE15aGetSelfPathRes" ascii
$s10 = "aResolveHostPcE15aResolveHostRes" ascii
$s11 = "aUrlMonDownloadPcS" ascii
$s12 = "aWinSockPostPcS_S_" ascii
$s13 = "aCreateProcessPc" ascii
$v1 = "hii^" fullword ascii
$v2 = "plugins/" fullword ascii
$v3 = "ProgramData\\" fullword ascii
$v4 = "&unit=" fullword ascii
$v5 = "runas" fullword ascii wide
$v6 = "Microsoft Internet Explorer" fullword wide
$v7 = "stoi argument" ascii
$av1 = "AVAST Software" fullword ascii
$av2 = "Avira" fullword ascii
$av3 = "Kaspersky Lab" fullword ascii
$av4 = "ESET" fullword ascii
$av5 = "Panda Security" fullword ascii
$av6 = "Doctor Web" fullword ascii
$av7 = "360TotalSecurity" fullword ascii
$av8 = "Bitdefender" fullword ascii
$av9 = "Norton" fullword ascii
$av10 = "Sophos" fullword ascii
$av11 = "Comodo" fullword ascii
condition:
uint16(0) == 0x5a4d and (7 of ($s*) or (6 of ($v*) and 2 of ($av*)))
}
rule MALWARE_Win_Tefosteal {
meta:
author = "ditekSHen"
description = "Tefosteal payload"
clamav_sig = "MALWARE.Win.Trojan.Tefosteal"
strings:
$s1 = "netsh wlan show networks mode=bssid" nocase fullword wide
$s2 = "LoginCredentialService.GetLoginCredentials$" ascii
$s3 = "DefaultLoginCredentials.LoginEventUsrPw$" ascii
$s4 = "SEC_E_NO_KERB_KEY" wide
$s5 = "TList<System.Zip.TZipHeader>." ascii
$s6 = "_Password.txt" fullword wide nocase
$s7 = "_Cookies.txt" fullword wide nocase
$f1 = "\\InfoPC\\BSSID.txt" wide
$f2 = "\\Files\\Telegram\\" wide
$f3 = "\\InfoPC\\Screenshot.png" wide
$f4 = "\\InfoPC\\Systeminfo.txt" wide
$f5 = "\\Steam\\config" wide
$f6 = "\\delete.vbs" wide
condition:
uint16(0) == 0x5a4d and 4 of ($s*) and 2 of ($f*)
}
rule MALWARE_Win_CryptoStealerGo {
meta:
author = "ditekSHen"
description = "CryptoStealerGo payload"
strings:
$s1 = "Go build ID: \"" ascii
$s2 = "file_upload.go" ascii
$s3 = "grequests.FileUpload" ascii
$s4 = "runtime.newproc" ascii
$s5 = "credit_cards" ascii
$s6 = "zip.(*fileWriter).Write" ascii
$s7 = "autofill_" ascii
$s8 = "XFxVc2VyIERhdGFcXA==" ascii
$s9 = "XFxBcHBEYXRhXFxMb2NhbFxc" ascii
condition:
uint16(0) == 0x5a4d and 8 of them
}
rule MALWARE_Win_M00nD3v {
meta:
author = "ditekSHen"
description = "M00nD3v keylogger payload"
strings:
$s1 = "M00nD3v Stub" ascii wide
$s2 = "M00nD3v{0}{1} Logs{0}{2} \\ {3}{0}{0}{4}" fullword wide
$s3 = "Anti-Keylogger Elite" wide
$s4 = "/C TASKKILL /F /IM" wide
$s5 = "echo.>{0}:Zone.Identifier" fullword wide
$s6 = "> Nul & Del \"{0}\" & start \"\" \"{1}.exe\"" wide
$s7 = "> Nul & start \"\" \"{1}.exe\"" wide
$s8 = "Stealer" fullword wide
$s9 = "{0}{0}++++++++++++{1} {2}++++++++++++{0}{0}" wide
$s10 = "{4}Application: {3}{4}URL: {0}{4}Username: {1}{4}Password: {2}{4}" wide
$s11 = "encrypted_key\":\"(?<Key>.+?)\"" wide
$s12 = "Botkiller" fullword ascii
$s13 = "AVKiller" fullword ascii
$s14 = "get_pnlPawns" fullword ascii
condition:
(uint16(0) == 0x5a4d and 6 of them) or (9 of them)
}
rule MALWARE_Win_VSSDestroy {
meta:
author = "ditekSHen"
description = "VSSDestroy/Matrix ransomware payload"
snort_sid = "920008-920009"
clamav_sig = "MALWARE.Win.Ransomware.VSSDestroy"
strings:
$o1 = "[SHARESSCAN]" wide
$o2 = "[LDRIVESSCAN]" wide
$o3 = "[LOGSAVED]" wide
$o4 = "[LPROGRESS]" wide
$o5 = "[FINISHSAVED]" wide
$o6 = "[ALL_LOCAL_KID]" wide
$o7 = "[DIRSCAN" wide
$o8 = "[GENKEY]" wide
$s1 = "\\cmd.exe" nocase wide
$s2 = "/C powershell \"" nocase wide
$s3 = "%COMPUTERNAME%" wide
$s4 = "%USERNAME%" wide
$s5 = "Error loading Socket interface (ws2_32.dll)!" wide
$s6 = "Old file list dump found. Want to load it? (y/n):" fullword wide
condition:
(uint16(0) == 0x5a4d and 4 of ($o*) and 3 of ($s*)) or (5 of ($o*) and 4 of ($s*))
}
rule MALWARE_Win_GoldenAxe {
meta:
author = "ditekSHen"
description = "GoldenAxe ransomware payload"
clamav_sig = "MALWARE.Win.Ransomware.GoldenAxe"
strings:
$s1 = "Go build ID: " ascii
$s2 = "taskkill.exe" ascii
$s3 = "cmd.exe" ascii
$s4 = "Speak.Speak" ascii
$s5 = "CLNTSRVRnull" ascii
$s6 = "-----END" ascii
$s7 = "-----BEGIN" ascii
$s8 = ".EncryptFile" ascii
$g1 = "GoldenAxe/Utils." ascii
$g2 = "GoldenAxe/Cryptography." ascii
$g3 = "GoldenAxe/Walker." ascii
$g4 = "C:/Users/alpha/go/src/GoldenAxe/" ascii
$g5 = "'Golden Axe ransomware'" ascii
condition:
uint16(0) == 0x5a4d and (all of ($s*) or (1 of ($g*) and 1 of ($s*)))
}
rule MALWARE_Win_Robbinhood {
meta:
author = "ditekSHen"
description = "Robbinhood ransomware payload"
clamav_sig = "MALWARE.Win.Ransomware.Robbinhood"
strings:
$go = "Go build ID:" ascii
$cmd1 = "cmd.exe /c" ascii
$cmd2 = "net use * /DELETE" nocase ascii
$cmd3 = "sc.exe stop" ascii
$cmd4 = "vssadmin resize shadowstorage" nocase ascii
$s1 = /Skipping\s(file|dir)/ ascii
$s2 = "Encrypt[ERR] GET Size:" ascii
$s3 = ".taskkilltasklistunknown(" ascii
$s4 = ".sysvssadmin.exewevtutil.exe MB released" ascii
$s5 = ".sysvssadmin.exewevtutil.exewinlogin.exewinlogon.exe MB released" ascii
$s6 = ".enc_robbinhood" ascii
$s7 = "c:\\windows\\temp\\pub.key" nocase ascii
$s8 = "main.CoolMaker" ascii
$s9 = "/valery/go/src/oldboy/" ascii
condition:
uint16(0) == 0x5a4d and ($go and 1 of ($cmd*) and 3 of ($s*))
}
rule MALWARE_Win_GetCrypt {
meta:
author = "ditekSHen"
description = "GetCrypt ransomware payload"
clamav_sig1 = "MALWARE_Win.Ransomware.GetCrypt-1"
clamav_sig2 = "MALWARE_Win.Ransomware.GetCrypt-2"
strings:
$x1 = "delete shadows /all /quiet" wide
$x2 = "C:\\Windows\\System32\\svchost.exe" fullword wide
$x3 = "desk.bmp" fullword wide
$x4 = ":\\Boot" fullword wide
$x5 = "\\encrypted_key.bin" fullword wide
$x6 = "vssadmin.exe" fullword wide
$x7 = ":\\Recovery" fullword wide
$s1 = "CryptEncrypt" fullword ascii
$s2 = "NtWow64ReadVirtualMemory64" fullword ascii
$s3 = "MPR.dll" fullword ascii
$s4 = "%key%" fullword ascii
$s5 = "CryptDestroyKey" fullword ascii
$s6 = "ntdll.dll" fullword ascii
$s7 = "WNetCancelConnection2W" fullword ascii
$s8 = ".%c%c%c%c" fullword wide
// is slowing down scanning
//$s9 = /([Gg]uest|[Aa]dministrator|[Dd]eveloper|[Rr][0Oo]{2}t|[Aa]dmin)/ fullword ascii wide
$s10 = { 43 72 79 70 74 49 6d 70 6f 72 74 4b 65 79 00 00
cb 00 43 72 79 70 74 45 6e 63 72 79 70 74 00 00
c1 00 43 72 79 70 74 41 63 71 75 69 72 65 43 6f
6e 74 65 78 74 41 00 00 c8 00 43 72 79 70 74 44
65 73 74 72 6f 79 4b 65 79 00 d2 00 43 72 79 70
74 47 65 6e 52 61 6e 64 6f 6d 00 00 c2 00 43 72
79 70 74 41 63 71 75 69 72 65 43 6f 6e 74 65 78
74 57 00 00 41 44 56 41 50 49 33 32 2e 64 6c 6c
00 00 b5 01 53 68 65 6c 6c 45 78 65 63 75 74 65
45 78 57 00 53 48 45 4c 4c 33 32 2e 64 6c 6c 00 }
condition:
uint16(0) == 0x5a4d and (3 of ($x*) or 8 of ($s*))
}
rule MALWARE_JoeGo {
meta:
author = "ditekSHen"
description = "JoeGo ransomware payload"
clamav_sig = "MALWARE.Win.Ransomware.JoeGo"
strings:
$go = "Go build ID:" ascii
$s1 = "%SystemRoot%\\system32\\%v." ascii
$s2 = "REG ADD HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /V" ascii
$s3 = "/t REG_SZ /F /D %userprofile%\\" ascii
$s4 = "(sensitive) [recovered]" ascii
$s5 = "/dev/stderr/dev/stdout/index.html" ascii
$s6 = "%userprofile%\\SystemApps" ascii
$s7 = "p=<br>ACDTACSTAEDTAESTAKDTAKSTAWSTA" ascii
$cnc1 = "/detail.php" ascii
$cnc2 = "/checkin.php" ascii
$cnc3 = "/platebni_brana.php" ascii
$cnc4 = "://nebezpecnyweb.eu/" ascii
condition:
uint16(0) == 0x5a4d and $go and (all of ($s*) or (3 of ($s*) and 1 of ($cnc*)))
}
rule MALWARE_Win_Aurora {
meta:
author = "ditekSHen"
description = "Aurora ransomware payload"
strings:
$s1 = "Software\\Microsoft\\Windows\\CurrentVersion\\Run" fullword ascii wide
$s2 = "#DECRYPT_MY_FILES#.txt" fullword ascii
$s3 = "/gen.php?generate=" fullword ascii
$s4 = "geoplugin.net/php.gp" ascii
$s5 = "/end.php?id=" fullword ascii
$s6 = "wotreplay" fullword ascii
$s7 = "moneywell" fullword ascii
$s8 = "{btc}" fullword ascii
$s9 = ".?AV_Locimp@locale@std@@" ascii
$s10 = ".?AV?$codecvt@DDU_Mbstatet@@@std@@" ascii
$s11 = ".?AU_Crt_new_delete@std@@" ascii
$pdb1 = "\\z0ddak\\Desktop\\source\\Release\\Ransom.pdb" ascii
$pdb2 = "\\Desktop\\source\\Release\\Ransom.pdb" ascii
condition:
uint16(0) == 0x5a4d and ((1 of ($pdb*) and 5 of ($s*)) or (8 of them))
}
rule MALWARE_Win_Buran {
meta:
author = "ditekSHen"
description = "Buran ransomware payload"
clamav_sig = "MALWARE.Win.Ransomware.Buran"
strings:
// Variant 1
$v1_1 = "U?$error_info_injector@V" ascii
$v1_2 = "Browse for Folder (FTP)" fullword ascii
$v1_3 = "Find/Replace in Files" fullword ascii
$v1_4 = "PAHKLM" fullword ascii
$v1_5 = "PAHKCR" fullword ascii
$v1_6 = "chkOpt_" ascii
$h1 = "Search <a href=\"location\" class=\"menu\">in this folder</a>" ascii
$h2 = "<br>to find where the text below" ascii
$h3 = "</a> files with these extensions (separate with semi-colons)" ascii
$h4 = "Need help with <a href=\"" ascii
$path = "\\work\\cr\\nata\\libs\\boost_" wide
// Variant 2
$v2_1 = "(ShlObj" fullword ascii
$v2_2 = "\\StreamUnit" fullword ascii
$v2_3 = "TReadme" fullword ascii
$v2_4 = "TDrivesAndShares" fullword ascii
$v2_5 = "TCustomMemoryStreamD" fullword ascii
$v2_6 = "OpenProcessToken" fullword ascii
$v2_7 = "UrlMon" fullword ascii
$v2_8 = "HttpSendRequestA" fullword ascii
$v2_9 = "InternetConnectA" fullword ascii
$v2_10 = "FindFiles" fullword ascii
$v2_12 = "$*@@@*$@@@$" ascii
condition:
uint16(0) == 0x5a4d and (((all of ($v1*) and 1 of ($h*)) or ($path and 2 of ($v1*) and 1 of ($h*)) or 10 of them) or all of ($v2*))
}
rule MALWARE_Win_MassLogger {
meta:
author = "ditekSHen"
description = "MassLogger keylogger payload"
strings:
$s1 = "MassLogger v" ascii wide
$s2 = "MassLogger Started:" ascii wide
$s3 = "MassLogger Process:" ascii wide
$s4 = "/panel/upload.php" wide
$s5 = "ftp://" wide
$s6 = "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}" fullword wide
$s7 = "^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$" fullword wide
$s8 = "Bot Killer" ascii
$s9 = "Keylogger And Clipboard" ascii
$c1 = "costura.ionic.zip.reduced.dll.compressed" fullword ascii
$c2 = "CHECKvUNIQUEq" fullword ascii
$c3 = "HOOK/MEMORY6" fullword ascii
$c4 = "Massfile" ascii wide
$c5 = "Fz=[0-9]*'skips*" fullword ascii
$c6 = ":=65535zO" fullword ascii
$c7 = "!$!%!&!'!(!)!*!.!/!0!4!" fullword ascii
$c8 = "5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!" fullword ascii
$c9 = "dllToLoad" fullword ascii
$c10 = "set_CreateNoWindow" fullword ascii
$c11 = "FtpWebRequest" fullword ascii
$c12 = "encryptedUsername" fullword ascii
$c13 = "encryptedPassword" fullword ascii
condition:
(uint16(0) == 0x5a4d and 9 of ($c*)) or (5 of ($s*) or 9 of ($c*))
}
rule MALWARE_Win_Echelon {
meta:
author = "ditekSHen"
description = "Echelon information stealer payload"
strings:
$s1 = "<GetStealer>b__" ascii
$s2 = "clearMac" fullword ascii
$s3 = "path2save" fullword ascii
$s4 = "Echelon_Size" fullword ascii
$s5 = "Echelon Stealer by" wide
$s6 = "get__masterPassword" fullword ascii
$s7 = "DomainDetect" fullword ascii
$s8 = "[^\\u0020-\\u007F]" fullword wide
$s9 = "/sendDocument?chat_id=" wide
$s10 = "//setting[@name='Password']/value" wide
$s11 = "Passwords_Mozilla.txt" fullword wide
$s12 = "Passwords_Edge.txt" fullword wide
$s13 = "@madcod" ascii wide
$pdb = "\\Echelon-Stealer-master\\obj\\Release\\Echelon.pdb" ascii
condition:
(uint16(0) == 0x5a4d and (8 of ($s*) or $pdb)) or (8 of ($s*) or $pdb)
}
rule MALWARE_Win_Qulab {
meta:
author = "ditekSHen"
description = "Qulab information stealer payload or artifacts"
clamav_sig = "MALWARE.Win.Trojan.QulabZ-Stealer"
strings:
$x1 = "QULAB CLIPPER + STEALER" ascii wide
$x2 = "MASAD CLIPPER + STEALER" ascii wide
$x3 = "http://teleg.run/Qulab" ascii wide
$x4 = "http://teleg.run/jew_seller" ascii wide
$x5 = "BUY CLIPPER + STEALER" ascii wide
$s1 = "\\Screen.jpg" ascii wide
$s2 = "attrib +s +h \"" ascii wide
$s3 = "\\x86_microsoft-windows-" ascii wide
$s4 = "\\amd64_microsoft-windows-" ascii wide
$s5 = "Desktop TXT File" ascii wide
$s6 = "\\AutoFills.txt" ascii wide
$s7 = "\\CreditCards.txt" ascii wide
$s8 = "a -y -mx9 -ssw" ascii wide
$s9 = "\\Passwords.txt" ascii wide
$s10 = "\\Information.txt" ascii wide
$s11 = "\\getMe" ascii wide
condition:
9 of them or ((1 of ($x*) and 4 of ($s*)) or 1 of ($x*))
}
rule MALWARE_Win_Orion {
meta:
author = "ditekSHen"
description = "Orion Keylogger payload"
strings:
$s1 = "\\Ranger.BrowserLogging" ascii wide nocase
$s2 = "GrabAccounts" fullword ascii
$s3 = "DownloadFile" fullword ascii
$s4 = "Internet Explorer Recovery" wide
$s5 = "Outlook Recovery" wide
$s6 = "Thunderbird Recovery" wide
$s7 = "Keylogs -" wide
$s8 = "WebCam_Capture.dll" wide
$s9 = " is not installed on this computer!" wide
$s10 = "cmd /c bfsvc.exe \"" wide
$s11 = "/Keylogs - PC:" fullword wide
$s12 = "/PC:" fullword wide
$s13 = "<p style=\"color:#CC7A00\">[" wide