Docs/Integrations/Policy Webhooks

Policy Violation Webhooks

A policy violation webhook calls your URL each time ANTS Platform finds a violation of your AI policies. Your security automation tool receives a signed JSON payload and runs its playbook: open a case, notify a manager or contain a laptop.

The webhook is the Webhook action of an automation rule. This page describes what the webhook sends. For rules, conditions, the other actions and delivery limits, see Automations & Webhooks.

Events that carry a violation

EventWhenCategories (data.category)
Guardrail violationA Real-time Enforcement check blocks a prompt or response, a custom detector, Secrets & Credentials rule or tool allow-list check matches with any action, or a scheduled detection run finds a violation in stored traces.PII, PCI, PHI, Ethics & Bias, Safety, Custom, Secrets & Credentials, Source Code, Tool misuse
Drift alert openedA drift alert opens for an agent. See Drift alerts.Drift, Tool misuse, Privilege escalation
Unsanctioned tool used and Unsanctioned tool daily digestSomeone uses a desktop app or command-line AI tool that your organization marked Unsanctioned. See Unsanctioned tool alerts.Unsanctioned tool
Device alertA Discover AI tamper or silence alert fires. See Device alerts.Device silent, Extension removed, Agent unenrolled, Device back online, Software key issued, Revocation pending

A rule listens to one event, so create one rule per event you want to receive. Use the rule's conditions to choose what is sent, for example Category is any of PCI, PHI and Severity is at least High. A rule with no conditions sends every violation of its event. Each violation is sent once per matching rule.

A webhook action can be added to a rule on any of the 59 events, not only these. Every event is sent in the same v2 envelope.

Set up a policy violation webhook

Create the rule

Open Project Settings → Automations and select New rule, or start from the template Page on-call for blocked secrets or Slack alert for High or Critical guardrail violations and change its action.

Choose the event and conditions

Under When, pick Guardrail violation, Drift alert opened, Unsanctioned tool used, Unsanctioned tool daily digest or Device alert. Under If, add conditions on Category, Severity or other fields, or leave it empty.

Add the webhook

Under Then, select Add action, then Webhook. Enter the URL, keep API version on v2, and add any Headers your receiver needs. Mark a header Secret to hide its value after saving. The URL must meet the destination rules.

Save and copy the secret

Save the rule. ANTS Platform shows the signing secret once. Copy it into your receiver so it can verify the signature. Regenerate in the action replaces it and the old one stops working.

Send a test

Select Send test on the action. Your receiver gets the event's sample with "test": true, and the editor shows the status and the start of the response.

Guardrail violations are picked up within a few seconds. Only violations that occur while the rule is on are sent: turning a rule on does not send violations from before. Each delivery is listed in the Runs tab of the Automations page and in the rule's Runs tab, with the status, attempts and the start of the response. Runs are kept for 30 days.

Severity

Every violation carries a severity. Conditions on Severity compare against it. In the v2 envelope it is lowercase (critical, high, medium, low, info), in the v1 payload uppercase (CRITICAL, HIGH, MEDIUM, LOW, INFO).

CategorySeverity
PII, PCI, PHI, Ethics & Bias, SafetyThe Alert Severity in the agent's detection policy (in its PagerDuty alerting settings, default High). For an agent with no detection policy: PCI, PHI and Safety are Critical; PII and Ethics & Bias are High.
Custom, from a check that was blockedAs above. Without a detection policy, High.
Custom, from a check that was not blocked, or from Scheduled DetectionLow. The agent's Alert Severity does not raise it.
Secrets & Credentials, from a check that was blockedThe agent's Alert Severity. Without a detection policy, Critical.
Secrets & Credentials, from a check that was not blocked (Audit Only, Warn or Redact), or from Scheduled DetectionHigh. The agent's Alert Severity does not change it.
Source Code, from a check that was blockedThe agent's Alert Severity. Without a detection policy, High. Source Code that was not blocked, and Source Code from Scheduled Detection, sends nothing.
Tool misuse (Guardrail violation)The agent's Alert Severity. Without a detection policy, High.
Unsanctioned toolFrom the tool's risk level. See Unsanctioned tool alerts.
Drift, Tool misuse and Privilege escalation (Drift alert opened)The drift alert's severity. See Drift alerts.
Device alertsFixed: Extension removed, Agent unenrolled and Revocation pending are High, Software key issued is Medium, Device silent is Low, Device back online is Info.

