-
Notifications
You must be signed in to change notification settings - Fork 944
/
Copy pathcta-2019-0626-yara-rules.yar
executable file
·2063 lines (2003 loc) · 109 KB
/
cta-2019-0626-yara-rules.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 YARA_MAL_SpyNetRAT_1 {
meta:
description = "SpyNet RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "314544478a1404891bed63b443b50544490a1bf85bcf8ff4aa2306434ad0aa62"
strings:
$x1 = "linkinfo.dll" fullword wide
$x2 = "devrtl.dll" fullword wide
$x3 = "srvcli.dll" fullword wide
$x4 = "dfscli.dll" fullword wide
$x5 = "browcli.dll" fullword wide
$x6 = "Cannot create folder %sHChecksum error in the encrypted file %s. Corrupt file or wrong password." fullword wide
$s7 = "atl.dll" fullword wide
$s8 = "iphlpapi.DLL" fullword wide
$s9 = "Unknown encryption method in %s$The specified password is incorrect." fullword wide
$s10 = "UXTheme.dll" fullword wide
$s11 = "WINNSI.DLL" fullword wide
$s12 = "oleaccrc.dll" fullword wide
$s13 = "dnsapi.DLL" fullword wide
$s14 = "SSPICLI.DLL" fullword wide
$s15 = "f819b84b=\"Foram encontrados erros ao executar a opera" fullword ascii
$s16 = "Extracting files to %s folder$Extracting files to temporary folder" fullword wide
$s17 = "&Enter password for the encrypted file:" fullword wide
$s18 = "Security warningKPlease remove %s from folder %s. It is unsecure to run %s until it is done." fullword wide
$s19 = "; version dynamically, depending on presence of \"Setup\" command. Note that" fullword ascii
$s20 = "<!--The ID below indicates application support for Windows 10 -->" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 12000KB and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_SpyNetRAT_2 {
meta:
description = "SpyNet RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "405fcf7081546edbef69dbf11219611e754e144878b232e8794fc987b16db8c9"
strings:
$s1 = "'PASSWORDL" fullword ascii
$s2 = ".dll.C" fullword ascii
$s3 = "AppDataMo&2W" fullword ascii
$s4 = "\\Mozilla " fullword ascii
$s5 = "|x''''tplh''''d`\\X''''TPLH''''D@<8''''40,(''''$ " fullword ascii
$s6 = "X'IELOGIO" fullword ascii
$s7 = "\\open\\comm5" fullword ascii
$s8 = "* .ss1" fullword ascii
$s9 = "utostar" fullword ascii
$s10 = "alKeySlot/" fullword ascii
$s11 = "kstqrgdvef`abc\\]_" fullword ascii
$s12 = "Network\\Connec!\\pbdg" fullword ascii
$s13 = "[Ox_X_BLOCKMOUSE" fullword ascii
$s14 = "teToolh,p.Snapshot7H~" fullword ascii
$s15 = "olFmDir\"uHD*" fullword ascii
$s16 = "g4\"ListFir" fullword ascii
$s17 = "TWARE\\pplorr" fullword ascii
$s18 = "ortions C" fullword ascii
$s19 = "bieD$-G(h" fullword ascii
$s20 = "$_Mefault" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 2000KB and pe.imphash() == "cba5bd52b3e624400ffe41eb22644b79" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_SpyNetRAT_3 {
meta:
description = "SpyNet RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "f22b7e63ae73d09f26829a9b958eceb7ac7a8bfb7a439e58573597fe4bf0dda7"
strings:
$s1 = "UnitInjectProcess" fullword ascii
$s2 = "[Execute]" fullword wide
$s3 = "%NOINJECT%" fullword wide
$s4 = "UnitInjectServer" fullword ascii
$s5 = "%DEFAULTBROWSER%" fullword wide
$s6 = "[Numpad -]" fullword wide
$s7 = "OThreadUnit" fullword ascii
$s8 = "UnitConfigs" fullword ascii
$s9 = "TThreadh" fullword ascii
$s10 = " restart" fullword wide
$s11 = "[Previous Track]" fullword wide
$s12 = "UnitInstallServer" fullword ascii
$s13 = "[Play / Pause]" fullword wide
$s14 = "[Scrol Lock]" fullword wide
$s15 = "[Backspace]" fullword wide
$s16 = "[Arrow Down]" fullword wide
$s17 = "[Page Up]" fullword wide
$s18 = "[Numpad *]" fullword wide
$s19 = "[Page Down]" fullword wide
$s20 = "[Right Alt]" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_SpyNetRAT_4 {
meta:
description = "SpyNet RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "d6efc78e72e62764b570ede6590851a8c5b0653f64305cdda30fdeccd8b91713"
strings:
$s1 = "mozcrt19.dll" fullword ascii
$s2 = "Microsoft\\Network\\Connections\\pbk\\rasphone.pbk" fullword ascii
$s3 = "\\signons3.txt" fullword ascii
$s4 = "\\signons2.txt" fullword ascii
$s5 = "\\signons1.txt" fullword ascii
$s6 = "\\signons.txt" fullword ascii
$s7 = "IEpasswords" fullword ascii
$s8 = "UnitPasswords" fullword ascii
$s9 = "\\Mozilla\\Firefox\\" fullword ascii
$s10 = "L$_RasDefaultCredentials#0" fullword ascii
$s11 = "\\Mozilla Firefox\\" fullword ascii
$s12 = "Software\\Microsoft\\Internet Explorer\\IntelliForms\\Storage2" fullword ascii
$s13 = "profiles.ini" fullword ascii
$s14 = "uRASReader" fullword ascii
$s15 = "SOFTWARE\\Vitalwerks\\DUC" fullword ascii
$s16 = "uIE7_decodeU" fullword ascii
$s17 = "Pstoreclib" fullword ascii
$s18 = "gUnitServerUtils" fullword ascii
$s19 = "WindowsLive:name=*" fullword ascii
$s20 = "SPSTORECLib_TLB" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_SpyNetRAT_5 {
meta:
description = "SpyNet RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "bd762cf10cdfaa84a837d3cd315d2e458f58fbdaec0e15efbbf51ed463ba4f47"
strings:
$s1 = "7_FIREFOX'IELOGIN" fullword ascii
$s2 = "?.dll.C" fullword ascii
$s3 = "/'PASSWORDL" fullword ascii
$s4 = "* .ssf" fullword ascii
$s5 = "AppDataWS" fullword ascii
$s6 = "ortions Copyright (c) 19" fullword ascii
$s7 = "wptukstqrgdv" fullword ascii
$s8 = "Network\\Connec!" fullword ascii
$s9 = "\\opZ\\comm" fullword ascii
$s10 = "3 Avenger by NhT^j@" fullword ascii
$s11 = "oolh,p.Snapshot7H4" fullword ascii
$s12 = "Mozilln" fullword ascii
$s13 = "OFTWARE\\pplo" fullword ascii
$s14 = "'Active S" fullword ascii
$s15 = "ms\\SHag!/t`:/" fullword ascii
$s16 = "Ox_X_BLOCKMOUSE" fullword ascii
$s17 = "}\\PolDie." fullword ascii
$s18 = "SPSTORECL_TL^" fullword ascii
$s19 = "eySlot/\"h" fullword ascii
$s20 = "\"ListFir" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 800KB and pe.imphash() == "cba5bd52b3e624400ffe41eb22644b79" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_SpyNetRAT_6 {
meta:
description = "SpyNet RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "d6efc78e72e62764b570ede6590851a8c5b0653f64305cdda30fdeccd8b91713"
strings:
$s1 = "IELOGIN.abc" fullword ascii
$s2 = "\\Internet Explorer\\iexplore.exe" fullword ascii
$s3 = "0UnitInjectLibrary" fullword ascii
$s4 = "UnitInjectLibrary" fullword ascii
$s5 = "xxxyyyzzz.dat" fullword ascii
$s6 = "Portions Copyright (c) 1999,2003 Avenger by NhT" fullword ascii
$s7 = "(unnamed password)" fullword ascii
$s8 = "_x_X_PASSWORDLIST_X_x_" fullword ascii
$s9 = "IEPASS.abc" fullword ascii
$s10 = "RAS Passwords |" fullword ascii
$s11 = "TLoader" fullword ascii
$s12 = "\\\\.\\SyserDbgMsg" fullword ascii
$s13 = "\\\\.\\SyserBoot" fullword ascii
$s14 = "IEAUTO.abc" fullword ascii
$s15 = "FIREFOX.abc" fullword ascii
$s16 = "IEWEB.abc" fullword ascii
$s17 = "XX--XX--XX.txt" fullword ascii
$s18 = "\\\\.\\Syser" fullword ascii
$s19 = "RUnitVariaveis" fullword ascii
$s20 = "UnitComandos" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 2000KB and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_PlasmaRAT {
meta:
description = "SpyNet RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "a0e4f9649a63e8a2ced3351d74d53ed48a0b64b4c9d72e6a13166beb9fb62b9f"
strings:
$x1 = "C:\\Users\\Gaming\\Desktop\\Plasma RAT development\\Plasma RAT 1.6.1\\StubAdmin.bin.pdb" fullword ascii
$x2 = "System.Collections.Generic.IEnumerable<JLibrary.PortableExecutable.IMAGE_IMPORT_DESCRIPTOR>.GetEnumerator" fullword ascii
$x3 = "System.Collections.Generic.IEnumerable<JLibrary.PortableExecutable.IMAGE_SECTION_HEADER>.GetEnumerator" fullword ascii
$x4 = "System.Collections.Generic.IEnumerator<JLibrary.PortableExecutable.IMAGE_SECTION_HEADER>.Current" fullword ascii
$x5 = "System.Collections.Generic.IEnumerator<JLibrary.PortableExecutable.IMAGE_SECTION_HEADER>.get_Current" fullword ascii
$x6 = "System.Collections.Generic.IEnumerator<JLibrary.PortableExecutable.IMAGE_IMPORT_DESCRIPTOR>.get_Current" fullword ascii
$x7 = "C:\\windows\\system32\\drivers\\etc\\hosts" fullword wide
$x8 = "System.Collections.Generic.IEnumerator<JLibrary.PortableExecutable.IMAGE_IMPORT_DESCRIPTOR>.Current" fullword ascii
$x9 = "Image contains a CLR runtime header. Currently only native binaries are supported; no .NET dependent libraries." fullword wide
$x10 = "software\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\" fullword wide
$x11 = "software\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options" fullword wide
$x12 = "Target process has no targetable threads to hijack." fullword wide
$s13 = "Shell Command Executed." fullword wide
$s14 = "MpCmdRun.exe" fullword wide
$s15 = "avgidsagent.exe" fullword wide
$s16 = "spybotsd.exe" fullword wide
$s17 = "bdagent.exe" fullword wide
$s18 = "lSystem.Resources.ResourceReader, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089#System.Resources.R" ascii
$s19 = "Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\" fullword wide
$s20 = "StubAdmin.bin.exe" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 500KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 1 of ($x*) and all of them )
) or ( all of them )
}
rule YARA_MAL_QuasarRAT_1 {
meta:
description = "QuasarRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "01b3ca7ab9ef87ca591775a43f95bc9319e3f622d916e0d6bf1c057a3d66ff37"
strings:
$x1 = "System.Collections.Generic.IEnumerable<xClient.Core.MouseKeyHook.KeyPressEventArgsExt>.GetEnumerator" fullword ascii
$x2 = "System.Collections.Generic.IEnumerator<xClient.Core.MouseKeyHook.KeyPressEventArgsExt>.get_Current" fullword ascii
$s3 = "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />Log created on " fullword wide
$s4 = "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
$s5 = "Opera Software\\Opera Stable\\Login Data" fullword wide
$s6 = "get_encryptedPassword" fullword ascii
$s7 = "System.Collections.Generic.IEnumerator<xClient.Core.MouseKeyHook.KeyPressEventArgsExt>.Current" fullword ascii
$s8 = "Client.exe" fullword wide
$s9 = "Domain: {1}{0}Cookie Name: {2}{0}Value: {3}{0}Path: {4}{0}Expired: {5}{0}HttpOnly: {6}{0}Secure: {7}" fullword wide
$s10 = "\\mozglue.dll" fullword wide
$s11 = "\\msvcr120.dll" fullword wide
$s12 = "\\msvcp120.dll" fullword wide
$s13 = "\\msvcr100.dll" fullword wide
$s14 = "\\msvcp100.dll" fullword wide
$s15 = "get_Processname" fullword ascii
$s16 = "Yandex\\YandexBrowser\\User Data\\Default\\Login Data" fullword wide
$s17 = "Execution failed: {0}" fullword wide
$s18 = "Execution failed!" fullword wide
$s19 = "Passwords" fullword ascii
$s20 = "Google\\Chrome\\User Data\\Default\\Login Data" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_QuasarRAT_2 {
meta:
description = "QuasarRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "01b3ca7ab9ef87ca591775a43f95bc9319e3f622d916e0d6bf1c057a3d66ff37"
strings:
$s1 = "GetKeyloggerLogsResponse" fullword ascii
$s2 = "GetKeyloggerLogs" fullword ascii
$s3 = "DoDownloadAndExecute" fullword ascii
$s4 = "Client.exe" fullword ascii
$s5 = "GetProcessesResponse" fullword ascii
$s6 = "DoUploadAndExecute" fullword ascii
$s7 = "DoShellExecuteResponse" fullword ascii
$s8 = "DoShellExecute" fullword ascii
$s9 = "GetPasswordsResponse" fullword ascii
$s10 = "GetPasswords" fullword ascii
$s11 = "xClient.Core.Compression" fullword ascii
$s12 = "DoProcessKill" fullword ascii
$s13 = "DoProcessStart" fullword ascii
$s14 = "xClient.Core.ReverseProxy.Packets" fullword ascii
$s15 = "GetSystemInfoResponse" fullword ascii
$s16 = "xClient.Core.MouseKeyHook" fullword ascii
$s17 = "SetUserStatus" fullword ascii
$s18 = "xClient.Core.NetSerializer.TypeSerializers" fullword ascii
$s19 = "DoDownloadFileResponse" fullword ascii
$s20 = "xClient.Core.Packets.ServerPackets" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_QuasarRAT_3 {
meta:
description = "QuasarRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "01b3ca7ab9ef87ca591775a43f95bc9319e3f622d916e0d6bf1c057a3d66ff37"
strings:
$s1 = "System.Security.Permissions.SecurityPermissionAttribute, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934" ascii
$s2 = "GetDeleteRegistryKeyResponse" fullword ascii
$s3 = "GetCreateRegistryKeyResponse" fullword ascii
$s4 = "GetRenameRegistryKeyResponse" fullword ascii
$s5 = "GetConnectionsResponse" fullword ascii
$s6 = "GetRegistryKeysResponse" fullword ascii
$s7 = "GetChangeRegistryValueResponse" fullword ascii
$s8 = "GetRenameRegistryValueResponse" fullword ascii
$s9 = "GetDeleteRegistryValueResponse" fullword ascii
$s10 = "GetCreateRegistryValueResponse" fullword ascii
$s11 = "<asmv3:application xmlns:asmv3=\"urn:schemas-microsoft-com:asm.v3\" >" fullword ascii
$s12 = "DoAskElevate" fullword ascii
$s13 = "xClient.Core.Registry" fullword ascii
$s14 = "DoCreateRegistryKey" fullword ascii
$s15 = "DoCloseConnection" fullword ascii
$s16 = "DoLoadRegistryKey" fullword ascii
$s17 = "DoRenameRegistryKey" fullword ascii
$s18 = "DoDeleteRegistryKey" fullword ascii
$s19 = "AForge.Video.DirectShow" fullword ascii
$s20 = "GetWebcamResponse" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_888RAT_1 {
meta:
description = "888RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "81896145ad5bffd891dd47f3a53e530d4aa33e8317143422bd723bd7c1b306f7"
strings:
$x1 = "<assemblyIdentity type=\"win32\" name=\"Microsoft.Windows.Common-Controls\" version=\"6.0.0.0\" language=\"*\" processorArchitec" ascii
$s2 = "<assemblyIdentity type=\"win32\" name=\"Microsoft.Windows.Common-Controls\" version=\"6.0.0.0\" language=\"*\" processorArchitec" ascii
$s3 = "re=\"*\" publicKeyToken=\"6595b64144ccf1df\"></assemblyIdentity>" fullword ascii
$s4 = "CDEFGH" fullword ascii
$s5 = "Pkernel32" fullword ascii
$s6 = "23$--%\"!' " fullword ascii
$s7 = "AutoIt v3 Script: 3, 3, 8, 1" fullword wide
$s8 = "T-HSvhk -" fullword ascii
$s9 = "- -a8] " fullword ascii
$s10 = "logb'yn" fullword ascii
$s11 = "yp0.CYY&v" fullword ascii
$s12 = "ComplPe " fullword ascii
$s13 = "&TUVWXYZ[\\]^_`abcdefghijklmnop" fullword ascii
$s14 = "AIHRUN" fullword ascii
$s15 = "@DLld<" fullword ascii
$s16 = "bjectInform1Wf6La" fullword ascii
$s17 = ")CSQu#gA8, " fullword ascii
$s18 = "orExitPr\"ess" fullword ascii
$s19 = "- 9} 7}" fullword ascii
$s20 = "(>fmKIX~H(R" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and pe.imphash() == "890e522b31701e079a367b89393329e6" and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_ImminentMonitorRAT_1 {
meta:
description = "ImminentMonitor RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "f369007b85607114b8206a986f751d0dee301a398f857c43d23fb5f80643b304"
strings:
$s1 = "ExecutePacket" fullword ascii
$s2 = "dlExecute" fullword ascii
$s3 = "get_SupportsCommandConnect" fullword ascii
$s4 = "get_SupportsCommandAssociate" fullword ascii
$s5 = "set_SupportsCommandConnect" fullword ascii
$s6 = "set_SupportsCommandAssociate" fullword ascii
$s7 = "KeyLoggerPacket" fullword ascii
$s8 = "get_SupportsCommandBind" fullword ascii
$s9 = "set_SupportsCommandBind" fullword ascii
$s10 = "ResumeProcess" fullword ascii
$s11 = "get_INetHost" fullword ascii
$s12 = "get_SupportsIPv6Addresses" fullword ascii
$s13 = "Userprofile" fullword ascii
$s14 = "CommandPromptPacket" fullword ascii
$s15 = "ChangeEncryptionKey" fullword ascii
$s16 = "PasswordRecoveryPacket" fullword ascii
$s17 = "get_LabelUser" fullword ascii
$s18 = "get_ProxyClient" fullword ascii
$s19 = "CommandPrompt" fullword ascii
$s20 = "CommandSocket" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_ImminentMonitorRAT_2 {
meta:
description = "ImminentMonitor RAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "45b6e6623e109d21698bc3b13e5151b351fc6bdad7bf9c3881928e5904c5dac9"
strings:
$x1 = "BTRESULTDownload File|Mass Download : File Downloaded , Executing new one in temp dir...|" fullword wide
$x2 = "C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\vbc.exe" fullword wide
$s3 = "/C ping 1.1.1.1 -n 1 -w 100 > Nul & Del \"" fullword wide
$s4 = "/C ping 1.1.1.1 -n 1 -w 1000 > Nul & Del \"" fullword wide
$s5 = "Attempting to kill process" fullword wide
$s6 = "IPHLPAPI.dll" fullword ascii
$s7 = "ssutil3.dll" fullword wide
$s8 = "plds4.dll" fullword wide
$s9 = "\\Google\\Chrome\\User Data\\Default\\Login Data" fullword wide
$s10 = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36" fullword wide
$s11 = "winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\SecurityCenter2" fullword wide
$s12 = "winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\SecurityCenter" fullword wide
$s13 = "File downloaded & executed" fullword wide
$s14 = "\"encryptedPassword\":\".*\"," fullword wide
$s15 = "Failed to process." fullword wide
$s16 = "http://www.iptrackeronline.com/" fullword wide
$s17 = "client.log" fullword wide
$s18 = "\\BitTorrent\\bittorrent.exe" fullword wide
$s19 = "\\BitTorrent\\BitTorrent.exe" fullword wide
$s20 = "\\uTorrent\\uTorrent.exe" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 2000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_OrcusRAT_1 {
meta:
description = "OrcusRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "2d55a430dbd708eb0bae6d8bbd1ca8a207ad349b4552f7543a9f99a16d51b0a3"
strings:
$x1 = "Orcus.Commands.Passwords.Applications.JDownloader" fullword ascii
$x2 = "System.Collections.Generic.IEnumerable<Orcus.Shared.Commands.Password.RecoveredPassword>.GetEnumerator" fullword ascii
$x3 = "System.Collections.Generic.IEnumerator<Orcus.Shared.Commands.Password.RecoveredPassword>.Current" fullword ascii
$x4 = "System.Collections.Generic.IEnumerator<Orcus.Shared.Commands.Password.RecoveredPassword>.get_Current" fullword ascii
$x5 = "System.Collections.Generic.IEnumerable<Orcus.Commands.DeviceManager.HardwareHelper.TemporaryDeviceInfo>.GetEnumerator" fullword ascii
$x6 = "System.Collections.Generic.IEnumerator<Orcus.Commands.DeviceManager.HardwareHelper.TemporaryDeviceInfo>.get_Current" fullword ascii
$x7 = "System.Collections.Generic.IEnumerator<Orcus.Commands.DeviceManager.HardwareHelper.TemporaryDeviceInfo>.Current" fullword ascii
$x8 = "Orcus.Shared.Commands.LiveKeylogger" fullword ascii
$x9 = "Orcus.Shared.Commands.Keylogger" fullword ascii
$x10 = "Orcus.Shared.Commands.DropAndExecute" fullword ascii
$x11 = "System.Collections.Generic.IEnumerable<Orcus.Shared.Commands.UninstallPrograms.UninstallableProgram>.GetEnumerator" fullword ascii
$x12 = "System.Collections.Generic.IEnumerator<Orcus.Shared.Commands.UninstallPrograms.UninstallableProgram>.get_Current" fullword ascii
$x13 = "Orcus.Commands.DropAndExecute" fullword ascii
$x14 = "Orcus.Shared.DynamicCommands.ExecutionEvents" fullword ascii
$x15 = "ExecuteProcessCommand" fullword ascii
$x16 = "Orcus.StaticCommandManagement.ExecutionEvents" fullword ascii
$x17 = "Orcus.Commands.Passwords.Applications.Mozilla.Cryptography" fullword ascii
$x18 = "System.Collections.Generic.IEnumerable<Orcus.Shared.Commands.WindowManager.WindowInformation>.GetEnumerator" fullword ascii
$x19 = "System.Collections.Generic.IEnumerable<Orcus.Shared.Commands.AudioVolumeControl.AudioDevice>.GetEnumerator" fullword ascii
$x20 = "System.Collections.Generic.IEnumerator<Orcus.Shared.Commands.UninstallPrograms.UninstallableProgram>.Current" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 1 of ($x*) )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_1 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "05dffb58102f57c2e71ac42310af8d855957b81940dab2fc6b55319421ea5428"
strings:
$x1 = "N8yE2kimq3O6RJNZ37W1uN3DkVSmnBEA0IUC8zngwD/8l3nyj5tr2vyXefKPm2va/Jd58o+ba9pvE9AB6pZlSfzwtI8tzOYcbLuo4+nUZPGv9wxqvZYVNaQ/f8ArfQkg" ascii
$x2 = "hSystem.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" fullword ascii
$x3 = "C:\\Users\\ALAE\\Desktop\\Application\\Application\\obj\\x86\\Release\\Realtek-RTL8188CE.pdb" fullword ascii
$x4 = "C:\\Users\\ALAE\\Desktop\\Server\\obj\\Debug\\Server.pdb" fullword ascii
$s5 = "System.Windows.Forms.ImageListStreamer, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089P" ascii
$s6 = "System.Windows.Forms.ImageListStreamer, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089P" ascii
$s7 = "Server.exe" fullword wide
$s8 = "http://pastebin.com/raw/jXgspE63" fullword ascii
$s9 = "Realtek-RTL8188CJ.exe" fullword wide
$s10 = "Realtek-RTL8188CE.exe" fullword wide
$s11 = "antilogger" fullword wide
$s12 = "4/FXruDtCyJwRLh4znEXEcMutZiCdiGWlbGM1k/iU8cZ19+z4PMftGIRXoj/MjLnyVpvwpZQ/mRDHNf7YWfAqeoQq6GgX0eap/YLIs7S9ubbaenKpeV/ueYmvyygd3qV" ascii
$s13 = "KeyEncrypt" fullword wide
$s14 = "jjRDFvwbEFzUGet0cynDwIFtxOAvVdKNgEirNAX638UW456igU0SM0zLJ4hMDHKGV4g5A7uEWr8u5uBbIN5sYFJL+yBP6jM/8QWFlzkqJvvYTDlf0gwVpRbjnqKBTRIz" ascii
$s15 = "get_ForwardToolStripButton" fullword ascii
$s16 = "get_ContentsToolStripMenuItem" fullword ascii
$s17 = "Process Hacker" fullword wide
$s18 = "$Processus h" fullword ascii
$s19 = "Processus h" fullword wide
$s20 = "lKmapgPu6O1yQJhnA3o84yDCm5v4WDeuoJISOAPiZV3rE4D9uPkPgl9WKrHyfIchWbTePAQZ6L+GGtfoKrEW1XnTdaZqPrn45NTyr3gNxKbm7tymyipiPEf+dGf4IDEo" ascii
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_2 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "d1c1582e30b5d3ca1db4c337bfe5af6022a92b05ca0d9d1c102f2113223dd10e"
strings:
$s1 = "Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, Pub" ascii
$s2 = "Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyT" ascii
$s3 = "Persist Security Info=False;Initial Catalog=jiaowu;Data Source=localhost;Integrated Security=SSPI;" fullword wide
$s4 = "Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyT" ascii
$s5 = "jiaowupaike.exe" fullword wide
$s6 = "http://tempuri.org/jiaowuDataSet.xsd" fullword wide
$s7 = "form_login_KeyDown" fullword ascii
$s8 = "form_login_FormClosed" fullword ascii
$s9 = "Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, Pub" ascii
$s10 = "select EID,Lname,Tname,CID from EduTask,Lesson,Room,Teacher where EduTask.LID=Lesson.LID " fullword wide
$s11 = "select * from Users" fullword wide
$s12 = "form_login_FormClosing" fullword ascii
$s13 = "insert into Users(UID,pword,permission)values('" fullword wide
$s14 = "EduTask.LID=Lesson.LID and EduTask.TID=Teacher.TID" fullword wide
$s15 = "tmr_login_Tick" fullword ascii
$s16 = "btn_login_Click" fullword ascii
$s17 = "select Tname from Teacher,Institute where Teacher.IID=Institute.IID and Iname='" fullword wide
$s18 = "form_login_Load" fullword ascii
$s19 = "get_jiaowuConnectionString" fullword ascii
$s20 = "update Users set pword='" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 2000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_3 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "bd5fd2237ceaab10595a2e4b2976fe4199884aaa7c04a38323ce6d5006a9bb35"
strings:
$x1 = "Execute not supported: %s1Operation not allowed on a unidirectional dataset" fullword wide
$x2 = "Field '%s' has no dataset\"Circular datalinks are not allowed/Lookup information for field '%s' is incomplete" fullword wide
$s3 = "Remote Login/Top Legend Position must be between 0 and 100 %" fullword wide
$s4 = "Unable to Find Procedure %sDLL/Shared Library Name not Set.Driver/Connection Registry File '%s' not found(dbExpress Error: Unkn" wide
$s5 = "TSQLConnectionLoginEvent" fullword ascii
$s6 = "SQL Server Error: %s&Driver (%s) not found in Cfg file (%s)" fullword wide
$s7 = "OLE control activation failed*Could not obtain OLE control window handle" fullword wide
$s8 = "dbxconnections.ini" fullword ascii
$s9 = "+[0x0002]: Insufficient Memory for Operation" fullword wide
$s10 = "dbxdrivers.ini" fullword ascii
$s11 = "TPasswordDialog,UH" fullword ascii
$s12 = "ElevationT" fullword ascii
$s13 = " Invalid operation on TOleGraphic" fullword wide
$s14 = "TCommonDialog\\" fullword ascii
$s15 = "GetDriverFunc" fullword ascii
$s16 = ": :$:(:,:0:4:8:<:@:D:H:L:P:T:X:\\:j:r:z:" fullword ascii
$s17 = ": :$:(:,:0:4:8:<:@:D:H:L:P:T:X:\\:g:s:z:" fullword ascii
$s18 = ": :$:4:<:@:D:H:L:P:T:X:\\:`:d:h:l:p:t:x:|:" fullword ascii
$s19 = "dirtyread" fullword ascii
$s20 = ":,:8:<:L:T:X:\\:`:d:h:l:p:t:x:|:" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 4000KB and pe.imphash() == "7d4a1d899ac11a094c088d43aa2e9a5b" and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_4 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "0ffea07b7a5500475562195fb2a2b492989ef5678d56afe30e79b65dd08273dd"
hash10 = "0aa076882f28dfc64aee18f86a725a05da3db74f5784ec6e7536588241fe5345"
hash11 = "35aa0532e6b8e3516af75763cb4af335a3760288744b3055a0932c3cbe8bca16"
hash12 = "ed3b542d8fdbfcac0db17417e5ded3fa6eaca3cf6cbbf677a3bf73d77da0e8f7"
hash13 = "57f98a5ac9ebd816818ec347fefabb3761d274c9ae43306aa54c2e431b96b5e9"
hash14 = "e53af8f12a6c79af55d320dd19a72485afecaea0bfc427a82613b12f6c6ae1b5"
hash15 = "344ed043bc3bac73dc104d536183212b803d2738841f6e132454ebc5d770c2ff"
hash16 = "d54cf8b747705acae1678e8a273c30a0dee7d1729a1fea231b0b8d833570929f"
hash17 = "193dd7235fd8ed7adad4549c8b36f13f37d46685ef4dcc3bbead395894076f5a"
hash18 = "5cb4e82a05433249d33b3d663f07f9b5e1defba4fb0c4235a421df80b29b3842"
hash19 = "7793fd680f180c22cb904fa020d36cb46bf774b3372a3963da045034fc6c64d2"
strings:
$s1 = "#=qiY1B9yU2oVkPHxhn$y67SFTP8x1Jb0botGqdUGkdpQg=" fullword ascii
$s2 = "#=qPNzwB3EyeKwH$TwKjEdAjAC6A3IlGhANCdkUFCgvEiw=" fullword ascii
$s3 = "#=q85afbI_HcqBFOZnC0iAqsNghLb3LsuyjFtpLEYYoPX8=" fullword ascii
$s4 = "#=qh9KSqT0kHBFSDanZ7gXkKb1vdDfzZS3JIRcUnMfcljE=" fullword ascii
$s5 = "#=qTfMnD_jfiITiB95ES2nWdLlDTdGOSDVgXEnjKNGkWcM=" fullword ascii
$s6 = "#=q6Aboe3ONIkez7GgqcdWPi0_vrT_i53_89HUeagGM6MThXvFkvl8hpSeHO1UJawKN" fullword ascii
$s7 = "#=qxJg7RxTW1v5mnt12xXeJiYJv_bcctbtL2BCD5MjDi45Hlz6t8vwDNTv1Rv7tgIct" fullword ascii
$s8 = "#=qjcSlrUNMLgvZWN$58FXdrl22$0OjCpoqksNsslRtIFE=" fullword ascii
$s9 = "#=qfLFZgbR_r0GETPSprP6O9w==" fullword ascii
$s10 = "#=q6pErmyx6x4$YkotXXEXGCt_ysi5JdNm1fpNgnUvZ9LE6EtA8E0TapqXrPnqyBO1x" fullword ascii
$s11 = "#=q9c$dxNln4J1nxxC7UNVnfSKvSgKS421$zTS6z9ahlusddEno_MZclU7Qbfc$Fyw5" fullword ascii
$s12 = "#=qwVGSEK8LoRuNWEOYfq8$hq39mmxHzM3pIeoRef7XNt8=" fullword ascii
$s13 = "#=quXVzKqGldmgtXgVm61aLog==" fullword ascii
$s14 = "#=qmvGJ0E7$XHigSQAtHtZ6z$on2iAwFLBiFtrUR$DFhQPAtVI2LIgzNztIgPvlO9K$" fullword ascii
$s15 = "#=qr9m9EjuYAP$2E3p2xadfFhcTH6toAhrm0dlfOTldiWRsdXd8UmnkRkYrV_8$1gaA" fullword ascii
$s16 = "#=q6wR5WMLGkL9afTpqmWsw9g==" fullword ascii
$s17 = "#=qVCHxDTr$$bwFMb6i9vBKRZciaa69edA3gsLNOty0RAzCorWRBUh2v0PgySYBEvZ0" fullword ascii
$s18 = "#=qul8YRvQj1pWpo4_UxgOSzOBvtncEE$VPCzTeLK_rIz4EnXxineVkwF$lTxruKPxr" fullword ascii
$s19 = "#=qgbI51haY38WJ4NumXDqnLC_uKv$aRHAyD63c9HgGYzlsFjikAASqT8RCSswEMouz" fullword ascii
$s20 = "#=qrPQtMswclvOlK1AxL1S4K8M$owLGUpQfjJA8CWW$fj1az7m8LFibY8IeMxHKi4wi" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 8000KB and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_5 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "008561a800aa66833a6473a9bf742596e6a95d0b905906607362bbe26c1b7cab"
strings:
$s1 = "$Operation not allowed on sorted list$%s not in a class registration group" fullword wide
$s2 = "(Failed to write ImageList data to stream$Error creating window device context" fullword wide
$s3 = "Metafile is not valid!Cannot change the size of an icon Invalid operation on TOleGraphic" fullword wide
$s4 = "PasswordCharX" fullword ascii
$s5 = " Clipboard does not support Icons/Menu '%s' is already being used by another formDocked control must have a name%Error removing" wide
$s6 = "9':+:0:@:P:X:\\:`:d:h:l:p:t:x:|:" fullword ascii
$s7 = "CLOSEDFOLDER" fullword wide
$s8 = "3 373;3?3]3e3~3" fullword ascii
$s9 = "4'4-424D4{4" fullword ascii
$s10 = "<7<?<\\<d<" fullword ascii
$s11 = "EVariantInvalidArgError<" fullword ascii
$s12 = ":&:.:6:>:F:" fullword ascii
$s13 = "TPictureAdapter\\}G" fullword ascii
$s14 = "3 3$3(3,3034383<3@3D3H3L3P3T3X3f3n3J4N4R4V4Z4^4b4f4j4n4r4v4z4~4" fullword ascii
$s15 = "OnDockDrop8" fullword ascii
$s16 = "AutoHotkeysx" fullword ascii
$s17 = "HelpKeyword|" fullword ascii
$s18 = "ComCtrlsDLF" fullword ascii
$s19 = "ftReadOnly" fullword ascii
$s20 = "TConversion|DF" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and pe.imphash() == "0de11abe7f918ebcb69488cf91e27864" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_6 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "4a6cd5aef436121e851b39e70afa3ada4b340e609c92a2252296f6cc74fa4df5"
strings:
$x1 = "linkinfo.dll" fullword wide
$x2 = "devrtl.dll" fullword wide
$x3 = "dfscli.dll" fullword wide
$x4 = "srvcli.dll" fullword wide
$x5 = "browcli.dll" fullword wide
$s6 = "atl.dll" fullword wide
$s7 = "D:\\Projects\\WinRAR\\sfx\\build\\sfxrar32\\Release\\sfxrar.pdb" fullword ascii
$s8 = "iphlpapi.DLL" fullword wide
$s9 = "UXTheme.dll" fullword wide
$s10 = "WINNSI.DLL" fullword wide
$s11 = "oleaccrc.dll" fullword wide
$s12 = "dnsapi.DLL" fullword wide
$s13 = "SSPICLI.DLL" fullword wide
$s14 = "sfxrar.exe" fullword ascii
$s15 = "<!--The ID below indicates application support for Windows 10 -->" fullword ascii
$s16 = "<pi-ms-win-core-processthreads-l1-1-2" fullword wide
$s17 = "Please remove %s from %s folder. It is unsecure to run %s until it is done." fullword wide
$s18 = "<pi-ms-win-core-localization-obsolete-l1-2-0" fullword wide
$s19 = "xlistpos" fullword ascii
$s20 = "sfxstime" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_7 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "bd5fd2237ceaab10595a2e4b2976fe4199884aaa7c04a38323ce6d5006a9bb35"
strings:
$s1 = "[0x000A]: Result set at EOF+dbExpress Error [0x000B]: Parameter Not Set\"[0x000C] Invalid Username/Password" fullword wide
$s2 = "[0x0015]: Connection failed&[0x0016]: Driver initialization failed#[0x0017]: Optimistic Locking failed" fullword wide
$s3 = "[0x0004]: Invalid Handle![0x0005]: Operation Not Supported" fullword wide
$s4 = "%s,Custom variant type (%s%.4x) is out of range" fullword wide
$s5 = "TLOGINDIALOG" fullword wide
$s6 = "?Access violation at address %p in module '%s'. %s of address %p" fullword wide
$s7 = "Database Login" fullword ascii
$s8 = "[0x0006]: Invalid Time\"[0x0007]: Invalid Data Translation'[0x0008]: Parameter/Column out of Range" fullword wide
$s9 = "TLoginDialog" fullword ascii
$s10 = "LoginPrompt" fullword ascii
$s11 = "LoginParams" fullword ascii
$s12 = "TPASSWORDDIALOG" fullword wide
$s13 = "OnLogin" fullword ascii
$s14 = "/Custom variant type (%s%.4x) already used by %s*Custom variant type (%s%.4x) is not usable2Too many custom variant types have b" wide
$s15 = "TPasswordDialog" fullword ascii
$s16 = "Invalid FieldKind Field '%s' is of an unknown type" fullword wide
$s17 = "Invalid format type for BCD$Could not parse SQL TimeStamp string" fullword wide
$s18 = "3333s33" fullword ascii
$s19 = "33333s3" fullword ascii
$s20 = "TFieldGetTextEvent" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 4000KB and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_8 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "88a76e9ec13fc46bf63e5bb2bc72f2dcd28125ca3c77a18091da681b92713277"
strings:
$x1 = "Ghttp://www.smartassembly.com/webservices/UploadReportLogin/GetServerURL" fullword ascii
$x2 = "Namespace;http://www.smartassembly.com/webservices/UploadReportLogin/L" fullword ascii
$s3 = "@http://www.smartassembly.com/webservices/Reporting/UploadReport2" fullword ascii
$s4 = "npptools.dll" fullword ascii
$s5 = "DHCPCSVC.dll" fullword ascii
$s6 = "Namespace3http://www.smartassembly.com/webservices/Reporting/E" fullword ascii
$s7 = "UploadReportLoginService" fullword ascii
$s8 = "LoginServiceSoapT" fullword ascii
$s9 = "qUse ShowContinueCheckbox instead, as this is now also false when the builder has chosen not to show the checkbox." fullword ascii
$s10 = "processAttributes" fullword ascii
$s11 = "UploadReport2" fullword ascii
$s12 = "reportExceptionEventArgs" fullword ascii
$s13 = "GetServerURL" fullword ascii
$s14 = "ciacia.Resources.resources" fullword ascii
$s15 = "\"Powered by SmartAssembly 6.9.0.114" fullword ascii
$s16 = "AppNameMinusVersion" fullword ascii
$s17 = "ReportingServiceSoapT" fullword ascii
$s18 = "ReportingService" fullword ascii
$s19 = "lpThreadParameter" fullword ascii
$s20 = "SendingReportFeedback" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_9 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "0ffea07b7a5500475562195fb2a2b492989ef5678d56afe30e79b65dd08273dd"
hash10 = "0aa076882f28dfc64aee18f86a725a05da3db74f5784ec6e7536588241fe5345"
hash11 = "35aa0532e6b8e3516af75763cb4af335a3760288744b3055a0932c3cbe8bca16"
hash12 = "ed3b542d8fdbfcac0db17417e5ded3fa6eaca3cf6cbbf677a3bf73d77da0e8f7"
hash13 = "20ed8f0edcc3ae2cd73e800ad2d4a571b73d575de7938540d9cac191e385a1a5"
hash14 = "57f98a5ac9ebd816818ec347fefabb3761d274c9ae43306aa54c2e431b96b5e9"
hash15 = "e53af8f12a6c79af55d320dd19a72485afecaea0bfc427a82613b12f6c6ae1b5"
hash16 = "344ed043bc3bac73dc104d536183212b803d2738841f6e132454ebc5d770c2ff"
hash17 = "d54cf8b747705acae1678e8a273c30a0dee7d1729a1fea231b0b8d833570929f"
hash18 = "193dd7235fd8ed7adad4549c8b36f13f37d46685ef4dcc3bbead395894076f5a"
hash19 = "de10f54ddc11ddd33a9373e66b5cd8f7119f99b1cb778241a90917b85300a5e6"
strings:
$s1 = "IClientLoggingHost" fullword ascii
$s2 = "NanoCore.ClientPluginHost" fullword ascii
$s3 = "ClientLoaderForm" fullword ascii
$s4 = "PluginCommand" fullword ascii
$s5 = "GetBlockHash" fullword ascii
$s6 = "FileCommand" fullword ascii
$s7 = "IClientNetworkHost" fullword ascii
$s8 = "LogClientMessage" fullword ascii
$s9 = "PipeCreated" fullword ascii
$s10 = "LogClientException" fullword ascii
$s11 = "IClientReadOnlyNameObjectCollection" fullword ascii
$s12 = "PipeExists" fullword ascii
$s13 = "IClientAppHost" fullword ascii
$s14 = "IClientDataHost" fullword ascii
$s15 = "HostDetails" fullword ascii
$s16 = "AddHostEntry" fullword ascii
$s17 = "IClientUIHost" fullword ascii
$s18 = "ClientInvokeDelegate" fullword ascii
$s19 = "NanoCore.ClientPlugin" fullword ascii
$s20 = "ReadBlockData" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 8000KB and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_10 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "20ed8f0edcc3ae2cd73e800ad2d4a571b73d575de7938540d9cac191e385a1a5"
strings:
$s1 = "ClientLoaderForm_FormClosing" fullword ascii
$s2 = "clientLoaderForm_1" fullword ascii
$s3 = "commandType_0" fullword ascii
$s4 = "ipaddress_1" fullword ascii
$s5 = "ipaddress_0" fullword ascii
$s6 = "iclientNetwork_0" fullword ascii
$s7 = "resolveEventArgs_0" fullword ascii
$s8 = "GDelegate0" fullword ascii
$s9 = "GDelegate1" fullword ascii
$s10 = "GDelegate2" fullword ascii
$s11 = "GDelegate3" fullword ascii
$s12 = "GDelegate4" fullword ascii
$s13 = "GDelegate5" fullword ascii
$s14 = "GDelegate6" fullword ascii
$s15 = "GDelegate7" fullword ascii
$s16 = "GDelegate8" fullword ascii
$s17 = "GDelegate9" fullword ascii
$s18 = "gdelegate5_1" fullword ascii
$s19 = "gdelegate1_1" fullword ascii
$s20 = "gdelegate7_1" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_NanocoreRAT_11 {
meta:
description = "NanocoreRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "0143b485ab72131f9ff9fa2e691c8a854cd883dd2cbcdf5be669c11e48739f74"
strings:
$s1 = "get_FolderBrowserDialog1" fullword ascii
$s2 = "get_OpenFileDialog1" fullword ascii
$s3 = "get_FileSystemWatcher1" fullword ascii
$s4 = "set_FolderBrowserDialog1" fullword ascii
$s5 = "FolderBrowserDialog1" fullword ascii
$s6 = "get_NumericUpDown1" fullword ascii
$s7 = "get_DataGridView1" fullword ascii
$s8 = "set_OpenFileDialog1" fullword ascii
$s9 = "_OpenFileDialog1" fullword ascii
$s10 = "_FolderBrowserDialog1" fullword ascii
$s11 = "OpenFileDialog1" fullword wide
$s12 = "get_PictureBox1" fullword ascii
$s13 = "Doeecmu Stuuaiu Pheuthomp Seompoigh Daouueeoi Ceiieao" fullword wide
$s14 = "FileSystemWatcher1" fullword ascii
$s15 = "5Doeecmu Stuuaiu Pheuthomp Seompoigh Daouueeoi Ceiieao" fullword ascii
$s16 = " 2018 Deioiuuo Corporation" fullword wide
$s17 = "set_FileSystemWatcher1" fullword ascii
$s18 = "2018 Deioiuuo Corporation" fullword ascii
$s19 = "_FileSystemWatcher1" fullword ascii
$s20 = "Deioiuuo Corporation" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_RemcosRAT_1 {
meta:
description = "RemcosRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "d8250867325f5c1204dbd46e67115273c68fa51209f4a66b1bed8ee9f350d5b5"
strings:
$x1 = "Error setting %s.Count8Listbox (%s) style must be virtual in order to set Count\"Unable to find a Table Of Contents" fullword wide
$s2 = "MaxPointsPerPage must be >= 0+3D effect percent must be between %d and %d+Circular Series dependences are not allowed" fullword wide
$s3 = "First Legend Value must be > 0.Legend Color Width must be between 0 and 100 %%No ParentChart to validate DataSource" fullword wide
$s4 = "Directory not empty1The string %s does not translate into a valid IP." fullword wide
$s5 = "Elevation<" fullword ascii
$s6 = "+Cannot focus a disabled or invisible window!Control '%s' has no parent window" fullword wide
$s7 = "Invalid network mask.#Invalid value length: Should be 32." fullword wide
$s8 = "!'%s' is not a valid integer valueInvalid argument to date encode" fullword wide
$s9 = "OnGetNextAxisLabel" fullword ascii
$s10 = "Winsock stack/Top Legend Position must be between 0 and 100 %" fullword wide
$s11 = "TAverageTeeFunction" fullword ascii
$s12 = "TSeriesOnGetMarkText" fullword ascii
$s13 = "TOnGetLegendText" fullword ascii
$s14 = "TAxisOnGetNextLabel" fullword ascii
$s15 = "TOnGetLegendRect" fullword ascii
$s16 = "OnGetMarkTextSVW" fullword ascii
$s17 = ":<:H:L:X:\\:d:h:l:p:t:x:|:" fullword ascii
$s18 = "OnGetLegendRect" fullword ascii
$s19 = "EIdConnClosedGracefullyU" fullword ascii
$s20 = "Logarithmic<" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 2000KB and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_RemcosRAT_2 {
meta:
description = "RemcosRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "ecb931c41f1c39bcd8b53255720d53cea4e70715528f751520337fe483fcffdb"
strings:
$x1 = "Cannot create folder %sDCRC failed in the encrypted file %s. Corrupt file or wrong password." fullword wide
$s2 = "=Total path and file name length must not exceed %d characters#Unsupported encryption method in %s" fullword wide
$s3 = "Wrong password for %s5Write error in the file %s. Probably the disk is full" fullword wide
$s4 = "Unexpected end of archiveThe file \"%s\" header is corrupt%The archive comment header is corrupt" fullword wide
$s5 = "Extracting files to %s folder$Extracting files to temporary folder" fullword wide
$s6 = "&Enter password for the encrypted file:" fullword wide
$s7 = "ErroraErrors encountered while performing the operation" fullword wide
$s8 = "Please download a fresh copy and retry the installation" fullword wide
$s9 = "The required volume is absent2The archive is either in unknown format or damaged" fullword wide
$s10 = "Please close all applications, reboot Windows and restart this installation\\Some installation files are corrupt." fullword wide
$s11 = "folder is not accessiblelSome files could not be created." fullword wide
$s12 = "CryptUnprotectMemory failed" fullword ascii
$s13 = "Packed data CRC failed in %s" fullword wide
$s14 = "File close error" fullword wide
$s15 = "CRC failed in %s" fullword wide
$s16 = "Look at the information window for more details" fullword wide
$s17 = "Skipping %s" fullword wide
$s18 = "WinRAR self-extracting archive" fullword wide
$s19 = "IyO.CNc" fullword ascii
$s20 = "Select destination folder" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and pe.imphash() == "3c98c11017e670673be70ad841ea9c37" and ( 1 of ($x*) and 4 of them )
) or ( all of them )
}
rule YARA_MAL_njRAT_1 {
meta:
description = "njRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "07d9fa99acaafb08d76b1a87aa991e82cbff8dd30b167a145341300227344155"
strings:
$s1 = "get_Button6" fullword ascii
$s2 = "get_Button7" fullword ascii
$s3 = "get_Button4" fullword ascii
$s4 = "get_Button5" fullword ascii
$s5 = "get_Button8" fullword ascii
$s6 = "get_Button9" fullword ascii
$s7 = "get_Button34" fullword ascii
$s8 = "get_Button35" fullword ascii
$s9 = "get_Button32" fullword ascii
$s10 = "get_Button33" fullword ascii
$s11 = "get_Button30" fullword ascii
$s12 = "get_Button31" fullword ascii
$s13 = "get_Button54" fullword ascii
$s14 = "get_Button55" fullword ascii
$s15 = "get_Button56" fullword ascii
$s16 = "get_Button50" fullword ascii
$s17 = "get_Button51" fullword ascii
$s18 = "get_Button52" fullword ascii
$s19 = "get_Button53" fullword ascii
$s20 = "get_Button21" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 700KB and pe.imphash() == "f34d5f2d4577ed6d9ceec516c1f5a744" and ( 8 of them )
) or ( all of them )
}
rule YARA_MAL_NetWireRAT_1 {
meta:
description = "NetWireRAT variant used by suspected APT33 threat actor"
tlp = "white"
author = "Insikt Group, Recorded Future"
ref = "Recorded Future blog: APT33 Doubling-Down on Commodity RATs"
date = "2019-06-16"
hash1 = "4784ac80808fbe144e6f63c8a0a2bad58710a0d01f4b6361b9cc2105046cc75f"
strings:
$s1 = "User-Agent: Mozilla/4.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" fullword ascii
$s2 = "ping 192.0.2.2 -n 1 -w %d >nul 2>&1" fullword ascii
$s3 = "[Log Started] - [%.2d/%.2d/%d %.2d:%.2d:%.2d]" fullword ascii
$s4 = "http://www.yandex.com" fullword wide
$s5 = "start /b \"\" cmd /c del \"%%~f0\"&exit /b" fullword ascii
$s6 = "Software\\Microsoft\\Office\\16.0\\Outlook\\Profiles\\Outlook\\9375CFF0413111d3B88A00104B2A6676" fullword ascii
$s7 = "Software\\Microsoft\\Office\\15.0\\Outlook\\Profiles\\Outlook\\9375CFF0413111d3B88A00104B2A6676" fullword ascii
$s8 = "Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows Messaging Subsystem\\Profiles\\Outlook\\9375CFF0413111d3B88A00104B2A667" ascii
$s9 = "{GET %s HTTP/1.1" fullword ascii
$s10 = "[%s] - [%.2d/%.2d/%d %.2d:%.2d:%.2d]" fullword ascii
$s11 = "_BqwHaF8TkKDMfOzQASx4VuXdZibUIeylJWhj0m5o2ErLt6vGRN9sY1n3Ppc7g-C%.4d-%.2d-%.2d %.2d:%.2d:%.2d" fullword ascii
$s12 = "Cs43l63g4R3YW0d3i4V0C0ZiWCSd03iG3G3y.Sii" fullword ascii
$s13 = "%s\\%s.bat" fullword ascii
$s14 = "DEL /s \"%s\" >nul 2>&1" fullword ascii
$s15 = "Cs43l63g4R3YW0d3iWYCi4kC54WR3iG3h3y.Sii" fullword ascii
$s16 = "Cs43l63g4R3YW0d3ICRSid3iG3G3y.Sii" fullword ascii
$s17 = "Cs43l63g4R3Y053dR240WRldR53iG3G3y.Sii" fullword ascii