[bot-detection] Fine-grained scoring mechanism
Author: buixorCreated Sep 29, 2026Updated Sep 29, 2026
Labelskind/enhancementneeds/triagearea/bot-detection
Currently for bot-detection, all signals contribute to a single request score. However, it makes it harder for users to fine-tune their scoring thresholds, and it makes it harder to ship more experimental or opinionated signals.
The proposition would be to allow the RequestScore helpers system to support a category.
- We would allow ourselves to hardcode some category names, such as
experimental AddRequestScore(value, label, family)such asAddRequestScore(50, "cpu-arch-android-detection", "experimental")RequestScore(string || []string || empty): empty returns the sum of all scores (except experimental),[]stringreturns the sum of given categories, andstringreturns given scoreSetRequestScore(value, string || []string || empty): same logic asRequestScoreLogSubmission(): creates an event/alert on the current request's scorem as long as any score > 0
Source: crowdsecurity/crowdsec