Skip to content

Event delivery

On Enterprise we send each detection event from our servers to the addresses you set on Device controls. Every delivery is signed, so you can check it came from us.

Two channels

Callback

A webhook to your own server. Each event arrives in an envelope with an id, a type and the event under data.

SIEM

The event itself, ready for a log intake such as Splunk, Elastic or Datadog. It carries seq and stream so you can spot gaps.

Where to set them

Device controls, Event forwarding. Both channels are sent from our servers, never from your users’ devices, and both use the same signing secret.

What a delivery looks like

Each event is one HTTPS POST with a JSON body and these headers.

POST /nultr/events HTTP/1.1
Content-Type: application/json
User-Agent: nultr-callback/1
X-Nultr-Timestamp: 1795248843
X-Nultr-Signature: t=1795248843,v1=5feb295f245c3f9da3384732cdb94bb57859f461a7bdb72f0f4f827d076ae562
Authorization: Bearer your-receiver-token
HeaderWhat it holds
Content-TypeAlways application/json.
User-Agentnultr-callback/1 on the callback, nultr-siem-forward/1 on the SIEM channel.
X-Nultr-TimestampThe Unix time, in seconds, when the event was signed.
X-Nultr-SignatureThe signing time (t) and the signature (v1). See Verify the signature below.
Authorization, DD-API-KEY, …The custom header you set for the channel, if any.

Callback body

The id stays the same on a retry of the same event, so use it to drop duplicates. The type is detection.verdict, or test for the test you send from the dashboard.

{
  "id": "7272ebbc479f1d345b07fdfb8101b4b9",
  "type": "detection.verdict",
  "created": 1795248843,
  "stream": "4598c6e0ad04df1f",
  "seq": 42,
  "data": {
    "package": "com.example.shop",
    "signer_sha256": "3f9a1c0e…",
    "deviceId": "d41f0c2a9b7e",
    "category": "root",
    "detail": "…",
    "code": "9F2C4E1A-7B3D",
    "ip": "203.0.113.7",
    "response": "blocked",
    "at": "2026-11-21T09:14:03Z"
  }
}

SIEM body

The same event fields, with seq and stream at the top level. seq counts one app’s events within one stream, so a gap means a missed event.

{
  "package": "com.example.shop",
  "signer_sha256": "3f9a1c0e…",
  "deviceId": "d41f0c2a9b7e",
  "category": "root",
  "detail": "…",
  "code": "9F2C4E1A-7B3D",
  "ip": "203.0.113.7",
  "response": "blocked",
  "at": "2026-11-21T09:14:03Z",
  "seq": 42,
  "stream": "4598c6e0ad04df1f"
}

With Splunk HEC format turned on, the SIEM body is wrapped for the HEC event endpoint:

{
  "event": { "package": "com.example.shop", "category": "root", …, "seq": 42, "stream": "4598c6e0ad04df1f" },
  "sourcetype": "nultr:verdict"
}

Event fields

FieldMeaning
packageYour app’s package name.
signer_sha256The SHA-256 fingerprint of the app’s signing certificate.
deviceIdA pseudonymous device id, the same one Threat insights shows.
categoryWhat was detected. The names are listed under Categories below.
detailA short technical note for your records. Its format can change, so do not build rules on it.
codeThe incident code the block screen shows the user, so you can match a support request to the event.
ipThe connection’s source IP, unless you turned source IPs off.
responseblocked or reported: what the app did, under the policy in force at the time. Left out when we could not read the policy.
atWhen we received the event, in UTC.
seq, streamseq counts events per app within a stream. A new stream starts its own count.

Verify the signature

Check every delivery before you trust it. The steps are the same on both channels.

  1. Read the raw request body as bytes, before any JSON parsing.
  2. Take t and v1 from the X-Nultr-Signature header.
  3. Refuse the request when t is more than 5 minutes away from your clock.
  4. Hex-decode the signing secret from the dashboard. The HMAC key is those 32 bytes.
  5. Compute HMAC-SHA256 over t, a full stop and the raw body. Compare it with v1 in constant time.

The dashboard shows the signing secret as 64 hex characters. Using that text as the key gives a mismatch every time, so decode it to 32 bytes first.

Node.js

const crypto = require('node:crypto');

// rawBody: the request body as a Buffer, before any JSON parsing
// (for example express.raw({ type: 'application/json' })).
// secretHex: the signing secret as the dashboard shows it.
function verifyNultr(rawBody, signatureHeader, secretHex, nowSeconds = Date.now() / 1000) {
  const m = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(signatureHeader || '');
  if (!m) return false;
  if (Math.abs(nowSeconds - Number(m[1])) > 300) return false; // 5 minutes
  const key = Buffer.from(secretHex, 'hex'); // the 32 key bytes, not the hex text
  const expected = crypto.createHmac('sha256', key)
    .update(m[1] + '.')
    .update(rawBody)
    .digest();
  const given = Buffer.from(m[2], 'hex');
  return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}

// verifyNultr(req.body, req.get('X-Nultr-Signature'), process.env.NULTR_SIGNING_SECRET)

Python

import hashlib
import hmac
import re
import time

