Skip to content

Policy and risk exceptions

Policy: com.limdm.compliance

{"level": 1, "remediate": true, "exclude": ["net.forwarding"], "advisory": ["boot.secureboot"],
 "grace_hours": 72, "notify": true, "lock_after_hours": 0, "unlock_when_compliant": true}
Field Meaning
level 1 or 2
remediate apply automatic fixes
exclude checks excluded by policy; shown as excepted, never as passed. They have no reason or expiry: prefer risk exceptions
advisory reported but not counted against compliance
grace_hours a failing device is in grace this long before it counts as non-compliant
notify when the grace period is over, send the compliance webhook and the device.noncompliant notification
lock_after_hours lock the device this long after it became non-compliant, 0 = never
unlock_when_compliant lift an automatic lock once all checks pass again

The server evaluates grace_hours, notify, lock_after_hours and unlock_when_compliant. Automatic lock and unlock use the same mechanism as the console command (new logins blocked, sessions locked) and are written to the audit log as actor policy (compliance.notify, compliance.lock, compliance.unlock). Removing lock_after_hours from the policy lifts an automatic lock.

Risk exceptions

Compliance, Risk exceptions documents accepted risks (ISO/IEC 27001 6.1.3, BSI 200-2 residual risk). An admin records:

Field Rule
Check ID a built in or custom check
Mode exclude (shown as excepted) or advisory (reported, not counted)
Device tag one tag, or empty for every device
Reason 1 to 1000 characters
Risk owner 1 to 200 characters
Approver the person who accepted the risk, 1 to 200 characters
Expires a date within the next three years; the exception is valid through that day

With four eyes approval off an admin adds the exception directly and names the approver. With it on, and always for the helpdesk (console app, Request exception, or POST /api/v1/exception-requests), the exception is a request in the inbox (approval action exception.add): another admin approves it and is recorded as its approver, the requester as its creator. A helpdesk account limited to device tags asks for one of its own tags.

Adding (exception.add) and revoking (exception.revoke) are audited. With several tenants an exception belongs to its tenant.

The server merges the active exceptions into the compliance declaration it sends to each device. An expired or revoked exception is no longer sent, so it stops applying at the next check in. The agent only knows the resulting exclude and advisory lists and reports such checks as excluded by policy (exception). Lists written directly in a compliance library item still work, but have no reason, owner or expiry.