Mconnect Admin Login Alert for Magento 2 (Free)
   

Magento 2 Admin Login Alert extension

Mconnect Admin Login Alert for Magento 2 (Free)

Free module that emails you when a Magento 2 admin account signs in from a new IP address or browser, or when someone keeps failing to sign in, and keeps a login history in the admin.

  • Email when an admin signs in from a new IP address or browser
  • Email after 5 failed logins in 15 minutes for one username or IP
  • Admin login history under System, with a success or failed filter
  • Daily cleanup of history older than 90 days
  • Free and open source (MIT license)
  • InstantHelp Center
  • 90 DaysFree Support
  • FreeLifetime Updates
  • Meet MagentoStandards

Product Description

Magento does not tell anyone when an admin signs in. If an admin password leaks, through phishing, a reused password or an old laptop, the person holding it can sign in and nobody knows until something on the store changes. Bots that try password after password against the admin sign-in page go unnoticed too. Magento locks the account after six failures by default, but it sends no message when that happens.

Mconnect Admin Login Alert for Magento 2 records every admin sign-in attempt and emails you in two cases: when an admin signs in from an IP address and browser that account has not used in the last 90 days, and when one username or one IP address reaches 5 failed sign-ins within 15 minutes.

The full history is in the admin under System > Admin Login History, so when something looks wrong you have a list to check.

Video guide

What the module does

  • Records each admin sign-in attempt in the table mconnect_admin_login_log: username, admin user ID for successful logins, IP address, browser string, result and time.
  • Sends a "New admin login" email when an admin signs in from an IP address and browser that the same account has not used for a successful login in the last 90 days.
  • Sends a "Failed admin logins" email when one username or one IP address reaches 5 failures within 15 minutes, at most once per hour for each username and each IP address.
  • The first login of each admin after install is recorded without an email, so you do not get a flood of alerts on day one.
  • Shows the history newest first, 50 rows per page, with a filter for successful or failed logins.
  • A daily cron job deletes history older than 90 days.
  • Errors go to var/log/admin_login_alert.log. A mail or database problem never stops an admin from signing in.

Settings

Stores > Configuration > M-Connect Media > Admin Login Alert. All settings are global.

  • Enabled (default Yes). With No, nothing is recorded and no email is sent.
  • Send Alerts To (comma separated). Empty means the General Contact email.
  • Email Sender (default General Contact).
  • New Login Alert: Enabled (default Yes) and Remember Known Logins For (Days) (default 90).
  • Failed Login Alert: Enabled (default Yes), Failed Logins Threshold (default 5) and Time Window (Minutes) (default 15).
  • Keep History For (Days) (default 90).

The history page and the settings each have their own admin role resource, so you can choose which admin users see them.

What it does not do

It does not block anyone. Magento's own lockout setting still decides when an account is locked, so use the module next to two-factor authentication, a custom admin URL and an IP allow list. It does not record logins through the REST admin token endpoint, because Magento does not fire the same events there. A wrong CAPTCHA on the admin sign-in page counts as a failed login. The browser check compares the full browser string, so a browser update can trigger a new login email from a known computer. Behind a proxy or CDN that Magento is not set up to trust, every login shows the proxy IP address. Flushing the Magento cache resets the once per hour limit on failed login emails. It sends no data to any outside server.

Install

Install it with Composer from GitHub:

  • composer config repositories.magento2-admin-login-alert vcs https://github.com/mcsventures/magento2-admin-login-alert
  • composer require mconnect/module-admin-login-alert:^1.0
  • bin/magento module:enable Mconnect_AdminLoginAlert
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile (production mode only)
  • bin/magento cache:flush

You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/AdminLoginAlert. Magento cron must run for the history cleanup, and Magento must be able to send email for the alerts. The module is free under the MIT license.

Screenshots

  • Admin Login Alert for Magento 2: Admin login history

    Admin login history

    Every admin sign-in attempt is listed with the username, result, IP address and browser, newest first, so you can check who got into the admin and from where.

  • Failed sign-ins in one view

    The Failed filter shows only refused sign-ins. Here a script tried the username administrator six times in a row, which is the pattern of a password-guessing bot.

    Admin Login Alert for Magento 2: Failed sign-ins in one view
  • Admin Login Alert for Magento 2: Email for a sign-in from a new browser

    Email for a sign-in from a new browser

    When an admin signs in from an IP address and browser they have not used in the last 90 days (you can change the number), you get this email with the username, IP, browser and time.

  • Email for repeated failed sign-ins

    Five failed sign-ins for one username or one IP address within 15 minutes trigger this email. You get at most one per username or IP each hour, so a long attack does not flood your inbox.

    Admin Login Alert for Magento 2: Email for repeated failed sign-ins
  • Admin Login Alert for Magento 2: Settings

    Settings

    Choose who gets the alerts, how long a known device is remembered, the failed sign-in threshold and time window, and how many days of history to keep.

