Sage Infrastructure Solutions Group IncSage Infrastructure Solutions Group IncLoading…

Sage Infrastructure Solutions Group Inc

Your own DLP service

Premium. Turn on Your own DLP service (HTTPS webhook) in Settings → Data loss prevention, enter your service's URL and a signing secret, and use Test webhook.

What Emberseal does: POSTs each item (the message text, then each file) to your HTTPS service and obeys its answer. Use it for in-house rules, or any DLP product with a REST API Emberseal has no adapter for (a small function in AWS Lambda, Azure Functions or Cloud Run can translate).

Request

POST <your URL>
Content-Type: application/json
X-Emberseal-Timestamp: 1767225600
X-Emberseal-Signature: sha256=<hex HMAC-SHA256(secret, timestamp + "." + body)>
{
  "version": 1,
  "correlation_id": "c…",
  "sender": { "email": "agent@example.com", "ip": "203.0.113.7" },
  "recipients": ["jane@customer.com"],
  "item": {
    "kind": "file",
    "name": "statement.pdf",
    "content_type": "application/pdf",
    "size": 48211,
    "sha256": "…",
    "data_base64": "…"
  }
}

kind is text (subject + message) or file. sha256 is present for files. data_base64 is omitted when Send content is off (your service then decides from names, sizes and hashes, e.g. against a known-file list). Items from one send share a correlation_id.

Response

{ "action": "block", "reason": "Contains a payment card number" }
  • action: allow, block, or warn (the sender may continue with a reason). reason is optional and shown to the sender, so keep it free of the sensitive value itself.
  • Answer HTTP 200 within the DLP timeout. Any other status, invalid JSON or an unknown action means "no verdict" (the send is blocked or let through per If DLP can't be reached).

Verify the signature (Python)

import hmac, hashlib, time
def verify(secret: bytes, ts: str, body: bytes, header: str) -> bool:
    if abs(time.time() - int(ts)) > 300:
        return False
    want = "sha256=" + hmac.new(secret, ts.encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, header)

Test

Test webhook sends a text item containing 4111 1111 1111 1111 and shows your service's answer.