mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2026-08-29 02:14:34 +00:00
crowdsec: whitelist Matrix client feature-probe 404s to stop http-probing false positives
This commit is contained in:
@@ -41,6 +41,7 @@ services:
|
||||
- ./parsers/s00-raw/stalwart-logs.yaml:/etc/crowdsec/parsers/s00-raw/stalwart-logs.yaml:ro
|
||||
- ./parsers/s01-parse/stalwart-logs-extended.yaml:/etc/crowdsec/parsers/s01-parse/stalwart-logs-extended.yaml:ro
|
||||
- ./parsers/s02-enrich/whitelist-trusted.yaml:/etc/crowdsec/parsers/s02-enrich/whitelist-trusted.yaml:ro
|
||||
- ./parsers/s02-enrich/whitelist-matrix-client-probes.yaml:/etc/crowdsec/parsers/s02-enrich/whitelist-matrix-client-probes.yaml:ro
|
||||
- ./scenarios/stalwart-smtp-bruteforce.yaml:/etc/crowdsec/scenarios/stalwart-smtp-bruteforce.yaml:ro
|
||||
- ./scenarios/stalwart-auth-bruteforce.yaml:/etc/crowdsec/scenarios/stalwart-auth-bruteforce.yaml:ro
|
||||
- ./scenarios/http-admin-interface-probing.yaml:/etc/crowdsec/scenarios/http-admin-interface-probing.yaml:ro
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
name: aykhans/whitelist-matrix-client-probes
|
||||
description: "Prevent http-probing false positives from Matrix client feature-detection 404s"
|
||||
whitelist:
|
||||
reason: "Matrix client MSC feature-detection and media preview requests return 404 by design (benign)"
|
||||
expression:
|
||||
- evt.Meta.service == 'http' and evt.Meta.http_status == '404' and evt.Meta.http_path startsWith '/_matrix/client/unstable/org.matrix.msc'
|
||||
- evt.Meta.service == 'http' and evt.Meta.http_status == '404' and evt.Meta.http_path startsWith '/_matrix/client/v1/media/preview_url'
|
||||
- evt.Meta.service == 'http' and evt.Meta.http_status == '404' and evt.Meta.http_path startsWith '/_matrix/client/' and evt.Meta.http_path contains '/rooms/'
|
||||
Reference in New Issue
Block a user