A rule can replace the event's severity with its own Severity in the rule's Alert step. The webhook then carries the rule's severity. See Alert settings.

Payload

Each event is sent as one HTTP POST with a JSON body. New webhooks use the v2 envelope with content-type: application/json; ants-api-version=v2. A guardrail violation looks like this:

json
{ "id": "1b0c4f3e-6a0d-5c64-9a5e-0f3f7f0d2a11", "type": "guardrail.violation", "version": 1, "occurredAt": "2026-10-31T10:40:00.000Z", "organizationId": "<organization id>", "projectId": "<project id>", "severity": "critical", "subject": { "kind": "agent", "id": "<agent id>", "name": "support-agent" }, "actor": { "kind": "end_user", "id": "jane.doe@example.com", "email": "jane.doe@example.com" }, "links": { "app": "https://<your-host>/project/<project id>/traces/<trace id>", "trace": "<trace id>" }, "data": { "violationId": "1b0c4f3e-6a0d-5c64-9a5e-0f3f7f0d2a11", "source": "realtime-enforcement", "mode": "realtime", "outcome": "blocked", "category": "PCI", "labels": ["credit_card"], "traceId": "<trace id>", "agent": { "id": "<agent id>", "name": "support-agent" }, "user": { "id": "jane.doe@example.com", "email": "jane.doe@example.com", "userPrincipalName": "jane.doe@example.com" }, "device": { "hostname": "LT-0421", "serialNumber": "C02XK0AAJG5H", "falconAid": null } }, "correlationId": null, "test": false, "delivery": { "id": "<delivery id>", "ruleId": "<rule id>", "ruleName": "Block secrets", "attempt": 1 } }

Envelope fields

FieldMeaning
idStable per event. For a violation it is the violation ID, which SIEM push alerts share.
typeThe event key, for example guardrail.violation, drift.alert_opened, shadow_ai.unsanctioned_tool_used or device.alert. See Events.
versionThe version of this event's schema.
occurredAtWhen the event happened.
organizationId, projectIdWhere it happened.
severitycritical, high, medium, low, info or null. See Severity.
subjectWhat the event is about, with kind, id and name: the agent, the AI tool or the device.
actorWho caused it, with kind (user, system, api_key, device or end_user), id and email, or null.
linksapp opens the evidence in ANTS Platform. A guardrail violation also has trace.
dataThe event's own fields. See Violation fields.
correlationIdTies related events together, for example a drift alert's open and resolve.
aggregateOnly when the rule uses Only when it happens repeatedly: count, windowMinutes, groupKey, firstEventId and lastEventId.
digestOnly when the rule uses Digest: interval, from, to, count and events, each with id, occurredAt, severity, subject and summary.
testtrue for Send test.
deliveryid is unique per event and action and the same on every retry of that delivery, so use it to drop duplicates. Also ruleId, ruleName and attempt.

Violation fields

