Presets
Playback
Alert feed
Monitoring baselines...
Detector and population
Run
Layers
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
μgand per-axis spreadσg. With independent axes the covariance isΣ = diag((cσk)²), wherecis the baseline width the detector assumes. - Raw risk is the Mahalanobis distance
z = √((x − μ)T Σ−1 (x − μ)) = √(Σk ((xk − μk)/(cσk))²). The surfacez = Tis an ellipsoid with semi-axesT 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 aftert = −τ 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 hasz/cdistributed as the length of a 3-D standard normal vector (chi distribution with 3 degrees of freedom): densityf(z) = √(2/π) z² e−z²/2and tailP(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".