#4714·crowdsec

[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 as AddRequestScore(50, "cpu-arch-android-detection", "experimental")
  • RequestScore(string || []string || empty) : empty returns the sum of all scores (except experimental), []string returns the sum of given categories, and string returns given score
  • SetRequestScore(value, string || []string || empty) : same logic as RequestScore
  • LogSubmission() : creates an event/alert on the current request's scorem as long as any score > 0