File Detection for Endpoints

Alert webhook payload

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)

FieldTypePresenceDescription
schemaVersionstringRequiredThe version of the schema in use
keyobjectRequiredIdentifiers for the webhook call and the alert (see Key)
valueobjectRequiredThe alert data (see Alert data)

Key

FieldTypePresenceDescription
webhookIdentifierUUIDRequiredUnique ID for this webhook call
tenantIdUUIDRequiredThe customer tenant
alertIdentifierUUIDRequiredThe unique ID of the alert
alertVersionintegerRequired, can be nullAlways null for alerts from Workstation Event Screening. Receivers can ignore it.
alertType"demo" or "live"RequiredWhether the alert is a demo alert or a live alert

Alert data (value)

FieldTypePresenceDescription
deviceIdstringRequiredID of the device where the event occurred
sourceslist of stringsRequiredThe origin or origins of the alert
sha1stringRequiredHash of the file that triggered the alert
alertType"demo" or "live"RequiredWhether the alert is a demo alert or a live alert
schemaVersionstringRequiredThe schema version for this alert data
alertBodyobjectRequiredDetailed information about the event (see Alert body)

Alert body and device

FieldTypePresenceDescription
deviceobjectRequiredInformation about the device
device.machineNamestringRequiredThe name of the computer
device.serialNumberstringOptional, can be nullThe serial number of the device
eventslist of objectsRequiredOne or more events (see Event)

Event

The events list has one entry per event.

FieldTypePresenceDescription
timestampdate and timeRequiredWhen the event occurred
eventTypestringRequiredOne of "unattributed", "open", "create", "rename", "delete" or "copy". See "Understanding event types in alerts".
confidencestringOptional, can be nullThe confidence level
fileobjectRequiredThe file involved (see File)
processobjectRequiredThe process that performed the action (see Process and user)
sessionobjectOptional, can be nullSession information (see Session)

File

FieldTypePresenceDescription
pathstringRequiredThe file path
previousPathstringOptional, can be nullThe previous path, for example for a "rename" event
sha1stringRequiredThe file hash
sizeintegerRequiredThe file size in bytes
storageobjectRequired, can be nullInformation about the storage media. Null if no storage information is available.
storage.typestringRequiredThe type of storage media
storage.serialstringOptional, can be nullThe serial number of the storage media
createddate and timeOptional, can be nullThe creation date
mimeTypestringRequiredThe file type

Process and user

FieldTypePresenceDescription
process.namestringRequiredThe process name
process.pathstringRequired, can be nullThe path to the process's executable
process.userobjectRequiredThe user who ran the process. It has the fields username, domain and id, all strings and all required.

Session

FieldTypePresenceDescription
session.userslist of objectsRequired, if the session object is presentThe 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.

Download

alert-webhook-payload.schema.json

File · 4.08 KB

Download JSON