Problem
Yandex's Smart Web Security protects sites from DDoS and bots. Customers want to set the balance themselves: how many humans they accept challenging by mistake against how many bots they accept missing. They also need to spare useful robots such as search crawlers and to tune rules for narrow traffic slices. On the labeling side, over 95-98% of production traffic has no reliable label.
Example from the article: a request has a very high bot score but comes from a Yandex crawler, so challenging it could hurt the site's search promotion.
Solution in brief
Label the unlabeled "gray zone" with weak supervision, which gives a soft target in [0, 1]. Train CatBoost with monotonic constraints on features whose direction is known, and combine it with heuristics and a behavioral model into a 0-100 bot score. Offer a starting scale of five bands, and add a separate verified-bot layer (flag, name, category) so useful robots can be excluded from score-based rules.
Questions this case answers
- How to produce a tunable risk score for adversarial traffic when reliable labels cover only a small share of requests and the cost of a false block differs per customer
- How to exempt known-good automated actors from score-based blocking without trusting a spoofable identifier
- How to turn a bot classifier into a 0-100 score that site owners can tune to their own cost of blocking humans versus missing bots?
- How to label bot traffic for training when only a few percent of requests have reliable labels?
Tools and methods
- Weak supervision — builds the soft training label for the unlabeled part of the traffic
- CatBoost with monotonic constraints — base model with fixed feature directions
- High-precision heuristics and an aggregate/behavioral model — added to the ML score to form the final bot score
- Verified-bot list — 100+ robots in 17 categories, checked by user agent plus network identity
Google or a one-time email code. No password.
