Journals / Case study

How BlaBlaCar fought carpool scams by measuring first and logging what the model saw

In April and June 2023 BlaBlaCar's engineering blog described how it fights fake drivers who pull passengers off the app to pay through a link. The posts spend more words on measurement than on models. There is a KPI from member reports, daily proxies from hand-labelled samples, a tool to watch each rule wear out, a score computed off the critical path, and training data taken straight from production logs. They give no fraud rate before or after. A later talk abstract claims a ten-fold reduction, with no baseline.

27 NOV 202619 min readFraud detection · Trust and safety · Machine learning operations · Marketplaces Based on: BlaBlaCar, 2023
Our diagram titled Measure first, score beside the funnel, in three bands. Pick the number: one KPI from scam cases members report through the contact form, too slow alone because victims can take up to 3 weeks to report, so daily proxies come from a sample of active drivers labelled by hand. Score every trip and booking: a Kafka event when a trip is published or a ride is booked goes to a scoring service with expert rules as version 0 and ML models, using features from the feature store, which emits a fraud score event carrying the score and every feature used; services can then cancel the trip or booking, reset the password, ask for information or block the member; this runs off the critical path, so publishing and booking still work if scoring breaks. Learn from what was served: the logged features plus one label table built daily from four sources make the training set, and the same table feeds the dashboards. A note says the posts give no fraud rate, precision or recall, and a later talk abstract claims a ten-fold reduction with no baseline.
Diagram: MORARI. Source: BlaBlaCar

A passenger finds a cheap ride on a carpool app. The driver has no ratings yet, which is normal for someone new. Then a message arrives: the booking did not go through, pay here instead, and a link follows. The trip never existed. By the time the passenger reports it, the account is gone and a new one has taken its place.

BlaBlaCar, the French carpooling and bus marketplace, wrote about how it fights this in two posts on its engineering blog by Thomas Pocreau: How we used machine learning to fight fraud at BlaBlaCar, Part 1, dated April 6, 2023, and Part 2 on the pipeline, dated June 27, 2023. Medium blocks automated readers, so we read both through Web Archive copies. The posts are "all rights reserved", so every diagram here is our own. The posts carry no results numbers at all; every claim about the effect is BlaBlaCar's own.

What makes these posts worth reading is not the model. It is the order of work: measure, then rules, then the plumbing that makes a model trustworthy, and only then the model.

The problem: the scam starts in a conversation

Part 1 defines the target plainly: "Phishing is a type of fraud where scammers attempt to obtain payment or financial details from individuals by posing as a legitimate entity." Platforms where strangers meet and money changes hands are the natural home for it, and the post says so: "Platforms that facilitate contacts between individuals and that involve some sort of money exchange between them, such as BlaBlaCar, are particularly vulnerable to this type of fraud scheme."

The fake profiles have a shape: "These fake users may have no ratings and charge less than others for a similar ride. They may attempt to contact members outside of the platform to obtain payment details, an obvious breach of security." The pressure is emotional, not technical. The post's example is a user waiting for a ride home to family: "If the trip is unexpectedly canceled, the user may experience a sense of urgency and distress, prompting them to take actions they would not normally consider."

Step one: pick the number before the fix

The first move was to slow down. "We know we have a potential issue, and it may be tempting to rush head-first into small fixes, trying to prevent fake accounts from being created." Instead the team asked what exactly it was trying to reduce, because "Without measuring the problem, it becomes difficult to optimize or find a solution, even with machine learning algorithms."

The company-wide number is built from member reports: "We decided to measure the number of scam cases reported by our members via our contact form. We expressed it as the number of victims per thousand active members." It has targets per country and quarter. It also has a flaw that every fraud team meets: it arrives late. "reports of fraud cases can take up to 3 weeks to be communicated by the victim."

So the teams got proxy metrics for daily work, measured by people: "In both cases these metrics were computed each day by manually labeling a sample of the active drivers." The interesting part is that the proxy changed, and why. Early on the focus was "reducing the percentage of bookings made on trips published by scammers". Later it moved to "the percentage of fraudulent supply".

Those two numbers react to different things. The post spells it out: "The percentage of booking requests made to scammers reflects the behavior of both our legitimate members and the scammers, whereas the percentage of fraudulent supply mostly captures the actions of scammers." Warning members improved the first number and hurt the second: "increasing the awareness of our members forced scammers to change their strategy and they ended up publishing even more fraudulent trips." A team watching only one of them would have declared victory or defeat for the wrong reason.

One small caution for readers. The posts express the KPI with different denominators: per thousand active members in the text, a goal of "below 1 per 10k active members" a sentence later, and per 10,000 passengers on a slide. They are not merged here, and we would not compare them.

Rules are version 0 of the model

