How Detection Works

HxShield operates as a background listener on the case_events table. On case creation and on each stage transition, it evaluates the case against every active rule. Each rule contributes a delta to the case's cumulative risk score (0–100). When the score exceeds the configured flag threshold (default 70), the case is flagged and — depending on the rule action — may be held (preventing stage advancement) or auto-cancelled.

case_events listener (background task) │ ▼ Evaluate all active rules against case data │ ├──> score < threshold ----> no action, score stored │ └──> score ≥ threshold ----> Flag case │ ├── action: notify only > log + alert ├── action: hold > block stage advancement └── action: auto-cancel > case cancelled + logged

Detection Patterns

PatternDescriptionEvaluates OnConfigurable Parameters
Velocity CheckToo many cases from the same IP address, email, or phone number within a rolling time windowCase creationfield to check (ip/email/phone), count threshold, window (minutes)
Duplicate DetectionHigh embedding similarity to a recently closed or already-flagged caseCase creationsimilarity threshold (0.0–1.0), lookback period (days)
Field AnomalyA numeric field value is an outlier relative to the historical distribution for this case typeCase creation, field updatefield key, deviation multiplier (e.g. 3× std dev)
Behavioral PatternCase data matches a JSON pattern template associated with a known fraud vectorCase creationpattern JSON (e.g. {"country": "XX", "amount_gt": 9000})
Escalation AbuseThe same user has escalated more than N cases within a time windowEscalation eventcount threshold, window (minutes)

Configuring Rules

  1. Navigate to Studio > HxShield > Rules > Add Rule.

  2. Select a Rule Type from the pattern library above.

  3. Set the Threshold — the numeric value that triggers the rule (e.g. velocity: 5 cases per 10 minutes).

  4. Set the Risk Score Delta — how many points this rule adds to the cumulative score when it fires (1–100).

  5. Choose the Action: Flag only (log and alert), Flag + Hold (block advancement until reviewed), or Flag + Auto-cancel.

  6. Set Scope: all case types, or specific case types only.

  7. Click Save Rule. Rules activate immediately for new cases.

Cumulative scoring: Multiple rules can fire on one case. Each adds its delta. A velocity check (delta 30) + duplicate detection (delta 50) = risk score 80 > flagged if threshold is 70.

Shield Review Queue

Navigate to Studio > HxShield > Review Queue. Flagged cases appear here with:

Review Actions

ActionEffectAudit Log
ClearMark as legitimate, remove hold, resume workflowLogs reviewer identity + timestamp
Confirm FraudCancel the case, record pattern for future detection improvementLogs fraud confirmation + pattern data
EscalateAssign to a senior fraud analyst with elevated permissions for deeper investigationLogs escalation + assignee

Settings

SettingLocationDefaultDescription
Flag ThresholdStudio > HxShield > Settings70Cumulative risk score that triggers flagging
Notification TargetStudio > HxShield > SettingsAdmin roleWho is notified when a case is flagged
Review DeadlineStudio > HxShield > Settings24 hoursHeld cases not reviewed within this window trigger an escalation alert
Hold action blocks production workflows. Set the Review Deadline and ensure someone is monitoring the queue during business hours. An unreviewed hold will block the case indefinitely.

Security Event Feed

HxShield receives signals from multiple platform layers beyond case events:

Signal SourceEvents Fed to HxShield
AuthenticationFailed logins, account lockouts, MFA bypasses, unusual login geography, new device first use
API access logAnomalous request rates per user, access to sensitive endpoints outside normal hours
HxBridge webhooksInbound webhook HMAC failures (possible payload tampering), repeated delivery retries
Audit chainChain verification failures — triggers immediate high-severity incident
Session anomaliesToken reuse from multiple IPs, session duration outliers, rapid role escalations

Incident Response (SOAR — Roadmap)

HxShield is evolving toward automated incident response (SOAR). Planned automated playbooks triggered by detection rules:

TriggerAutomated Action
Confirmed fraud patternRevoke user session via jti revocation list, quarantine tenant namespace, alert on-call
Leaked credential detectedForce-rotate affected secrets via secrets manager, lock account, page security team
Audit chain brokenFreeze platform writes, page admin immediately, begin forensic snapshot
SSRF attempt on webhookBlock connector, log originating case and user, create security incident
Repeated authz denialsTemporary rate-limit user, flag for manual review if pattern continues
SOAR playbooks will be configurable in Studio > HxShield > Playbooks. Each playbook maps a detection rule action to a sequence of automated response steps with configurable escalation and approval gates.

SSRF Protection on HxBridge

All inbound and outbound webhook URLs registered via HxBridge are validated against an allowlist before execution. Blocked destinations include:

Any connector call to a blocked destination is rejected with a 403, logged as a security event in HxShield, and written to the connector's Dead Letter Queue for manual review.