Banking scenario
Real-time fraud detection on a streaming platform
This scenario describes how TekFrost would help a typical card issuer build a real-time fraud detection platform. We would stream transaction events through a low-latency pipeline, serve rules and machine learning models from a feature store, return a decision inside the authorization window, and close the loop with analyst feedback.

Context
A card issuer authorizes transactions across ATMs, point-of-sale terminals, e-commerce and mobile wallets. Fraud screening today runs on a rules engine plus a nightly batch model, so many suspicious patterns are only discovered hours after the money has moved.
The fraud team wants to score every transaction while the authorization is still open, reduce false declines for genuine customers and adapt faster when attackers change tactics.
The challenge
- A decision must come back within the authorization window, so the platform has a strict latency budget and cannot tolerate cold starts or slow lookups.
- Useful signals, such as velocity, device history and merchant patterns, live in separate systems and arrive in different formats.
- Models trained offline use different feature logic from what runs online, which causes training and serving skew.
- Fraud labels arrive late, often weeks after a chargeback, which complicates retraining.
- Decisions affect customers directly, so the bank needs explainability, audit trails and fallbacks if the platform degrades.
How we would approach it
- Use-case and data design (weeks 1 to 4): agree fraud types in scope, latency and availability targets, and the signals available at decision time. Define an event schema for authorizations, logins, payee changes and device events. Our data strategy and governance team would set ownership and retention rules.
- Streaming backbone: ingest events from the authorization switch and digital channels into a partitioned, replicated event log. Stream processors compute rolling features such as transaction counts per card, per device and per merchant over short windows, with exactly-once semantics where the design requires it. This follows our real-time streaming analytics practice.
- Feature store and serving: keep one definition of each feature for both training and serving, with an in-memory online store for millisecond lookups and an offline store for model training. This removes the skew between lab and production.
- Decisioning layer: combine deterministic rules, supervised models such as gradient-boosted trees and anomaly detection, and a policy that returns approve, decline, or step-up authentication. Shadow mode runs first, with champion and challenger comparison before any live decline.
- Model operations: version models and features, monitor drift and score distributions, and retrain on a schedule using delayed labels. Our MLOps and LLMOps team would automate promotion with human approval gates.
- Analyst workflow and resilience: route uncertain cases to a case management queue with reason codes, capture analyst verdicts as labels, and design a safe fallback to rules-only scoring if the model tier is unavailable.
Expected outcomes
These are targeted results and design intentions, not measurements. Latency, detection and false-positive targets would be set with the fraud team and measured in shadow mode before go-live.
- A fraud decision available inside the authorization window instead of after settlement.
- Shared, consistent features across training and serving, designed to improve model reliability.
- Fewer unnecessary declines through step-up authentication for borderline cases.
- Faster response to new attack patterns because rules and models can be updated and promoted safely.
- An audit trail for every decision, with reason codes that analysts and customers can be given.
Technologies and standards
Typical components include Apache Kafka or a managed equivalent, Apache Flink or Spark Structured Streaming, a feature store, a model serving layer, and a case management tool, deployed on Kubernetes or a managed cloud. The design supports PCI DSS v4.0 controls for cardholder data, GDPR data protection principles, EMV 3-D Secure flows, and model risk management guidance such as the NIST AI Risk Management Framework.
This is an illustrative scenario that shows how TekFrost would approach a typical engagement. It does not describe a past client project.
FAQ
Frequently asked questions
Can machine learning replace the existing fraud rules?
Not entirely. Rules remain valuable for known patterns, regulatory blocks and quick responses to new campaigns. Models add detection of subtle behavior. We would design a decisioning layer that combines both and stays explainable.
How is the platform tested before it can decline real transactions?
It runs in shadow mode first, scoring live events without acting on them. Results are compared with the existing system and analyst outcomes, then enforcement is enabled gradually with limits and instant rollback.
Is this scenario based on a real issuer?
No. It is an illustrative scenario describing how we would approach a typical card issuer. No client is named and no results are claimed. A real engagement would begin with a data and latency assessment.
Keep exploring