Single Sign-On and identity management built for developers, organizations, and enterprises. Explore documentation →
Logo

Streaming Real-Time Identity Events to SIEM and SOAR via Signed Webhooks

How to build sub-second Identity Threat Detection and Response (ITDR) pipelines with HMAC-SHA256 signature verification, replay protection, and automated containment.

TC
SSO.ID Trust & Compliance Team
Security & Privacy Governance · 2026-11-04 · 8 min read
LinkedIn Share
Why This Matters Right Now

Relying on nightly batch exports or 15-minute cron scripts to pull authentication logs into your SIEM gives modern attackers an enormous operational advantage: automated adversary-in-the-middle toolkits hijack a session, register a rogue MFA factor, and exfiltrate sensitive API data in under ninety seconds. Without real-time push event streaming and cryptographically verified webhook ingestion, Security Operations Centers only discover identity compromises long after lateral movement has finished.

Key Takeaways

  • Stream high-signal identity events (impossible travel, brute-force lockouts, MFA resets, signing key rotations, role escalations) via push webhooks for sub-second ITDR visibility while using native SIEM export APIs for backfill.
  • Authenticate every inbound webhook using HMAC-SHA256 signatures computed over timestamp + raw request body, verified with constant-time comparison and a strict 300-second replay window.
  • Build resilient ingestion endpoints using asynchronous queue buffering, eventId idempotency deduplication, exponential backoff retry handling, and dead-letter alerting.
  • Pair high-confidence SIEM correlations with automated SOAR containment playbooks that revoke active sessions, suspend compromised accounts, and page on-call analysts within seconds.

Push Webhooks vs. Pull Exports: Designing a Dual-Path Identity Telemetry Pipeline

Enterprise security architectures work best when they combine real-time push webhooks for immediate threat detection with deterministic pull APIs for compliance archival and gap reconciliation. Pull-based SIEM connectors that poll every five to fifteen minutes inevitably introduce detection lag and waste API rate limits during quiet periods, whereas push-only webhooks can experience transient drops if a customer's firewall or collector undergoes maintenance.

A resilient dual-path telemetry design streams every authentication anomaly, MFA enrollment change, SCIM provisioning event, and administrative diff over HTTPS webhooks in sub-second time directly into SOAR/SIEM pipelines (Splunk HEC, Datadog Cloud SIEM, Microsoft Sentinel, or CrowdStrike Falcon Next-Gen SIEM). In parallel, a scheduled reconciliation job queries the tamper-evident SIEM export endpoint (supporting native splunk_hec, datadog, aws_cloudwatch, and generic_json schemas) and verifies SHA-256 chain continuity so zero events can ever slip through unnoticed.

  • Sub-second detection path: push HMAC-signed JSON webhooks immediately upon security alerts, role mutations, MFA policy changes, and suspicious login detections.
  • Zero-gap reconciliation path: periodically reconcile event counts and headHash checkpoints against GET /api/audit-logs/export-siem and GET /api/audit-logs/verify-integrity.
  • High-signal event taxonomy: categorize events cleanly into AuthTelemetry (login, refresh, logout), SecurityAlert (impossible travel, brute force, geofence block), and AdminAudit (RBAC, keys, settings).
  • Native SIEM envelope formatting: eliminate brittle regex log parsers by ingesting strongly typed JSON payloads with consistent tenantId, actorId, sourceIp, and correlationId fields.

Hardening Webhook Receivers: HMAC-SHA256 Signatures and Replay Protection

Exposing an unauthenticated HTTPS webhook endpoint into your SIEM or SOAR engine creates a severe alert-flooding and automated-DoS vulnerability: an attacker who discovers the collector URL could forge fake impossible-travel alerts to trigger mass SOAR lockouts of your executive team or drown genuine intrusion telemetry in synthetic noise. Basic IP allowlisting alone is fragile across cloud NAT gateways and insufficient as a standalone authenticity guarantee.

Every identity webhook payload must be authenticated cryptographically using HMAC-SHA256 with a high-entropy per-tenant signing secret stored encrypted at rest. The sender computes the HMAC over the concatenation of a UTC Unix timestamp header (X-SSOID-Timestamp) and the exact raw UTF-8 request body, transmitting the hex digest in X-SSOID-Signature. Your receiver MUST verify the timestamp sits within a tight tolerance window (typically plus or minus 300 seconds) to block capture-and-replay attacks, verify the signature against the raw unparsed byte stream using constant-time byte comparison to defeat timing side channels, and support dual-secret overlap during routine signing-secret rotation.

  • Hash the raw HTTP body bytes before JSON deserialization—re-serializing parsed objects alters whitespace or key ordering and breaks signature matching.
  • Enforce a 300-second timestamp skew ceiling on X-SSOID-Timestamp so intercepted valid payloads cannot be replayed hours later.
  • Always use constant-time comparison (CryptographicOperations.FixedTimeEquals in .NET or crypto.timingSafeEqual in Node.js) instead of string equality operators.
  • Support zero-downtime secret rotation by checking against both the active signing secret and a short-lived previous secret during rotation windows.
