Each alert that ProActive delivers by webhook is a JSON document. This article describes its structure, so that you can build and test your receiving system. For how the delivery works, see "Alert Forwarding".
How the payload is built
Each webhook call contains one object, "event", that wraps the entire payload. It holds an identifier for the alert (key) and the alert data (value). The alert data describes the device and a list of events, where each event points to the file and the process and user involved.
In the field tables below, the Presence column shows how each field behaves:
- Required: the field is always present.
- Required, can be null: the field is always present, but its value can be null.
- Optional: the field can be missing. Optional fields that can be null are marked as such.
Example
The example below follows the structure of the payload. Values in angle brackets are placeholders, and the numbers and enumerated values are illustrative.
{
"event": {
"schemaVersion": "<schema version>",
"key": {
"webhookIdentifier": "<UUID>",
"tenantId": "<UUID>",
"alertIdentifier": "<UUID>",
"alertVersion": null,
"alertType": "live"
},
"value": {
"deviceId": "<device ID>",
"sources": [ "<source>" ],
"sha1": "<SHA-1 of the file>",
"alertType": "live",
"schemaVersion": "<schema version>",
"alertBody": {
"device": {
"machineName": "<machine name>",
"serialNumber": "<serial number>"
},
"events": [
{
"timestamp": "<date and time>",
"eventType": "open",
"confidence": null,
"file": {
"path": "<file path>",
"previousPath": null,
"sha1": "<SHA-1 of the file>",
"size": 123456,
"storage": { "type": "<storage type>", "serial": null },
"created": "<date and time>",
"mimeType": "<file type>"
},
"process": {
"name": "<process name>",
"path": "<path to the executable>",
"user": { "username": "<user name>", "domain": "<domain>", "id": "<user ID>" }
},
"session": {
"users": [ { "username": "<user name>", "domain": "<domain>", "id": "<user ID>" } ]
}
}
]
}
}
}
}
To see a real payload from your own tenant, create a webhook to a test endpoint and use the Test option. ProActive sends a demo alert with the same structure.
Field reference
Payload (event)
| Field | Type | Presence | Description |
|---|
| schemaVersion | string | Required | The version of the schema in use |
| key | object | Required | Identifiers for the webhook call and the alert (see Key) |
| value | object | Required | The alert data (see Alert data) |
Key
| Field | Type | Presence | Description |
|---|
| webhookIdentifier | UUID | Required | Unique ID for this webhook call |
| tenantId | UUID | Required | The customer tenant |
| alertIdentifier | UUID | Required | The unique ID of the alert |
| alertVersion | integer | Required, can be null | Always null for alerts from Workstation Event Screening. Receivers can ignore it. |
| alertType | "demo" or "live" | Required | Whether the alert is a demo alert or a live alert |
Alert data (value)
| Field | Type | Presence | Description |
|---|
| deviceId | string | Required | ID of the device where the event occurred |
| sources | list of strings | Required | The origin or origins of the alert |
| sha1 | string | Required | Hash of the file that triggered the alert |
| alertType | "demo" or "live" | Required | Whether the alert is a demo alert or a live alert |
| schemaVersion | string | Required | The schema version for this alert data |
| alertBody | object | Required | Detailed information about the event (see Alert body) |
Alert body and device
| Field | Type | Presence | Description |
|---|
| device | object | Required | Information about the device |
| device.machineName | string | Required | The name of the computer |
| device.serialNumber | string | Optional, can be null | The serial number of the device |
| events | list of objects | Required | One or more events (see Event) |
Event
The events list has one entry per event.
| Field | Type | Presence | Description |
|---|
| timestamp | date and time | Required | When the event occurred |
| eventType | string | Required | One of "unattributed", "open", "create", "rename", "delete" or "copy". See "Understanding event types in alerts". |
| confidence | string | Optional, can be null | The confidence level |
| file | object | Required | The file involved (see File) |
| process | object | Required | The process that performed the action (see Process and user) |
| session | object | Optional, can be null | Session information (see Session) |
File
| Field | Type | Presence | Description |
|---|
| path | string | Required | The file path |
| previousPath | string | Optional, can be null | The previous path, for example for a "rename" event |
| sha1 | string | Required | The file hash |
| size | integer | Required | The file size in bytes |
| storage | object | Required, can be null | Information about the storage media. Null if no storage information is available. |
| storage.type | string | Required | The type of storage media |
| storage.serial | string | Optional, can be null | The serial number of the storage media |
| created | date and time | Optional, can be null | The creation date |
| mimeType | string | Required | The file type |
Process and user
| Field | Type | Presence | Description |
|---|
| process.name | string | Required | The process name |
| process.path | string | Required, can be null | The path to the process's executable |
| process.user | object | Required | The user who ran the process. It has the fields username, domain and id, all strings and all required. |
Session
| Field | Type | Presence | Description |
|---|
| session.users | list of objects | Required, if the session object is present | The users associated with the session. Each has the fields username, domain and id, all strings and all required. The whole session object can be null if no session information is available. |
The JSON Schema
The complete JSON Schema for the payload is available as a download. Use it to validate incoming payloads automatically. The schema is the authoritative definition, and the tables above describe the same structure in a readable form.
Build your receiver to ignore fields it doesn't recognize, and check the schemaVersion field. That way, your integration keeps working if the schema is extended.