LawlietRequest demo ↗

25. Compliance: attestations, exceptions and reports

This guide describes Lawliet 1.6.3.b (the current release, a beta: earlier releases are beta. The first stable release will be 2.0.0). Screens, commands and procedures may change in later versions; the usage guide is updated with each release. Check the version your server runs under Settings > Platform or with ./lawliet version, and see the Releases page for what changed.

Some controls cannot be checked by a script: a reviewed policy, delivered training, a signed vendor assessment. An attestation records a person's statement about such a control, with a justification and an expiry. An exception accepts the risk of a control that is not met, and will not be soon, for a fixed period, with a compensating control: the control is reported as accepted risk, never as compliant. Attested and waived controls are always reported separately from measured results, never blended into one score.

Reports are dated documents covering a stated period, produced on demand or on a cadence, and optionally emailed.

Permissions:

TaskPermissionFour-eyes
See attestations, exceptions and reportsView compliance-
Record or revoke an attestationRun scansno
Request, extend or revoke an exceptionManage complianceno (an exception has no effect until approved)
Approve an exceptionAccept risk (approve exceptions)yes - critical action "Approve a compliance exception"; and never the requester, whatever the policy
Generate a report now, download a reportView complianceno
Create or delete a report schedule, delete a generated reportManage reportsno

25.1 Attestations#

Path: Compliance > Attestations (the attestations tab of the page).

What you see:

  • A warning when attestations expire within 45 days: "When one lapses its control reverts to unassessed and the compliance score drops."
  • Tiles: Attested met, Not applicable, Active exceptions ("Excluded from scoring, not counted as passes"), Expired attestations ("No longer credited to any score").
  • The list of attestations with Revoke on each active one.

Procedure: record an attestation#

  1. Open Compliance > Attestations and press New attestation.
  2. Fill Record an attestation:
FieldMeaning
Framework code *The framework's code as shown in the Framework registry (for example soc2)
Control ID *The control (for example CC-1.1)
Assertion *Control is met, Control is not met, or Not applicable to this environment
Expires *Required. "An assertion with no end date is a permanent pass nobody revisits." At most two years ahead
Justification *At least 20 characters: what was reviewed, by whom, and what evidence supports it
Evidence referenceTicket, document or URL
Agent ID (optional)Leave blank for the whole environment, or give one host's ID
  1. Press Record attestation.

What you see: "Attestation recorded." The scan page of that framework then shows a Measured score and an Adjusted score side by side.

Procedure: revoke an attestation#

Permission: Run scans (or Manage compliance). Four-eyes: no. Risk: the control reverts to unassessed and the score may drop. Rollback: record a new attestation.

  1. Open Compliance > Attestations and find the active attestation.
  2. Press Revoke on its row.
  3. The browser asks "Why is this attestation being withdrawn? (recorded for audit)". Type the reason (at least 5 characters) and press OK. Cancel, or a shorter reason, sends nothing.
  4. What you see: "Attestation revoked." The row now shows Revoked.

An attestation cannot be edited. To change one, revoke it and record a new one. Expired, revoked and superseded attestations stay in the list as a record; there is no delete.

If it fails: the form names the field in error (for example a justification under 20 characters, or an expiry in the past or beyond the maximum).


25.2 Exceptions#

Path: Compliance > Attestations, then the exceptions tab of the page. A notification about an exception opens this tab directly.

An exception "accepts the risk of a control that is not met, for a fixed period. Reports show the failing control as accepted risk - never as compliant; if it later measures compliant, it is reported compliant and the exception is flagged for revoking." It goes through two people: one requests, another approves.

What an exception covers:

Scope ("Applies to")Hosts covered
One hostThat host
Several hostsThe hosts you tick, listed by id when you request it
A host groupAn existing host group (Hardening > Baseline): its listed members when it is requested. A host added to the group later, or a host in the group only by an asset tag, is not covered: it needs its own exception
Every host of a profileWindows workstations, Windows member servers, Domain controllers or Ubuntu servers - the hosts in that profile when it is requested. A host that joins later needs its own exception

It is keyed by the control id (catalog id; the older ids of the same control still match), for one framework or, with the framework left empty, every framework.

Lifecycle:

  • Pending approval - no effect yet.
  • Accepted risk - approved and in force until it expires. The failing control is reported as accepted risk in scores, framework reports (chapter 43) and exports (chapter 44); drift is not raised on it (23.3). A scan's control list shows it as Waived until <date> (<reason>) under the measured result - never as compliant.
  • Left as it is by hardening (1.5.16.s) - on the hosts it covers, a waived control is not offered by the fix plan (listed under "waived (accepted risk): left as they are"), not planned by the hardening planner ("waived (accepted risk): not planned"), and skipped by every batch - manual, Lockdown and auto-baseline - with the reason "Waived until <date> (<reason>)". Drift auto-fix leaves it alone. A single hardening run that names it is refused ("A waiver (accepted risk) covers these controls on this host"). If a waiver is approved while a run waits for its approval, that control is skipped at approval ("At approval: Waived until ...") and the rest of the run goes ahead. Rolling back what was applied earlier is not affected.
  • If the control measures compliant while covered, it is reported compliant, and the review queue gets an item saying the exception is no longer needed (consider revoking).
  • Reminders go out 14, 3 and 0 days before expiry.
  • Expired - the control is scored normally again, fix plans, batches, Lockdown and auto-fix include it again, and a review item opens: "Waiver expired: <control> on <scope>".
  • Extension pending / Superseded - an extension is a new request with a new approval; when it is approved the old exception reads Superseded.
  • Revoked - withdrawn by hand.

Every change is audited. Exceptions cannot be edited or deleted; revoked, expired and superseded ones stay as a record.

Procedure: request an exception#

