Panther low experimental python

Cloudflare Bot High Volume

Monitors for bots making HTTP Requests at a rate higher than 2req/sec

View Source

Detection Logic

from panther_cloudflare_helpers import cloudflare_http_alert_context


def rule(event):
    # Bot scores are [0, 99] where scores >0 && <30 indicating likely automated
    # https://developers.cloudflare.com/bots/concepts/bot-score/
    return all(
        [
            event.get("BotScore", 100) <= 30,
            event.get("BotScore", 100) >= 1,
        ]
    )


def title(event):
    return (
        f"Cloudflare: High Volume of Bot Requests "
        f"to [{event.get('ClientRequestHost', '<NO_REQ_HOST>')}]"
    )


def alert_context(event):
    return cloudflare_http_alert_context(event)

Field Validations

Loading…

Comments (0)

Loading comments...