csharp
using System.Security.Cryptography;
using System.Text;

public sealed class SsoIdWebhookVerifier
{
    private const long MaxClockSkewSeconds = 300;

    public static bool VerifyRequest(
        ReadOnlySpan<byte> rawBody,
        string timestampHeader,
        string signatureHeader,
        string webhookSecret)
    {
        if (!long.TryParse(timestampHeader, out long unixSeconds))
            return false;

        long nowSeconds = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
        if (Math.Abs(nowSeconds - unixSeconds) > MaxClockSkewSeconds)
            return false;

        if (!signatureHeader.StartsWith("sha256=", StringComparison.OrdinalIgnoreCase))
            return false;

        byte[] providedSig;
        try
        {
            providedSig = Convert.FromHexString(signatureHeader["sha256=".Length..]);
        }
        catch (FormatException)
        {
            return false;
        }

        byte[] prefix = Encoding.UTF8.GetBytes($"{timestampHeader}.");
        byte[] signedPayload = new byte[prefix.Length + rawBody.Length];
        prefix.CopyTo(signedPayload, 0);
        rawBody.CopyTo(signedPayload.AsSpan(prefix.Length));

        byte[] expectedSig = HMACSHA256.HashData(Encoding.UTF8.GetBytes(webhookSecret), signedPayload);
        return expectedSig.Length == providedSig.Length &&
               CryptographicOperations.FixedTimeEquals(expectedSig, providedSig);
    }
}

Resilient Webhook Delivery and Automated ITDR SOAR Playbooks

Real-time webhook receivers should acknowledge verified payloads with HTTP 202 Accepted in under 200 milliseconds by enqueuing the event onto a durable internal bus (such as Kafka, Azure Service Bus, or AWS SQS) rather than running slow enrichment queries synchronously inside the HTTP handler. Because reliable webhook dispatchers use at-least-once delivery with exponential backoff retries when downstream collectors briefly stall, receivers must deduplicate using the unique eventId header or field to ensure SOAR containment actions remain strictly idempotent.

Once clean identity telemetry lands in your SIEM, high-precision correlation rules turn passive logs into active Identity Threat Detection and Response (ITDR). Instead of alerting on noisy single failed logins, trigger automated SOAR playbooks on high-fidelity sequences—such as an impossible-travel login followed within five minutes by an MFA factor modification or an OAuth application secret export. Within seconds of correlation, SOAR calls back into the identity API to terminate active sessions, enforce password/passkey re-verification, and open a pre-enriched incident ticket containing full Before/After JSON diffs.

  • Fast-ack queue pattern: validate HMAC, push to durable queue, and return 202 Accepted immediately so webhook retry timers never trigger under SIEM load spikes.
  • Idempotent event handling: track processed eventId keys in Redis for 24 hours so retried deliveries never fire duplicate PagerDuty pages or redundant SOAR lockouts.
  • High-fidelity ITDR detection rules: correlate ImpossibleTravel + NewMfaFactorEnrolled, AdminRoleGranted outside change windows, or BruteForceSpike + SuccessfulLogin.
  • Closed-loop automated containment: empower SOAR workflows to call session revocation and user suspension endpoints immediately on verified Tier-1 identity compromises.
json
{
  "time": 1793793912,
  "host": "api.sso.id",
  "source": "sso.id.security.webhook",
  "sourcetype": "_json",
  "event": {
    "eventId": "evt_01JD4M9Q7X2W5N8P1R6T",
    "eventType": "security.alert.impossible_travel",
    "severity": "HIGH",
    "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
    "occurredAtUtc": "2026-11-04T12:05:12Z",
    "actor": {
      "userId": "usr_fin_77421",
      "email": "[email protected]"
    },
    "network": {
      "previousIp": "198.51.100.14",
      "previousCountry": "DE",
      "currentIp": "203.0.113.89",
      "currentCountry": "BR",
      "computedVelocityKmh": 14280,
      "currentAsnType": "datacenter_proxy"
    },
    "enforcementAction": "BLOCKED_AND_SESSIONS_REVOKED",
    "auditRecordHash": "9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b"
  }
}
Operational Note: Monitor Webhook Health Like Production Infrastructure

