-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedr-enum.cna
More file actions
1762 lines (1571 loc) · 98.4 KB
/
Copy pathedr-enum.cna
File metadata and controls
1762 lines (1571 loc) · 98.4 KB
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
# =============================================================================
# edr_enum.cna - AV/EPP/EDR Enumeration via Beacon
# Cobalt Strike 4.12 Aggressor Script
#
# Author: VirtualAllocEx
# Version: 2.5.0
# Last Updated: 2026-02-06
#
# Description:
# Enumerates endpoint security products (AV, EPP, EDR, Telemetry/SIEM)
# on a compromised host using multiple detection methods with varying
# noise footprints. The operator chooses the method that fits their
# current risk tolerance.
#
# v2.5.0: Major signature database expansion across all three databases.
# Processes: 126 -> 198 (+72). Services: 73 -> 115 (+42).
# Drivers: 112 -> 132 (+20). Added 13 new vendors across all
# databases: Avast/AVG, Avira, Norton/Gen Digital, Check Point,
# Comodo/Xcitium, G Data, Emsisoft, Dr.Web, AhnLab, VIPRE,
# Cisco Secure Endpoint, Zscaler, with expanded coverage for
# existing vendors (SentinelOne, Microsoft, Trend Micro,
# Trellix/McAfee, ESET, Sophos, Kaspersky, Bitdefender,
# Fortinet, Cybereason). Total: 445 signatures across 48
# vendor groups.
# BOF mode argument: edr_services_bof now accepts [svc|drv|both]
# to control enumeration scope. One BOF, one inline-execute,
# operator picks scope at runtime. Backward compatible.
# v2.4.0: Expanded driver signature database from 66 to 112 entries.
# Added 17 new vendors: Avast/AVG, Malwarebytes, Avira, Webroot,
# Check Point, Comodo/Xcitium, G Data, CyberArk, Tanium, Nexthink,
# Emsisoft, Dr.Web, AhnLab, VIPRE, Endgame, Dell Secureworks,
# Cisco Secure Endpoint. Expanded existing vendors with missing
# drivers (SentinelOne +2, Trellix/McAfee +5, Sophos +1,
# Trend Micro +1, Fortinet +2, WithSecure +3, others).
# v2.3.0: Added kernel driver enumeration via BOF. The edr_services_bof
# command now enumerates both Win32 services (SERVICE_WIN32) and kernel
# drivers (SERVICE_DRIVER) in a single in-process call. Driver matches
# appear under a [DRV] tag and contribute to threat level assessment.
#
# =============================================================================
#
# COMMAND REFERENCE
# =============================================================================
#
# edr_check Process-only check via bps()
# edr_enum Full enumeration (bps + PowerShell WMI)
# edr_services Service enum via PowerShell Get-Service
# edr_services_cmd Service enum via cmd.exe + sc query
# edr_services_pick Service enum via bpowerpick (unmanaged PS)
# edr_services_bof Service + driver enum via inline BOF (requires compiled BOF)
# Modes: edr_services_bof Both (default)
# edr_services_bof svc Services only
# edr_services_bof drv Drivers only
# edr_help Detailed help with noise reference
#
# =============================================================================
#
# NOISE RATING METHODOLOGY
# =============================================================================
#
# WHY "NOISE" AND NOT "OPSEC"
#
# "OPSEC: ****" looks like a good thing -- four stars of something you want.
# But **** means HIGH detection risk. To avoid this confusion, ratings use
# "NOISE" -- a metric where MORE is clearly WORSE:
#
# NOISE: * = quiet, hard to detect (GOOD)
# NOISE: **** = loud, easy to detect (BAD)
#
# WHAT THE STARS MEASURE
#
# Detection surface: how many new telemetry sources light up when the
# command runs, on a host with a mature EDR and a staffed SOC. More
# stars = more noise = more places an analyst could spot the activity.
#
# The commands themselves ("Get-Service", "sc query") are legitimate.
# The risk comes from HOW they execute: which process spawns, what
# DLLs load, which ETW providers fire, and whether logging frameworks
# (AMSI, ScriptBlock, Sysmon) capture the event.
#
# IMPORTANT: LEVELS ARE NOT CUMULATIVE
#
# ** (CLR load) and *** (cmd.exe child) open DIFFERENT detection
# surfaces, not additive ones. cmd.exe does NOT load CLR. The star
# count reflects overall detection likelihood, not a strict superset
# of the previous level.
#
# DETECTION SURFACES BY LEVEL
#
# * MINIMAL -- Zero new detection surfaces.
# Runs inside the Beacon process. No child process, no DLL loads,
# no ETW providers, no logging frameworks triggered. The only way
# to observe this is user-mode API hooks already present in the
# Beacon process (and if those exist, the EDR sees everything
# already -- zero marginal risk).
# | Child proc | CLR | AMSI | ScriptBlock | Sysmon EID 1 | ETW |
# | -- | -- | -- | -- | -- | -- |
# Examples: bps(), inline BOF execution.
#
# ** LOW -- +CLR runtime loaded into Beacon process.
# No child process, but clr.dll / clrjit.dll / mscoree.dll load
# into Beacon. ETW .NET Runtime provider fires. AMSI initializes
# and scans the script content. Key risk: EDRs flag "unmanaged
# CLR hosting" -- a non-.NET process suddenly loading the CLR is
# a well-known indicator of execute-assembly / powerpick tradecraft.
# | Child proc | CLR | AMSI | ScriptBlock | Sysmon EID 1 | ETW |
# | -- | YES | YES | -- | -- | .NET|
# Examples: bpowerpick().
#
# *** MODERATE -- +Child process visible in process tree.
# Spawns cmd.exe. Process creation logged in Sysmon EID 1 and
# Windows EID 4688 with full command line. Parent-child lineage
# (spawnto -> cmd.exe) is the primary detection vector. However:
# no CLR, no AMSI, no PS logging. "sc query" is extremely common
# in admin scripts and monitoring tools -- low anomaly score.
# | Child proc | CLR | AMSI | ScriptBlock | Sysmon EID 1 | ETW |
# | cmd.exe | -- | -- | -- | YES | -- |
# Examples: bshell() with sc query.
#
# **** HIGH -- +PowerShell = maximum telemetry.
# Spawns powershell.exe, which activates every logging framework
# at once: Sysmon EID 1, ScriptBlock Log (EID 4104), Module Log
# (EID 4103), AMSI scan, CLR load, possible disk transcript.
# "Any process spawning powershell.exe" is a DEFAULT detection
# rule in CrowdStrike, SentinelOne, MDE, and most EDR products.
# | Child proc | CLR | AMSI | ScriptBlock | Sysmon EID 1 | ETW |
# | PS.exe | YES | YES | YES | YES | ALL |
# Examples: bpowershell().
#
# ***** CRITICAL -- Disk writes, system modification, known-bad patterns.
# Near-certain detection. No edr_enum command reaches this level.
#
# KEY INSIGHT:
# The irony of using bpowershell() to enumerate EDR is that you spawn
# the most-monitored process on the system to ask whether the system
# is monitored. If CrowdStrike or MDE is present, the PowerShell spawn
# may alert BEFORE results come back telling you it's there.
#
# RECOMMENDED ESCALATION PATH:
# 1. edr_check * Always safe first step
# 2. edr_services_bof * If compiled BOF is available (svc/drv/both)
# 3. edr_services_pick ** If CLR loading is acceptable
# 4. edr_services_cmd *** Good trade-off, avoids PS entirely
# 5. edr_services **** Only if PS is already expected
# 6. edr_enum **** Full picture, highest artifact cost
#
# MALLEABLE C2 DEPENDENCY:
# Commands spawning child processes (bshell, bpowershell, bpowerpick)
# use your Malleable C2 profile .post-ex.spawnto settings. The parent-
# child lineage is often MORE important than the command content.
#
# =============================================================================
# -------------------------------------------------------------------------
# Global state
# -------------------------------------------------------------------------
global('%edr_process_signatures %edr_service_signatures %edr_driver_signatures');
global('%edr_pending_bids %edr_svc_pending %edr_cmd_pending %edr_pick_pending %edr_bof_pending');
global('$edr_callback_lock');
%edr_process_signatures = %();
%edr_service_signatures = %();
%edr_driver_signatures = %();
%edr_pending_bids = %();
%edr_svc_pending = %();
%edr_cmd_pending = %();
%edr_pick_pending = %();
%edr_bof_pending = %();
$edr_callback_lock = 0;
# =========================================================================
# Signature database: process names
# =========================================================================
sub init_process_sigs {
# --- CrowdStrike Falcon ---
%edr_process_signatures["csfalconservice.exe"] = "CrowdStrike | Falcon | EDR";
%edr_process_signatures["csfalconcontainer.exe"] = "CrowdStrike | Falcon | EDR";
%edr_process_signatures["csagent.exe"] = "CrowdStrike | Falcon Agent | EDR";
%edr_process_signatures["falconhost.exe"] = "CrowdStrike | Falcon Host | EDR";
# --- SentinelOne ---
%edr_process_signatures["sentinelagent.exe"] = "SentinelOne | Singularity Agent | EDR";
%edr_process_signatures["sentinelone.exe"] = "SentinelOne | Singularity | EDR";
%edr_process_signatures["sentinelhelper.exe"] = "SentinelOne | Helper | EDR";
%edr_process_signatures["sentinelservicehost.exe"] = "SentinelOne | Service Host | EDR";
%edr_process_signatures["sentineluiagent.exe"] = "SentinelOne | UI Agent | EDR";
%edr_process_signatures["sentinelstaticengine.exe"] = "SentinelOne | Static Engine | EDR";
%edr_process_signatures["sentinelstaticenginescanner.exe"] = "SentinelOne | Static Engine Scanner | EDR";
%edr_process_signatures["sentinelmemoryscanner.exe"] = "SentinelOne | Memory Scanner | EDR";
%edr_process_signatures["logcollector.exe"] = "SentinelOne | Log Collector | EDR";
# --- Carbon Black ---
%edr_process_signatures["cb.exe"] = "Carbon Black | App Control | EDR";
%edr_process_signatures["cbcomms.exe"] = "Carbon Black | Communications | EDR";
%edr_process_signatures["cbstream.exe"] = "Carbon Black | Stream | EDR";
%edr_process_signatures["cbdefense.exe"] = "Carbon Black | Cloud Defense | EDR";
%edr_process_signatures["cbdefenseservice.exe"] = "Carbon Black | Defense Service | EDR";
%edr_process_signatures["repux.exe"] = "Carbon Black | Response | EDR";
%edr_process_signatures["repwsc.exe"] = "Carbon Black | Watchdog | EDR";
%edr_process_signatures["repserv.exe"] = "Carbon Black | Server | EDR";
# --- Microsoft Defender / MDE ---
%edr_process_signatures["msmpeng.exe"] = "Microsoft | Defender Antimalware | AV";
%edr_process_signatures["mpdefendercoreservice.exe"] = "Microsoft | Defender Core Service | AV";
%edr_process_signatures["msseces.exe"] = "Microsoft | Security Essentials | AV";
%edr_process_signatures["securityhealthservice.exe"] = "Microsoft | Security Health | AV";
%edr_process_signatures["securityhealthsystray.exe"] = "Microsoft | Security Health Tray | AV";
%edr_process_signatures["sensecncproxy.exe"] = "Microsoft | Defender for Endpoint | EDR";
%edr_process_signatures["mssense.exe"] = "Microsoft | Defender for Endpoint | EDR";
%edr_process_signatures["sense.exe"] = "Microsoft | Defender for Endpoint Sense | EDR";
%edr_process_signatures["nissrv.exe"] = "Microsoft | Defender NIS | AV";
%edr_process_signatures["sgrmbroker.exe"] = "Microsoft | System Guard Runtime Broker | AV";
%edr_process_signatures["configsecuritypolicy.exe"] = "Microsoft | Defender Config Policy | AV";
# --- Cortex XDR (Palo Alto) ---
%edr_process_signatures["cyserver.exe"] = "Palo Alto | Cortex XDR Server | EDR";
%edr_process_signatures["cytray.exe"] = "Palo Alto | Cortex XDR Tray | EDR";
%edr_process_signatures["cyveraservice.exe"] = "Palo Alto | Cortex XDR Cyvera | EDR";
%edr_process_signatures["traborchestrator.exe"] = "Palo Alto | Cortex XDR Traps | EDR";
%edr_process_signatures["trapsd.exe"] = "Palo Alto | Cortex XDR Traps Daemon | EDR";
%edr_process_signatures["trapsagent.exe"] = "Palo Alto | Traps Agent | EDR";
%edr_process_signatures["cyoptics.exe"] = "Palo Alto | Cortex XDR Optics | EDR";
# --- Elastic Security ---
%edr_process_signatures["elastic-agent.exe"] = "Elastic | Elastic Agent | EDR";
%edr_process_signatures["elastic-endpoint.exe"] = "Elastic | Elastic Endpoint | EDR";
%edr_process_signatures["filebeat.exe"] = "Elastic | Filebeat | Telemetry";
%edr_process_signatures["winlogbeat.exe"] = "Elastic | Winlogbeat | Telemetry";
%edr_process_signatures["metricbeat.exe"] = "Elastic | Metricbeat | Telemetry";
# --- Symantec / Broadcom ---
%edr_process_signatures["ccsvchst.exe"] = "Broadcom | Symantec Endpoint Protection | EPP";
%edr_process_signatures["rtvscan.exe"] = "Broadcom | Symantec Real-Time Scan | AV";
%edr_process_signatures["smcgui.exe"] = "Broadcom | Symantec Management Client | EPP";
%edr_process_signatures["smc.exe"] = "Broadcom | Symantec Management Client | EPP";
%edr_process_signatures["snac.exe"] = "Broadcom | Symantec Network Access Control | EPP";
%edr_process_signatures["sepwscsvc64.exe"] = "Broadcom | SEP WSC Service | EPP";
%edr_process_signatures["sepmasterservice.exe"] = "Broadcom | SEP Master Service | EPP";
# --- Sophos ---
%edr_process_signatures["sophossps.exe"] = "Sophos | Sophos Endpoint | EPP";
%edr_process_signatures["savservice.exe"] = "Sophos | SAV Service | AV";
%edr_process_signatures["sophosui.exe"] = "Sophos | Sophos UI | EPP";
%edr_process_signatures["sophoshealth.exe"] = "Sophos | Health Service | EPP";
%edr_process_signatures["sophosfilescanner.exe"] = "Sophos | File Scanner | AV";
%edr_process_signatures["sophosfs.exe"] = "Sophos | File Scanner | AV";
%edr_process_signatures["sophosntp.exe"] = "Sophos | Network Threat Protection | EPP";
%edr_process_signatures["hmpalert.exe"] = "Sophos | Intercept X | EDR";
%edr_process_signatures["sspd.exe"] = "Sophos | Sophos Endpoint | EPP";
%edr_process_signatures["ssptray.exe"] = "Sophos | Tray App | EPP";
%edr_process_signatures["sophosagent.exe"] = "Sophos | Management Agent | EPP";
%edr_process_signatures["sophoscleanm.exe"] = "Sophos | Clean Manager | EPP";
%edr_process_signatures["sophosinterceptx.exe"] = "Sophos | Intercept X | EDR";
# --- Trend Micro ---
%edr_process_signatures["tmntsrv.exe"] = "Trend Micro | Ntrtscan | AV";
%edr_process_signatures["tmccsf.exe"] = "Trend Micro | Common Client Framework | EPP";
%edr_process_signatures["tmlisten.exe"] = "Trend Micro | Listener | EPP";
%edr_process_signatures["tmbmsrv.exe"] = "Trend Micro | Unauthorized Change Prevention | EPP";
%edr_process_signatures["ntrtscan.exe"] = "Trend Micro | Real-time Scan | AV";
%edr_process_signatures["pccntmon.exe"] = "Trend Micro | PC-cillin Monitor | AV";
%edr_process_signatures["coreserviceshell.exe"] = "Trend Micro | Apex One | EDR";
%edr_process_signatures["ds_agent.exe"] = "Trend Micro | Deep Security Agent | EDR";
%edr_process_signatures["endpointbasecamp.exe"] = "Trend Micro | Vision One Basecamp | EDR";
%edr_process_signatures["tmproxy.exe"] = "Trend Micro | Web Reputation Proxy | EPP";
%edr_process_signatures["wscservice.exe"] = "Trend Micro | Web Security Client | EPP";
%edr_process_signatures["clientcommunicationservice.exe"] = "Trend Micro | Client Communication | EPP";
%edr_process_signatures["personalfirewallservice.exe"] = "Trend Micro | Personal Firewall | EPP";
# --- McAfee / Trellix ---
%edr_process_signatures["mfemactl.exe"] = "Trellix | McAfee Agent Control | EPP";
%edr_process_signatures["mfetp.exe"] = "Trellix | McAfee Threat Prevention | EPP";
%edr_process_signatures["mfemms.exe"] = "Trellix | McAfee Management Service | EPP";
%edr_process_signatures["masvc.exe"] = "Trellix | McAfee Agent Service | EPP";
%edr_process_signatures["macmnsvc.exe"] = "Trellix | McAfee Agent | EPP";
%edr_process_signatures["mctray.exe"] = "Trellix | McAfee Tray | EPP";
%edr_process_signatures["mcshield.exe"] = "Trellix | McAfee On-Access Scanner | AV";
%edr_process_signatures["firesvc.exe"] = "Trellix | FireEye HX Agent | EDR";
%edr_process_signatures["firetray.exe"] = "Trellix | FireEye HX Tray | EDR";
%edr_process_signatures["xagt.exe"] = "Trellix | FireEye HX Agent | EDR";
%edr_process_signatures["mfeesp.exe"] = "Trellix | McAfee Endpoint Security | EPP";
%edr_process_signatures["mfecanary.exe"] = "Trellix | McAfee Canary Process | EPP";
%edr_process_signatures["mfeatp.exe"] = "Trellix | McAfee ATP | EDR";
# --- ESET ---
%edr_process_signatures["ekrn.exe"] = "ESET | Kernel Service | AV";
%edr_process_signatures["egui.exe"] = "ESET | GUI | AV";
%edr_process_signatures["eamsi.exe"] = "ESET | AMSI Scanner | AV";
%edr_process_signatures["essvc.exe"] = "ESET | Security Service | AV";
%edr_process_signatures["eei_agent.exe"] = "ESET | Inspect Agent | EDR";
%edr_process_signatures["ecls.exe"] = "ESET | Command Line Scanner | AV";
%edr_process_signatures["epfw.exe"] = "ESET | Personal Firewall | AV";
# --- Kaspersky ---
%edr_process_signatures["avp.exe"] = "Kaspersky | Endpoint Security | AV";
%edr_process_signatures["avpui.exe"] = "Kaspersky | Endpoint Security UI | AV";
%edr_process_signatures["kavfs.exe"] = "Kaspersky | File Server Security | AV";
%edr_process_signatures["klnagent.exe"] = "Kaspersky | Network Agent | EPP";
%edr_process_signatures["avpexec.exe"] = "Kaspersky | AV Process Launcher | AV";
%edr_process_signatures["klnsacwsvc.exe"] = "Kaspersky | Network Security Agent | EPP";
# --- Bitdefender ---
%edr_process_signatures["bdagent.exe"] = "Bitdefender | Agent | AV";
%edr_process_signatures["bdservicehost.exe"] = "Bitdefender | Service Host | AV";
%edr_process_signatures["bdredline.exe"] = "Bitdefender | Redline Agent | EDR";
%edr_process_signatures["epag.exe"] = "Bitdefender | GravityZone Agent | EDR";
%edr_process_signatures["epsecurityservice.exe"] = "Bitdefender | Endpoint Security | EDR";
%edr_process_signatures["epintegrationservice.exe"] = "Bitdefender | Integration Service | EDR";
%edr_process_signatures["epprotectedservice.exe"] = "Bitdefender | Protected Service | EDR";
# --- Cylance (BlackBerry) ---
%edr_process_signatures["cylancesvc.exe"] = "BlackBerry | Cylance PROTECT | EPP";
%edr_process_signatures["cylanceui.exe"] = "BlackBerry | Cylance UI | EPP";
%edr_process_signatures["cylanceoptics.exe"] = "BlackBerry | Cylance OPTICS | EDR";
# --- Fortinet FortiEDR ---
%edr_process_signatures["fortiedr.exe"] = "Fortinet | FortiEDR Collector | EDR";
%edr_process_signatures["forticollector.exe"] = "Fortinet | FortiEDR Collector | EDR";
%edr_process_signatures["fortiagent.exe"] = "Fortinet | FortiClient Agent | EPP";
%edr_process_signatures["fortitray.exe"] = "Fortinet | FortiClient Tray | EPP";
%edr_process_signatures["fortiavmon.exe"] = "Fortinet | FortiClient AV Monitor | AV";
%edr_process_signatures["fortiwf.exe"] = "Fortinet | FortiClient Web Filter | EPP";
# --- Cybereason ---
%edr_process_signatures["activeprobe.exe"] = "Cybereason | Active Probe | EDR";
%edr_process_signatures["minionhost.exe"] = "Cybereason | Minion Host | EDR";
%edr_process_signatures["executionpreventionsvc.exe"] = "Cybereason | Execution Prevention | EDR";
%edr_process_signatures["crssvc.exe"] = "Cybereason | Sensor Service | EDR";
%edr_process_signatures["pyminionhost.exe"] = "Cybereason | Python Minion Host | EDR";
# --- HarfangLab ---
%edr_process_signatures["hurukai.exe"] = "HarfangLab | EDR Agent | EDR";
# --- WatchGuard / Panda ---
%edr_process_signatures["psanhost.exe"] = "WatchGuard | Panda Endpoint | EPP";
%edr_process_signatures["psuaservice.exe"] = "WatchGuard | Panda Endpoint Service | EPP";
# --- WithSecure / F-Secure ---
%edr_process_signatures["fsgk32.exe"] = "WithSecure | F-Secure GateKeeper | AV";
%edr_process_signatures["fsav32.exe"] = "WithSecure | F-Secure AV | AV";
# --- Webroot ---
%edr_process_signatures["wrsa.exe"] = "Webroot | SecureAnywhere | AV";
# --- Malwarebytes ---
%edr_process_signatures["mbamservice.exe"] = "Malwarebytes | Anti-Malware Service | AV";
%edr_process_signatures["mbamtray.exe"] = "Malwarebytes | System Tray | AV";
%edr_process_signatures["mbam.exe"] = "Malwarebytes | Anti-Malware | AV";
%edr_process_signatures["mbamagent.exe"] = "Malwarebytes | Agent | AV";
%edr_process_signatures["epp.exe"] = "Malwarebytes | Endpoint Protection | EPP";
# --- Huntress ---
%edr_process_signatures["huntressagent.exe"] = "Huntress | Agent | EDR";
%edr_process_signatures["huntressupdater.exe"] = "Huntress | Updater | EDR";
# --- Qualys ---
%edr_process_signatures["qualysagent.exe"] = "Qualys | Cloud Agent | Vuln Scanner";
# --- Tanium ---
%edr_process_signatures["taniumclient.exe"] = "Tanium | Client | EPP";
%edr_process_signatures["taniumdetect.exe"] = "Tanium | Detect | EDR";
%edr_process_signatures["taniumendpointindex.exe"] = "Tanium | Endpoint Index | EDR";
# --- Rapid7 ---
%edr_process_signatures["ir_agent.exe"] = "Rapid7 | Insight Agent | EDR";
# --- Deep Instinct ---
%edr_process_signatures["deepinstinctagent.exe"] = "Deep Instinct | Agent | EDR";
# --- LimaCharlie ---
%edr_process_signatures["rphcp.exe"] = "LimaCharlie | Sensor | EDR";
# --- Sysmon ---
%edr_process_signatures["sysmon.exe"] = "Microsoft | Sysmon | Telemetry";
%edr_process_signatures["sysmon64.exe"] = "Microsoft | Sysmon 64-bit | Telemetry";
# --- Wazuh ---
%edr_process_signatures["wazuh-agent.exe"] = "Wazuh | Agent | SIEM-EDR";
%edr_process_signatures["ossec-agent.exe"] = "Wazuh | OSSEC Agent | SIEM-EDR";
# --- Splunk UF ---
%edr_process_signatures["splunkd.exe"] = "Splunk | Universal Forwarder | Telemetry";
# --- Velociraptor ---
%edr_process_signatures["velociraptor.exe"] = "Velociraptor | Agent | DFIR";
# --- Avast / AVG ---
%edr_process_signatures["avastui.exe"] = "Avast | UI | AV";
%edr_process_signatures["avastsvc.exe"] = "Avast | Service | AV";
%edr_process_signatures["avgsvc.exe"] = "AVG | Service | AV";
%edr_process_signatures["avgui.exe"] = "AVG | UI | AV";
%edr_process_signatures["wsc_proxy.exe"] = "Avast | WSC Proxy | AV";
%edr_process_signatures["overseer.exe"] = "Avast | Overseer | AV";
# --- Avira ---
%edr_process_signatures["avgnt.exe"] = "Avira | Desktop Notification | AV";
%edr_process_signatures["avshadow.exe"] = "Avira | Shadow Copy Service | AV";
%edr_process_signatures["avguard.exe"] = "Avira | Real-Time Protection | AV";
%edr_process_signatures["avscan.exe"] = "Avira | Scanner | AV";
# --- Norton / Gen Digital ---
%edr_process_signatures["ns.exe"] = "Norton | Security Service | AV";
%edr_process_signatures["nsservice.exe"] = "Norton | Security Service | AV";
%edr_process_signatures["nswocsvc.exe"] = "Norton | WSC Service | AV";
%edr_process_signatures["navapsvc.exe"] = "Norton | AntiVirus Auto-Protect | AV";
%edr_process_signatures["nortonsecurity.exe"] = "Norton | Security UI | AV";
# --- Check Point Harmony ---
%edr_process_signatures["cpda.exe"] = "Check Point | Daemon Agent | EPP";
%edr_process_signatures["epmonitor.exe"] = "Check Point | Endpoint Monitor | EPP";
%edr_process_signatures["epmworker.exe"] = "Check Point | Endpoint Worker | EPP";
%edr_process_signatures["tracsvrcalc.exe"] = "Check Point | Tracker Service | EPP";
%edr_process_signatures["mediapatcher.exe"] = "Check Point | Media Encryption | EPP";
# --- Comodo / Xcitium ---
%edr_process_signatures["cis.exe"] = "Comodo | Internet Security | EPP";
%edr_process_signatures["cmdagent.exe"] = "Comodo | Agent | EPP";
%edr_process_signatures["cavse.exe"] = "Comodo | AV Scanner Engine | AV";
%edr_process_signatures["cesvc.exe"] = "Xcitium | Endpoint Service | EPP";
# --- G Data ---
%edr_process_signatures["gdsc.exe"] = "G Data | Security Client | AV";
%edr_process_signatures["gdfsvc.exe"] = "G Data | File Server Security | AV";
%edr_process_signatures["gdscan.exe"] = "G Data | AV Scanner | AV";
# --- Emsisoft ---
%edr_process_signatures["a2service.exe"] = "Emsisoft | Anti-Malware Service | AV";
%edr_process_signatures["a2guard.exe"] = "Emsisoft | Behavior Blocker | AV";
%edr_process_signatures["a2start.exe"] = "Emsisoft | Anti-Malware UI | AV";
# --- Dr.Web ---
%edr_process_signatures["dwservice.exe"] = "Dr.Web | Service | AV";
%edr_process_signatures["dwengine.exe"] = "Dr.Web | Scanning Engine | AV";
%edr_process_signatures["spideragent.exe"] = "Dr.Web | SpIDer Agent | AV";
%edr_process_signatures["dwscanner.exe"] = "Dr.Web | Scanner | AV";
%edr_process_signatures["dwnetfilter.exe"] = "Dr.Web | Network Filter | AV";
# --- AhnLab ---
%edr_process_signatures["v3svc.exe"] = "AhnLab | V3 Endpoint Service | AV";
%edr_process_signatures["v3sp.exe"] = "AhnLab | V3 Service Platform | AV";
%edr_process_signatures["asdsvc.exe"] = "AhnLab | ASD Service | AV";
%edr_process_signatures["alunotify.exe"] = "AhnLab | Update Notification | AV";
# --- VIPRE / ThreatTrack ---
%edr_process_signatures["sbamsvc.exe"] = "VIPRE | Anti-Malware Service | AV";
%edr_process_signatures["sbamuisrv.exe"] = "VIPRE | UI Service | AV";
# --- Cisco Secure Endpoint (AMP) ---
%edr_process_signatures["orbital.exe"] = "Cisco | Orbital Agent | EDR";
%edr_process_signatures["iptray.exe"] = "Cisco | Secure Endpoint Tray | EDR";
%edr_process_signatures["ampdaemon.exe"] = "Cisco | AMP Daemon | EDR";
# --- Zscaler ---
%edr_process_signatures["zsatray.exe"] = "Zscaler | Client Connector Tray | ZTNA";
%edr_process_signatures["zsaservice.exe"] = "Zscaler | Client Connector Service | ZTNA";
%edr_process_signatures["zstunnel.exe"] = "Zscaler | Tunnel Service | ZTNA";
%edr_process_signatures["zsatraymanager.exe"] = "Zscaler | Tray Manager | ZTNA";
}
# =========================================================================
# Signature database: service names
# =========================================================================
sub init_service_sigs {
%edr_service_signatures["csfalconservice"] = "CrowdStrike | Falcon Sensor | EDR";
%edr_service_signatures["csagent"] = "CrowdStrike | Falcon Agent | EDR";
%edr_service_signatures["csfalconcontainer"] = "CrowdStrike | Falcon Container | EDR";
%edr_service_signatures["sentinelagent"] = "SentinelOne | Singularity Agent | EDR";
%edr_service_signatures["sentinelstaticengine"] = "SentinelOne | Static Engine | EDR";
%edr_service_signatures["cbdefense"] = "Carbon Black | Cloud Defense | EDR";
%edr_service_signatures["carbonblack"] = "Carbon Black | EDR | EDR";
%edr_service_signatures["cbcomms"] = "Carbon Black | Comms | EDR";
%edr_service_signatures["cbstream"] = "Carbon Black | Streaming | EDR";
%edr_service_signatures["windefend"] = "Microsoft | Windows Defender AV | AV";
%edr_service_signatures["mdcoresvc"] = "Microsoft | Defender Core Service | AV";
%edr_service_signatures["mpssvc"] = "Microsoft | Defender Firewall | AV";
%edr_service_signatures["wscsvc"] = "Microsoft | Security Center | AV";
%edr_service_signatures["webthreatdefsvc"] = "Microsoft | Web Threat Defense | AV";
%edr_service_signatures["webthreatdefusersvc"] = "Microsoft | Web Threat Defense (User) | AV";
%edr_service_signatures["sense"] = "Microsoft | Defender for Endpoint | EDR";
%edr_service_signatures["securityhealthservice"] = "Microsoft | Security Health | AV";
%edr_service_signatures["cyverasvc"] = "Palo Alto | Cortex XDR Cyvera | EDR";
%edr_service_signatures["trapssvc"] = "Palo Alto | Traps Service | EDR";
%edr_service_signatures["cyserver"] = "Palo Alto | Cortex XDR Server | EDR";
%edr_service_signatures["elastic-agent"] = "Elastic | Elastic Agent | EDR";
%edr_service_signatures["elastic-endpoint"] = "Elastic | Elastic Endpoint | EDR";
%edr_service_signatures["filebeat"] = "Elastic | Filebeat | Telemetry";
%edr_service_signatures["winlogbeat"] = "Elastic | Winlogbeat | Telemetry";
%edr_service_signatures["sepwscsvc"] = "Broadcom | SEP WSC Service | EPP";
%edr_service_signatures["sepmasterservice"] = "Broadcom | SEP Master Service | EPP";
%edr_service_signatures["ccsvchst"] = "Broadcom | Symantec Endpoint Protection | EPP";
%edr_service_signatures["sophossps"] = "Sophos | Endpoint | EPP";
%edr_service_signatures["hmpalert"] = "Sophos | Intercept X | EDR";
%edr_service_signatures["savservice"] = "Sophos | SAV Service | AV";
%edr_service_signatures["sophoshealth"] = "Sophos | Health Service | EPP";
%edr_service_signatures["sophosntpservice"] = "Sophos | Network Threat Protection | EPP";
%edr_service_signatures["sophosfilescanner"] = "Sophos | File Scanner | AV";
%edr_service_signatures["sophosagent"] = "Sophos | Management Agent | EPP";
%edr_service_signatures["tmntsrv"] = "Trend Micro | OfficeScan NT | AV";
%edr_service_signatures["tmlisten"] = "Trend Micro | Listener | EPP";
%edr_service_signatures["ds_agent"] = "Trend Micro | Deep Security | EDR";
%edr_service_signatures["tmbmsrv"] = "Trend Micro | Unauthorized Change Prevention | EPP";
%edr_service_signatures["coreserviceshell"] = "Trend Micro | Apex One | EDR";
%edr_service_signatures["mfefire"] = "Trellix | McAfee Firewall | EPP";
%edr_service_signatures["mfemms"] = "Trellix | McAfee Management | EPP";
%edr_service_signatures["masvc"] = "Trellix | McAfee Agent | EPP";
%edr_service_signatures["macmnsvc"] = "Trellix | McAfee Agent | EPP";
%edr_service_signatures["xagt"] = "Trellix | FireEye HX | EDR";
%edr_service_signatures["firesvc"] = "Trellix | FireEye HX Agent | EDR";
%edr_service_signatures["mfetp"] = "Trellix | McAfee Threat Prevention | EPP";
%edr_service_signatures["mfeesp"] = "Trellix | McAfee Endpoint Security | EPP";
%edr_service_signatures["ekrn"] = "ESET | Kernel Service | AV";
%edr_service_signatures["eei_agent"] = "ESET | Inspect Agent | EDR";
%edr_service_signatures["essvc"] = "ESET | Security Service | AV";
%edr_service_signatures["avp"] = "Kaspersky | Endpoint Security | AV";
%edr_service_signatures["klnagent"] = "Kaspersky | Network Agent | EPP";
%edr_service_signatures["epag"] = "Bitdefender | GravityZone | EDR";
%edr_service_signatures["epsecurityservice"] = "Bitdefender | Endpoint Security | EDR";
%edr_service_signatures["epintegrationservice"] = "Bitdefender | Integration Service | EDR";
%edr_service_signatures["epprotectedservice"] = "Bitdefender | Protected Service | EDR";
%edr_service_signatures["bdredline"] = "Bitdefender | Redline Agent | EDR";
%edr_service_signatures["cylancesvc"] = "BlackBerry | Cylance PROTECT | EPP";
%edr_service_signatures["fortiedr"] = "Fortinet | FortiEDR | EDR";
%edr_service_signatures["forticollector"] = "Fortinet | FortiEDR Collector | EDR";
%edr_service_signatures["forticlientmon"] = "Fortinet | FortiClient Monitor | EPP";
%edr_service_signatures["crssvc"] = "Cybereason | Sensor | EDR";
%edr_service_signatures["activeprobe"] = "Cybereason | Active Probe | EDR";
%edr_service_signatures["hurukai"] = "HarfangLab | EDR Agent | EDR";
%edr_service_signatures["psanhost"] = "WatchGuard | Panda Endpoint | EPP";
%edr_service_signatures["psuaservice"] = "WatchGuard | Panda Endpoint Service | EPP";
%edr_service_signatures["fsgk32"] = "WithSecure | F-Secure GateKeeper | AV";
%edr_service_signatures["fsav32"] = "WithSecure | F-Secure AV | AV";
%edr_service_signatures["wrsa"] = "Webroot | SecureAnywhere | AV";
%edr_service_signatures["taniumclient"] = "Tanium | Client | EPP";
%edr_service_signatures["taniumdetect"] = "Tanium | Detect | EDR";
%edr_service_signatures["ir_agent"] = "Rapid7 | Insight Agent | EDR";
%edr_service_signatures["sysmon"] = "Microsoft | Sysmon | Telemetry";
%edr_service_signatures["sysmon64"] = "Microsoft | Sysmon 64 | Telemetry";
%edr_service_signatures["wazuhsvc"] = "Wazuh | Agent | SIEM-EDR";
%edr_service_signatures["ossecagent"] = "Wazuh | OSSEC Agent | SIEM-EDR";
%edr_service_signatures["splunkforwarder"] = "Splunk | Forwarder | Telemetry";
%edr_service_signatures["huntressagent"] = "Huntress | Agent | EDR";
%edr_service_signatures["qualysagent"] = "Qualys | Cloud Agent | Vuln Scanner";
%edr_service_signatures["deepinstinctsvc"] = "Deep Instinct | Agent | EDR";
%edr_service_signatures["mbamservice"] = "Malwarebytes | Service | AV";
%edr_service_signatures["rphcpsvc"] = "LimaCharlie | Sensor | EDR";
%edr_service_signatures["velociraptor"] = "Velociraptor | Agent | DFIR";
# --- Avast / AVG ---
%edr_service_signatures["avastsvc"] = "Avast | AV Service | AV";
%edr_service_signatures["avast"] = "Avast | Antivirus | AV";
%edr_service_signatures["avgsvc"] = "AVG | AV Service | AV";
%edr_service_signatures["avgantivirus"] = "AVG | Antivirus Service | AV";
# --- Avira ---
%edr_service_signatures["antivirservice"] = "Avira | AntiVir Service | AV";
%edr_service_signatures["antivirscheduler"] = "Avira | Scheduler Service | AV";
%edr_service_signatures["avguard"] = "Avira | Real-Time Protection | AV";
# --- Norton / Gen Digital ---
%edr_service_signatures["norton"] = "Norton | Security Service | AV";
%edr_service_signatures["nsservice"] = "Norton | Security Service | AV";
%edr_service_signatures["navapsvc"] = "Norton | Auto-Protect | AV";
%edr_service_signatures["nswocsvc"] = "Norton | WSC Service | AV";
# --- Check Point Harmony ---
%edr_service_signatures["epsecurity"] = "Check Point | Endpoint Security | EPP";
%edr_service_signatures["tracsvrcalc"] = "Check Point | Tracker Service | EPP";
%edr_service_signatures["mediapatcher"] = "Check Point | Media Encryption | EPP";
# --- Comodo / Xcitium ---
%edr_service_signatures["cmdagent"] = "Comodo | Agent Service | EPP";
# NOTE: "cesvc" removed - false positive on Windows PimIndexMaintenanceSvc
# Comodo/Xcitium still detected via cmdagent (svc), cmdguard/cmdhlp (drv),
# cis.exe/cmdagent.exe/cavse.exe (proc).
# --- G Data ---
%edr_service_signatures["gdsc"] = "G Data | Security Client | AV";
%edr_service_signatures["gdfsvc"] = "G Data | File Server Security | AV";
%edr_service_signatures["gdscan"] = "G Data | Scanner | AV";
# --- Emsisoft ---
%edr_service_signatures["a2service"] = "Emsisoft | Anti-Malware Service | AV";
%edr_service_signatures["a2guard"] = "Emsisoft | Behavior Blocker | AV";
# --- Dr.Web ---
%edr_service_signatures["drwebservice"] = "Dr.Web | Service | AV";
%edr_service_signatures["dwengine"] = "Dr.Web | Scanning Engine | AV";
%edr_service_signatures["spideragent"] = "Dr.Web | SpIDer Agent | AV";
# --- AhnLab ---
%edr_service_signatures["v3svc"] = "AhnLab | V3 Endpoint | AV";
%edr_service_signatures["asdsvc"] = "AhnLab | ASD Service | AV";
# --- VIPRE / ThreatTrack ---
%edr_service_signatures["sbamsvc"] = "VIPRE | Anti-Malware Service | AV";
# --- Cisco Secure Endpoint (AMP) ---
%edr_service_signatures["ciscoampsvc"] = "Cisco | Secure Endpoint Service | EDR";
%edr_service_signatures["orbital"] = "Cisco | Orbital Agent | EDR";
%edr_service_signatures["immunetprotect"] = "Cisco | Immunet Protect | EDR";
# --- Zscaler ---
%edr_service_signatures["zscalerservice"] = "Zscaler | Client Connector | ZTNA";
%edr_service_signatures["ztunnel"] = "Zscaler | Tunnel Service | ZTNA";
}
# =========================================================================
# Signature database: kernel driver service names (SCM type 1/2/8)
#
# These are the SCM-registered names for kernel drivers. The BOF
# enumerates them via EnumServicesStatusExW with SERVICE_DRIVER and
# outputs "DRIVER_NAME: xxx" lines. Matching uses the same isin
# substring logic as service signatures.
#
# WHY THIS MATTERS:
# 1. Kernel-only components may not have a matching user-mode service
# name in the service signature DB.
# 2. A user-mode service can be stopped while the kernel driver stays
# loaded and enforcing callbacks/minifilter rules.
# 3. Driver names reveal minifilter, callback, and ETW kernel
# instrumentation that the process/service view cannot show.
# =========================================================================
sub init_driver_sigs {
# --- CrowdStrike ---
%edr_driver_signatures["csagent"] = "CrowdStrike | Falcon Kernel Driver | EDR";
%edr_driver_signatures["csboot"] = "CrowdStrike | Falcon Boot Driver | EDR";
%edr_driver_signatures["csdevicecontrol"] = "CrowdStrike | Device Control Driver | EDR";
# --- SentinelOne ---
%edr_driver_signatures["sentinelmonitor"] = "SentinelOne | Kernel Monitor | EDR";
%edr_driver_signatures["sentinelelam"] = "SentinelOne | ELAM Driver | EDR";
%edr_driver_signatures["sentineldevicecontrol"] = "SentinelOne | Device Control Driver | EDR";
%edr_driver_signatures["sentinelnetworkmonitor"] = "SentinelOne | Network Monitor Driver | EDR";
# --- Microsoft Defender ---
%edr_driver_signatures["wdfilter"] = "Microsoft | Defender Minifilter | AV";
%edr_driver_signatures["wdnisdrv"] = "Microsoft | Defender NIS Driver | AV";
%edr_driver_signatures["wdboot"] = "Microsoft | Defender Boot Driver | AV";
%edr_driver_signatures["mssecflt"] = "Microsoft | Defender for Endpoint Minifilter | EDR";
# --- Sysmon ---
%edr_driver_signatures["sysmondrv"] = "Microsoft | Sysmon Driver | Telemetry";
# --- Carbon Black ---
%edr_driver_signatures["carbonblackk"] = "Carbon Black | Kernel Driver | EDR";
%edr_driver_signatures["cbk7"] = "Carbon Black | Kernel Module | EDR";
%edr_driver_signatures["ctifile"] = "Carbon Black | File Filter | EDR";
%edr_driver_signatures["cticomms"] = "Carbon Black | Comms Driver | EDR";
# --- Cortex XDR (Palo Alto) ---
%edr_driver_signatures["cyverak"] = "Palo Alto | Cortex XDR Kernel Driver | EDR";
%edr_driver_signatures["tladriver"] = "Palo Alto | Cortex XDR TLA Driver | EDR";
%edr_driver_signatures["cyvrfsfd"] = "Palo Alto | Cortex XDR FS Filter | EDR";
# --- Elastic ---
%edr_driver_signatures["elasticendpoint"] = "Elastic | Endpoint Driver | EDR";
# --- Sophos ---
%edr_driver_signatures["sophosed"] = "Sophos | Endpoint Defense Driver | EPP";
%edr_driver_signatures["savonaccess"] = "Sophos | On-Access Filter | AV";
%edr_driver_signatures["sdcfilter"] = "Sophos | Data Control Filter | EPP";
%edr_driver_signatures["hmpalert"] = "Sophos | HitmanPro.Alert Driver | EDR";
%edr_driver_signatures["sophosntpflt"] = "Sophos | NTP Minifilter | EPP";
%edr_driver_signatures["safestorefilter"] = "Sophos | SafeStore Filter | EPP";
# --- Trend Micro ---
%edr_driver_signatures["tmcomm"] = "Trend Micro | Common Module Driver | EPP";
%edr_driver_signatures["tmactmon"] = "Trend Micro | Activity Monitor Driver | EDR";
%edr_driver_signatures["tmevtmgr"] = "Trend Micro | Event Manager Driver | EDR";
%edr_driver_signatures["tmebc"] = "Trend Micro | Exploit Block Driver | EDR";
%edr_driver_signatures["tmumh"] = "Trend Micro | UMH Driver | EPP";
%edr_driver_signatures["tmtdi"] = "Trend Micro | TDI Driver | EPP";
%edr_driver_signatures["tmxpflt"] = "Trend Micro | Cross-Platform Minifilter | EDR";
# --- Trellix / McAfee / FireEye ---
%edr_driver_signatures["mfehidk"] = "Trellix | McAfee HIPS IDS Kernel | EPP";
%edr_driver_signatures["mfefirek"] = "Trellix | McAfee Firewall Kernel | EPP";
%edr_driver_signatures["mfencbdc"] = "Trellix | McAfee Network Control | EPP";
%edr_driver_signatures["mfeavfk"] = "Trellix | McAfee AV Filter Kernel | AV";
%edr_driver_signatures["mfewfpk"] = "Trellix | McAfee WFP Kernel | EPP";
%edr_driver_signatures["mfeaskm"] = "Trellix | McAfee Anti-Stealth Kernel | EPP";
%edr_driver_signatures["mfencfilter"] = "Trellix | McAfee Network Content Filter | EPP";
%edr_driver_signatures["hxdriver"] = "Trellix | FireEye HX Kernel Driver | EDR";
%edr_driver_signatures["fekern"] = "Trellix | FireEye Kernel Driver | EDR";
%edr_driver_signatures["wfp_mrt"] = "Trellix | FireEye WFP MRT Driver | EDR";
# --- ESET ---
%edr_driver_signatures["eamonm"] = "ESET | File System Monitor | AV";
%edr_driver_signatures["ehdrv"] = "ESET | Helper Driver | AV";
%edr_driver_signatures["ekbdflt"] = "ESET | Keyboard Filter | AV";
%edr_driver_signatures["epfwwfp"] = "ESET | Firewall WFP Driver | AV";
%edr_driver_signatures["epfw"] = "ESET | Firewall Driver | AV";
%edr_driver_signatures["eelam"] = "ESET | ELAM Driver | AV";
%edr_driver_signatures["edevmon"] = "ESET | Device Monitor | AV";
# --- Kaspersky ---
%edr_driver_signatures["klif"] = "Kaspersky | Interceptor Filter | AV";
%edr_driver_signatures["klhk"] = "Kaspersky | Hook Driver | AV";
%edr_driver_signatures["kltdi"] = "Kaspersky | TDI Driver | AV";
%edr_driver_signatures["klwfp"] = "Kaspersky | WFP Callout Driver | AV";
%edr_driver_signatures["kneps"] = "Kaspersky | Network Protection | AV";
%edr_driver_signatures["klelam"] = "Kaspersky | ELAM Driver | AV";
%edr_driver_signatures["klbackupdisk"] = "Kaspersky | Backup Disk Filter | AV";
%edr_driver_signatures["klam"] = "Kaspersky | Anti-Malware Filter | AV";
%edr_driver_signatures["klboot"] = "Kaspersky | Boot Driver | AV";
%edr_driver_signatures["kldisk"] = "Kaspersky | Disk Filter | AV";
# --- Bitdefender ---
%edr_driver_signatures["bdselfpr"] = "Bitdefender | Self-Protection Driver | EDR";
%edr_driver_signatures["trufos"] = "Bitdefender | Scanning Driver | AV";
%edr_driver_signatures["bdfndisf"] = "Bitdefender | Network Filter | AV";
%edr_driver_signatures["gzflt"] = "Bitdefender | GravityZone Minifilter | EDR";
%edr_driver_signatures["bdelam"] = "Bitdefender | ELAM Driver | AV";
%edr_driver_signatures["avckf"] = "Bitdefender | AV Callback Filter | AV";
%edr_driver_signatures["bddevflt"] = "Bitdefender | Device Filter | AV";
%edr_driver_signatures["bdfwfpf"] = "Bitdefender | WFP Firewall Filter | AV";
# --- Cylance (BlackBerry) ---
%edr_driver_signatures["cylancedrv"] = "BlackBerry | Cylance Kernel Driver | EPP";
# --- Fortinet ---
%edr_driver_signatures["fortishield"] = "Fortinet | FortiEDR Shield Driver | EDR";
%edr_driver_signatures["fortimon"] = "Fortinet | FortiClient Monitor Driver | EPP";
%edr_driver_signatures["fdedrdrv"] = "Fortinet | FortiEDR Kernel Driver | EDR";
# --- Cybereason ---
%edr_driver_signatures["psycheddriver"] = "Cybereason | Kernel Driver | EDR";
%edr_driver_signatures["psychedfilterdriver"] = "Cybereason | Minifilter Driver | EDR";
# --- Broadcom / Symantec ---
%edr_driver_signatures["srtsp"] = "Broadcom | Symantec Real-Time SP | AV";
%edr_driver_signatures["symevent"] = "Broadcom | Symantec Event Driver | EPP";
%edr_driver_signatures["bhdrvx64"] = "Broadcom | Symantec SONAR Driver | EPP";
%edr_driver_signatures["srtspx"] = "Broadcom | SEP Real-Time SP | AV";
%edr_driver_signatures["symefasi"] = "Broadcom | Symantec FS Monitor | EPP";
%edr_driver_signatures["symefa"] = "Broadcom | Symantec Extended File Attrs | EPP";
# --- WatchGuard / Panda ---
%edr_driver_signatures["pskmad"] = "WatchGuard | Panda Kernel Monitor | EPP";
%edr_driver_signatures["psinfile"] = "WatchGuard | Panda File Filter | EPP";
%edr_driver_signatures["psinproc"] = "WatchGuard | Panda Process Filter | EPP";
# --- WithSecure / F-Secure ---
%edr_driver_signatures["fsdfw"] = "WithSecure | F-Secure Firewall Driver | AV";
%edr_driver_signatures["fshs"] = "WithSecure | F-Secure HS Driver | AV";
%edr_driver_signatures["xfsgk"] = "WithSecure | F-Secure GateKeeper Driver | AV";
%edr_driver_signatures["fsatp"] = "WithSecure | F-Secure ATP Driver | EDR";
%edr_driver_signatures["fses"] = "WithSecure | F-Secure Endpoint Driver | AV";
# --- Deep Instinct ---
%edr_driver_signatures["deepinstinctdrv"] = "Deep Instinct | Kernel Driver | EDR";
# --- Huntress ---
%edr_driver_signatures["huntressdrv"] = "Huntress | Kernel Driver | EDR";
# --- Avast / AVG ---
%edr_driver_signatures["aswsp"] = "Avast | Self-Protection Driver | AV";
%edr_driver_signatures["aswsnx"] = "Avast | Virtualization Driver | AV";
%edr_driver_signatures["aswmonflt"] = "Avast | Monitor Minifilter | AV";
%edr_driver_signatures["aswarpt"] = "Avast | Anti-Rootkit Driver | AV";
%edr_driver_signatures["aswstm"] = "Avast | Stream Filter | AV";
# --- Malwarebytes ---
%edr_driver_signatures["mbamswissarmy"] = "Malwarebytes | Swiss Army Kernel Driver | AV";
%edr_driver_signatures["farflt"] = "Malwarebytes | File System Monitor | AV";
%edr_driver_signatures["mbam"] = "Malwarebytes | Anti-Malware Driver | AV";
# --- Avira ---
%edr_driver_signatures["avgntflt"] = "Avira | Network Filter Driver | AV";
%edr_driver_signatures["avipbb"] = "Avira | IP Blocker Bridge | AV";
# --- Webroot ---
%edr_driver_signatures["wrkrn"] = "Webroot | Kernel Driver | AV";
# --- Check Point ---
%edr_driver_signatures["epklib"] = "Check Point | Endpoint Kernel Library | EPP";
%edr_driver_signatures["cpprotect"] = "Check Point | SandBlast Protection Driver | EDR";
# --- Comodo / Xcitium ---
%edr_driver_signatures["cmdguard"] = "Comodo | Guard Driver | EPP";
%edr_driver_signatures["cmdhlp"] = "Comodo | Helper Driver | EPP";
# --- G Data ---
%edr_driver_signatures["gdkbflt64"] = "G Data | Kernel Block Filter | AV";
%edr_driver_signatures["gddisk"] = "G Data | Disk Filter | AV";
# --- CyberArk ---
%edr_driver_signatures["cybkerneltracker"] = "CyberArk | Kernel Tracker Driver | EPP";
# --- Tanium ---
%edr_driver_signatures["taniumrecorderdrv"] = "Tanium | Recorder Kernel Driver | Telemetry";
# --- Nexthink ---
%edr_driver_signatures["nxtrdrv"] = "Nexthink | Endpoint Driver | Telemetry";
# --- Emsisoft ---
%edr_driver_signatures["a2dskm"] = "Emsisoft | Disk Monitor Driver | AV";
# --- Dr.Web ---
%edr_driver_signatures["dwprot"] = "Dr.Web | Protection Driver | AV";
# --- AhnLab ---
%edr_driver_signatures["v3monitor"] = "AhnLab | V3 Endpoint Monitor | AV";
# --- VIPRE / ThreatTrack ---
%edr_driver_signatures["sbredrv"] = "VIPRE | Kernel Driver | AV";
# --- Endgame (Elastic legacy) ---
%edr_driver_signatures["esensor"] = "Endgame | Sensor Driver | EDR";
# --- Dell Secureworks ---
%edr_driver_signatures["groundling64"] = "Secureworks | Red Cloak Driver (x64) | EDR";
# --- Cisco Secure Endpoint (AMP) ---
%edr_driver_signatures["immunetprotect"] = "Cisco | Secure Endpoint Protection | EDR";
%edr_driver_signatures["immunetselfprotect"] = "Cisco | Secure Endpoint Self-Protection | EDR";
%edr_driver_signatures["isedrv"] = "Cisco | ISE Posture Driver | EPP";
# --- Norton / Gen Digital ---
%edr_driver_signatures["symds"] = "Norton | Symantec DS Driver | AV";
%edr_driver_signatures["symnets"] = "Norton | Symantec Network Security | AV";
%edr_driver_signatures["navex"] = "Norton | NAV Extraction | AV";
%edr_driver_signatures["naveng"] = "Norton | NAV Engine | AV";
# --- Avast / AVG additional ---
%edr_driver_signatures["aswbidsha"] = "Avast | Behavior Shield A | AV";
%edr_driver_signatures["aswbidsdriver"] = "Avast | Behavior Shield Driver | AV";
%edr_driver_signatures["aswelam"] = "Avast | ELAM Driver | AV";
# --- Avira additional ---
%edr_driver_signatures["avkmgr"] = "Avira | AV Kernel Manager | AV";
# --- Comodo / Xcitium additional ---
%edr_driver_signatures["inspect"] = "Comodo | File Inspection Driver | EPP";
# --- Emsisoft additional ---
%edr_driver_signatures["a2accx64"] = "Emsisoft | Access Filter (x64) | AV";
# --- AhnLab additional ---
%edr_driver_signatures["v3flt2k"] = "AhnLab | V3 Filter Driver | AV";
%edr_driver_signatures["ahksvr"] = "AhnLab | Hook Server Driver | AV";
# --- Zscaler ---
%edr_driver_signatures["zscalertun"] = "Zscaler | Tunnel Driver | ZTNA";
}
# Initialize all databases
init_process_sigs();
init_service_sigs();
init_driver_sigs();
# =========================================================================
# Helpers
# =========================================================================
sub get_vendor {
local('@parts');
@parts = split(" \\| ", $1);
if (size(@parts) >= 1) { return @parts[0]; }
return "Unknown";
}
sub get_product {
local('@parts');
@parts = split(" \\| ", $1);
if (size(@parts) >= 2) { return @parts[1]; }
return "Unknown";
}
sub get_category {
local('@parts');
@parts = split(" \\| ", $1);
if (size(@parts) >= 3) { return @parts[2]; }
return "Unknown";
}
# =========================================================================
# Service name extraction from various output formats
#
# Extracts individual service names from three output formats:
# 1. sc query / BOF: "SERVICE_NAME: WinDefend" -> "windefend"
# 2. PowerShell: "WinDefend" -> "windefend"
#
# Returns array of lowercased service names. This is critical for avoiding
# false positives: blob-level isin matching against the full sc query output
# would match display names (e.g. "sense" in "System Event Notification
# Service") and other metadata. By extracting only service short names,
# signature matching operates on actual service identifiers only.
# =========================================================================
sub edr_extract_service_names {
local('$output @names @lines $line $name');
$output = $1;
@names = @();
@lines = split("\n", $output);
foreach $line (@lines) {
# Trim leading/trailing whitespace (Sleep trim)
$line = ["$line" trim];
# sc query / BOF format: "SERVICE_NAME: WinDefend"
if ($line ismatch 'SERVICE_NAME: (.+)') {
$name = lc(matched()[0]);
$name = ["$name" trim];
if (strlen($name) > 0) {
push(@names, $name);
}
continue;
}
# PowerShell format: plain service name, one per line.
# Skip empty lines, lines with colons (sc query detail lines like
# DISPLAY_NAME:, TYPE:, STATE:), and lines that look like headers/footers.
if (strlen($line) == 0) { continue; }
if (":" isin $line) { continue; }
if ("---" isin $line) { continue; }
if ("(" isin $line) { continue; }
# Remaining non-empty lines without colons = PS service names
$name = lc($line);
$name = ["$name" trim];
if (strlen($name) > 0 && strlen($name) < 256) {
push(@names, $name);
}
}
return @names;
}
# =========================================================================
# Driver name extraction from BOF output
#
# Extracts driver names from "DRIVER_NAME: xxx" lines in the BOF output.
# Returns array of lowercased driver service names.
# Same logic as SERVICE_NAME extraction but with different prefix.
#
# Only the BOF produces DRIVER_NAME lines. The PowerShell and cmd.exe
# commands enumerate Win32 services only, so this function returns an
# empty array for their output -- which is correct behavior.
# =========================================================================
sub edr_extract_driver_names {
local('$output @names @lines $line $name');
$output = $1;
@names = @();
@lines = split("\n", $output);
foreach $line (@lines) {
$line = ["$line" trim];
# BOF format: "DRIVER_NAME: WdFilter"
if ($line ismatch 'DRIVER_NAME: (.+)') {
$name = lc(matched()[0]);
$name = ["$name" trim];
if (strlen($name) > 0) {
push(@names, $name);
}
}
}
return @names;
}
# =========================================================================
# Tactical guidance: vendor-specific tradecraft notes
# =========================================================================
# =========================================================================
# Core parser: process list analysis
# =========================================================================
sub edr_parse_processes {
local('$bid $output $caller $lower_output $key $product_info $vendor $product $category');
local('$match_count %found $cat_edr $cat_av $cat_epp $cat_tel');
$bid = $1;
$output = $2;
$caller = $3; # "check" or "enum"
$lower_output = lc($output);
$match_count = 0;
%found = %();
$cat_edr = 0; $cat_av = 0; $cat_epp = 0; $cat_tel = 0;
blog($bid, "");
if ($caller eq "enum") {
blog($bid, "\c9[EDR-ENUM]\c0 ============ Security Product Enumeration ============");
blog($bid, "\c9[EDR-ENUM]\c0 Method: Process List (bps) + WMI SecurityCenter2");
blog($bid, "\c9[EDR-ENUM]\c0 NOISE: \c4**** High\c0 - bps native + PowerShell WMI query");
blog($bid, "\c9[EDR-ENUM]\c0 Sig DB: " . size(%edr_process_signatures) . " known processes");
blog($bid, "\c9[EDR-ENUM]\c0 ======================================================");
} else {
blog($bid, "\c9[EDR-ENUM]\c0 ============ Security Product Enumeration ============");
blog($bid, "\c9[EDR-ENUM]\c0 Method: Process List Analysis (bps)");
blog($bid, "\c9[EDR-ENUM]\c0 NOISE: \c3* Minimal\c0 - Beacon-native, in-process");
blog($bid, "\c9[EDR-ENUM]\c0 Sig DB: " . size(%edr_process_signatures) . " known processes");
blog($bid, "\c9[EDR-ENUM]\c0 ======================================================");