data fieldMeaning
violationIdStable per violation. Used as violation.id in the v1 payload.
sourcerealtime-enforcement, scheduled-detection, unsanctioned-tool, drift-alert or device-alert.
modeGuardrail violations only: realtime or scheduled.
outcomeblocked when a real-time check was blocked. detected for everything else, including real-time custom detector, Secrets & Credentials and tool misuse matches that did not block.
categorySee Events that carry a violation. Device alerts use device-silent, extension-removed, agent-unenrolled, device-back-online, software-key-issued or revocation-pending. A check that matches several categories sends one event per category.
labelsWhat matched, never the matched text: entity labels or harm categories for guardrail categories, rule labels such as secrets.aws_access_key for Secrets & Credentials and sourceCode.python for Source Code (card number and SSN rule findings arrive under PCI and PII with labels such as pci.card_number and pii.us_ssn), the custom detectors' Label on detections for Custom, undeclared_tool for a guardrail Tool misuse, the tool ID and name for Unsanctioned tool, the drift type for drift alerts.
traceIdGuardrail violations: the trace that holds the evidence, or null when a blocked guardrail call was made without a trace ID.
agentThe agent (id, name) on guardrail violations and drift alerts.
userThe user on the trace, or the person using the tool or device, with id, email and userPrincipalName. userPrincipalName comes from directory sync with Okta or Entra ID when known, otherwise from the user's enrolled device. null when there is no user.
deviceHostname, serial number and CrowdStrike Falcon agent ID of the user's enrolled Discover AI device. Fields that are not known are null. falconAid is filled in when the device's agent sends the Falcon agent ID (macOS agent 0.1.30 or Windows agent 0.1.21 or later, with collection turned on for the project) and is null otherwise; see Devices and CrowdStrike Falcon.
toolIdUnsanctioned tool used only: the tool ID.
alertId, driftType, descriptionDrift alerts only: the drift alert, its type and its description.
digestUnsanctioned tool daily digest only. See Daily digest.

The payload never contains prompt or response text or the matched values. Analysts follow links.app to see the content, subject to their role: opening it needs a signed-in account with access to the project, and reading prompt and response content needs the content permission.

Payload v1

Webhooks moved from the old Policy violation automations keep the v1 body, with content-type: application/json. You can also choose API version v1 on a new webhook. It is sent for events that carry a violation; other events fail with "This event cannot be sent as a v1 policy-violation webhook".

json
{ "id": "<delivery id>", "timestamp": "2026-10-01T09:30:00.000Z", "type": "policy-violation", "apiVersion": "v1", "violation": { "id": "<violation id>", "source": "realtime-enforcement", "outcome": "blocked", "category": "PCI", "labels": ["credit_card"], "severity": "CRITICAL", "detectedAt": "2026-10-01T09:29:41.000Z", "organizationId": "<organization id>", "projectId": "<project id>", "agent": { "id": "<agent id>", "name": "support-agent" }, "traceId": "<trace id>", "user": { "id": "jane.doe@example.com", "email": "jane.doe@example.com", "userPrincipalName": "jane.doe@example.com" }, "device": { "hostname": "LT-0421", "serialNumber": "C02XK0AAJG5H", "falconAid": null }, "evidenceUrl": "https://<your-host>/project/<project id>/traces/<trace id>" } }
FieldMeaning
idUnique per violation and action, and the same on every retry of that delivery. Use it to drop duplicates.
timestampWhen this delivery attempt was built.
typeAlways policy-violation.
violation.idStable per violation, the same as data.violationId in v2.
violation.severityUppercase. See Severity.
violation.detectedAtWhen the violation happened.
violation.agent, violation.traceId, violation.user, violation.deviceAs in v2. null when not known.
violation.evidenceUrlThe same link as links.app in v2.
violation.digestPresent only on an unsanctioned tool daily digest.

The other violation fields match the v2 data fields above. ANTS Platform validates every v1 payload against a strict schema before sending and refuses to send anything with extra fields.

Unsanctioned tool alerts

An unsanctioned tool alert tells your security team that someone used an AI desktop app or command-line tool your organization has decided not to allow. It is an alert only: nothing is blocked.

Mark the tool Unsanctioned

In Discover AI, set the tool's sanction status to Unsanctioned, and optionally its risk level. See Set a sanction. Only tools marked Unsanctioned explicitly fire this alert. A detected tool that nobody has reviewed is shown as Unsanctioned, but it does not fire the alert until someone marks it.

Create the rule

Create a rule on Unsanctioned tool used to receive one alert per use, or on Unsanctioned tool daily digest to receive one summary a day. Add a webhook action as above.

What is covered. Sessions of the tool on Windows and macOS devices, as seen by the Discover AI desktop agent: desktop apps and command-line tools. Use in the browser only is not covered. Only use after the rule was turned on is sent.

When. ANTS checks for new sessions at most every 5 minutes and sends one event per person, device, tool and day. Using the tool again on the same day sends nothing new; the next day sends again.

