Integrations

Security alert webhook with signed JSON

In short. This webhook is reserved for active integrator partners (hosting providers, agencies under contract), through the v1 API with an API key. It does not exist for an ordinary customer account: for a team channel, use Slack, Microsoft Teams or Discord.

A partner receives its customers' events in its own tool, as JSON, with a signature to verify. Here is what is sent and how to check each request.

Last verified: November 28, 2026, based on how AttackScout currently works.

What reaches you

AttackScout sends JSON to your URL. The events are:

  • finding.new: a new finding is detected.
  • finding.fixed: a reported finding is back in order.
  • deadline.approaching: a deadline is close.
  • ping: the message sent by a test.

Each event names the domain concerned and, when attached, the partner's customer. The headers are AttackScout-Event, AttackScout-Event-Id (the same on every retry, handy to drop a duplicate), AttackScout-Delivery and AttackScout-Signature.

How to connect it

  1. Be an active integrator partner: the webhook is not open to other accounts (see the partner page below).
  2. Use an API key from your partner account, with the scopes partner:read (read) and partner:write (write).
  3. Create the webhook: POST /api/v1/partner/webhooks with your HTTPS URL. The signing secret whsec_… is shown only once: store it right away.
  4. Send a test: POST /api/v1/partner/webhooks/{id}/test. Your server receives a ping event.
  5. Follow the sends with GET /api/v1/partner/webhooks/{id}/deliveries; list your webhooks with GET /api/v1/partner/webhooks and delete one with DELETE /api/v1/partner/webhooks/{id}.

Verify the signature

The AttackScout-Signature header looks like t=<Unix seconds>,v1=<hex HMAC-SHA-256 of "<t>.<body>">. Recompute it with your whsec_… secret over the raw request body:

import hmac, hashlib

def verify(header: str, body: bytes, secret: str) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    signed = parts["t"].encode() + b"." + body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"])

# header = value of AttackScout-Signature, body = raw request body

The WHMCS module uses this same verification. Rejecting a t timestamp that is too old is a precaution you can add on your side.

Security and limits

  • The URL and the secret are encrypted at rest.
  • HTTPS and port 443 only. The public DNS name is rechecked on every send, and no redirect is followed.
  • On failure, AttackScout retries up to 7 times over about 21 hours, then gives up on that delivery.
  • After 5 abandoned deliveries in a row, or as soon as a 410 response, the webhook is suspended. A successful test turns it back on.
  • Limit: 5 webhooks per account.

Frequently asked questions

Can my ordinary customer account create this webhook?

No. You must be an active integrator partner and use the v1 API with an API key. An ordinary customer uses Slack, Teams or Discord.

How do I avoid processing the same event twice?

Keep the value of AttackScout-Event-Id: it stays the same on every retry, whereas AttackScout-Delivery identifies the send.

How many retries before giving up?

At most 7 attempts over about 21 hours. Five abandoned deliveries in a row suspend the webhook, and so does a 410 response.

Where can I find the whsec_… secret again?

Nowhere after creation: it is shown only once. Save it in your secrets manager as soon as it appears.

Try AttackScout. Alert channels work on the free plan and on paid plans; only the events sent change. See pricing

Get the free alerts