Back to Blog
Detection Engineering Alert Triage

AI-Assisted Threat Hunting Across Cloud Workloads

Divya Krishnaswamy 9 min read
AI-assisted threat hunting across cloud workloads

Traditional threat hunting assumes an analyst has enough time to formulate a hypothesis, write a query, examine the results, refine, and iterate. In a cloud environment running 200 workloads across three accounts with logs arriving from fifteen sources, the iteration cycle breaks down. The data volume is too large to skim, the query surface area is too broad to cover manually, and the signal-to-noise ratio in raw logs is too low to sustain attention. The analyst either spends their entire shift hunting one hypothesis or skims too quickly to catch anything subtle.

AI-assisted threat hunting doesn't replace the hypothesis-driven approach. It changes what kind of hypotheses are tractable by handling the data volume problem that makes manual hunting ineffective at cloud scale.

The hypothesis problem at scale

A threat hunting hypothesis starts with a question: "Are any service accounts accessing secrets outside their normal operational pattern?" That question is straightforward. Answering it manually in an environment with 400 service accounts, 12 secrets management services, and 90 days of CloudTrail history is not. You'd need to build a baseline for each account's access pattern, then flag deviations. That's a data processing problem that an analyst can't solve with ad-hoc queries in any reasonable timeframe.

What AI-assisted hunting does is establish those baselines continuously and automatically, so when an analyst formulates the hypothesis, the system already has an answer. Instead of spending six hours building and running queries to answer one question, the analyst gets a pre-computed anomaly score per entity with the supporting evidence. The hypothesis is still human-generated. The data work is automated.

What AI-assisted hunting actually covers well

Behavioral deviation detection is the strongest use case. If a lambda function has made the same set of API calls in the same pattern for eight weeks and then on Tuesday calls an API it's never called before, that deviation is a signal worth examining. A human analyst can see this for one function. AI handles it for all 200 at once.

Cross-entity correlation is the second strong use case. A single event, a new IAM role created, is low signal. A new IAM role created by a user who also accessed secrets that day, who also made an API call to a service in a region they've never used, is a different category of signal. The correlation across three separate log sources, all within a 90-minute window, is the kind of pattern that gets missed in manual review because the analyst is looking at each source independently.

Graph-based lateral movement detection is a newer application that's showing genuine promise. Cloud environments have complex permission graphs: which roles can assume which other roles, which policies allow access to which resources, which identities can pivot to new services. Modeling that graph and detecting paths that an attacker could traverse, then looking for evidence of traversal, is a hunting technique that's only tractable with automated graph traversal. Manual analysis of permission graphs in multi-account AWS environments is extremely difficult and gets missed regularly.

What AI-assisted hunting does NOT do well

Context interpretation is still a human job. An AI system can tell you that a particular API call pattern is anomalous for this service account. It cannot tell you whether the anomaly is explained by a new business process, a deployment artifact, or a compromised credential. That determination requires domain knowledge about what the service is supposed to be doing, who owns it, and whether the activity makes sense in context. The AI surfaces the anomaly; the analyst interprets it.

Novel attack techniques are a gap. AI systems trained on known behavior patterns can detect deviations from normal. They struggle with attacks that don't produce detectable anomalies in the telemetry they're trained on. A sophisticated attacker who understands your behavioral baselines can often operate within them. This is why hypothesis-driven hunting by experienced analysts remains important even in AI-assisted environments: the analyst generates hypotheses based on threat intelligence and attacker tradecraft that the behavioral models don't account for.

Structuring an AI-assisted hunting program

The practical workflow that works well is a weekly hypothesis sprint. An analyst or team proposes four to six hunting hypotheses based on current threat intelligence and known gaps. For each hypothesis, the AI system pre-processes the data and returns a list of candidate entities with anomaly evidence. The analyst's job is to triage those candidates, not generate them. This compresses the data-collection phase of hunting from the majority of the time to a fraction of it, and lets the analyst spend their time on the interpretation and investigation that actually requires human judgment.

The output of each hunting sprint should feed back into the detection program. If a hunt finds real attacker activity that wasn't caught by existing rules, write a rule. If a hunt finds a high-volume false positive pattern, understand why the behavioral model flags it and tune accordingly. The hunting program is not just a detection activity; it's the R&D function for the detection program.

Cloud environments are too large and too dynamic for hunting to work as a purely manual discipline. The teams getting value from hunting today are the ones that use AI to handle the data processing and use humans for the judgment calls. That division of labor is not a compromise; it's the correct allocation of what each is good at.

More from the Cloakmint blog

Detection engineering, SOC strategy, and cloud security operations.

Browse all articles