def verify_nultr(raw_body: bytes, signature_header: str, secret_hex: str, now: float | None = None) -> bool:
    """raw_body: the request body as bytes, before any JSON parsing.
    secret_hex: the signing secret as the dashboard shows it."""
    m = re.fullmatch(r"t=(\d+),v1=([0-9a-f]{64})", signature_header or "")
    if not m:
        return False
    now = time.time() if now is None else now
    if abs(now - int(m.group(1))) > 300:  # 5 minutes
        return False
    key = bytes.fromhex(secret_hex)  # the 32 key bytes, not the hex text
    expected = hmac.new(key, m.group(1).encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, m.group(2))

Go

package nultrhook

import (
	"crypto/hmac"
	"crypto/sha256"
	"encoding/hex"
	"strconv"
	"strings"
	"time"
)

// VerifyNultr checks one delivery. rawBody is the request body before any JSON
// parsing; secretHex is the signing secret as the dashboard shows it.
func VerifyNultr(rawBody []byte, signatureHeader, secretHex string, now time.Time) bool {
	var ts, sig string
	for _, part := range strings.Split(signatureHeader, ",") {
		k, v, _ := strings.Cut(part, "=")
		switch k {
		case "t":
			ts = v
		case "v1":
			sig = v
		}
	}
	sec, err := strconv.ParseInt(ts, 10, 64)
	if err != nil || sig == "" {
		return false
	}
	if d := now.Unix() - sec; d > 300 || d < -300 { // 5 minutes
		return false
	}
	key, err := hex.DecodeString(secretHex) // the 32 key bytes, not the hex text
	if err != nil {
		return false
	}
	mac := hmac.New(sha256.New, key)
	mac.Write([]byte(ts + "."))
	mac.Write(rawBody)
	given, err := hex.DecodeString(sig)
	return err == nil && hmac.Equal(given, mac.Sum(nil))
}

The signature covers the exact bytes we send. With Splunk HEC format on, that is the wrapped body.

Rotating the signing secret

Rotate the secret on Device controls when it may have leaked. Both channels sign with the new secret from the next event. There is no overlap period, so update your receivers right after you rotate. A receiver can accept either secret for a few minutes while you switch.

Delivery rules

Address

https only, on port 443, 8088 or 8443, at a public host. Local and private network addresses are refused, and so is a user name or password in the URL.

Receivers on your own network

Put a relay you run at a public address. It checks the signature and passes the event on with your own credentials.

Time limit

Each attempt has 4 seconds to get an answer.

Retries

Two attempts in all. We retry after a connection error, a 429 or a 5xx answer. Any other 4xx answer is final.

Redirects

Not followed. Use the final address.

No replay

An event that could not be delivered is not stored for a later try. Under heavy load events can also be delayed or dropped. Threat insights still lists every event.

Order

Events can arrive out of order. Order SIEM events by at and callback events by created.

Success

Any 2xx answer. Answer quickly and do the heavy work after you reply.

Custom header and log intakes

Each channel can send one custom header, for a receiver that needs a credential. Set it under the channel’s address on Device controls. The value is stored encrypted and never shown again. You can replace or remove it at any time.

These names are refused because we set them ourselves: Host, Content-Length, Content-Type, Content-Encoding, Transfer-Encoding, Connection, Keep-Alive, Upgrade, Expect, TE, Trailer, User-Agent, the Proxy- headers and every X-Nultr- header.

Splunk HEC

Use the event endpoint with Splunk HEC format turned on. Indexer acknowledgment must be off for the token, because we send one custom header.

# Splunk HEC format: on
https://splunk.example.com:8088/services/collector/event
Authorization: Splunk <your HEC token>

Or use the raw endpoint with Splunk HEC format off. It takes the event as it is:

# Splunk HEC format: off
https://splunk.example.com:8088/services/collector/raw?sourcetype=nultr:verdict
Authorization: Splunk <your HEC token>

Elastic

Send to your index’s document endpoint on port 443, with an API key that can write to the index.

https://<deployment>.es.<region>.cloud.es.io/nultr-events/_doc
Authorization: ApiKey <your base64 API key>

Datadog

Send to the logs intake of your Datadog site, with an API key.

# or the logs intake of your Datadog site, such as http-intake.logs.datadoghq.eu
https://http-intake.logs.datadoghq.com/api/v2/logs
DD-API-KEY: <your API key>

An intake that needs a short-lived token, such as one issued through OAuth, needs a relay you run in front of it.

Categories

The category field uses the same names as the usage summary on the REST API page. A name we add later reaches you as it is, so treat an unknown name as other.

Name in the eventWhat it means
rootRooted device
emulatorEmulator
instrumentationCode instrumentation
tamperTamper and repackage
hookRuntime hooking
debuggerDebugger attachment
autoclickerAutomated input
automationAutomation and macros
overlayScreen overlay
captureScreen capture
vpnVPN or tunnel
fakegpsMock location
tls_interceptionTLS interception
untrusted_certUser-installed certificate
proxyNetwork proxy
usbUSB debugging
installerUntrusted installer
cloneApp cloning
attestationHardware attestation
apk_signerRe-signed app
unknownUnclassified signal
test_eventTest event
otherA category added after this list

Test events

Send test on Device controls sends one signed event at once, with a single attempt. Its category is test_event, and on the callback its type is test. If it is not delivered, the dashboard names the reason and the next step.