Skip to content

Instantly share code, notes, and snippets.

@LaurenceJJones
Created April 11, 2023 22:12
Show Gist options
  • Save LaurenceJJones/37007aa9fcf7f5043a4e9834241eabf2 to your computer and use it in GitHub Desktop.
Save LaurenceJJones/37007aa9fcf7f5043a4e9834241eabf2 to your computer and use it in GitHub Desktop.
Crowdsec scenario detect chrome useragent below 100
type: leaky
format: 2.0
#debug: true
name: example/chrome-under-100
description: "Detect bad user-agents of chrome under version 100"
filter: 'evt.Meta.log_type in ["http_access-log", "http_error-log"] && evt.Parsed.http_user_agent matches "Chrome\\/[0-9][0-9]?\\."'
capacity: 1
leakspeed: 1m
groupby: "evt.Meta.source_ip"
blackhole: 2m
labels:
type: scan
remediation: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment