Webhook and evidence¶
Webhook¶
The compliance webhook is set in Settings, Notifications, Compliance webhook
(global administrators only; tenant accounts do not see it). It is independent of the
notification channels on the same tab. When a device becomes
non-compliant after the grace period (and notify is on) the server posts:
{"type": "device.noncompliant", "device_id": "...", "hostname": "pc1", "failing_checks": 3,
"noncompliant_since": "2026-11-25T08:00:00Z", "console_url": "https://mdm.example.com/devices/..."}
Tamper reports are sent to the same URL as {"type": "device.tamper", "device_id", "hostname",
"detail", "console_url"}. The URL must be https. The webhook gets the events of every
tenant's devices.
Every request has the headers X-LiMDM-Timestamp: <unix seconds> and
X-LiMDM-Signature: sha256=<hex>, the HMAC-SHA256 of <timestamp>.<raw body>. The key is
the webhook signing secret, shown to admins as Signing key under the URL. It is its own
sealed value, independent of the session key, and rotates with
limdm-server keys rotate webhook or Rotate in Settings, Security, Keys
(Webhook signing secret). Signed notification channels use the same
secret. Verify the signature and reject timestamps older than five minutes (replay
protection):
import hmac, hashlib, time
msg = ts.encode() + b"." + body
ok = hmac.compare_digest("sha256=" + hmac.new(bytes.fromhex(key), msg, hashlib.sha256).hexdigest(), sig) \
and abs(time.time() - int(ts)) < 300
There is one attempt per event (10 second timeout); failures are only written to the server log. Redirects are not followed, and loopback, link local and metadata addresses are refused. For retries and a delivery log use a webhook notification channel.
Evidence¶
Exports are open to admins and auditors and follow the device scope and tenant of the account.
- Evidence CSV (
/api/v1/exports/compliance.csv): every current check result of every active device (custom checks included): device, host name, last seen, agent version, catalog version, check, level, status, detail, BSI, CIS and ISO references, CIS benchmark edition, the reason, owner, approver and expiry of the active risk exception that covers it, and the generation time. - Exceptions CSV (
/api/v1/exports/exceptions.csv): every risk exception with its state (active,expired,revoked), creator and creation time. - Compliance history (Compliance page, History,
/app/compliance/history): devices report only changes, and the server stores every change of a check result (compliance_changes, 365 days; the last state before the cutoff is kept, so the state at any date stays known). The page shows the state of all devices, or of one device with its changes, at the end of a chosen day. Report as CSV (/api/v1/exports/compliance-history.csv?at=YYYY-MM-DD&device=ID) has the same data with the time each state began, the catalog version and the generation time. Devices that reported before the history existed start with their last report as baseline. - Inventory CSV, Packages CSV (device list), Audit CSV and the audit JSON Lines export for asset management and audits.
- Signed evidence (
evidence.json, console app Export evidence, or/api/v1/exports/evidence.json?days=90): one bundle (formatlimdm-evidence/1) with the score and device states, the framework rates, every current check result per device with its catalog and agent version, all risk exceptions, the fleet history and every change of a check result within the window (1 to 365 days), andgenerated_atandgenerated_by. It is signed with the command key (Ed25519, an HSM key works too) overlimdm-evidence/1\nfollowed by the compact payload. Check it offline withlimdm-server evidence [-ca DIR | -key HEX] verify evidence.json, which also accepts the previous key during a key rotation. - Evidence report (
evidence.pdf): a PDF rendered on the server from such a bundle, in the language of the console, with score, frameworks, failing checks, active exceptions, versions, and the SHA-256, key ID and signature of the bundle. Each evidence export also writesevidence.signwith the bundle's SHA-256 and key ID. - Every export writes two audit entries:
exportbefore (who, which file, which filter) andexport.doneafter, with the row count and the SHA-256 of exactly the file sent, so a file handed to an auditor can be matched to its entry. - The audit log is append only and keyed hash chained; it can be verified outside LiMDM (Audit log).
CSV exports neutralise formula injection.
The console app (/app/compliance) downloads the same files through
GET /api/v1/exports/{kind} and shows the SHA-256 of the downloaded file next to the
matching export.done audit entry. Its overview drills from a framework card to the
controls and checks, and from a check to the devices with their result, the remediation and
the active exceptions.