Payload. source is unsanctioned-tool, outcome is detected and category is Unsanctioned tool. subject is the tool, labels holds the tool ID and its display name, and user and device come from the enrolled device. There is no agent or trace, and links.app opens the project's Discover AI apps page.

Severity. The risk level you set on the tool, otherwise the registry's risk level:

Tool risk levelSeverity
CriticalCritical
HighHigh
MediumMedium
LowLow
Not setMedium

Daily digest

A rule on Unsanctioned tool daily digest gets one event per UTC day instead of one per person, device and tool.

  • The digest for the previous UTC day goes out within about an hour and a quarter after midnight UTC. Nothing is sent for a day with no use.
  • If ANTS was not running when a digest was due, digests for up to the 3 previous days are sent when it is back. Each day is sent at most once.
  • The digest's severity is the highest severity among its tools, so a Severity condition applies to the whole digest.
  • In the digest, user and device are not set, labels lists the tool IDs, and occurredAt (v1: detectedAt) is the end of the day.
  • If a project has more than 100,000 combinations of person, device, tool and day over the last 3 days, the digest is skipped rather than sent incomplete.

The digest adds a digest object to data (v1: to violation):

json
"digest": { "day": "2026-10-20", "toolCount": 2, "userCount": 3, "deviceCount": 3, "tools": [ { "toolId": "ollama", "toolName": "Ollama", "severity": "HIGH", "userCount": 2, "deviceCount": 2, "users": ["dev@example.com", "two@example.com"] } ] }

Each tool lists up to 25 users, sorted, as email address or user ID. userCount is the full count. The tool severity is uppercase.

Drift alerts

A drift webhook tells you when an agent's observed behavior stops matching its declared governance evidence. See Drift Alerts.

ℹ

Drift events need background drift checks to be turned on for your ANTS deployment; ask your ANTS administrator. They do not need Automatic drift incidents, which only controls the ServiceNow, PagerDuty and Microsoft Teams posts of the drift check itself.

To receive them, create a rule on Drift alert opened.

  • When: each new drift alert from the hourly drift check sends one event. Resolving a drift alert sends a separate Drift alert resolved event, which can close the PagerDuty or ServiceNow incident the rule opened.
  • Categories: Drift for drift from the declared profile, Tool misuse for undeclared tools and agent behaviour signals of misuse, and Privilege escalation for behaviour signals of privilege escalation. Use a Category condition to choose.
  • Payload: source is drift-alert and outcome is detected. labels holds the drift type, for example data, control or performance_safety. agent is set, there is no trace, user or device, correlationId is the drift alert ID, and links.app opens the agent's drift alerts.
  • Severity: the drift alert's severity, Critical, High, Medium or Low.
  • Only alerts created after the rule are sent.

Device alerts

Discover AI tamper and silence alerts are sent as Device alert events with source device-alert, outcome detected and the alert's category:

CategoryLabelSeverityWhen
device-silentDevice silentLowA device has not checked in for longer than the threshold.
device-back-onlineDevice back onlineInfoA device checked in again after a silence alert.
agent-unenrolledAgent unenrolledHighAn agent was removed by the unenroll script or from the console.
extension-removedExtension removedHighThe browser opened the ANTS uninstall page after the extension was removed.
software-key-issuedSoftware key issuedMediumA device certificate was issued on a key held in software, not in the TPM or Secure Enclave.
revocation-pendingRevocation pendingHighA certificate was revoked but the cache could not be cleared, so the device may keep working for a few minutes.

subject is the device, data.device holds the device's identifiers as they were when the alert was raised, and links.app opens the project's Devices page. Each alert type must first be turned on in Project Settings → Discover AI → Tamper and silence alerts.

Headers and signature

HeaderValue
content-typeapplication/json; ants-api-version=v2, or application/json for v1
user-agentANTS-Platform/1.0
x-ants-signaturet=<unix timestamp>,v1=<hex signature>
Your headersThe headers you configured. They cannot replace the three headers above.

x-langfuse-signature is no longer sent. Verify x-ants-signature. Signing secrets created now start with ants_whsec_. Secrets created earlier keep working.

