The Magento admin can change prices, export customer data and edit payment settings, which makes it the most valuable target on your store. Most of the protection it needs is already built into Magento 2.4 and only needs to be switched on and kept on. Use this checklist on your own store, or hand it to whoever manages it.
Access
- Keep two-factor authentication (2FA) on. Since Magento 2.4.0, admin 2FA ships enabled by default, and Adobe strongly recommends not disabling it. Supported authenticators include Google Authenticator and Duo Security; see Adobe's 2FA FAQ for the current list. Stores that sign in through Adobe IMS use IMS verification instead.
- Use a non-default admin URL. Do not leave the admin at
/adminor an obvious word such as/backend. The path is set inapp/etc/env.php(backend/frontName) or during installation. - Turn on reCAPTCHA for the admin login to slow down automated brute-force attempts.
- Give every person their own admin account. Shared logins make it impossible to know who did what. Magento disallows sharing one account across multiple sessions by default; leave "Admin Account Sharing" set to No.
Security settings
These live under Stores › Configuration › Advanced › Admin › Security:
- Admin Session Lifetime: keep it short enough that an unattended laptop does not stay logged in all day.
- Maximum Login Failures to Lockout Account and Lockout Time: lock accounts after repeated failed logins. Locked accounts can be unlocked from the admin when needed.
- Password Lifetime and Login is Case Sensitive: enforce regular password changes and case-sensitive logins.
- Add Secret Key to URLs: leave this enabled. It adds a per-session key to admin URLs, which protects against cross-site request forgery.
Permissions
- Apply least privilege with User Roles. Under System › Permissions › User Roles, create roles that only include the resources each job needs. A content editor does not need payment settings or customer exports.
- Review admin users regularly. Remove accounts of people who have left, agencies you no longer work with, and integrations you no longer use.
Maintenance and visibility
- Apply security patches promptly, and stay on a supported release line. Magento 2.4.6 reached the end of standard support in August 2026, so stores still on it no longer receive regular security fixes.
- Keep an audit trail of admin changes. When something goes wrong, the first question is always "who changed this, and when?". Adobe Commerce includes a basic admin action log; Magento Open Source does not include one out of the box. An audit log should record the admin user, time, IP address and the old and new values, and ideally show failed login attempts and active sessions so you can end a suspicious one.
For Magento Open Source stores, my Admin Action Logs extension covers point 12: it logs changes across 24 types of records with old and new values, restores edits and deleted records with one click, logs login attempts with email alerts, and lists active sessions that you can end remotely.
Quick checklist
- 2FA enabled for every admin user
- Custom, non-obvious admin URL
- reCAPTCHA on the admin login
- One account per person, account sharing off
- Short session lifetime and account lockout enabled
- Password lifetime and case-sensitive logins
- Secret key in admin URLs
- Least-privilege user roles
- Regular review of admin users and integrations
- Security patches applied, supported Magento version
- Audit trail of admin changes, logins and sessions
If you are not sure how your store measures up, a Magento code and security audit checks these settings along with your code and extensions.
Sources
Need help with this?
Independent code audits, architecture reviews, upgrade planning and technical leadership.
Code Audit & Consulting