Walk the floor of any security conference and you will struggle to find a product that does not claim to use artificial intelligence. For buyers, that makes it hard to separate genuine capability from marketing.
The underlying reality is more interesting than the hype. Machine learning (ML) has quietly become part of how threats are detected across email, endpoints, networks and security operations. It has not replaced analysts or rules, but it has changed what is possible.
What "AI" in security usually means
In most security products, "AI" means one of two ML techniques.
Supervised classification. A model learns from labelled examples, such as millions of known-good and known-bad files, emails or URLs, and predicts whether a new item is malicious. Spam filters were among the first large-scale uses of this approach; modern endpoint protection uses it to classify files that no signature has seen before.
Unsupervised anomaly detection. A model learns what "normal" looks like, such as a user's usual login times and locations or a server's usual network traffic, and flags significant deviations. This is the basis of user and entity behaviour analytics (UEBA) and many network detection products.
A third, growing category is ML-assisted triage: scoring and grouping alerts so analysts see the most important ones first.
Where ML genuinely helps
Email. Spam and phishing filters process billions of messages and adapt to new campaigns faster than hand-written rules ever could.
Endpoint malware detection. Classifiers trained on file features (structure, imports, strings, behaviour in a sandbox) can detect new variants of malware families before a signature exists.
Identity and access. Anomaly detection spots impossible travel, logins from unusual devices, and access to systems a user has never touched, which are signals of compromised accounts.
Network traffic. Models detect beaconing to command-and-control servers, domain-generation algorithms (DGAs) and unusual data transfers.
Fraud. Banks and payment providers have used ML for fraud detection for years; the same techniques apply to account takeover and abuse.
flowchart LR L[(Logs & telemetry)] --> F[Feature extraction<br/>time, location, volume,<br/>peers, history] F --> M1[Classifier<br/>known bad?] F --> M2[Anomaly model<br/>unusual?] M1 --> S[Risk score] M2 --> S R[Rules & threat intel] --> S S --> A[Prioritised alert<br/>with explanation] A --> An[Analyst decision] An -->|feedback| M1
Where it struggles
Unusual is not the same as malicious. A finance team working late at quarter-end, a new cloud service, a developer running a network scan: anomaly detectors flag them all. Without context, anomaly-based alerts can overwhelm a SOC.
Rare events, little data. The most serious attacks are rare, so there are few examples to learn from. Models tend to be better at detecting common threats than novel, targeted ones.
Changing environments. When a business changes (new applications, a merger, a shift to remote work), "normal" changes and models must be re-baselined.
Explainability. An alert that says "risk score 87" without saying why is hard for an analyst to act on.
Adversaries adapt. Attackers can deliberately mimic normal behaviour or probe models to find what evades them.
A simple illustration
Even a basic statistical model shows the idea behind behaviour analytics:
import pandas as pd
# logins: user, timestamp, country, device_id
logins["hour"] = logins["timestamp"].dt.hour
profile = logins.groupby("user").agg(
usual_countries=("country", lambda s: set(s.value_counts().head(3).index)),
usual_devices=("device_id", lambda s: set(s)),
median_hour=("hour", "median"),
)
def score(event, p):
s = 0
s += 40 if event.country not in p.usual_countries else 0
s += 30 if event.device_id not in p.usual_devices else 0
s += 20 if abs(event.hour - p.median_hour) > 6 else 0
return s # combine with threat intel and rules before alertingProduction UEBA systems use far richer features and models, but the principle is the same: learn a baseline and score deviations. That principle is also why tuning and context matter so much.
How to evaluate vendor claims
When a product claims "AI-powered detection", ask:
- What data is the model trained on, and how often is it retrained?
- What are the false-positive and false-negative rates in environments like ours, and how were they measured?
- How does an analyst understand an alert? What evidence and explanation come with it?
- Can we tune it to our environment, and how does analyst feedback improve it?
- What happens when it is wrong? How are misses detected and fed back?
- How does it resist evasion? Has it been tested against adversarial techniques?
A good vendor will answer these clearly. Vague answers are a warning sign.
The bottom line
Machine learning has made threat detection faster and broader, especially for high-volume problems like spam, malware variants and account compromise. It works best as part of a layered approach alongside rules, threat intelligence and, crucially, skilled analysts who provide context and judgement.
Our managed detection and response service combines ML-driven detection with 24×7 human analysts, so alerts come with context, not just a score.