Webhooks

LIVE

Alert rules that POST new findings to your endpoint, signed so you can verify they came from CyberSpec.

  • Pick the severities a rule fires on: critical, high, medium, low or info
  • X-CyberSpec-Signature: hex HMAC-SHA256 of the raw body, keyed with the rule’s secret, no prefix or timestamp
  • The secret is shown once when the rule is created; an Owner or Admin manages rules
  • Up to 5 delivery attempts with exponential backoff from 30 seconds; a failing rule is flagged
  • Slack and email channels on the same rules; email works with PSA ticket inboxes
CyberSpec dashboard: risk score, open findings by severity, a seven-day trend and recent scans
The CyberSpec portal.

Create an alert rule under Settings → Notifications, choose the webhook channel and the severities you care about, and CyberSpec posts each new finding at those severities to your URL. Every delivery is signed so your endpoint can reject anything that did not come from CyberSpec or was changed in transit.

What a delivery looks like

One POST per new finding per matching rule, with a JSON body of four fields. cve is null for checks that have no CVE, such as a TLS or end-of-life finding, and the summary then names the check (for example "TLS config") instead. The finding itself, with remediation and KEV status, is one GET /findings/:id away.

POST /your/endpoint
Content-Type: application/json
X-CyberSpec-Signature: <64 lowercase hex characters>

{
  "findingId": "<finding id>",
  "cve": "CVE-2024-6387",
  "severity": "high",
  "summary": "HIGH finding: CVE-2024-6387 on 203.0.113.10:22"
}

Verify the signature

X-CyberSpec-Signature is the HMAC-SHA256 of the exact request body, keyed with the rule’s secret, written as lowercase hex with no prefix. No timestamp is signed. Compute it over the raw bytes before parsing JSON, and compare in constant time. Node’s timingSafeEqual throws if the two buffers differ in length, so check the lengths first, as below.

import { createHmac, timingSafeEqual } from 'node:crypto';
import { createServer } from 'node:http';

const secret = process.env.CYBERSPEC_WEBHOOK_SECRET;

function verify(rawBody, header) {
  const expected = Buffer.from(createHmac('sha256', secret).update(rawBody).digest('hex'));
  const received = Buffer.from(String(header ?? ''));
  // timingSafeEqual throws when the lengths differ, so compare them first.
  return expected.length === received.length && timingSafeEqual(expected, received);
}

createServer(async (req, res) => {
  const chunks = [];
  for await (const chunk of req) chunks.push(chunk);
  const rawBody = Buffer.concat(chunks); // the exact bytes, before JSON.parse

  if (!verify(rawBody, req.headers['x-cyberspec-signature'])) {
    res.writeHead(401).end();
    return;
  }
  const { findingId, cve, severity, summary } = JSON.parse(rawBody.toString('utf8'));
  console.log(findingId, severity, cve, summary);
  res.writeHead(204).end();
}).listen(3000);

Retries and duplicates

Any response outside 2xx counts as a failure. Deliveries retry up to five times with exponential backoff starting at 30 seconds, then stop, and the rule shows a last-delivery-failed flag in the portal until the next delivery succeeds. A delivery your endpoint processed but answered with an error is sent again, so the same finding can arrive more than once: deduplicate on findingId. Because the signature carries no timestamp, that check is also your protection against a replayed request. Findings are stored before any alert is sent, so a missed webhook loses no data.

What triggers it

Only a finding that is new to an asset. A rescan that sees an already-open finding again does not alert. Network scan findings trigger webhooks; dependency findings from the CLI do not, and arrive in the daily digest instead.

Reporting clocks

A new finding is an exposure, not an incident. If one turns out to have been used against you, NIS2 Art. 23 sets an early warning within 24 hours of a significant incident, and GDPR Art. 33 gives 72 hours to notify the supervisory authority of a personal data breach. Routing alerts into the ticket queue your team already watches means the people who would report see the exposure first.

The parts of CyberSpec that do this

For teams in Europe (euro area)

In the euro area, the security duties buyers ask about are GDPR Article 32 and NIS2 Article 21, which includes vulnerability handling. CyberSpec gives dated external-scan evidence for both and maps findings to ISO 27001. A personal data breach goes to your supervisory authority within 72 hours where feasible, unless it is unlikely to put people at risk (Article 33).

CyberSpec is €17 per client a month for up to 5 assets, a €119 one-off report, or free for one asset.

See your own exposure in minutes

Free for one asset, no card. Add a domain, prove you own it, and run your first scan.

More in Developers