---
title: Slack Alerts
description: "TrustLens doesn't ship a dedicated Slack app or a \"Slack\" notification channel with its own settings screen. Instead, Slack is reached through **webhooks**. One path — the Card-Testing Defense Pro alerts — posts Slack-formatted messages directly; the others send TrustLens's…"
url: "https://webstepper.io/docs/trustlens/notifications/slack-alerts/"
updated: "2026-10-18"
category: Notifications
---

# Slack Alerts

TrustLens doesn't ship a dedicated Slack app or a "Slack" notification channel with its own settings screen. Instead, Slack is reached through **webhooks**. One path — the Card-Testing Defense Pro alerts — posts Slack-formatted messages directly; the others send TrustLens's own JSON, which needs a small relay to become a Slack message. This page explains the supported paths, exactly what each one sends, and how to get it into a Slack channel.

---

## The Ways to Reach Slack

| Path | What it sends | Where it's configured |
| --- | --- | --- |
| **Automation "Send Webhook" action** (Pro) | Any trigger you build a rule for — segment change, chargeback filed, linked accounts detected, etc. | The rule's webhook action (see [Actions Reference](/docs/trustlens/automation/actions-reference/)) |
| **Settings webhooks** (Pro) | The trust events you tick — score updated, customer blocked, checkout blocked, high-risk order, and others | Settings → Integrations → Webhooks |
| **Card-Testing Defense Pro alerts** | Card-testing attack / auto-escalation / Panic Freeze alerts | An option holding a Slack Incoming Webhook URL (no settings screen) |

All three POST JSON to a URL. Only the card-testing alerts use Slack's message format, so they can point straight at a Slack Incoming Webhook. There is no per-channel routing UI, no Block Kit builder, and no "Slack" tab — routing is simply a matter of which URL (and therefore which channel) you point each path at.

---

## Path 1: Automation "Send Webhook" Action

This is the flexible path. Any Pro automation rule can send a webhook when its trigger and conditions match.

1. Set up the receiving end — a relay that turns TrustLens's JSON into a Slack message (see below).
2. In TrustLens, build an automation rule and choose the **Send Webhook** action with the relay's URL.

The payload is fixed — you can't template it — and it's signed with HMAC-SHA256 (see [Webhooks and HMAC](/docs/trustlens/automation/webhooks-and-hmac/)):

```
{
  "event": "trustlens_automation",
  "rule": "Chargeback alert to Slack",
  "rule_id": "…",
  "trigger": "chargeback_filed",
  "email_hash": "…",
  "trust_score": 22,
  "segment": "risk",
  "fired_at": "2026-10-18 09:14:03",
  "attempt": 1
}
```

Slack's Incoming Webhooks expect a `text` field, which this body doesn't have, so posting it straight to a `hooks.slack.com` URL won't produce a message. Route it through something that maps the fields into a message: Zapier, Make, or a few lines of code on your own server. Because the engine treats every webhook receiver identically, the same approach works for Microsoft Teams, Discord, PagerDuty, or any custom HTTP endpoint — only the relay's output changes.

Failed deliveries are retried up to 3 times (after 60, 120, and 240 seconds).

---

## Path 2: Settings Webhooks

Under **Settings → Integrations → Webhooks** you can turn on webhooks, choose which events to send, and add endpoint URLs, each with an optional signing secret. These also send TrustLens's own JSON payloads, so the same relay advice applies. Deliveries are sent once, without retries. See [API and Webhooks](/docs/trustlens/setting-configuration/api-and-webhooks/).

---

## Path 3: Card-Testing Defense Pro Alerts

Card-Testing Defense Pro has its own alert dispatcher that notifies you when an attack is detected, when auto-escalation triggers a Panic Freeze, and when Panic Freeze is activated manually. It sends to an email address and/or a Slack Incoming Webhook.

The Slack message is a simple payload — a bold title line plus an `attachments` block with key/value fields — not Block Kit. A typical message looks like:

> *TrustLens — attack_detected*
> fingerprint: …, ip: …, email: …

| Event | Fields |
| --- | --- |
| `attack_detected` | fingerprint, ip, email (of the checkout that tripped detection) |
| `auto_escalated` | duration_seconds, distinct_attackers |
| `panic_activated` | duration_seconds |

Note that `attack_detected` messages include the shopper's IP address and email when the checkout carried one — consider who can read the channel.

There is no settings screen for these alerts in this version. The Slack URL and the alert email are stored in the `trustlens_card_testing_alert_slack_webhook` and `trustlens_card_testing_alert_email` options, which a developer can set, for example with WP-CLI:

```
wp option update trustlens_card_testing_alert_slack_webhook "https://hooks.slack.com/services/…"
```

Alerts are sent in the background a moment after the event (via WP-Cron), so they never slow down checkout. If you want differently formatted card-testing alerts in Slack, build an automation rule on the **Card Testing Attack** trigger with a Send Webhook action instead (Path 1). That trigger only fires when the attacking checkout carried a billing email.

---

## Rate Limiting

Slack imposes its own rate limits on Incoming Webhooks (roughly one message per second per webhook). A burst-heavy event — such as a rapid card-testing attack — can produce many triggers in a short span:

- Automation rules fire at most once per customer per rule per hour by default (developers can change this with the `trustlens/automation/rule_cooldown` filter).
- Card-testing alerts have no cooldown: every newly locked-out fingerprint sends an `attack_detected` alert.

Consider sending high-volume events to a lower-traffic channel.

---

## Security

A Slack Incoming Webhook URL is effectively a password — anyone with the URL can post to that channel. Treat it accordingly:

1. Store it only where you'd store other secrets.
2. If a webhook URL leaks, regenerate it in Slack immediately and update it in your relay or option.
3. Review the channel history for unauthorized messages after any suspected leak.

Automation webhooks are always signed with HMAC-SHA256 (the `X-TrustLens-Signature` header), and Settings webhooks are signed when the endpoint has a secret. Slack doesn't verify that signature — it's there for your own receivers, including a relay. Card-testing alerts aren't signed. See [Webhooks and HMAC](/docs/trustlens/automation/webhooks-and-hmac/).

---

## Beyond Slack

Slack is just one destination. The same automation "Send Webhook" action can target:

- Microsoft Teams, Discord, or PagerDuty — each through a relay that builds the payload that service expects
- Any custom HTTP receiver — and those *can* verify the HMAC signature

The engine treats all webhook receivers identically; Slack is documented here only because operational alerting is the most common use case.
