Use Cases
The Use Cases view in Telemetry holds the rule catalog that drives Alerts. Each use case is a detection rule evaluated on a schedule by the AlertEngine over metadata events in the NeuralTrust telemetry store.- Predefined use cases (
nt-uc-NNN) ship with the platform. They are read-only: enable or disable them per team from the row action menu. To change one, open it and choose Copy to custom — see Copy a predefined use case. - Custom use cases are team-owned. Create them in the rule builder; Edit and Delete are offered in the detail panel for custom use cases only.
Rule builder tabs
The create/edit side panel has three tabs. Every change compiles live into the Rule preview tab.1
General
The rule Name (required — the YAML
title) and Description (free text, shown as the logic in the use case detail). Under Alert Output: the Severity of the alerts the rule raises, an optional Default assignee, and whether to email the assignee when an alert fires (only with an assignee).2
Conditions
The Products the rule covers and the scope within each one, then Attributes or windowed measures: the condition rows, joined with And / Or. Below them, Number of times the condition must occur and, when that number is above 1, the Time window. With both products selected, this tab becomes the cross builder.
3
Rule preview
Read-only YAML — exactly what AlertEngine stores and evaluates. Use it to check the compiled rule before saving.
Products and scope
The Products selection drives both the compiledsource and the field picker, which shows only fields valid for that product. It lists the products your organization has.
- TrustGate only →
source: trustgate. - TrustGuard only →
source: trustguard. - Both →
source: cross. See Cross rules.
Scope
Scope is a two-level cascade per product. Pick the parent, then its children; an empty level means “no filter”.
Scope predicates are ANDed into every OR group, so they constrain the whole rule. TrustGuard instances only narrow which collectors are offered; the instance selection itself is not saved. To filter on an instance, add a condition on TrustGuard instance ID (
guard_id).
Conditions
AND / OR logic
Each condition row is a predicate: field · operator · value.- And between rows keeps predicates in the same group (all must match).
- Or starts a new group. The compiler emits YAML
any:— disjunctive normal form (OR of AND-groups).
Operators
Which operators a field offers depends on its type:
Field picker
Fields are grouped in the dropdown, and each option carries a short description. The groups, in order, are Outcome & status, Request, Identity, Latency & usage, Tools (MCP), Detection (TrustGuard), and Coverage. The field list is served by AlertEngine, so the picker always shows exactly the fields a rule can use. The tables below give each field’s picker label and its DSL key, the key written into the rule. See Event schema for how each key maps to stored events.Fields for both products (11)
TrustGate fields (35)
All 11 fields above, plus:TrustGuard fields (26)
All 11 fields for both products, plus:
The detection fields compile into a separate
detection: block in the rule YAML, matched against each finding in the detector chain; a detection row only matches a detector that found something. All other fields, the coverage ones included, compile into match:.
How many times, and over what window
Number of times the condition must occur sets when the rule raises an alert. It defaults to 1.
Above 1, the Time window section appears:
The number you enter is stored as
threshold. Application is the engine’s default grouping (entity), so it is omitted from the compiled YAML; the other keys compile to group_by: session, group_by: app, or group_by: route.
kind: aggregate with a count_distinct metric) is kept when you copy or edit one, but the builder has no control to create it.
Cross rules
Selecting both products turns the Conditions tab into the cross builder, which compiles tosource: cross and kind: cross:
Each side needs at least one predicate — a condition row or a scope selection. The conditions on each side are combined with AND; a cross rule has no OR groups. They compile under
gate: and guard:, and Session compiles to correlate_on: session.
Copy a predefined use case
A predefined use case cannot be edited, so to change one, open it and choose Copy to custom. The builder opens with the rule’s logic and the name<name> (copy); change what you need and save. If the original is on, tick the option to turn it off when the copy is saved, so only your copy raises alerts.
The copy is offered only when the builder can express the rule exactly, so that saving it unchanged saves the same rule. It is not offered for a rule that:
- reads the console audit log, which custom use cases cannot use;
- measures a ratio or a percentile;
- raises one alert per window (a windowed rule with a threshold of 1), because the builder makes a threshold of 1 a per-event rule;
- uses anything else the builder cannot express.
Example compiled rules
Per-event TrustGuard detection (similar to nt-uc-101)
Windowed TrustGate auth anomaly (similar to nt-uc-201)
OR groups (401 or 403 per event)
Guardrail failed open (similar to nt-uc-401)
Rule kinds (evaluation models)
Related documentation
Alerts
The raised findings, triage workflow, and predefined catalog.
Event schema
Every rule field, where it is stored, and detection normalization.
Integrations
Forward findings to Splunk and other SIEMs as OCSF events.