[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>
Mon, 3 May 2021 07:29:06 +0000 (08:29 +0100)
commit2013f0bd97ac82eb35ba3a32f7a4f23d10cc3d6e
tree712446905d9b56c922a3c09965d9302f8cd9e9dc
parentaf6f75b7e050e0a0b967d00c6a68d95f68e2aee0
[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