The signature is computed again for every delivery attempt, so t is always current. To verify a delivery, compute HMAC-SHA256(secret, "<t>.<raw request body>") as lowercase hex, where <t> is the timestamp from the header, and compare it with v1. Use the raw body exactly as received, not re-serialized JSON. Reject requests with an old t to stop replays, and drop a repeated delivery.id (v1: id) to stop a replay inside that window.

python
def verify(secret: str, header: str, raw_body: bytes, max_age_seconds: int = 300) -> bool: parts = dict(item.split("=", 1) for item in header.split(",")) timestamp, signature = parts["t"], parts["v1"] if abs(time.time() - int(timestamp)) > max_age_seconds: return False signed = f"{timestamp}.".encode() + raw_body expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, signature)

Delivery and retries

  • Any 2xx answer within 10 seconds is a success. A timeout, a network error or another status is a failure. Redirects are not followed.
  • Network errors, timeouts and 5xx answers are retried up to 3 attempts in total, with backoff. A 4xx answer or a refused destination is not retried. The status and the first 500 characters of the response are kept on the run.
  • After 5 failed deliveries in a row, the webhook action is turned off and the rule shows Needs attention. The rule's other actions keep running, and the rule owner gets an email and an in-app notification. Fix the endpoint and turn the action back on. See Failures and auto-disable.
⚠

A delivery that has not been made within 24 hours is cancelled, and after an outage, violations older than 24 hours are skipped.

Destination rules

To protect your network, the webhook URL is checked when you save the rule and again before every delivery and Send test:

  • It must use https://.
  • It must not contain a user name or password.
  • Every address the host name resolves to must be public. Private, loopback, link-local and carrier-grade NAT addresses are refused, as are cloud metadata addresses and host names such as localhost or names ending in .local or .internal.
  • ANTS Platform connects to the address it checked, so the check cannot be bypassed by changing DNS between the check and the request.

A delivery to a refused destination fails without retries and counts toward turning the action off. The rules apply to every webhook action, whatever its event.

On a self-hosted, single-customer deployment, your administrator can allow a receiver on your internal network with the POLICY_WEBHOOK_ALLOWED_DESTINATIONS setting (host names such as soar.corp.example or *.corp.example, and address ranges such as 10.20.0.0/16). Cloud metadata addresses are never allowed.

Consume it from your automation tool

CrowdStrike Falcon Fusion SOAR

The webhook is a signed HTTPS POST, so you need a Fusion SOAR workflow that can be started by an inbound request:

  • If your Falcon tenant offers an inbound HTTP trigger with a static key, put its URL in the webhook action and the key in a secret header.
  • If your workflow can only be started through the Falcon API, which needs an OAuth2 token that expires, put a small relay in front of it (for example Tines, Splunk SOAR or a serverless function). The relay verifies x-ants-signature, gets a Falcon token and starts the workflow with the payload.
  • Alternatively, send the same guardrail violations to Falcon Next-Gen SIEM with SIEM push and start the workflow from a Next-Gen SIEM detection. SIEM push does not carry unsanctioned tool or drift alerts.

In the workflow, use data.device.hostname and serialNumber to find the host (and falconAid when the agent sends it, see Devices), and data.user.userPrincipalName to find the person, for example to open a case, notify the manager or contain the device. With the v1 payload, the same fields are under violation. See CrowdStrike Falcon.

Other tools

The same payload works with any tool that accepts an HTTP POST, including Splunk SOAR, Tines and a ServiceNow flow. Verify the signature in the receiving step, then branch on type, data.category and severity.

Permissions

Creating and editing rules needs automations write access. Because these events carry user and device identifiers, rules on Guardrail violation, Unsanctioned tool used, Unsanctioned tool daily digest and Device alert also need read access to Discover AI users, and Device alert also to Discover AI devices. Among the built-in roles, Owner and Security & Compliance have all of these. Viewing rules needs automations read access.

When your deployment has step-up verification turned on, adding a webhook action, changing its URL and regenerating its secret ask for a code. Renaming, changing conditions or headers, and turning a rule on or off do not.

Changes are written to the audit log, without the signing secret or secret header values. See Automations permissions and Members & Roles.

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026