Skip to content
Kandaro
Book a demo

Send and read data

Webhooks and signatures

Send decoy incidents and SOC cases to your ticketing system, chat tool or anything else that accepts JSON, and prove every request came from Kandaro.

Set up a webhook

In Settings → Alert channels, choose Add channel, then Webhook. Enter an https:// URL that resolves to a public address, and pick the lowest severity the channel should get. Kandaro creates a signing secret for the channel and shows it once: copy it into your receiver. Use Send test to check your setup.

Kandaro sends a webhook when an incident is created, when its severity rises and when a closed incident re-opens. The use of planted bait is always sent, whatever the channel’s severity. Requests time out after 5 seconds and redirects aren’t followed, so answer with a 2xx quickly and do the work afterwards. A failed delivery is retried a few times, with growing pauses.

Payload

An example request:

http
POST /your/endpoint HTTP/1.1
Content-Type: application/json
X-Kandaro-Signature: t=1791504000,v1=5f2b9c0e…
X-Kandaro-Event: incident.created
X-Kandaro-Delivery: 0b7d3f1e-…

{
  "type": "incident.created",
  "id": "0b7d3f1e-…",
  "createdAt": "2026-10-08T02:14:09.000Z",
  "text": "New incident (HIGH): Login attempts on decoy NAS from finance workstation — https://app.kandaro.com/incidents/6f1c2e0a-…",
  "incident": {
    "id": "6f1c2e0a-…",
    "title": "Login attempts on decoy NAS from finance workstation",
    "severity": "high",
    "status": "open",
    "narrative": "A machine on the finance VLAN tried to log into…",
    "recommendedAction": "Isolate 10.20.4.77 and reset the backup-admin password.",
    "sensor": { "id": "…", "name": "nas-backup-01", "profile": "nas" },
    "sourceIp": "10.20.4.77",
    "eventCount": 7,
    "firstSeenAt": "2026-10-08T02:14:07.000Z",
    "lastSeenAt": "2026-10-08T02:21:40.000Z",
    "highConfidence": false,
    "url": "https://app.kandaro.com/incidents/6f1c2e0a-…",
    "techniques": [
      { "id": "T1110", "name": "Brute Force", "tactics": ["Credential Access"] }
    ],
    "events": [
      {
        "id": "…",
        "time": "2026-10-08T02:14:07.000Z",
        "type": "login_attempt",
        "action": "password",
        "service": "ssh",
        "port": 22,
        "sourcePort": 51234,
        "severity": "medium",
        "confidence": "normal",
        "tags": [],
        "summary": "Someone tried to log in to ssh as \"backup-admin\"…",
        "attackerInput": {
          "username": "backup-admin",
          "password": { "masked": "••••••••", "length": 8, "fingerprint": "…" }
        }
      }
    ],
    "suggestedDetections": {
      "notice": "Suggestion only. Kandaro never applies these rules or indicators anywhere. Review and test each one before you use it in your own tools.",
      "iocs": [
        { "kind": "ip", "value": "10.20.4.77", "note": "The address that touched the decoy." }
      ],
      "sigma": { "rules": [ … ], "yaml": "…" }
    }
  }
}
  • type is incident.created, incident.escalated, incident.reopened or test. A test delivery has incident: null.
  • id identifies this delivery and is repeated in X-Kandaro-Delivery. A retry of the same delivery keeps its id, so you can drop duplicates by id. A new event, such as an escalation, has a new id.
  • text is a one-line summary with mentions defused, safe to forward to a chat tool.
  • techniques lists the MITRE ATT&CK techniques involved. They come from a fixed table, not from AI.
  • events holds the most recent events of the incident, oldest first, at most 20. eventCount is the total.
  • attackerInput is what the attacker sent, and title, narrative, recommendedAction and summary can quote it: follow the rule for text an attacker wrote.
  • suggestedDetections holds indicators (source address, decoy accounts used, user agents, ATT&CK ids) and, in sigma, draft detection rules to look for the same attacker in your own logs. They are a suggestion for a person to review: Kandaro never applies them, and your receiver shouldn’t apply them automatically either.