A silently failing SIEM webhook creates a dangerous compliance and detection blind spot. Use the live test dispatch endpoint (POST /api/settings/tenant/webhook/test) as part of synthetic monitoring and configure dead-letter alerting whenever consecutive delivery failures exceed three retries.

Unifying Identity Logs With Endpoint EDR and Cloud Control Planes

Identity events deliver exponentially higher detection accuracy when joined inside your SIEM against cloud control-plane logs (AWS CloudTrail, Azure Activity Logs, Kubernetes Audit) and Endpoint Detection and Response (EDR) telemetry. An attacker who steals a session cookie may stay inside the victim's country to evade simple geofencing, yet the correlation between an OAuth token exchange from an unmanaged device fingerprint and an immediate IAM role assumption in AWS CloudTrail exposes the intrusion unmistakably.

Standardize on consistent correlation identifiers across your entire stack: propagate the tenantId, immutable userId, session ID (sid), and request correlation ID from the identity provider's SIEM webhook payloads into downstream application logs and cloud federation assertions. When analysts pivot on a single sid or userId in Splunk or Datadog, the entire timeline—from initial phishing click through token issuance, admin console diff, and downstream API access—renders in one chronological view.

  • Unified session correlation: include sid and immutable userId across OIDC tokens, SAML assertions, SIEM webhooks, and downstream microservice access logs.
  • Cross-domain detection rules: alert when an SSO.ID login occurs from an unmanaged device while EDR flags suspicious browser-profile credential access on the user's corporate laptop.
  • Executive SOC dashboards: combine SSO.ID login trends (/api/analytics/login-trends) and MFA statistics (/api/analytics/mfa-statistics) with SIEM Mean-Time-to-Contain (MTTC) metrics.
  • Privacy-aware SIEM ingestion: strip raw tokens and secrets before streaming while retaining full SHA-256 recordHash values to preserve forensic admissibility.

How SSO.ID Powers Real-Time SIEM Streaming and Identity Threat Detection

SSO.ID streams real-time login activity, threat alerts, and SHA-256 hash-chained administrative audit events directly into enterprise SIEM and SOAR platforms via HMAC-signed webhooks and pre-formatted SIEM export endpoints—closing the ITDR detection gap from hours to milliseconds.

  • ✓Real-time SIEM & Security Webhooks (/settings -> SIEM & Webhooks) with per-tenant HMAC signing secrets and live delivery verification via POST /api/settings/tenant/webhook/test.
  • ✓Native formatted SIEM export API (GET /api/audit-logs/export-siem) supporting Splunk HEC (splunk_hec), Datadog (datadog), AWS CloudWatch (aws_cloudwatch), and Generic JSON.
  • ✓Live Security Alerts API (GET /api/security/alerts) and chronological User Activity stream (GET /api/users/activity) surfacing brute-force lockouts, impossible travel, and MFA anomalies.
  • ✓Every streamed audit event carries its SHA-256 recordHash and structured Before/After JSON diff for instant SOAR triage and court-admissible forensic preservation.

Frequently Asked Questions

Which SIEM platforms work out of the box with SSO.ID event streaming?

SSO.ID natively formats audit and security events for Splunk HTTP Event Collector (splunk_hec), Datadog Logs and Cloud SIEM (datadog), AWS CloudWatch Logs (aws_cloudwatch), and standard NDJSON/JSON arrays (generic_json) compatible with Microsoft Sentinel, Elastic Security, Sumo Logic, and IBM QRadar, alongside real-time HTTPS webhooks.

How should we rotate our webhook HMAC signing secret without losing live security events?

Follow a two-step dual-secret rotation pattern: first configure your SIEM/SOAR webhook receiver to accept signatures validated against either the current or newly generated secret; second update the active secret in SSO.ID and verify via POST /api/settings/tenant/webhook/test; finally remove the retired secret from your receiver after verifying live traffic.

What happens if our SIEM collector goes offline briefly during maintenance?

Webhook delivery retries with backoff for transient failures, and because every event is permanently recorded in SSO.ID's SHA-256 hash-chained audit ledger, you can seamlessly backfill any maintenance window using GET /api/audit-logs/export-siem with date filters and verify zero gaps via eventId deduplication.

Topics: #SIEM Integration #ITDR #HMAC Webhooks #SOAR Automation