Links

Why Our Extension

Complete eCommerce Solutions

Need help in Magento website?

Do you have a question, problems or custom requirements for your website? Big or small, No matter, we're here if you feel you need support, help or consultation. Talk to us!

Get Free Consultation

Product Description

Magento does not tell anyone when an admin signs in. If an admin password leaks, through phishing, a reused password or an old laptop, the person holding it can sign in and nobody knows until something on the store changes. Bots that try password after password against the admin sign-in page go unnoticed too. Magento locks the account after six failures by default, but it sends no message when that happens.

Mconnect Admin Login Alert for Magento 2 records every admin sign-in attempt and emails you in two cases: when an admin signs in from an IP address and browser that account has not used in the last 90 days, and when one username or one IP address reaches 5 failed sign-ins within 15 minutes.

The full history is in the admin under System > Admin Login History, so when something looks wrong you have a list to check.

Video guide

What the module does

  • Records each admin sign-in attempt in the table mconnect_admin_login_log: username, admin user ID for successful logins, IP address, browser string, result and time.
  • Sends a "New admin login" email when an admin signs in from an IP address and browser that the same account has not used for a successful login in the last 90 days.
  • Sends a "Failed admin logins" email when one username or one IP address reaches 5 failures within 15 minutes, at most once per hour for each username and each IP address.
  • The first login of each admin after install is recorded without an email, so you do not get a flood of alerts on day one.
  • Shows the history newest first, 50 rows per page, with a filter for successful or failed logins.
  • A daily cron job deletes history older than 90 days.
  • Errors go to var/log/admin_login_alert.log. A mail or database problem never stops an admin from signing in.

Settings

Stores > Configuration > M-Connect Media > Admin Login Alert. All settings are global.

  • Enabled (default Yes). With No, nothing is recorded and no email is sent.
  • Send Alerts To (comma separated). Empty means the General Contact email.
  • Email Sender (default General Contact).
  • New Login Alert: Enabled (default Yes) and Remember Known Logins For (Days) (default 90).
  • Failed Login Alert: Enabled (default Yes), Failed Logins Threshold (default 5) and Time Window (Minutes) (default 15).
  • Keep History For (Days) (default 90).

The history page and the settings each have their own admin role resource, so you can choose which admin users see them.

What it does not do

It does not block anyone. Magento's own lockout setting still decides when an account is locked, so use the module next to two-factor authentication, a custom admin URL and an IP allow list. It does not record logins through the REST admin token endpoint, because Magento does not fire the same events there. A wrong CAPTCHA on the admin sign-in page counts as a failed login. The browser check compares the full browser string, so a browser update can trigger a new login email from a known computer. Behind a proxy or CDN that Magento is not set up to trust, every login shows the proxy IP address. Flushing the Magento cache resets the once per hour limit on failed login emails. It sends no data to any outside server.

Install

Install it with Composer from GitHub:

  • composer config repositories.magento2-admin-login-alert vcs https://github.com/mcsventures/magento2-admin-login-alert
  • composer require mconnect/module-admin-login-alert:^1.0
  • bin/magento module:enable Mconnect_AdminLoginAlert
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile (production mode only)
  • bin/magento cache:flush

You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/AdminLoginAlert. Magento cron must run for the history cleanup, and Magento must be able to send email for the alerts. The module is free under the MIT license.

Screenshots

  • Admin Login Alert for Magento 2: Admin login history

    Admin login history

    Every admin sign-in attempt is listed with the username, result, IP address and browser, newest first, so you can check who got into the admin and from where.

  • Failed sign-ins in one view

    The Failed filter shows only refused sign-ins. Here a script tried the username administrator six times in a row, which is the pattern of a password-guessing bot.

    Admin Login Alert for Magento 2: Failed sign-ins in one view
  • Admin Login Alert for Magento 2: Email for a sign-in from a new browser

    Email for a sign-in from a new browser

    When an admin signs in from an IP address and browser they have not used in the last 90 days (you can change the number), you get this email with the username, IP, browser and time.

  • Email for repeated failed sign-ins

    Five failed sign-ins for one username or one IP address within 15 minutes trigger this email. You get at most one per username or IP each hour, so a long attack does not flood your inbox.

    Admin Login Alert for Magento 2: Email for repeated failed sign-ins
  • Admin Login Alert for Magento 2: Settings

    Settings

    Choose who gets the alerts, how long a known device is remembered, the failed sign-in threshold and time window, and how many days of history to keep.

Links

More Information
List Page Point Emails you on admin logins from a new IP address or browser and on repeated failed logins, with a login history page.
$0.00

Pre-Sale Enquiry

Do you have an question? Please ask us. We will respond you within 24 hours. Create a support ticket.

Need Customization?

Please share your business specific extension customization requirement. Talk to our Magento developer!