Before any model, people. "In the case of fraud at BlaBlaCar, the team first focused on manually reviewing user cohorts where the proportion of fraud was highest and where the company’s strategic interest could be threatened." That stopped the bleeding and produced labels at the same time.

Then rules, written with the trust and safety experts. The post is honest about their weakness, with a made-up but realistic example: a rule that catches trips published exactly on the hour, because scammers' scripts ran on a timer. The scammers moved their timer, "and we now essentially capture trips published by legit users who by chance published their trips on the dot." The rule kept firing, now mostly at the wrong people. BlaBlaCar's estimate of how long a rule survives: "It is estimated that it takes less than a week for a new rule to be bypassed by scammers." The post gives no source for that estimate.

The fix was not to throw rules away. It was to treat them like a model: "We considered the business rules as the initial version of our machine learning model, the result of the condensed experience of a human expert “trained” on thousands of scam examples." And like any model, they need monitoring. The team built a tool to measure each rule's performance over time, and the post shows a chart it captions "The rise and fall of two business rules detection", with no units or legend. The post explains why the tool came first: without that shared measurement "it would have been challenging to convince sponsors of the effectiveness of machine learning models, which are less explainable than simple business rules."

The pipeline: score beside the funnel, not inside it

Part 2 opens with the infrastructure decision that shaped everything else: "The first decision we took was to avoid putting ourselves in the critical path of the product experience." The fraud team wanted to change things fast, and fast change does not fit the uptime promises of trip publishing and booking.

BlaBlaCar already ran an event-driven system on Kafka, so scoring could listen instead of sit in the way. It could "listen and score publication and booking events in near real time without impacting the user experience if we happened to break our scoring service."

Every trip published and every ride booked gets a score from the rules, "some of those rules are written by experts, others are leveraging machine learning models". Each score goes out as its own event, and other services act on it: they "can react to high scores by canceling a trip or a booking, resetting a password, asking for additional information or even blocking a member." When it works, the user never notices the gap: "by the time a highly suspicious driver clicks on the publish button, we score and react to that action before the user is redirected to the next page."

Features come from a feature store, "a key-value database relying on BigTable, that allows any backend service to retrieve historized data attached to a member or a ride." The store is filled by projecting the Kafka events that the core teams already produce. The post walks through what adding one feature costs, from a quick function when the data already exists to weeks or months of asking another team to publish it.

Train like you serve

The single most useful idea in the series is borrowed. Part 2 quotes Google's Rules of Machine Learning: "Rule #29: The best way to make sure that you train like you serve is to save the set of features used at serving time, and then pipe those features to a log to use them at training time."

BlaBlaCar took it literally. "we decided to store all the serving features inside the fraud score event and to rely only on those features at training." Not raw data to be processed again later, but "the encoded array that we send as input in our XGBoost or scikit-learn pipeline." The post reports "significant quality improvements and a reduction in code complexity" compared with its other pipelines that rebuild training data after the fact, and that "Relying only on production logs also removes all potential risk of data leakage."

There is a price, and the post states it. A new feature only appears in logs from the day it ships. "if a model is trained on 30 days of historical data, it will take 31 days before we can train a model on a dataset for which all examples are expected to contain a value for the new feature." In the meantime they "fill missing values with -1 value", and keep the evaluation set to examples that have every feature.

Labels: four sources, one table

Our diagram titled Four label sources, one table. Where labels come from: support tickets, where a member contacts support and trust and safety investigates and decides; solicited review, where rules send suspects to a review queue plus a random sample reviewed on purpose; corrections, where a member blocked by mistake is unblocked after investigation; and business rules, one label per rule per event, for monitoring and never for evaluation. These feed a consolidated label table with one value per member, updated daily, legitimate or fraudster given everything known, with each label keeping its source, date and member id. Three readers use it: dashboards read labels from the source being monitored, training reads mostly manual-review labels, and the estimate of how much fraud exists reads only the random-sample reviews. A note says one table means a fix to the reporting also fixes the training data.
Every use draws from the same table, but each reads only the labels it can trust. Diagram: MORARI. Source: BlaBlaCar

Features were half the job. The other half was knowing who was actually a scammer. BlaBlaCar has four sources of labels:

  1. Support tickets. Manual review after a customer ticket, since "Both legit and fraudulent members often try to recover their accounts by contacting the customer support."
  2. Solicited review. Some rules send a member to a review queue, and "We also implemented random sampling strategies to assess fraud level on our platform via randomized solicited manual reviews."
  3. Corrections. A member blocked by mistake and unblocked after investigation.
  4. The rules themselves. One label per rule per event, useful for monitoring, with a firm limit: "Those labels should not be used in evaluation or validation dataset."

