Skip to content

Workflow triggers and people

A workflow starts by hand, from a detection rule that names it, or by itself from one of the triggers below. It can also stop and wait for people: an Approval node asks someone to approve what comes next, a Wait for input node asks someone to fill in a short form. Everything that waits for you is on Analyst work > Tasks (tab Mine).

The trigger is set on the workflow (the Workflow tab of the editor, or the trigger node).

Triggers

Trigger Starts when Filters
Manual someone presses Run, or a detection rule that names the workflow opens an incident none
On new incident an incident is opened by a detection, imported by an incident connector or created by hand severity at least, entity kinds, tags
On incident change an incident's status, severity or owner changes which changes, the new statuses, the incident condition
On new alert a detection creates an alert severity at least, detection rules, data sources, tags
On a schedule a cron schedule or every N minutes, hours or days, in a time zone none
Inbound webhook another system POSTs JSON to the workflow's URL none
On relevant vulnerability a vulnerability match of the technology inventory newly reaches the organization's incident threshold (details) minimum tier, confirmed or potential, KEV, internet-facing, products
On attack surface change a scan or the daily discovery finds a change on the external attack surface (Attack surface > Changes) significance at least, change kinds
On AI analyst verdict an AI analyst investigation finishes with a verdict (not one started by this workflow's own AI investigation node) verdicts, confidence band at least, severity at least, detection rules, tags, alert or incident
On workflow failure a live run of a workflow that names this one as its error workflow fails or times out none (trigger.input says what failed)
On indicator sighting an active threat intel indicator is seen in your events (continuous matching or a retro-hunt) indicator types, severity at least, tags, feeds
On new posture finding a cloud scan completes with new failed findings (muted findings never); one run per finding, the most severe first, at most Runs per scan (default 20, up to 100) severity at least, cloud providers, services, check ids
On cloud scan finished a cloud scan completes cloud providers, failed findings at least
On behaviour anomaly behaviour analytics records a new anomaly (not one marked expected) score at least, detectors, entity kinds, entities
On risk threshold crossed a subject's risk score rises over the organization's threshold (Risk settings); again only after it fell below 80 % of it subjects (resources, users, IPs, hosts), score at least
On incident SLA at risk or breached an incident's acknowledge or resolve clock is about to breach or has breached stage (about to breach, breached), incident severities, clocks
On data source silent a data source sent no events for longer than expected (checked every 10 minutes): by default three poll intervals and at least an hour data sources, source types, silent for at least (minutes)
On connection or feed failure a connection test finds failing checks, or a threat intel feed run fails connection tests or feed runs, connections, feeds
On threat hunt results a threat hunt query run (by hand or scheduled) finishes with results hunts, results at least (default 1; 0: every finished run)
On overdue task or approval a workflow form or an approval passes its due time unanswered forms or approvals, of workflows
On connection event a connection reports an event: a synced vendor incident changed in the vendor (status, verdict, severity or assignee), the incident connector's sync started failing or works again, writing DRACO's status back to the vendor failed, a blocklist push failed, or a log source reports a user disabled in the vendor (Okta suspend or deactivate, Microsoft Entra ID "Disable account.", Google Workspace user suspension, Slack user deactivation, 1Password user suspension, AWS console login or IAM user removed) events, connections, vendors
On form submitted a member sends the workflow's form from the console (Forms that start a workflow) who may send it

Event triggers (every trigger except manual, schedule, webhook, workflow failure and form) also take an optional Only when expression over trigger and incident, for example {{ trigger.change.to == 'resolved' }} or {{ contains(incident.tags, 'vip') }}: the run starts only when it is true.

What the run reads as trigger.* depends on the trigger, and the editor's variable picker shows it:

  • trigger.alert: the new alert (id, severity, rule_id, rule_name, summary, tags, entities, source_ids, incident_id, times).
  • trigger.change: field (status, severity, assigned), from, to, actor.
  • trigger.change of an attack surface change: kind (port_opened, finding_new, cert_expiring...), significance, summary, asset (kind, value, state, classification, criticality), host, ip, port, resource_uid, before, after, finding (check_id, severity, category, title) and at. These runs have no incident; the draco-easm detection rules open incidents for the same changes. The template "New critical exposure: Jira issue and a message" starts from it.
  • trigger.schedule: fired_at, slot, timezone, expression.
  • trigger.body and trigger.headers: the webhook's JSON body and its headers (lower case, without credentials).
  • trigger.vuln: the relevant vulnerability match (alias, tier, component, assets, reasons, due_date, incident_id, url and more); once per match and tier (key vuln_match:<id>:<tier>).
  • trigger.ai: the AI analyst's result (verdict, confidence and band, severity assessment, summary and recommendations) with the case's severity, rule_id, tags, what the analyst's policy did (autonomy, effects, escalated, auto_action), incident_id, alert_id and finished_at; once per investigation (key ai_run:<id>).
  • trigger.indicator and trigger.sighting of an indicator sighting: the indicator (type, value, severity, confidence, tags, feed_ids, url) and where it was seen (field, value, event_id, time, source_id, source_type, entity with src_ip, dst_ip, host, actor_user, url, and the alert_id and incident_id when an alert was raised). Once per sighting; at most 200 sightings of one matching run start workflows.
  • trigger.finding and trigger.scan of a new posture finding: the finding (check_id, title, severity, status_extended, service, regions, resource_uids, url) and the scan (provider with type, uid, alias; matched, started_for and not_started: how many findings of the scan matched and how many got no run because of the per-scan limit). Once per finding. These runs have no incident.
  • trigger.scan of a finished cloud scan: name, provider, completed_at, duration, failed_count and new_failed_count (unmuted failed findings). Once per scan.
  • trigger.anomaly: detector, entity (kind, key, name), score, dim, value, explanation, count, first_seen, last_seen, source_types, alert_id. Once per anomaly.
  • trigger.risk: the subject (kind, key, label), score, threshold, crossed_at and top_rules. Once per crossing.
  • trigger.sla: stage (warning or breached), clock (acknowledge or resolve), severity, occurred_at, target_seconds, owner; the run has the incident. Once per incident, clock and stage. Clocks found late, after the incident was already acknowledged or resolved, start nothing.
  • trigger.source: the silent data source (name, type, direction, last_event_at), silent_minutes and threshold_minutes. Once per silence: when events come back and the source goes silent again, it starts again.
  • trigger.failure: source (connection_test or feed_run), connection (id, name, vendor), feed (id, name, type), message, failed_checks (capability, engine_kind, message) and at. Once per test or feed run.
  • trigger.hunt: the hunt (id, title, tags) and the run (run_id, query_name, result_count, truncated, triggered_by, time_from, time_to). The rows stay on the hunt page. Once per run.
  • trigger.task: kind (form or approval), title, step, workflow (id, name), run_id, expires_at, incident_id; the run has the task's incident. A workflow never starts from its own overdue task.
  • trigger.connection_event: event (incident_changed, sync_failed, sync_recovered, push_failed, blocklist_failed, user_disabled), connection (id, name, vendor), engine (kind: incident_connector, enforcement_target or data_source, id, name, vendor), incident_id, external_id and console_url of the vendor incident, changes (field, from, to, the vendor's values), outcome (what DRACO did with the change: updated, kept, kept_local, followup), message and at; for user_disabled, user (the disabled user), actor (who disabled it) and action (the vendor's event name). Vendor incident events and write-back failures have the DRACO incident. Once per vendor version, failure, push or disabled user event; a user disabled more than a day before its log arrives (a first import of older logs) starts nothing. A change DRACO wrote to the vendor itself never comes back as an event.
  • trigger.form and trigger.submitted_by: the answers of a form trigger (by field name) and the member who sent it (id, email).
  • incident: the incident, for incident triggers and for alerts already grouped into one.

Once per event, and no loops

Each event starts a workflow once: a repeated delivery of the same event, or the detection path and the event path for the same new incident, start nothing more. Changes a workflow makes itself (for example setting the severity) never start that same workflow again. When workflows start each other through their changes, the chain stops after three links, and one workflow starts at most 30 automatic runs a minute. Skipped events are kept with the reason (Loop guard, Rate guard, no overlap, missed), visible through the API (GET /xdr/workflows/<id>/trigger-events) and the audit log (xdr.workflow.trigger.skip).

Schedules

  • Cron: five fields, minute hour day-of-month month day-of-week (0 = Sunday), with numbers, ranges (1-5), lists (1,15) and steps (*/10). When both day fields are set, both must match. The editor checks the expression as you type and shows the next run after saving.
  • Interval: every N minutes (5 at least), hours or days.
  • Time zone: any IANA zone (Europe/Kyiv, America/New_York); cron times are read in it.
  • A new run does not start while the previous scheduled run is still open, unless Start even while the previous run is still open is on.
  • Runs missed while the scheduler was down are not back-filled. Run once to catch up starts one run when it comes back.

Disabling or deleting a scheduled workflow removes its schedule.

Inbound webhooks

Choose Inbound webhook and save: the workflow gets a URL, https://<your DRACO>/api/v1/xdr/hooks/<id>, where the id is long and random. The secret is shown once, right after the save; copy it into the sender. Rotate secret issues a new one (shown once again). Keep the old secret valid for (minutes) next to it (0 to 10,080, default 0: the old one stops working at once) lets senders switch without losing deliveries; the webhook then shows until when the previous secret works. Through the API, grace_minutes (POST /api/v1/xdr/workflows/<id>/webhook-secret with {"data": {"attributes": {"grace_minutes": 60}}}) does the same (previous_valid_until; without it the platform default applies, within a platform maximum).

Authentication:

  • HMAC signature (recommended): send X-DRACO-Timestamp: <unix seconds> and X-DRACO-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<body>" with the secret>. The timestamp must be within 5 minutes. A signature is one event: a replayed request starts nothing more and gets the first run's id.
  • Bearer secret: send Authorization: Bearer <secret>. Add an Idempotency-Key (or X-DRACO-Delivery) header to make retries start one run.
SECRET='<the webhook secret>'
BODY='{"alert": "example", "severity": "high"}'
TS=$(date +%s)
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')
curl -X POST 'https://app.example.com/api/v1/xdr/hooks/<id>' \
  -H 'Content-Type: application/json' \
  -H "X-DRACO-Timestamp: $TS" \
  -H "X-DRACO-Signature: v1=$SIG" \
  -d "$BODY"

Rules of the endpoint:

  • HTTPS only; plain HTTP is refused unless the request reaches an internal address.
  • JSON only (Content-Type: application/json), an object or a list, at most 64 KB.
  • At most 60 requests a minute per webhook and 300 per organization; more get 429 with Retry-After. When the rate counters are unavailable the endpoint answers 503 with Retry-After: 30: retry then.
  • Answers: 202 {"run_id": "..."}; 401 for a missing or wrong signature or secret; 404 for an unknown id, a disabled workflow or one whose trigger is no longer the webhook (always the same answer); 413, 415, 400 for the body.
  • Headers that carry credentials (authorization, cookies, signatures, tokens, keys) and proxy headers are removed before the run sees them.

Listen for test event

To build a webhook workflow on a real call, save it, then press Listen for test event under its URL. For 5 minutes the next call that passes every check above (signature or secret, JSON, size and rate limits) is kept as the workflow's test event instead of starting a run (the answer is 202 {"run_id": null, "test_event": true}); listening ends with it. It works on a disabled workflow too, so you can test before you enable it. The editor shows the caught body and headers (values under secret-looking keys masked); Test then offers Test event as the sample, and Test step and the expression values read it as trigger.body and trigger.headers. Live runs never use it. Pressing the button again starts a new window; the trash button forgets the event. Starting and stopping the listener and each caught event are in the audit log (xdr.workflow.webhook.listen, xdr.workflow.webhook.test_event).

Answer with the result

By default the caller gets 202 {"run_id"} at once and the run goes on in the background. With Answer the call: With the run's result, the call waits for the run, at most Wait at most (seconds) (1 to 25, default 25):

  • The first Answer the webhook step that runs sets the answer: a status code (200 to 299 except 204 and 205, or 400 to 499; default 200), headers (only Cache-Control, Content-Language, ETag, Expires, Last-Modified, Retry-After and X- headers, never cookies, connection, framing, security or proxy headers; printable text up to 500 characters) and a JSON body with expressions (at most 64 KB). The run goes on after it, so a workflow can answer quickly and keep working.
  • Without such a step, the answer comes when the run ends: 200 {"run_id", "state", "output"} (the End step's output) when it succeeded, 500 {"run_id", "state"} when it failed, was cancelled or timed out.
  • No answer in time: 202 {"run_id", "pending": true}; the run goes on. A few calls of the organization wait at once; the others get this answer immediately.
  • A step whose answer breaks a rule (a header value with a line break, a status code outside the list, a body over the limit) fails, and the run's own answer goes out instead.

Test and dry runs show the answer on the step and send nothing. An Answer the webhook step in a workflow without a webhook trigger does nothing (the editor warns).

Approvals in workflows

An Approval node pauses the run and asks for an approval. Its request shows the message and what the next action nodes will do at the vendor (the same preview as Respond).

  • Approvers: pick members and/or roles. Only they may decide, even without access to Response actions. Without approvers, members with Read-Write in Response actions & playbooks decide.
  • Four-eyes: the member who started the run may not approve it, unless the node allows self-approval. Rejecting your own request is allowed.
  • Expires after: when nobody decides in time, the run takes the timeout edge (or rejected, or fails when neither is connected).
  • Notifications: approvers get an email with a link to the request; without approvers, the recipients of the matching On incident notification rules get the usual approval email. Also post to adds Slack, Teams, Telegram or email response actions (the message carries an Open link to the request: a button on Teams and Telegram); an action whose default is a dry run only records what it would post (a dry-run execution), and test and dry runs never notify anyone.

The decision is made on Tasks > Mine (or on Tasks > All, which lists every approval request of the organization with its history). The run viewer shows who approved or rejected, and when.

Wait for input (forms)

A Wait for input node pauses the run and asks people to fill in a form:

  • Fields: text, choice, yes/no or number; each with a name, a label, required, a default (text defaults take {{ }}), choices, and bounds for numbers. At most 20 fields.
  • Who may answer: members and/or roles; by default members with Read-Write in Response actions & playbooks.
  • Expires after: without an answer in time the run takes the timeout edge (or fails).
  • The answer becomes the node's output: later nodes read steps.<node>.output.values.<field> (the variable picker lists the fields with their types), plus answered_by and answered_at.

Assignees get an email with a link to the form (and the channel actions you add). Answers are checked against the form, kept with the run and written to the audit log (xdr.workflow.form.answer, with the values) and to the incident's history.

Forms that start a workflow

With the trigger On form submitted, the workflow starts when a member sends its form: a title, instructions and up to 20 fields (text, choice, yes/no, number; the same fields as Wait for input). Who may send it: members and/or roles; by default members with Read-Write in Response actions & playbooks. Members open the form from Workflows (the ⋮ menu, Run with form), from Tasks > Mine (Forms you can send), or from its link (/xdr/tasks/run-forms/<workflow id>, shown in the trigger settings), which works for signed-in members of your organization only. Each sent form starts one run: trigger.form.<field> holds the answers (checked against the form, defaults for empty fields) and trigger.submitted_by who sent it; the member is the run's requester. Sending is in the audit log (xdr.workflow.form_trigger.submit, with the values). The workflow must be enabled and saved; one workflow starts at most 30 runs a minute this way.

Tasks

Analyst work > Tasks has two tabs. Mine (the default) lists what waits for you: workflow approvals and forms you may answer, tasks a workflow gave you (the Create task step: Mark as done when you have done it; they show their due date and stay until done), and response action approvals you may decide; the tab shows how many. All lists every approval request of the organization with its history (pending, approved, rejected, cancelled, expired), filtered to one incident when opened from an incident's pending-approvals badge. Links in notification emails open the task directly: they are signed, expire with the task, work for your organization only, and need you to sign in. A link is good for one decision: once the task is decided or answered, it shows the outcome.

Incident changes from anywhere

The incident change trigger sees every change of status, severity or owner: by hand, in bulk, through the API, by another workflow, a merge (each merged incident is closed; the target's severity may rise) and a new alert that raises its incident's severity.

Test runs

Test runs simulate people: approvals are approved and forms are answered with their defaults. For trigger-specific fields, put a sample in the test input, for example {"alert": {"severity": "high"}}, {"form": {"reason": "phishing"}} for a form trigger or, for a webhook workflow, the JSON body itself (or use its test event).