[PATCH] Improve http bad user agent : use regexp (#197)
authorThibault "bui" Koechlin <thibault@crowdsec.net>
Thu, 22 Apr 2021 09:08:16 +0000 (11:08 +0200)
committerCyril Brulebois <cyril@debamax.com>
Sat, 4 Dec 2021 04:03:33 +0000 (04:03 +0000)
commit2719ec97272b1b1c1bd451765e250998ec60a739
tree683d8e8313f94871987fdf031acc4d7ed3249609
parentcf1f32dc6f90dc7108aecada161efe96bc16362b
[PATCH] Improve http bad user agent : use regexp (#197)

* switch to regexp with word boundaries to avoid false positives when a legit user agent contains a bad one

Co-authored-by: GitHub Action <action@github.com>
Gbp-Pq: Name 0009-Improve-http-bad-user-agent-use-regexp-197.patch
hub1/.index.json
hub1/scenarios/crowdsecurity/.tests/http-bad-user-agent/bucket_results.yaml
hub1/scenarios/crowdsecurity/http-bad-user-agent.yaml