AI Security

AI-Powered Threat Detection: From SIEM Rules to Behavioral Analytics

SolarWinds showed how a patient attacker using legitimate credentials and tools can slip past rule-based detection for months. Behavioural analytics, powered by machine learning, aims to catch what rules miss. We compare the approaches and explain how a modern SOC combines them.

By EthicalHat Research · · 3 min read
Infographic: How SOC detection has evolved

When the SolarWinds compromise came to light in December 2020, one of the most unsettling details was how quietly the attackers had operated. After gaining access through a trojanised software update, they moved carefully: they used legitimate credentials, blended their infrastructure with the victims' own naming conventions, and in some environments forged authentication tokens to access cloud email. Many victims had SIEMs full of correlation rules. Few of those rules fired.

That is the core limitation of rule-based detection, and the problem behavioural analytics tries to solve.

Rules: precise, and blind to the unknown

A SIEM correlation rule describes a known-bad pattern: five failed logins followed by a success from the same IP, a new service installed on a domain controller, PowerShell downloading and executing a script.

Detection rules are now often written in portable formats such as Sigma:

yaml
title: Suspicious Encoded PowerShell Command Line
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    Image|endswith: '\powershell.exe'
    CommandLine|contains:
      - ' -enc '
      - ' -EncodedCommand '
  condition: selection
level: high
tags: [attack.execution, attack.t1059.001]

Strengths: rules are precise, explainable and map directly to attacker techniques in frameworks like MITRE ATT&CK.

Weaknesses: they only catch what someone anticipated. Attackers who use legitimate tools in legitimate-looking ways, or techniques nobody wrote a rule for, pass straight through. Rules also need constant tuning to avoid false positives.

Behavioural analytics: learning normal

User and entity behaviour analytics (UEBA) builds baselines of normal behaviour for users, hosts, service accounts and applications, and scores deviations:

  • a user logging in at an unusual time, from an unusual location or device,
  • a service account suddenly accessing systems it has never touched,
  • a workstation beginning to talk to many other internal hosts,
  • an account downloading far more data than its peers, or
  • authentication patterns that differ from how an identity provider normally issues tokens.
flowchart LR
  subgraph Signals
    R[Rules & ATT&CK detections]
    U[UEBA anomalies]
    T[Threat intelligence]
    C[Asset & identity context]
  end
  R --> S[Risk score per<br/>user / host]
  U --> S
  T --> S
  C --> S
  S -->|threshold crossed| A[Single, enriched<br/>high-fidelity alert]
  A --> An[Analyst investigation]
  An -->|verdict| U
  An -->|new rule| R

Strengths: it can detect novel attacks, compromised accounts and insider threats that rules miss, because it does not need to know the technique in advance.

Weaknesses: "unusual" is not "malicious". Without context, UEBA produces noise. It needs weeks of clean-ish data to baseline, and it can be fooled by attackers who move slowly and imitate normal behaviour.

Combining them: risk-based alerting

The most effective SOCs do not choose between rules and analytics. They use risk-based alerting:

  1. Individual detections (rules, anomalies and threat intel matches) add risk to the user or host involved, weighted by severity and confidence.
  2. Context adjusts the weight: a domain administrator, a server holding customer data or a recently departed employee's account matters more.
  3. An alert fires when an entity's accumulated risk crosses a threshold, bundling all contributing signals into one investigation.

This turns thousands of low-fidelity signals into a manageable number of high-fidelity alerts, and it catches attacks that are made up of many individually unremarkable steps, exactly the pattern SolarWinds followed.

What actually makes detection work

Algorithms are rarely the limiting factor. What matters most:

  • Coverage of the right data: identity provider and cloud audit logs, endpoint telemetry, DNS and proxy logs, not just firewall logs.
  • Context: accurate asset inventories, identity data (roles, managers, departures) and knowledge of which systems are crown jewels.
  • Detection engineering discipline: version-controlled rules, testing against simulated attacks, and regular tuning.
  • Feedback: analyst verdicts flowing back into rules and models.
  • Threat hunting: people proactively searching for what automated detection missed.

Lessons from SolarWinds for detection teams

  • Monitor identity infrastructure closely: token signing, federation trust changes and unusual token issuance.
  • Baseline service accounts and privileged identities; they behave predictably, which makes anomalies meaningful.
  • Watch cloud control-plane logs as closely as on-premises logs.
  • Assume a trusted tool can become the attack vector, and baseline what your management software normally does.

The bottom line

Rules tell you when something you anticipated happens. Behavioural analytics tells you when something unusual happens. Neither is enough alone. Combined through risk-based alerting, with good data, rich context and skilled analysts, they give a SOC a real chance against patient, well-resourced attackers.

Our managed detection and response and SOC design services build exactly this kind of layered detection, tuned to each client's environment.

EthicalHat Research

The EthicalHat research team: penetration testers, SOC analysts and engineers writing about security, software engineering and AI.

Want an expert opinion on your own systems?

Email info@ethicalhat.com or call +1-844-838-4422. Our security engineers are happy to talk it through.