Ga naar inhoud

Webhooks

Configureer in Settings → Integrations → Webhook. Elke event-categorie krijgt een POST naar je endpoint:

POST https://your-app.example/monsys
Content-Type: application/json
X-Monsys-Signature: hmac-sha256(<secret>, body)
{
"event": "alert.created",
"tenant_id": "...",
"agent_id": "...",
"alert": {
"id": "...",
"severity": "critical",
"category": "honeypot",
"title": "Honeypot tripped: /root/.ssh/id_rsa.monsys-backup",
"created_at":"2026-05-09T12:42:18Z"
}
}

Verificatie

import hmac, hashlib
def verify(secret: bytes, body: bytes, signature: str) -> bool:
mac = hmac.new(secret, body, hashlib.sha256).hexdigest()
return hmac.compare_digest(mac, signature)

Event types

EventWanneer
alert.createdEen alert is aangemaakt
alert.resolvedEen alert is opgelost
agent.onlineAgent is online gekomen
agent.offlineHeartbeat-silence ≥ 90 s
honeypot.trippedCanary geactiveerd
cve.match.newNieuwe CVE-match (CVSS ≥ 7.0)
emergency.token.issuedToken uitgegeven (audit)