Permission: Manage compliance (not the Analyst, Auditor or Viewer roles). Four-eyes: no; it has no effect until approved.

  1. Open the exceptions tab and press Request exception.
  2. Fill Request an exception:
FieldMeaning
Control ID *For example WIN-WINRM-HTTP-LISTENER
Framework code (optional)"Empty: every framework"; or one framework code
Applies to *One host, Several hosts, A host group or Every host of a profile
Host *One host: choose it
Hosts *Several hosts: tick each one
Host group *A host group: choose it; the form lists the members it will cover. A group with no listed hosts (members by asset tag only) cannot be chosen: tag members are never covered. With no group at all, the form says an administrator creates them under Hardening > Host baseline
Profile *A profile: Windows workstations, Windows member servers, Domain controllers, Ubuntu servers
Why the control cannot be met *At least 20 characters
Compensating control *At least 20 characters. "An exception with nothing mitigating it is an unmanaged risk."
Risk accepted byName or role of the person accepting the risk
Expires *Default 90 days from today, at most 365 days
  1. Press Submit request.

What you see: "Exception requested. It has no effect until an administrator approves it." The row reads Pending approval.

Procedure: approve an exception#

Permission: Accept risk (approve exceptions) (administrator roles). Four-eyes: yes - the critical action "Approve a compliance exception". Whatever the dual-control policy, the requester can never approve their own request: on a site with one approver it is refused.

  1. Open the exceptions tab. Pending requests show Approve.
  2. Read the scope, the reason and the compensating control.
  3. Press Approve. With dual control on: "Sent for a second signature. It takes effect once another officer approves it in Approvals." Execute it from Approvals > My requests.

What you see: "Exception approved. The control now reads as accepted risk."

If it fails: "An exception cannot be approved by the person who requested it. Self-approved risk acceptance is not risk acceptance: another administrator must approve it." - ask a colleague. "Only a pending exception can be approved" - it was already decided or revoked.

Procedure: extend an exception#

Permission: Manage compliance. Four-eyes: the extension needs a new approval, as above.

  1. On an active exception press Extend.
  2. Answer "Why is this risk still accepted? (20 characters minimum; the extension needs a second administrator again)" and press OK.

What you see: "Extension requested for 90 days. The current exception holds until it is approved or lapses." The new request reads Extension pending; once approved, the old one reads Superseded.

Procedure: revoke an exception#

Permission: Manage compliance. Four-eyes: no.

Risk: the control counts as not met again at once (and an enforced control that fails is raised as drift). Rollback: request a new exception.

  1. Press Revoke on an active or pending exception.
  2. The browser asks "Why is this exception being withdrawn? (recorded for audit)". Type the reason (at least 5 characters) and press OK.

What you see: "Exception revoked." Revoking an exception also revokes its pending extension.

Procedure: find a waiver#

  1. On the exceptions tab, type in the table's search box: a control id, a word of the reason or compensating control, a group or profile name.
  2. Through the API, GET /api/v1/compliance/exceptions?q=<text> also matches the name of a covered host, and ?covers_agent_id=<id> lists every waiver that covers one host, whatever its scope.

25.3 The Reports tab#

Path: Compliance > Reports. "Frameworks with no scan in the period are marked not assessed rather than reported" as passing.

What you see:

  • Refresh, Generate now, New schedule (with Manage reports).
  • Schedules: each with its cadence, scope, Next run, Last run, Reports count, and a delete button. "Last run failed: <error>" when the last run failed.
  • Generated reports: Report, Period covered, Status, Assessed, Generated, Download, and a bin (Delete report <title>, with Manage reports). It asks "Delete the report "<title>" (<from> to <to>)? Its document is deleted and cannot be downloaded again; generate a new one to replace it." The deletion is in the audit trail; one signature (a report is regenerated from its data).

Report scopes#

ScopeContent
Compliance postureEvery framework: scores, controls, what changed
Single frameworkOne framework in depth
Operations summaryWhat needed a person, across modules

Procedure: generate a report now#

  1. Open Compliance > Reports and press Generate now.
  2. The platform produces a Compliance posture report with a monthly period, in HTML.
  3. Press Download on the new row.

Procedure: schedule a report#

Permission: Manage reports.

  1. Press New schedule.
  2. Fill the form:
FieldOptions
NameFor example "Monthly compliance posture"
Cadencedaily, weekly, monthly, quarterly
ScopeCompliance posture, Single framework, Operations summary
FrameworkOnly for Single framework
FormatHTML or JSON
Recipients (optional, comma-separated)Email addresses. "Leave empty to produce reports without emailing them - they stay downloadable here."
  1. Press Create schedule.

Emailing needs outbound email configured for the deployment (Settings > Setup, step "Configure outbound email"; see chapter 39). Without it reports are still produced and downloadable.

Procedure: change or stop a report schedule#

Permission: Manage reports. Four-eyes: no.

A report schedule has no edit or pause button in the console in this release. To change one, create the new schedule first, then delete the old one.

  1. Open Compliance > Reports.
  2. On the schedule, press the delete button (Delete schedule <name>).
  3. The browser asks: "Delete "<name>"? Future runs stop. The N report(s) it has already produced are kept and stay downloadable." Press OK.
  4. What you see: "Schedule deleted." The reports it produced stay under Generated reports.

A generated report is deleted with the bin on its row under Generated reports (see the start of 25.3). Signed framework reports are a different thing: see chapter 43.

If it fails:

What you seeCauseFix
"Last run failed: ..." on a scheduleThe run or the email failedRead the error; check the framework still exists and that email is configured
No New schedule buttonNo Manage reportsAsk an administrator
A report shows frameworks as not assessedNo scan of that framework in the periodSchedule scans (chapter 23)