Skip to main content

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 templates (nt-uc-NNN) ship with the platform. They are read-only — enable or disable them per team from the row action menu. To change a threshold or scope, author an equivalent custom rule and disable the predefined one.
  • Custom use cases are team-owned. Create them from scratch in the rule builder; Edit is offered in the detail panel for custom rules only.
Open Telemetry → Use Cases → Create use case (or edit an existing custom rule) to use the rule builder described below.

Rule builder tabs

The create/edit side panel has three tabs. Changes in Scope and Conditions compile live into the Rule preview tab.
1

General (Scope)

Set the rule name (required — the YAML title) and description (free text, shown as the human-readable logic in the use case detail), choose which products are in scope (TrustGate and/or TrustGuard), and narrow the scope with the two-level cascade described below. Leave a level empty to apply the rule to every target.
2

Conditions

Build match predicates (event attributes) and optional detection predicates (TrustGuard detector chain). Combine rows with And / Or connectors, optionally enable a time window, and set severity plus a default assignee.
3

Rule preview

Read-only YAML — exactly what AlertEngine stores and evaluates. Use this to verify the compiled rule before saving.

Products and condition fields

The Products involved selection on the General tab drives both the compiled source and the condition field picker, which shows only fields valid for that product:
  • TrustGate only → source: trustgate.
  • TrustGuard only → source: trustguard.
  • Both → source: cross. The Conditions tab switches to the cross builder: a TrustGate conditions list, a TrustGuard conditions list, and a Correlate on key. See Cross rules.

Scope

Scope is a two-level cascade per product. Pick the parent, then its children; an empty level means “no filter”. TrustGuard instances are a UI-only cascade that narrows which collectors are offered — there is no guard_id predicate field, so the instance selection is not persisted in the rule.

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).
Click the And / Or pill between rows to toggle the connector. Use And + or Or + under a row to insert a new condition with that connector.

Operators

Boolean fields use True / False. Enum fields (status outcome, detection type, direction, protocol, kind) show allowed values in the picker.

Field picker

Fields are grouped in the dropdown for readability. Each option includes a short description. Groups: See Event schema for how each logical field maps to stored events.

TrustGate condition fields (24)

TrustGuard condition fields (23)

Includes all Outcome, Identity, and shared fields above, plus: TrustGuard detection.* fields compile into a separate detection: block in the rule YAML (matched over the normalized detector chain). All other fields compile into match:.
There is no jailbreak detection type. The engine normalizes jailbreak signals — and anything raised by the prompt_guard / tool_guard plugins — into detection.type = prompt_injection. To match jailbreaks specifically rather than all injection attempts, filter on the security tag with contains instead.
IP address is not a supported field. There is no ip column in the metadata store. Group by session or consumer instead of IP for surge and anomaly rules.

Time window

Enable Time window to require a minimum number of matching events within a rolling period before the rule fires (windowed count) instead of alerting on every single match. When enabled, configure:
The threshold is not editable in the builder today. Single-product rules compile with a fixed threshold: 5 — five matching events per bucket within the window. Only the window duration and group-by are exposed; cross rules do render a threshold input. Always check Rule preview for the threshold that will actually be stored.
Group-by entity and consumer both resolve to the consumer ID, and entity is the engine default — so it is omitted from the compiled YAML.

Alert output

Scope selections from the General tab are compiled as additional predicates (gateway_id, consumer, collector_id) when specific targets are selected — a level left empty adds no predicate.

Cross rules

Selecting both products turns the Conditions tab into the cross builder, which compiles to source: cross: Each side needs at least one predicate — a condition row or a scope selection.

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)


Rule kinds (evaluation models)

The builder emits per_event (time window off), windowed (time window on) and cross (both products selected). It also compiles an aggregate count_distinct rule when the measure is set to distinct, but that control is not yet exposed in the UI — the remaining aggregate metrics (ratio, p95, avg, sum) are available in predefined templates or by editing YAML directly.

Alerts

The raised findings, triage workflow, and predefined catalog.

Event schema

Event schema, detection normalization, and field mapping for rule authors.

Integrations

Forward findings to Splunk and other SIEMs as OCSF events.