UEBA behavioural baseline

Employees as tokens in a three-axis feature space; each department learned a baseline, and the alert shell is where the risk score reaches the threshold.

Switch to 2D

Presets

Playback

Alert feed

Monitoring baselines...

Detector and population

Run

Camera

Layers

Quality

Model check

The science

What is modelled

User and Entity Behaviour Analytics (UEBA) learns what normal looks like for each peer group and scores how far an individual sits from it. Here every employee is a point in a three-feature space: after-hours sessions (hours per week), data egress (MB per day) and systems touched per day. The units and the four department baselines are synthetic teaching values, not measurements of any real organisation.

Equations

  • Each department g has a learned mean vector μg and per-axis spread σg. With independent axes the covariance is Σ = diag((cσk)²), where c is the baseline width the detector assumes.
  • Raw risk is the Mahalanobis distance z = √((x − μ)T Σ−1 (x − μ)) = √(Σk ((xk − μk)/(cσk))²). The surface z = T is an ellipsoid with semi-axes T c σk: that is the translucent alert shell, and an employee is outside it exactly when z > T.
  • Smoothing: risk(t+dt) = risk(t) + (z − risk(t))(1 − e−dt/τ). Alerts fire on the smoothed risk, which stops single noisy ticks from flapping. A step in z to zd crosses the threshold after t = −τ ln(1 − T/zd).
  • Behaviour wanders as an Ornstein-Uhlenbeck process, x(t+dt) = μ + (x − μ)e−k dt + σ√(1 − e−2k dt) ξ, whose stationary spread is exactly the department σ. A healthy employee therefore has z/c distributed as the length of a 3-D standard normal vector (chi distribution with 3 degrees of freedom): density f(z) = √(2/π) z² e−z²/2 and tail P(z > T) = erfc(T/√2) + √(2/π) T e−T²/2. This is the false-alert floor of the detector: at T = 3 about 2.9 % of healthy raw scores exceed it.
  • Insider drift pulls the true behaviour towards a point several sigma away on every axis (the size slider), at rate 0.6 per second.

Checks run in the page

  • False-alert rate: a seeded Monte-Carlo of 200,000 healthy employees against the closed-form tail, plus a separate Simpson integration of the density and the mean of z² (theory 3).
  • The sum-of-squares formula against an explicit 3x3 covariance-inverse Mahalanobis computation.
  • The simulated EMA crossing time against the closed form above.
  • 3D only: the drawn alert shell (an ellipsoid test in world units) against the formula z > T for every live employee.

Honest simplifications

  • Axes are independent; real platforms use a full covariance matrix (correlated features) and many more signals, and often robust estimators because the baseline itself is learned from data that may already contain attackers.
  • Real behaviour is not Gaussian: heavy tails mean a real detector has more false alerts than the chi tail suggests.
  • Feature values are allowed to go slightly negative in the model; the picture clamps them to the tray edge.
  • The measured live rate uses raw z of undisturbed employees only (drifting ones are left out until they settle); with 28 to 48 people it needs a few minutes of model time to settle near the curve.
  • The page counts hourly scoring of 10,000 staff as independent evaluations, which overstates the number of distinct false alerts because consecutive scores of one person are correlated.

What to try

  • Lower the threshold to 1.8 and watch alerts appear with no insider at all: that is the cost of a hair-trigger.
  • Widen the baseline to 1.8x: the same drift needs a larger deviation before it is flagged.
  • Raise the smoothing time constant: detection is calmer but the delay grows exactly as the formula says.
  • Click a token, then use "Drift: selected".
Loading model...
Loading Blender model...
Risk over the last minute
Raw z survival: measured vs theory
Raw z histogram vs chi(3) density
Made with 🟠 Blender · Three.js