Skip to content

Guides

SIEM export

Send the evidence ledger to Splunk, Microsoft Sentinel, Chronicle or any SIEM as OCSF 1.3, or to a tracing backend as OpenTelemetry. Pull it on a schedule, or have it pushed by signed webhook.

The ledger is the source of truth; exports are views of it. Both formats carry the same subject and trace ids the ledger does, so an event in your SIEM can be traced back to the chained, signed record.

#Pull: OCSF

GET /api/w/:wid/export/ocsf returns NDJSON, one OCSF 1.3 event per line, for readers with evidence rights.

Shell
curl "https://immiscible.fly.dev/api/w/$IMMISCIBLE_WORKSPACE/export/ocsf?since=2026-10-01T00:00:00Z&limit=5000" \
  -H "cookie: __Host-sid=$IMMISCIBLE_SESSION" > immiscible.ndjson
ParameterMeaning
since, untilISO 8601 times bounding the records
limithow many records at most

#How records map to OCSF

Ledger recordOCSF classActivityDisposition
agent_decision: the gate’s decision on an actionAPI Activity (6003)CreateAllowed, Delayed (a person is asked) or Blocked
agent_approval: a person approves or refusesAPI Activity (6003)UpdateApproved or Blocked
agent_approval_reused: an earlier approval answers a callAPI Activity (6003)CreateApproved
agent_approval_revoked: a remembered approval taken backAccount Change (3001)Detach PolicyBlocked
agent_freeze: the kill switch on one agentAccount Change (3001)Lock, or Enable when liftedBlocked or Allowed
agent_freeze_batch: a fleet stopped at onceIncident Finding (2005)CreateBlocked
agent_orphaned, agent_drillIncident Finding (2005)Create, Close
agent_tier, agent_signoff, agent_standingEntity Management (3004)Update
governance_roleAccount Change (3001)Attach Policy
mcp_proxy_call: a tool call through the MCP proxyAPI Activity (6003)CreateAllowed, Delayed or Blocked
receipt_verifiedAPI Activity (6003)Read
call_completed, call_failed, routing_decisionAPI Activity (6003)Create, Other
policy_actionAPI Activity (6003)UpdateBlocked or Logged
ssf_event: a Shared Signals event from your identity providerDetection Finding (2004)CreateBlocked when it stopped agents

Any other record is a Base Event (0). Every event keeps the ledger record whole under unmapped.immiscible, with its hash and the previous record’s, so it can be traced to the chain. The agent is an actor of type AI Agent.

#Splunk and Microsoft Sentinel

Splunk: Integrations, Splunk, with an HTTP Event Collector URL and token. Every record goes as an OCSF event, sourcetype immiscible:ocsf, batched and retried. deploy/splunk/ in the repository has props.conf and two saved searches: an agent refused five or more times in 15 minutes, and the kill switch used.

Microsoft Sentinel: Integrations, Microsoft Sentinel. Rows go to the table ImmiscibleOCSF_CL through the Azure Monitor Logs Ingestion API, signed in as an app registration that holds only the Monitoring Metrics Publisher role on one data collection rule. deploy/sentinel/ has the table and data collection rule, two analytics rules (the same two detections) and a workbook, as ARM templates built to Azure’s published schemas; they have not been validated against a live subscription here. Each row carries EventCode, ClassUid, Disposition, AgentId, ActorEmail, Message and the whole event in Ocsf.

Both check the credential live before keeping it, seal it, and never show it again.

#OpenTelemetry

GET /api/w/:wid/export/otel returns OTLP/JSON logs, ready to post to a collector’s /v1/logs. Records keep their traceparent, so they land on the same traces as your own spans.

#Push: signed webhooks

For near real time, register a webhook. Owners and admins create them; the secret is shown once.

curl -X POST "https://immiscible.fly.dev/api/w/$IMMISCIBLE_WORKSPACE/webhooks" \
  -H "cookie: __Host-sid=$IMMISCIBLE_SESSION" -H "x-immiscible-csrf: 1" \
  -H "content-type: application/json" \
  -d '{ "url": "https://soar.example.com/hooks/immiscible", "events": ["agent_decision", "agent_freeze", "agent_incident"], "format": "ocsf" }'
  • events is a list of ledger kinds, or ["*"] for everything. A kind the ledger never writes is refused with 400 invalid_events, naming the closest real one (“did you mean agent_freeze?”). The kinds an agent’s life writes are agent_decision, agent_approval, agent_freeze, agent_incident, agent_settlement and mandate_change.
  • format is ocsf (the default) or native (the ledger record as it stands).
  • Up to five attempts with backoff. Private and internal addresses are refused.
  • POST .../webhooks/:id/test sends one now; GET .../deliveries shows what was sent (a SHA-256 of the body) and what came back (the status and the first 1 KB), and POST .../deliveries/:did/resend sends one again.

#Verifying a delivery

Each delivery carries immiscible-signature: t=<unix>,v1=<hex>, an HMAC-SHA256 of <t>.<raw body> with the webhook’s secret. Check it before trusting the body, and refuse old timestamps:

import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifyImmiscible(rawBody: string, header: string, secret: string, toleranceSec = 300): boolean {
  const parts = Object.fromEntries(header.split(',').map((kv) => kv.split('=', 2)));
  const t = Number(parts.t);
  if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest();
  const given = Buffer.from(parts.v1 ?? '', 'hex');
  return given.length === expected.length && timingSafeEqual(given, expected);
}

#From a SOAR

A playbook that reads events from your SIEM usually wants to act too: freeze an agent, list waiting approvals, pull the evidence bundle. Give it a service token with exactly the scopes it needs, and read the kill switch for the safe way to freeze many agents.