Skip to content

Audit export (SIEM) ​

Send every request, decision, pairing and setting change of your workspace to Splunk, Elastic, Microsoft Sentinel, QRadar or any collector that can poll an HTTP endpoint.

Create a token ​

In the dashboard, Settings → Integrations → New token, allow Audit export. The token (azt_…) is shown once; aithorized keeps a hash. It can only read this workspace's audit log: it never approves anything or changes settings. Revoke it there at any time.

Poll the export ​

bash
curl -H "Authorization: Bearer azt_…" \
  "https://api.aithorized.dev/v1/audit/export?after=0&limit=500"
  • Events come oldest first, at most limit (1 to 1000) per call.
  • The X-Aithorized-Last-Seq header is the after of your next call. Store it; an empty body means you are caught up.
  • format=jsonl (default) returns one JSON event per line; format=cef returns ArcSight Common Event Format.

What each event carries ​

Field
seqPosition in the workspace's chain (gapless).
tsWhen it happened (UTC).
typerequest.created, request.resolved, device.enrolled, member.role_changed, settings.updated, …
actor, subjectWho acted and on what (user, agent, device or request id).
detailEvent-specific fields.
prevHash, hashThe hash chain: hash covers the event and the previous event's hash.

In CEF, externalId is seq, suser the actor, duid the subject, msg the detail, and cs1 to cs3 the workspace and the chain hashes. Security-relevant events (a reused refresh token, a payload hash mismatch, a suspension) get a higher severity.

Verify the chain ​

Each hash is sha256: + base64url of SHA-256 over the canonical JSON (RFC 8785) of { prevHash, event }, where event is the record without prevHash and hash. The first event's prevHash is the genesis hash. The backend's verifyAuditChain (packages/backend/src/audit.ts) is the reference implementation; a break means a record was changed or removed.

The policy engine, MCP proxy, SDK and hook are MIT-licensed.