New fields may be added at any time; ignore fields you don’t recognise.

SOC cases

With SOC switched on, a webhook channel can also receive cases: in Settings → Alert channels, open the channel’s menu and choose Send SOC cases. Send source problems tells the channel when Kandaro stops receiving a source’s alerts as expected. Email and Slack channels can take both too; SIEM connectors can’t. These notices are short on purpose: no case content and nothing the AI wrote leaves Kandaro, only the case number, its priority, the machine or account it is about and a link.

A channel that takes both incidents and cases gets one message instead of two when a decoy incident opens or raises a case: how that works.

http
POST /your/endpoint HTTP/1.1
Content-Type: application/json
X-Kandaro-Signature: t=1791504000,v1=…
X-Kandaro-Event: case.opened
X-Kandaro-Delivery: 3a9c51d2-…

{
  "type": "case.opened",
  "id": "3a9c51d2-…",
  "createdAt": "2026-10-08T02:15:30.000Z",
  "caseNumber": 142,
  "priority": "p1",
  "asset": "LAPTOP-042",
  "url": "https://app.kandaro.com/soc/cases/142",
  "message": "New P1 case CASE-142 on LAPTOP-042. Open it in Kandaro: https://app.kandaro.com/soc/cases/142"
}
  • type is case.opened, case.escalated (its priority went up) or case.sla_breach (it passed its triage or containment target). A source problem is connection.problem, with source and reason instead of the case fields. When the day’s AI budget is used up, you get soc.ai_budget with only url and message.
  • priority is p1 (most urgent) to p4. The channel’s minimum severity applies to cases too.
  • asset is the name of the machine or account, as the alerts reported it, or null. It is text an attacker can shape.
  • A retry keeps its id here too, so you can drop duplicates by id.

Case notices are signed in the same way as incidents.

Verifying the signature

Every request carries an X-Kandaro-Signature header:

  • t is the Unix timestamp (seconds) at which the request was signed.
  • v1 is the hex-encoded HMAC-SHA256 of the string {t}.{raw body}, keyed with your channel’s signing secret.

To verify:

  1. Read the raw request body before parsing it as JSON.
  2. Split the header on commas and read t and v1.
  3. Reject the request if t is more than 5 minutes from your clock (replay protection).
  4. Compute the HMAC over t + "." + body and compare it in constant time.
node.js
import crypto from 'node:crypto';

const TOLERANCE_SECONDS = 300;

/** rawBody must be the exact bytes received, before any JSON parsing. */
export function verifyKandaroSignature(rawBody, header, secret) {
  const parts = Object.fromEntries(
    header.split(',').map((kv) => kv.trim().split('=', 2)),
  );
  const t = Number(parts.t);
  if (!Number.isInteger(t) || !parts.v1) return false;

  // Replay protection: reject old (or far-future) timestamps.
  if (Math.abs(Date.now() / 1000 - t) > TOLERANCE_SECONDS) return false;

  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${t}.${rawBody}`)
    .digest();
  const received = Buffer.from(parts.v1, 'hex');

  return received.length === expected.length &&
    crypto.timingSafeEqual(received, expected);
}
python
import hmac, hashlib, time

TOLERANCE_SECONDS = 300

def verify_kandaro_signature(raw_body: bytes, header: str, secret: str) -> bool:
    parts = dict(p.strip().split("=", 1) for p in header.split(",") if "=" in p)
    try:
        t = int(parts["t"])
        received = bytes.fromhex(parts["v1"])
    except (KeyError, ValueError):
        return False
    if abs(time.time() - t) > TOLERANCE_SECONDS:
        return False
    signed = f"{t}.".encode() + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).digest()
    return hmac.compare_digest(received, expected)

Rotating the secret

Choose Rotate signing secret in the channel’s menu and update your receiver. Secrets are stored encrypted and shown only once; if you lose one, rotate it.