Magento Admin Hardening: A 12-Point Security Checklist
Most Magento compromises start with the admin panel or the server. Improve Magento admin security and lock down your server with this 12-point checklist.
Card-skimming malware and admin takeovers remain the most common ways Magento stores are compromised. Patching closes known vulnerabilities; hardening makes the rest of the attack surface much smaller.
Admin panel
- Use a custom admin path — never
/admin. - Keep two-factor authentication enabled for every admin user.
- Restrict admin access by IP or VPN where possible.
- Remove unused admin accounts and give each person their own login.
- Apply least-privilege roles — content editors do not need system configuration access.
php bin/magento info:adminuri php bin/magento admin:user:unlock USERNAME
Server
- Correct file permissions — the web user should not be able to write to code directories in production.
- Disable PHP execution in
pub/mediaand other upload folders. - Keep the OS, PHP and database patched, not just Magento.
- Use SSH keys, disable password logins and root SSH access.
location ~* ^/media/.*\.php$ {
deny all;
}
Storefront
- Enforce a Content Security Policy on checkout pages to stop injected skimmers.
- Put a WAF in front of the store to filter malicious traffic and bots.
- Monitor file integrity and scan for malware daily — and alert on any change to core or checkout files.
When something looks wrong
Magento admin security for teams and agencies
Technical settings are only half of Magento admin security. The other half is how people use the admin:
- One person, one account. Never share admin logins. Individual accounts make the action log meaningful and access easy to remove.
- Least privilege. Use Magento’s user roles so staff only see the areas they need — customer service rarely needs system configuration.
- Offboarding. Remove access the same day someone leaves, including agency developers and freelancers.
- Two-factor authentication for everyone. Keep Magento’s built-in 2FA enabled for all admin users.
- Review regularly. Every quarter, list admin users, remove unused accounts and check recent admin actions for anything unexpected.
Adobe’s documentation on admin security settings explains the built-in options in detail. Combined with the checklist above, these habits close the most common routes attackers use.
Unexpected admin users, new JavaScript on checkout or files changed outside a deploy are red flags. Take the store into maintenance mode, preserve logs and get expert help fast. Our security team handles Magento incident response and clean-ups.