All four land in one consolidated table with one verdict per member, used by both the dashboards and the training code. Each use reads a different slice. Dashboards read the source they monitor, training mostly reads manual reviews, and "in order to estimate the volume of fraud on our platform, we only keep labels generated by manual review that were solicited from the random sampling." That last rule is the quiet one that matters most. Cases the system flagged tell you about the system. Only a random sample tells you about the platform.

Sharing one table has a practical benefit the post names: "It’s also important to make sure a bug fix on the reporting will also fix the dataset builder."

The conclusion of Part 2 is a division of labour worth copying: "ensuring feature quality is the job of software engineers while ensuring label quality is a data scientist job."

How they measured it

They did not publish the result. Both posts describe the measurement system in detail and then give no fraud rate, no precision, no recall, no money saved and no reviewer count. The models are named only as XGBoost or scikit-learn.

The only outcome figure we found is outside the posts. The abstract of a September 2023 talk by the same author says BlaBlaCar "crushed the fraud level on BlaBlaCar platform (ten-fold reduction) in a relatively short period of time." It does not say which metric fell, from what level, or over what period. Treat it as the company's own claim.

That is a little ironic for a series whose main lesson is to measure first. It is also normal for engineering blogs, where fraud numbers are sensitive. The method is still the value here.

What the posts do not show

  • No numbers. No baseline, no result, no precision or recall, no false-positive rate, no losses.
  • No model detail. No features listed beyond two examples, no thresholds, no retraining schedule. A Part 3 on model improvements is promised at the end of Part 2. We did not find it.
  • No cost of mistakes. Nothing on how many good members were blocked, or how fast an appeal was handled, beyond the fact that unblocks exist as a label source.
  • No chat. The posts score trip and booking events. The help page describes scammers sending links in messages, but the posts do not say whether message text is scored.
  • No reviewer workload. The posts say the company invests "significant human resources on manual labeling", with no headcount or hours.

What has changed since

BlaBlaCar's fraud manager described the same shape two years later. In a December 2025 interview on the blog of a fraud vendor BlaBlaCar uses (Mangopay, Nethone's parent group), the scam is the one from 2023: "Fraudsters imitate a normal ride, move the conversation off-platform, and redirect the passenger to a fake payment page." So is the approach: "We began with simple, static rules to learn how fraudsters behave and how quickly they adapt. Over time, we built our own ML system that scores accounts based on a wide set of signals." Two things are new. A device-profiling vendor now feeds the model ("We combine Nethone's recommendation with our own signals and let our ML model weigh them in the final score"), and the problem got organisational: "What truly changed things was creating a formal task force that brings together Product, Engineering, Data, and Fraud". The page is vendor marketing, so we leave out its precision figure, which comes with no definition.

The help page names the same pattern. BlaBlaCar's UK scam page, in a 2025 archive copy: "Some fake drivers could try to make you pay outside our app by sending a link, a phone number or an email address." And: "Fake profiles are usually created just a few days or hours ago and don't have any ratings from other members."

BlaBlaCar is coming to Southeast Asia. In June 2026 the company announced expansion "into 20 new countries", bringing its "global presence to 41 countries", with Indonesia on the list (newsroom). The release says nothing about fraud. Any carpool or ride marketplace here will face the same scam in Indonesian.

Other marketplaces settled on the same product rules. Airbnb's payment policy says users "may not ask or encourage another user to send or receive payments outside of Airbnb" and bans "links in listing pages or messages that take people off of the Airbnb platform". Vinted's phishing page says "Avoid leaving Vinted to contact others or send payments", and shows a pop-up warning when a user follows a link out. eBay's policy is blunt about the trade: "Transactions conducted outside of eBay are not eligible for eBay protection programs and the eBay Money Back Guarantee."

Payment providers now ship scores and review queues. Stripe Radar, for example, gives "a risk score that ranges from 0–99", and "By default, a score of 65 or above indicates elevated risk, while a score of 75 or above indicates high risk." Its default rule sends elevated-risk payments to review (docs). A gateway score sees the payment, though, not the chat where the scam began.

Why it matters for your business

Indonesia has the same scam, at scale. The Indonesia Anti-Scam Centre (IASC), run by OJK, had received "737.686 laporan penipuan" by 28 October 2026, Antara reported from OJK's press conference. It had also frozen fraud-related funds "senilai Rp967,5 miliar". That is money blocked, not the total lost.

The largest category is the one this article is about. Up to May 2026, according to the IASC breakdown reported by CNN Indonesia, "penipuan (scam) transaksi belanja menjadi modus paling marak di Indonesia, yakni mencapai 77.740 laporan per Mei 2026 atau sekitar 13,4 persen dari total pengaduan yang masuk". Impersonation was second.

The route is familiar too. A Komdigi director, quoted by Antara in September 2026, described scammers who "mengarahkan calon korban ke percakapan privat melalui WhatsApp". In complaints about bank and e-wallet accounts, "WhatsApp menjadi platform yang paling banyak muncul". BlaBlaCar's fake driver who asks you to pay outside the app is the same move: get the victim out of the platform's view, then ask for money.

