Security Guard

Limit password attempts at the GLPI login and stop brute force

FreeGLPI 10, 11 and 12

How it works

On every access attempt, the module identifies the real IP, counts failed password attempts and, when a rule goes over its limit, blocks the user, the IP or both for a while.

Web login
REST API, v2 and CalDAV
Password recovery
Access attempt
Real IPread through the declared proxies
Security Guardcounts failed password attempts
Ruleswindow, limit and duration
Exemptionsare never blocked
HTTP 429 lockout
Dashboard and Events tab
Over the limit

The problem

A brute-force attack tries password after password until it gets one right. And it does not come only through the login page: the API, CalDAV and password recovery receive attempts too.

What the module does

Security Guard protects the web login, the REST API, API v2, CalDAV and password recovery. It counts failed password attempts and, when a rule goes over its limit, temporarily blocks new attempts (HTTP 429) from the user, the IP or the combination of both. It is free and works on GLPI 10, 11 and 12.

Each rule has its own window, failure limit and lockout duration, chooses the channels where it counts and can apply only to certain networks or countries. Exemptions by user, group, profile, network or country, with a validity period, are never blocked. The Dashboard shows the attempts of the last 24 hours and the 10 IPs, users and countries with the most failures over the week.

The username is never stored in clear text: only an HMAC for correlation and a mask on screen. The GLPI 11 and 12 MFA code shows up in the events and keeps GLPI's own limit; SSO is out of scope.

How you stay in control

Protection ships disabled and the sample rules inactive. Behind a reverse proxy or Cloudflare, the real IP is only read through the proxies you declare, and the “This request's IP” card shows the result before you turn protection on. The Test tab simulates an attempt without saving anything. Manual release and manual block have a separate permission for each action, with the full block history.

How to get it running

  1. Set up the trusted proxiesEnter the network of the reverse proxy in front of GLPI and, if you use Cloudflare, add the CDN ranges in one click. In the "This request's IP" card, check that the resolved IP is the user's.
  2. Turn on a ruleThe module ships with two inactive sample rules: User + IP (5 failures in 15 minutes block for 15 minutes) and IP (30 failures in 15 minutes block for 30 minutes). Turn on the one that fits, choose the channels (web login, API, CalDAV, password recovery) and add the exemptions you need, such as the network of a system integrated through the API.
  3. Switch protection on and follow upProtection ships disabled: switch it on in the Settings tab. From then on, the Dashboard and the Events tab show the classified attempts, and anyone with permission can release a block before it ends.

Want the step-by-step with screenshots and details? Read the full article on the blog

What changes in your operation

Password attempts now have a limit on every protected channel, and the Dashboard shows where the failures come from.

Features

Temporary lockout per rule

Temporary lockout (HTTP 429) by user, IP or user+IP, with its own window, failure limit and duration in each rule

Web login, APIs, CalDAV and password recovery

Protects the web login, the REST API, GLPI 11 and 12 API v2, CalDAV and password recovery, and each rule chooses the channels where it counts

Exemptions that are never blocked

Exemptions by user, group, profile, network (CIDR) or country, with a validity period, that are never blocked

Rules and exemptions by country

GeoIP with the MaxMind GeoLite2 Country database, which you download for free and upload: rules and exemptions by country

Dashboard with attempts and top 10

Dashboard with the last 24 hours of attempts by result and the top 10 IPs, users and countries by failures over 7 days

Manual release and manual block

Manual release and manual block, with the full block history and a separate permission for each action

Real IP behind a proxy or Cloudflare

Real IP behind a reverse proxy or Cloudflare, with a button that adds the CDN's official ranges

Username only as an HMAC and a mask

Username stored only as an HMAC and shown masked, with configurable event retention

Simulators that save nothing

IP resolution and login attempt simulators that save nothing

See it in action

A quick tour of what the plugin does in practice, in a video and a gallery of screenshots.

Start using Security Guard

View available plans or read the full article about this module.

Free download Read full article Version history
Works well with

Check GLPI's vulnerabilities too

Protecting the login is part of the job. CVE Scan shows whether your GLPI version has known CVEs and what to adjust on the server, with a score from 0 to 100.

Discover CVE Scan
Need help?