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 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.
Every use case, predefined or custom, also has a Notifications section in its detail panel: who new alerts are assigned to, and whether that person is emailed. It is saved per team. Open Telemetry → Use Cases → Create use case (or edit a custom use case) to use the rule builder described below.

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.
AlertEngine validates the rule when you save it. It rejects a field that does not exist for the rule’s product, an operator the field does not support, and an enum value outside the field’s list. The builder flags the same problems on the condition row before you save.

Products and scope

The Products selection drives both the compiled source 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).
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

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:.
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 rule field. The client IP is stored with each event for investigation, but a rule can neither match nor group on it. Group by Session or Application instead for surge and anomaly rules.

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.
A rule that counts distinct values instead of events (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 to source: 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)


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.