Problem/Motivation

For this Drupal application, repeated failed login attempts from the same IP address can indicate brute-force attacks, but there is currently no Drupal FIT check that highlights suspicious IPs or warns administrators about abnormal failure patterns.

Steps to reproduce

Proposed resolution

Add a new Security FitCheck plugin FailedLoginFromIpCheck that:

  • Reads recent failed login attempts from Drupal’s logging/flood data, grouped by source IP within a defined time window.
  • Flags IPs that exceed a configurable threshold of failed attempts with FitWeight::High (or FitWeight::Critical if the volume is very high), indicating likely brute-force activity.
  • Lists the top offending IPs and counts in the FitResult so administrators can enable or tune rate limiting, IP blocking, or additional protections (e.g. CAPTCHA or Login Security module).

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork drupalfit-3558967

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

harivansh created an issue. See original summary.

harivansh’s picture

Issue summary: View changes
harivansh’s picture

Category: Bug report » Feature request
harivansh’s picture

shubham.prakash made their first commit to this issue’s fork.

shubham.prakash’s picture

Status: Active » Needs review

harivansh’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

harivansh’s picture

Status: Fixed » Closed (fixed)