Slack, Teams, e-mail and webhooks
Notifications tell your team when something AuditGraph observed needs attention. They are sent after each publication: AuditGraph compares one publication with the previous one, so how quickly you are notified depends on your scan schedule. For alerts within minutes, see Detection alerts.
- Type
- Destination (notifications)
- Who
- An Admin, under Administration › Integrations
- Plans
- All plans, including the evaluation
- Channels
- Slack (incoming webhook), Microsoft Teams (Workflows or incoming webhook), e-mail, signed webhook to your HTTPS endpoint
- What is sent
- Counts, rule IDs, titles and links into AuditGraph. Never a secret, and never a raw provider document.
Events
Section titled “Events”| Event | Sent when |
|---|---|
finding.critical_new — New critical finding |
A publication contains a critical finding that was not there before |
tier0.change — Tier-0 access changed |
Access to your most privileged (Tier-0) roles changed |
scan.failed — Scan failed |
A discovery did not complete |
credential.expiring — Credential expiring |
A secret or certificate of an app registration or service principal expires within 30 days |
publication.summary — Publication summary |
Every publication: a short summary of what changed |
detection.alert — Detection alert (real time: created, recurred, state changed) |
A detection alert is raised, recurs or changes state. On by default for new integrations; delivered on plans with real-time detection. |
detection.summary — Detection summary (daily: new alerts since the previous summary) |
Once a day, the new detection alerts since the previous summary. Opt-in. |
Identity change alerts. A channel can also send one alert per identity change. By default these are Privileged role assigned, Privileged role removed and Account disabled. You can add:
- Account re-enabled
- New identity with access
- Guest with new privileged access
- New credential on a privileged identity
- New credential on an identity
- New federated credential (workload federation)
- AI app connected
- New federated domain
- Federated domain configuration changed
- Cross-tenant partner added, changed or removed
Under Which role changes, choose Privileged changes only (the default) or All role changes. Change alerts are capped per publication, with a summary for the rest. They show what changed, not who changed it (that needs the directory audit log).
Weekly digest. A weekly digest can also be turned on for each channel.
-
Add an integration and choose the channel.
Go to Administration › Integrations › + Add integration, and choose the channel.
-
Enter the channel’s details.
- In Slack, create an incoming webhook for the channel (a Slack app with Incoming Webhooks turned on).
- Paste the Slack incoming-webhook URL (
https://hooks.slack.com/services/…) into AuditGraph.
Only
hooks.slack.comURLs are accepted.- In Teams, create a Workflows flow that posts webhook requests to a channel (the Post to a channel when a webhook request is received template), or use an incoming webhook.
- Paste the Teams workflow / webhook URL into AuditGraph.
Accepted hosts end in
.webhook.office.com,.logic.azure.comor.powerplatform.com. Messages are Adaptive Cards, with an Open in AuditGraph button.Enter up to 20 recipients, for example
secops@example.com, ciso@example.com. Each message has a plain-text part and an accessible HTML part.- Enter your Endpoint URL (HTTPS). It must be HTTPS and reachable from the internet.
- Save. AuditGraph generates a signing secret and shows it once. Store it in your receiver.
AuditGraph sends a
POSTwith a CloudEvents 1.0 JSON body, and these headers:Header Value Content-Typeapplication/jsonX-AuditGraph-EventThe event type, for example finding.critical_newX-AuditGraph-DeliveryA unique delivery ID. Use it to ignore duplicates. X-AuditGraph-Signaturet=<unix seconds>,v1=<hex HMAC-SHA-256> -
Name the integration, choose its events, and save.
Give it a Display name, choose its Events, and save.
To change the events of an existing integration later, open it, change the ticks and select Save events. Until you save, it says Unsaved changes — not applied until you save.
Result: the URL, the signing secret and every other credential are stored in a key vault. Afterwards only the URL’s host is shown. You can replace it, but not read it back.
Verify webhook signatures
Section titled “Verify webhook signatures”Compute the HMAC-SHA-256 of "<t>.<raw request body>" with your signing secret. Compare it with
v1 in constant time, and reject requests whose timestamp is more than 5 minutes from your clock.
Always use the raw body bytes, before any JSON parsing.
import hashlibimport hmacimport time
TOLERANCE_SECONDS = 300 # reject anything older or newer than 5 minutes
def verify_auditgraph_signature(secret: str, header: str, raw_body: bytes) -> bool: """Return True if X-AuditGraph-Signature is valid for this body.""" try: parts = dict(item.split("=", 1) for item in header.split(",")) timestamp = int(parts["t"]) received = parts["v1"] except (KeyError, ValueError): return False if abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False expected = hmac.new( secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256 ).hexdigest() return hmac.compare_digest(expected, received)Example body:
{ "specversion": "1.0", "id": "5f0c2d1e-…", "source": "https://<your AuditGraph host>/orgs/<org id>", "type": "finding.critical_new", "time": "2026-11-19T10:15:00+00:00", "datacontenttype": "application/json", "subject": "<directory>", "data": { "…": "…" }}Test the connection
Section titled “Test the connection”| Check | Where | Expected result |
|---|---|---|
| Send a test | Administration › Integrations › the channel › Test | Test queued. The result appears in the delivery log. A test message arrives in the channel, inbox or endpoint. |
| Delivery log | The channel’s Deliveries | Each delivery with its attempts and HTTP status. |
| Signature | Your receiver | verify_auditgraph_signature returns True for the test request. |
Retries. Deliveries are retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours when your endpoint answers 408, 429 or 5xx, or cannot be reached. Any other answer, or the end of the schedule, marks the delivery as failed.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| URL refused when saving | The host is not a Slack or Teams webhook host, or the endpoint is not HTTPS. | Use the webhook URL that Slack or Teams generated, or an HTTPS endpoint. |
| Test failed with 401 or 403 from your endpoint | Your receiver rejected the signature. | Verify against the raw body, and check that you stored the latest signing secret. |
| No recipients | An e-mail channel without addresses. | Add at least one recipient. |
| Nothing arrives after a scan | No subscribed event happened, or the scan has not been published yet. | Turn on publication.summary to get a message after every publication. |
Remove the integration
Section titled “Remove the integration”-
Delete the integration in AuditGraph.
Delete it in Administration › Integrations. Deliveries stop, and its stored secrets (the URL and signing secret) are deleted from the key vault.
-
Remove the webhook or flow in Slack or Teams.