MCPcopy Index your code
hub / github.com/FourCoreLabs/EDRHunt

github.com/FourCoreLabs/EDRHunt @v1.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.0 ↗ · + Follow
187 symbols 374 edges 42 files 11 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

EDRHunt

goreleaser

EDRHunt scans Windows services, drivers, processes, registry, wmi for installed EDRs (Endpoint Detection And Response). Read more about EDRHunt here.

asciicast

Install

  • Binary
  • Download the latest release from the release section. Releases are built for windows/amd64.

  • Go

  • Requires Go to be installed on system. Tested on Go1.17+.
  • go install github.com/fourcorelabs/edrhunt/cmd/EDRHunt@master

Usage

  • Find installed EDRs
$ .\EDRHunt.exe scan
[EDR]
Detected EDR: Windows Defender
Detected EDR: Kaspersky Security
  • Scan Everything
$ .\EDRHunt.exe all
Running in user mode, escalate to admin for more details.
Scanning processes, services, drivers, wmi, and registry...
[PROCESSES]

Suspicious Process Name: MsMpEng.exe
Description: MsMpEng.exe
Caption: MsMpEng.exe
Binary:
ProcessID: 6764
Parent Process: 1148
Process CmdLine :
File Metadata:
Matched Keyword: [msmpeng]


Suspicious Process Name: NisSrv.exe
Description: NisSrv.exe
Caption: NisSrv.exe
Binary:
ProcessID: 9840
Parent Process: 1148
Process CmdLine :
File Metadata:
Matched Keyword: [nissrv]
...
  • Find drivers matching EDR keywords
    __________  ____     __  ____  ___   ________
   / ____/ __ \/ __ \   / / / / / / / | / /_  __/
  / __/ / / / / /_/ /  / /_/ / / / /  |/ / / /
 / /___/ /_/ / _, _/  / __  / /_/ / /|  / / /
/_____/_____/_/ |_|  /_/ /_/\____/_/ |_/ /_/

FourCore Labs (https://fourcore.vision) | Version: 1.1

Running in user mode, escalate to admin for more details.
[DRIVERS]
Suspicious Driver Module: WdFilter.sys
Driver FilePath: c:\windows\system32\drivers\wd\wdfilter.sys
Driver File Metadata:
        ProductName: Microsoft® Windows® Operating System
        OriginalFileName: WdFilter.sys
        InternalFileName: WdFilter
        Company Name: Microsoft Corporation
        FileDescription: Microsoft antimalware file system filter driver
        ProductVersion: 4.18.2109.6
        Comments:
        LegalCopyright: © Microsoft Corporation. All rights reserved.
        LegalTrademarks:
Matched Keyword: [antimalware malware]

Suspicious Driver Module: hvsifltr.sys
Driver FilePath: c:\windows\system32\drivers\hvsifltr.sys
Driver File Metadata:
        ProductName: Microsoft® Windows® Operating System
        OriginalFileName: hvsifltr.sys.mui
        InternalFileName: hvsifltr.sys
        Company Name: Microsoft Corporation
        FileDescription: Microsoft Defender Application Guard Filter Driver
        ProductVersion: 10.0.19041.1
        Comments:
        LegalCopyright: © Microsoft Corporation. All rights reserved.
        LegalTrademarks:
Matched Keyword: [defender]

Suspicious Driver Module: WdNisDrv.sys
Driver FilePath: c:\windows\system32\drivers\wd\wdnisdrv.sys
Driver File Metadata:
        ProductName: Microsoft® Windows® Operating System
        OriginalFileName: wdnisdrv.sys
        InternalFileName: wdnisdrv.sys
        Company Name: Microsoft Corporation
        FileDescription: Windows Defender Network Stream Filter
        ProductVersion: 4.18.2109.6
        Comments:
        LegalCopyright: © Microsoft Corporation. All rights reserved.
        LegalTrademarks:
Matched Keyword: [defender]
...
  • Find services matching EDR keywords
$ .\EDRHunt.exe -s
  • Find drivers matching EDR keywords
$ .\EDRHunt.exe -d
  • Find registry keys matching EDR keywords
$ .\EDRHunt.exe -r
  • Find WMI Repository keys matching EDR keywords
$ .\EDRHunt.exe -w

Detections

EDR Detections Currently Available

  • Windows Defender
  • Kaspersky Security
  • Symantec Security
  • Crowdstrike Security
  • Mcafee Security
  • Cylance Security
  • Carbon Black
  • SentinelOne
  • FireEye
  • Elastic EDR
  • Qualys EDR
  • Trend Micro EDR
  • ESET EDR
  • Cybereason EDR
  • BitDefender EDR
  • Checkpoint EDR
  • Cynet EDR
  • DeepInstinct EDR
  • Sophos EDR
  • Fortinet EDR
  • MalwareBytes EDR
  • LimaCharlie Agent

More to be added soon.

Community

Would appreciate if you ran EDRHunt on your own deployments and test the detections! Thanks.

Extension points exported contracts — how you extend this code

EDRDetection (Interface)
(no doc) [24 implementers]
pkg/resources/scan_edr.go
Recon (Interface)
(no doc)
pkg/resources/edrRecon.go

Core symbols most depended-on inside this repo

CountMatchesAll
called by 24
pkg/resources/systemdata.go
FileMetaDataParser
called by 8
pkg/edrRecon/filechecker_windows.go
GetFileMetaData
called by 6
pkg/edrRecon/filechecker_windows.go
doGetProcAddress
called by 3
pkg/edrRecon/drivers_windows.go
syscall3
called by 3
pkg/edrRecon/drivers_windows.go
CheckDrivers
called by 3
pkg/edrRecon/drivers_windows.go
CheckServices
called by 3
pkg/edrRecon/services_windows.go
CheckAVWmiRepo
called by 3
pkg/edrRecon/wmi_windows.go

Shape

Method 82
Function 59
Struct 39
TypeAlias 5
Interface 2

Languages

Go100%

Modules by API surface

pkg/edrRecon/drivers_windows.go19 symbols
pkg/resources/edrRecon.go13 symbols
cmd/EDRHunt/main.go13 symbols
pkg/edrRecon/edrRecon_test.go11 symbols
pkg/edrRecon/wmi_windows.go6 symbols
pkg/util/wmi/wmi.go5 symbols
pkg/resources/scan_edr.go5 symbols
pkg/scanners/scan_win_defender.go4 symbols
pkg/scanners/scan_trendmicro.go4 symbols
pkg/scanners/scan_symantec.go4 symbols
pkg/scanners/scan_sophos.go4 symbols
pkg/scanners/scan_sentinelone.go4 symbols

For agents

$ claude mcp add EDRHunt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact