Sift Digital Trust & Safety
Community-contributed integration
This integration is community-maintained. Reference: ory/integrates/fraud-bot-protection/sift.
Sift is a digital trust and safety platform with real-time, ML-based fraud and account-abuse scoring.
How it works
Both flows must run for Sift to be useful.
The pre-flow check (sync, can interrupt) works as follows:
- An Ory Action on
registration.before/login.beforewithcan_interrupt: truecalls your handler. - The handler reads the user's Sift score with
GET https://api.sift.com/v205/users/{user_id}/score. - The handler blocks the flow if the score exceeds your threshold.
The post-event reporter (async, signal collection) works as follows:
- An Ory Action on
registration.after/login.afterruns asynchronously and calls your handler. - The handler POSTs reserved event names (
$create_account,$login,$transaction) tohttps://api.sift.com/v205/eventswith the IP, user agent, session, and traits. - Sift updates its model.
Notable
- User IDs must be stable across sessions, because Sift's model is keyed on
user_id. Use the Ory identity ID, not the email. - Tune your thresholds over time. Start permissive (block on a score above 80) and tighten as you collect data.
- Sift's value is longitudinal. Single events carry limited signal, and the payoff grows over time as the model learns your user base.
