Event Envelope
Every event shares this structure:Common Fields
| Field | Type | Description |
|---|---|---|
oisp_version | string | OISP schema version |
event_id | string | Unique event ID (ULID) |
event_type | string | Event type identifier |
timestamp | string | ISO 8601 timestamp |
Event Types
AI Events
| Type | Description |
|---|---|
ai.request | AI API request sent |
ai.response | AI API response received |
ai.streaming_chunk | Streaming response chunk |
ai.embedding | Embedding request/response |
Agent Events
| Type | Description |
|---|---|
agent.tool_call | Tool invocation by AI agent |
agent.tool_result | Tool execution result |
agent.plan_step | Agent planning step |
agent.session | Agent session start/end |
Process Events
| Type | Description |
|---|---|
process.exec | Process execution |
process.exit | Process termination |
process.fork | Process fork |
File Events
| Type | Description |
|---|---|
file.read | File read operation |
file.write | File write operation |
file.open | File opened |
file.close | File closed |
Network Events
| Type | Description |
|---|---|
network.connect | TCP connection established |
network.dns | DNS resolution |
Context Objects
Host Context
Actor Context
Process Context
App Context
unknown: Process not matched to known appidentified: Matched by signatureprofiled: Full profile with expected behavior
Web Context
For browser-based AI (ChatGPT, Claude.ai):AI Request Event
AI Request Fields
| Field | Type | Description |
|---|---|---|
provider.id | string | Provider identifier |
provider.endpoint | string | API endpoint URL |
model.id | string | Model identifier |
model.family | string | Model family |
request_type | string | chat, completion, embedding, etc. |
streaming | boolean | Streaming request |
message_count | integer | Number of messages |
system_prompt_hash | string | Hash of system prompt |
tools | array | Tool definitions |
parameters | object | Model parameters |
token_estimate | object | Estimated tokens/cost |
AI Response Event
AI Response Fields
| Field | Type | Description |
|---|---|---|
request_id | string | Provider’s request ID |
related_event_id | string | Corresponding ai.request event ID |
choices | array | Response choices |
usage.prompt_tokens | integer | Input tokens |
usage.completion_tokens | integer | Output tokens |
cost.usd | number | Cost in USD |
latency_ms | integer | Response latency |
Agent Tool Call Event
Agent Tool Result Event
Process Exec Event
File Write Event
Network Connect Event
Providers
OISP detects 95+ AI providers. Common ones:| Provider | ID | Domains |
|---|---|---|
| OpenAI | openai | api.openai.com |
| Anthropic | anthropic | api.anthropic.com |
google | generativelanguage.googleapis.com | |
| Azure OpenAI | azure | *.openai.azure.com |
| AWS Bedrock | aws-bedrock | bedrock-runtime.*.amazonaws.com |
| Mistral | mistral | api.mistral.ai |
| Groq | groq | api.groq.com |
| Together | together | api.together.xyz |
| Ollama | ollama | localhost:11434 |
Redaction
When redaction is enabled (defaultsafe mode), sensitive data is replaced:
Redaction Modes
| Mode | Behavior |
|---|---|
safe | Hash content, redact PII patterns |
full | No redaction (development only) |
minimal | Replace all content with [REDACTED] |