aCyberSec Logo
Skip to article
Inside this article · 06 sections
AI in SecurityField Guide

Machine Learning Threat Hunting: How Analysts Find Suspicious Behavior Faster

A single hypothesis-driven hunt with a sample query, evidence review, and outcome—using labeled synthetic telemetry.

Suman Lama2 min read06 sectionsMay 18, 2026 · Updated November 16, 2026
100%
Machine Learning Threat Hunting: How Analysts Find Suspicious Behavior Faster

Reader task

Run one complete hunt cycle: hypothesis → query → evidence → outcome. Avoid multi-example laundry lists; depth beats breadth.

Hypothesis (one only)

Hypothesis H1: A compromised developer workstation is using a living-off-the-land binary to stage source code to an external host during off-hours.

Why this hypothesis: recent phishing against engineering, plus ML clustering showed rare combinations of powershell.exe → curl.exe → large HTTPS PUT at night for a single host class.

Scope: corporate laptops in OU=Engineering, last 7 days. Authorization: internal hunt on owned telemetry only.

Sample query (illustrative SIEM-style)

SYNTHETIC QUERY PATTERN — adapt to your platform; not a guaranteed production rule.

DeviceProcessEvents
| where Timestamp > ago(7d)
| where InitiatingProcessFileName =~ "powershell.exe"
| where FileName in ("curl.exe","wget.exe")
| where ProcessCommandLine has_any ("PUT","--upload-file","-T ")
| where DeviceName startswith "eng-"
| where hourofday(Timestamp) < 6 or hourofday(Timestamp) > 22
| project Timestamp, DeviceName, AccountName, ProcessCommandLine, RemoteUrl
| join kind=leftouter (
    DeviceNetworkEvents
    | where RemoteIPType == "Public"
    | project Timestamp, DeviceName, RemoteIP, RemoteUrl, BytesSent
  ) on DeviceName, Timestamp
| where BytesSent > 50000000

ML assist (how it sped the hunt): an unsupervised cluster labeled “rare off-hours upload chain” produced the seed process pair; the hunter wrote the query—not the model.

Evidence reviewed

SYNTHETIC EVIDENCE PACKAGE:

  • eng-042 matched once: 23:41, AccountName=dev.lee, BytesSent≈220 MB to https://files.example-cloud.test/u/ (fictional domain).
  • Parent script path: C:\Users\dev.lee\tools\sync_notes.ps1 (user-created).
  • No LSASS access, no new local admin, no lateral RDP.
  • Ticket from last week: developer asked IT for a personal knowledge-base sync tool—request denied, user installed anyway.

Outcome: Policy violation / shadow IT, not confirmed APT exfiltration. Actions: remove tool, user counseling, add detection for unsigned sync scripts, close H1 as not validated for compromise.

If evidence had included unexpected credential dumping or access to repositories outside the user’s projects, outcome would escalate to incident response.

Why one deep hunt beats five shallow stories

Hunting quality is measured by documented hypotheses, queries that others can rerun, evidence preserved, and clear outcomes (validated / not validated / inconclusive). ML helps propose clusters and rare sequences; it does not finish the hunt.

Conclusion

Threat hunting with ML is faster when models propose where to look and humans own the query, evidence, and verdict. Reuse the H1 pattern: one hypothesis, one query, one evidence package, one outcome.

About the author

Suman Lama

Founder of ACyberSec. Writes practical guides on secure development, data protection, and privacy-conscious cybersecurity workflows.

View author profile

Your next read

Keep building your knowledge.

All articles

AI in Security

Machine Learning for Threat Detection: How Cybersecurity Teams Detect Unknown Attacks

2 min read

Read guide

AI in Security

Cyber Threat Detection Using Machine Learning: Benefits, Examples, and Limitations

2 min read

Read guide

Back to top