Join our Newsletter — 33% off our NHI Course

Behavioral detections as code: can TQL replace opaque UEBA?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16497
Topic starter  

TL;DR: Behavioral questions that single-event rules cannot answer are handled by baselining each entity against its own history with mergeable models for sets, shapes, counts, and drift, according to TENZIR. The result is detection logic that teams can version, test, and operationalise without opaque UEBA products, which makes behavioural analytics more governable and easier to audit.

Editorial analysis by NHI Mgmt Group, based on content published by TENZIR: “Streaming UEBA: behavioral detection as a pipeline”.

Key questions

Q: How should security teams implement behavioral detection as code without using opaque UEBA tools?

A: Teams should express behavioral logic in queryable pipelines, keep baselines as data, and tie each detector to a stable entity key such as host or account.

Q: Why do single-event rules miss the behaviours that matter most?

A: Single-event rules cannot compare an event with an entity's own history, so they miss first-sighting binaries, unusual fan-out, and distribution drift.

Q: What are the signs that behavioural baselines are not working properly?

A: Common warning signs are baselines with too little history, scores that treat every entity the same, and detections that cannot be explained from the underlying data.

Practitioner guidance

  • Implement per-entity behavioural baselines Store host, account, source, or service history as inspectable lookup-table rows so each detection can compare live events against that entity's own past.
  • Use the right model type for each signal Map categorical history to frequency tables, numeric distributions to t-digests, distinct fan-out to HyperLogLog, and distribution shifts to divergence scoring.
  • Version behavioural detections with tests Keep behavioural scoring pipelines in Git with fixtures and pull-request review so changes to thresholds, windows, and baselines are auditable.

Bottom line: Behavioural detections fail when they are forced into single-event rules, because the relevant signal is often a change relative to one entity's own history.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 16988
 

Behavioural detection belongs in the same governance layer as other security controls, not in a separate UEBA island. Once behavioural questions are expressed as code and backed by inspectable baselines, they can be reviewed, tested, and changed with the same discipline as rules and policies. That reduces the gap between detection engineering and security governance, which is where many black-box analytics projects fail. The practitioner conclusion is simple: if a behavioural control cannot be inspected, it cannot be governed.

A question worth separating out:

Q: When should teams prefer explainable behavioural scoring over opaque analytics?

A: Prefer explainable scoring when the detection will be tuned, audited, or shared across SOC and identity teams. If analysts cannot inspect the baseline, reproduce the result, or review changes to the logic, the control is hard to govern even if it produces useful alerts. Explainability becomes a security requirement once the model influences operational decisions.

👉 Read our full editorial: Behavioral detections as code close the UEBA gap in TQL



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.