Skip to content

Commit

Permalink
fix: http generic bf add not verb check (#1202)
Browse files Browse the repository at this point in the history
* fix: alter the generic-bf to check non fp verbs

* fix: readd auth_fail cause we need to split them if the parser based on www-authenticate
  • Loading branch information
LaurenceJJones authored Dec 23, 2024
1 parent 348ad44 commit 8d77273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scenarios/crowdsecurity/http-generic-bf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: leaky
#debug: true
name: LePresidente/http-generic-401-bf
description: "Detect generic 401 Authorization error brute force"
filter: "evt.Meta.log_type == 'http_access-log' && evt.Meta.http_status == '401' && evt.Meta.sub_type != 'auth_fail'"
filter: "evt.Meta.log_type == 'http_access-log' && evt.Meta.http_status == '401' && evt.Meta.sub_type != 'auth_fail' && evt.Parsed.verb not in ['OPTIONS', 'PROPFIND', 'REPORT']"
groupby: evt.Meta.source_ip
capacity: 5
leakspeed: "10s"
Expand All @@ -43,7 +43,7 @@ type: leaky
#debug: true
name: LePresidente/http-generic-403-bf
description: "Detect generic 403 Forbidden (Authorization) error brute force"
filter: "evt.Meta.log_type == 'http_access-log' && evt.Meta.http_status == '403' && evt.Meta.sub_type != 'auth_fail'"
filter: "evt.Meta.log_type == 'http_access-log' && evt.Meta.http_status == '403' && evt.Meta.sub_type != 'auth_fail' && evt.Parsed.verb not in ['OPTIONS', 'PROPFIND', 'REPORT']"
groupby: evt.Meta.source_ip
capacity: 5
leakspeed: "10s"
Expand Down

0 comments on commit 8d77273

Please sign in to comment.