Notifications & webhooks

Push WolfGuard events (scan complete, score drop, critical finding, compromise alerts, remediation workflow steps) to Slack, Microsoft Teams, email, or any custom HTTPS endpoint.

Where to configure

Open the dashboard at http://localhost:3000, then go to Settings → WolfGuard → Webhooks. Pick a channel, name it, paste the URL or email, choose which events should trigger it, and save. Test the endpoint right away with the Send test button.

Multiple endpoints can coexist (e.g. Slack for the team channel, email for the on-call rotation, a webhook to your SOAR). Each endpoint subscribes independently to events.

Available events

Event Fires when
scan_completeAn audit run finishes — includes the global score and findings count.
score_dropThe global score drops by 5 points or more versus the previous audit.
critical_findingAn audit run produces at least one critical-severity finding.
compromise_alert.createdCompromise monitoring raises a new alert on a user.
attack_path.detected / kill_chain_realtime.detectedReal-time monitoring finds a new attack path or kill-chain condition (Enterprise).
remediation.*Remediation workflow lifecycle — requested, approved, rejected, executed, rolled back.
forest_recovery.snapshot_dueA scheduled Forest Recovery snapshot is due.

Slack

  1. Open api.slack.com/messaging/webhooks and create an Incoming Webhook in your workspace.
  2. Pick the channel where alerts should land (e.g. #sec-alerts) and copy the URL — it looks like https://hooks.slack.com/services/T0…/B0…/….
  3. In WolfGuard Settings → Webhooks, choose Slack, paste the URL, pick events, and Send test.

WolfGuard posts a plain-text Slack message per event. Sample payload:

{
  "text": "*Critical Finding: Excessive permanent privileged roles*\nA critical finding was detected: Excessive permanent privileged roles\nRule: PIM-002\nAudit run: audit_2026-04-28T07:00Z"
}

Microsoft Teams

  1. In Power Automate, create a flow triggered by "When a Teams webhook request is received", ending in "Post card in a chat or channel" — copy the HTTP POST URL it generates.
  2. In WolfGuard Settings → Webhooks, choose the dedicated Teams channel, paste the URL, pick events, and save.

WolfGuard sends an Adaptive Card 1.5 payload (not the legacy MessageCard format, which Power Automate rejects):

{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "body": [
    { "type": "TextBlock", "text": "Critical Finding: Excessive permanent privileged roles", "weight": "Bolder", "size": "Medium", "color": "Attention" },
    { "type": "TextBlock", "text": "Rule PIM-002 — audit run audit_2026-04-28T07:00Z", "wrap": true }
  ],
  "actions": [
    { "type": "Action.OpenUrl", "title": "Open in WolfGuard", "url": "https://app.coderaft.io" }
  ]
}

Email

  1. In Settings → Webhooks, choose Email and enter the SMTP host, port, credentials and one or more recipient addresses — each email channel has its own SMTP configuration.
  2. Any RFC 5321 SMTP relay works (Brevo, SendGrid, AWS SES, your own mail server). Port 465 uses implicit TLS, any other port uses STARTTLS.

Custom webhook (SOAR, ITSM, in-house)

WolfGuard does an HTTP POST with Content-Type: application/json to your URL on every selected event. The body shape is stable across versions (additive only).

{
  "event": "critical_finding",
  "data": {
    "audit_run_id": "audit_2026-04-28T07:00Z",
    "global_score": 82,
    "findings_count": 3,
    "critical_count": 1,
    "findings": [
      { "rule_id": "PIM-002", "title": "Excessive permanent privileged roles" }
    ]
  }
}
  • HMAC signing (optional): set a secret on the channel and each request includes X-Signature-256: sha256=<hex> computed over the raw body — verify before processing.
  • No automatic retry: delivery is a single attempt (15 s timeout). A failure is logged server-side and not retried — treat this as at-most-once delivery, not a guaranteed queue.
  • Authoritative source: re-fetch /api/entraguard/findings/<id> with an API key — webhook payloads are notifications, not the system of record.

Troubleshooting

  • No alert received after a scan: check that the endpoint is enabled (toggle in Settings) and that the event you expect is in the trigger list.
  • Slack returns 400: usually the webhook was rotated/disabled. Generate a new one.
  • Teams shows an error instead of a card: make sure the URL comes from a Power Automate flow ending in "Post card in a chat or channel", not a classic Incoming Webhook connector (deprecated by Microsoft).
  • Notification silently missing: since delivery isn't retried, check the WolfGuard server logs for a "Notification failed" warning — the target endpoint likely returned a non-2xx response or timed out.