Skip to main content

New stats hunting skill

  • August 19, 2026
  • 2 replies
  • 24 views

gkush
Staff
Forum|alt.badge.img+6

The SecOps platform has had a lot more mathematical analytics capabilities built into it but working with it has its own learning curve, I’ve found.Β  To help with that, I created a new β€œStats Hunter” skill:

https://github.com/GooGKush/secops-statistical-hunter

Β 

I’ve tried to make the skill work with someone to find the right kind of search, guiding the users to methodologies and choices before generating a multi-stage YARA-L stats search.Β  It also tried to give you guidance on noise thresholds.Β Β 

Β 

For example:

Β 

> Using the stats hunter skill, can you help me identify low prevalence domains over the last month?


β–Έ Thought for 3s, 906 tokens
Analyzing Query Approaches
To identify low prevalence domains over the last month using the SecOps Statistical Hunter (secops-statistical-hunter) methodology, we model this threat hunting workflow around
Fleet-Wide Entity Prevalence (P ≀ 2 internal endpoints) and Query Volume Dispersion over raw telemetry (UDM_EVENTS).
──────
### 1. Threat Archetype & Statistical Model

β€’ Threat Archetype: LOW_PREVALENCE_INFRASTRUCTURE / C2_STAGING_DETECTION
β€’ Telemetry Source: UDM_EVENTS (NETWORK_DNS) (with optional pivot to NETWORK_HTTP / NETWORK_CONNECTION)
β€’ Mathematical Primitive: Enterprise-wide unique host count P = count_distinct (principal.asset.ip) aggregated per domain over a rolling 30-day window.
β€’ Hypothesis: Legitimate services (CDNs, OS update servers, major SaaS tools) exhibit high enterprise prevalence (P gg 10 hosts). In contrast, targeted adversary infrastructure
(stealthy C2 callbacks, staged payloads, spear-phishing destinations) typically resolves on only 1–2 endpoints.
──────
### 2. Semantic Sensitivity Tiers

Before running across 30 days of telemetry, select a sensitivity boundary that balances signal coverage against analyst triage capacity:

Tier β”‚ Host Prevalence (P) β”‚ Query Volume Floor / Ceiling β”‚ Physical Interpretation & False Positive Profile
────────────────────────┼─────────────────────┼──────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────
CONSERVATIVE β”‚ P = 1 host β”‚ 10 ≀ Queries ≀ 500 β”‚ Single-Host Persistent Beaconing: Surfaces domains queried repeatedly by exactly one host. Filters
β”‚ β”‚ β”‚ out ephemeral one-shot lookups and widespread SaaS.
BALANCED (Recommended) β”‚ P ≀ 2 hosts β”‚ 3 ≀ Queries ≀ 500 β”‚ Targeted Infrastructure & Initial Access: Captures staging and C2 callbacks across isolated hosts
β”‚ β”‚ β”‚ while filtering transient single-packet noise.
AGGRESSIVE β”‚ P ≀ 5 hosts β”‚ Queries β‰₯ 1 β”‚ Broad Outlier Sweep: Surfaces every low-volume domain across the fleet. High analyst triage volume;
β”‚ β”‚ β”‚ includes typos and ephemeral CDN nodes.
❌ NOISE CLIFF β”‚ P > 10 hosts β”‚ No volume floor β”‚ Normal enterprise web traffic. Do not hunt at this threshold.
──────

Then it gave me some options - both multi-stage and β€œclassic” YARA-L and asked what I wanted to do next.Β  I went with a test probe to help it calibrate

The Skill is designed to help filter out noise and you see it doing that and clustering types of findings:Β 

For the output I tried to come up with summary views by default:

Β 

Whereas if you’re using an MCP client that supports Javascript graphical renderings, it can generate charts like it did here for a different query:

Β 

Β 

I’ve had some interesting results with broad questions like β€œCan you help me identify shadow AI in my environment leveraging my EDR and Network logs?”

Please give it a try and let me know how it works out?

2 replies

matthewnichols
Community Manager
Forum|alt.badge.img+20
  • Community Manager
  • August 19, 2026

​@AymanC ​@EovedΒ @rodajrc ​@hliu ​@citreno ​@AnimSparrowΒ Curious to get your thoughts on this


AnimSparrow
Forum|alt.badge.img+6
  • Bronze 5
  • August 20, 2026

I’ve tested on short probe of data as we are trying to build something waaaay different but I have to admit it is very β€˜admin’ friendly and testing was smooth. Unlucky for me the amount of that I could process is too small to provide final verdict about usefulness or more like about valid output but for my part of ingestion it show 100% accuracy. Leaved it in my wardrobe to test when someone decide to go this way (dynamic environment and company yay!)