The rules around this are set for financial firms, not for marketplaces, but they shape what your partners expect. OJK Regulation 12/2024 (OJK) asks financial institutions for an anti-fraud strategy with four pillars, starting with "a. pencegahan; b. deteksi". Bank Indonesia's payment-system regulation 22/23/PBI/2020 (BPK legal database) asks payment providers for fraud management and gives as an example a "Fraud Detection System (FDS) pada level akun dan transaksi". Your payment gateway has its own fraud duties. The chat, where these scams start, is yours.

Scoring users is also personal-data processing under UU 27/2022 (JDIH Komdigi). The law lists "pemrosesan Data Pribadi untuk kegiatan evaluasi, penskoran, atau pemantauan yang sistematis terhadap Subjek Data Pribadi" among high-risk processing that needs a data protection impact assessment. A fraud score on every user fits that description. This is our reading, not legal advice.

How we would build it today

Our diagram titled Same order, smaller tools, for an Indonesian marketplace with chat and a two-person review team, in three bands. Baseline before any fix: one KPI with one denominator, confirmed scam victims per 10,000 active buyers per month, plus a weekly random sample reviewed by hand as the only honest estimate of how much fraud exists, recorded for 4 weeks before rules or a model go live. Rules on chat and payments: an APK file in chat, pindah ke WA, a phone number in text, a short link, a price far under the median on a new account; one Postgres log of message, link, payment and report events with the features computed at scoring time; scoring off the critical path so chat and checkout never wait; each rule counted for how often it fires and how often a reviewer agrees. Act by confidence, a person for the ban: low means a warning in the chat and a link-out screen, medium means holding the payout or order and asking for information, high means the top cases go to a review queue sized to two people and a ban only after review, with appeal. A note says a small gradient-boosted tree model comes later, trained on the logged features once there are a few hundred confirmed cases, run in shadow mode first.
BlaBlaCar's order of work, sized for tens of thousands of users instead of tens of millions. Diagram: MORARI. Source: BlaBlaCar

Picture an Indonesian marketplace or booking app with tens of thousands of users, buyer-seller chat, a local payment gateway and two people on trust and safety. BlaBlaCar's order of work fits. Its tools are bigger than you need.

  1. Set the baseline first. One KPI with one denominator, such as confirmed scam victims per 10,000 active buyers per month. Add a weekly random sample reviewed by hand, the only honest estimate of how much fraud you have. Record four weeks before anything goes live, so a later claim has something to compare with.
  2. Log everything in one place. Message events, links and files shared, payment events, reports and reviewer decisions, in one append-only Postgres table. Kafka and BigTable are not needed at this size. Write the features computed at scoring time into the same row: that is Rule #29 without the infrastructure.
  3. Score off the critical path. A background worker reads new events and writes scores. Chat and checkout never wait for it, and a bug in scoring never blocks a sale.
  4. Start with named rules. An APK file or a link to one in chat (there is almost no honest reason to send one), pindah ke WA, transfer langsung, phone numbers written to dodge filters, short or lookalike links, a new account priced far under the category median, many chats opened in minutes. Give each rule an owner and a counter for how often it fires and how often a reviewer agrees. Expect each one to wear out in weeks.
  5. Warn before you block. A screen when a user follows a link out, contact details hidden until payment, and a plain line that deals outside the app lose buyer protection. These cost little and need no model.
  6. Size the review queue to the people. Measure minutes per case for a week. If a case takes 5 minutes and two people have 3 hours a day each, that is about 70 cases. Send the top 70 by score to review and tune so those 70 are mostly real. Below the line, a warning at most.
  7. Act by confidence, with a person for the ban. Low score, a warning in the chat. Medium, hold the payout or order and ask for information. High and confirmed by a reviewer, block, with an appeal path. Never let the model alone ban an account.
  8. Build the label table, then the model. Reports, reviewer decisions, gateway disputes and the weekly sample, merged daily. Keep rule-generated labels out of evaluation, as BlaBlaCar does. Train only after a few hundred confirmed cases of each main scam type: gradient-boosted trees on the logged features, character n-grams for informal Indonesian text, time-ordered splits, shadow mode first.
  9. Handle the data properly. State the fraud-prevention purpose in the privacy notice before chat is used for scoring, write the impact assessment, keep scores accurate and let them expire, and track how many actions are reversed on appeal.

The logging, rules, warnings and a review screen take one developer about two weeks. The label table and weekly sample add about four weeks of light work, and a first model in shadow mode is realistic by week ten. Compute cost is one modest server. The real cost is reviewer time, which is why you measure it first. The next level, when volume grows, is a device-intelligence vendor, a link-reputation service and a second review shift.