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.
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| Parameter | Meaning |
|---|---|
since, until | ISO 8601 times bounding the records |
limit | how many records at most |
#How records map to OCSF
| Ledger record | OCSF class | Activity | Disposition |
|---|---|---|---|
agent_decision: the gate’s decision on an action | API Activity (6003) | Create | Allowed, Delayed (a person is asked) or Blocked |
agent_approval: a person approves or refuses | API Activity (6003) | Update | Approved or Blocked |
agent_approval_reused: an earlier approval answers a call | API Activity (6003) | Create | Approved |
agent_approval_revoked: a remembered approval taken back | Account Change (3001) | Detach Policy | Blocked |
agent_freeze: the kill switch on one agent | Account Change (3001) | Lock, or Enable when lifted | Blocked or Allowed |
agent_freeze_batch: a fleet stopped at once | Incident Finding (2005) | Create | Blocked |
agent_orphaned, agent_drill | Incident Finding (2005) | Create, Close | |
agent_tier, agent_signoff, agent_standing | Entity Management (3004) | Update | |
governance_role | Account Change (3001) | Attach Policy | |
mcp_proxy_call: a tool call through the MCP proxy | API Activity (6003) | Create | Allowed, Delayed or Blocked |
receipt_verified | API Activity (6003) | Read | |
call_completed, call_failed, routing_decision | API Activity (6003) | Create, Other | |
policy_action | API Activity (6003) | Update | Blocked or Logged |
ssf_event: a Shared Signals event from your identity provider | Detection Finding (2004) | Create | Blocked 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" }'{
"id": "whk_3d2e",
"url": "https://soar.example.com/hooks/immiscible",
"events": ["agent_decision", "agent_freeze", "agent_incident"],
"format": "ocsf",
"secret": "whsec_...",
"signature": { "header": "immiscible-signature", "scheme": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.body\">" }
}eventsis a list of ledger kinds, or["*"]for everything. A kind the ledger never writes is refused with400 invalid_events, naming the closest real one (“did you mean agent_freeze?”). The kinds an agent’s life writes areagent_decision,agent_approval,agent_freeze,agent_incident,agent_settlementandmandate_change.formatisocsf(the default) ornative(the ledger record as it stands).- Up to five attempts with backoff. Private and internal addresses are refused.
POST .../webhooks/:id/testsends one now;GET .../deliveriesshows what was sent (a SHA-256 of the body) and what came back (the status and the first 1 KB), andPOST .../deliveries/:did/resendsends 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);
}import hashlib
import hmac
import time
def verify_immiscible(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(kv.split("=", 1) for kv in header.split(","))
t = int(parts.get("t", "0"))
if abs(time.time() - t) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))#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.