Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/3lp4tr0n/beaconhunter
Defensive ToolsMalware AnalysisThreat IntelligenceIncident Response
GitHub3lp4tr0n/beaconhunter

BeaconHunter

Detect and respond to Cobalt Strike beacons using ETW.

View Repository
516494 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

BeaconHunter

Behavior based monitoring and hunting tool built in C# leveraging ETW tracing. Blue teamers can use this tool to detect and respond to potential Cobalt Strike beacons. Red teamers can use this tool to research ETW bypasses and discover new processes that behave like beacons.

Author: Andrew Oliveau (@AndrewOliveau)

image

TL;DR

Beacon implants injected in a benign process live in a thread with a Wait:DelayExecution state (probably related to Cobalt Strike's sleep). Find all processes that contain a thread in a Wait:DelayExecution state. Then, leverage ETW tracing to specifically monitor suspicious thread activity:

  • HTTP/HTTPS callbacks
  • DNS queries
  • File system (cd,ls,upload,rm)
  • Process termination (kill)
  • Shell commands (run,execute)

Score suspicious behavior. Log, display, and take action against them.

Building / Installation

Pre-compiled

Release

or git clone and go to Release folder.

.NET Framework version

4.5

Nuggets:

Tools -> NuGet Package Manager -> Package Manager Console

  • Install-Package ConsoleTables -Version 2.4.2
  • Install-Package Microsoft.Diagnostics.Tracing.TraceEvent -Version 2.0.64
  • Install-Package System.Runtime.InteropServices.RuntimeInformation -Version 4.3.0

Running BeaconHunter

  • Open PowerShell or CMD as an Administrator
  • .\BeaconHunter.exe

MONITOR

Network Beacon Score
  • Score is determined by calculating the time difference between beacon callbacks (delta), then calculating the 1st derivative of delta, and then feeding the answer to an inverse function 100/x where x is the 1st derivative of delta. (Note: There is probably a better way, but it works)

image

IP and PORT Stats

image

DNS Queries

  • Helpful to detect DNS beacons.

image

Directory Change

image

New Uploaded Files

image

Shell Commands

  • Detects PPID spoofing

image

ACTION

Suspend Thread ID - Manual

image

Suspend Thread ID - Automated

  • Set a score threshold. If Network Beacon Scores goes above threshold, BeaconHunter will automatically suspend the thread.

image

References

  • ETW Providers: https://gist.github.com/guitarrapc/35a94b908bad677a7310#file-providerlist-md
  • ETW Events: https://github.com/jdu2600/Windows10EtwEvents
  • TraceEvent Library Guide: https://github.com/microsoft/perfview/blob/main/documentation/TraceEvent/TraceEventProgrammersGuide.md
Download Tool