Files
my-self-host-services/crowdsec/parsers/s02-enrich/whitelist-matrix-client-probes.yaml
T

12 lines
964 B
YAML

name: aykhans/whitelist-matrix-client-probes
description: "Prevent http-probing / http-crawl false positives from normal Matrix client traffic"
whitelist:
reason: "Matrix client feature-detection, media loading and room lookups are benign client behavior"
expression:
# Feature-detection endpoints (unstable MSCs) return 404 by design
- evt.Meta.service == 'http' and evt.Meta.http_status == '404' and evt.Meta.http_path startsWith '/_matrix/client/unstable/org.matrix.msc'
# Room event/relations/state lookups that 404 (event not found / federated backfill)
- 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/'
# Media thumbnails/downloads/preview: high-cardinality GET bursts (any status) trip http-crawl
- evt.Meta.service == 'http' and evt.Meta.http_path startsWith '/_matrix/client/' and evt.Meta.http_path contains '/media/'