> ## Documentation Index
> Fetch the complete documentation index at: https://onlook.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Audit trails

> Immutable, cryptographically signed event logs for compliance environments.

## Overview

Every attention event captured by OnlookAI is signed with an HMAC using your `SIGNING_SECRET`. The chain of signatures makes the log tamper-evident — any modification to a past event invalidates all subsequent signatures.

## Verifying a session

```ts theme={null}
import { attune } from '@onlook/attune'

const audit = await attune.verify({
  sessionId: 'sess_8xK2mP9q',
  from: '2026-01-01',
  to: '2026-04-28',
})

if (audit.valid) {
  exportToSIEM(audit)
}
```

## Event schema

Each event in the audit log contains:

```json theme={null}
{
  "id": "evt_7hD1cM3s",
  "sessionId": "sess_8xK2mP9q",
  "type": "FACE_DETECTED",
  "score": 88,
  "timestamp": "2026-04-28T14:32:01Z",
  "signature": "sha256:a3f9..."
}
```

## SIEM export

See [SIEM Export](/enterprise/siem-export) for exporting audit logs to Splunk, Microsoft Sentinel, or any CEF-compatible destination.
