Shieldlist

database Free

Password guessing on MariaDB or MySQL — a brute-force attack on the database

Category
database
Threshold
3/1m, 5/24h, 10/30d
Ban policy
database
Report
database-intrusion
Parsers
mariadb-auth-fail mysql-auth-fail

Why it is written this way

Refused database logins from a real address, with SSH's patience:
three in a minute (a tool), five in a day, ten in a month (the slow
ones: four tries a visit, a visit every few days). The parsers match
only when the host part of 'user'@'host' is an address, so local
services getting their own password wrong are never counted. Banned
on the database port only: a customer's remote client with a stale
password keeps its website.

The rule file View raw

# Refused database logins from a real address, with SSH's patience:
# three in a minute (a tool), five in a day, ten in a month (the slow
# ones: four tries a visit, a visit every few days). The parsers match
# only when the host part of 'user'@'host' is an address, so local
# services getting their own password wrong are never counted. Banned
# on the database port only: a customer's remote client with a stale
# password keeps its website.
rule: database
description: "Password guessing on MariaDB or MySQL — a brute-force attack on the database"
about:
  purpose: >-
    Keep someone from guessing at your database from the outside.
  blocks: >-
    Refused database logins from one address: three in a minute, five in a day, ten in a month — on the database port alone, the ban lengthening each time it comes back.
  applies_to: >-
    A machine whose MariaDB or MySQL listens beyond localhost.
  requires:
    - >-
      The server's error log, declared as `log: mysql` — /var/log/mysql/error.log on Debian, /var/log/mariadb/mariadb.log elsewhere. MySQL 8 writes refused logins at log_error_verbosity 3 only.
    - >-
      The port declared beside it, so a ban closes the database and nothing else.
  beware:
    - >-
      A customer's client with a stale password is banned on the database port only and keeps its website. Local services are never counted. A client the server writes by name rather than by address (skip_name_resolve off) is not counted either.
category: database
parsers: [mariadb-auth-fail, mysql-auth-fail]
threshold: [3/1m, 5/24h, 10/30d]
ban: database
report: database-intrusion