The best security modules for Drupal are Password Policy, Security Kit, Security Review, Two-factor Authentication (TFA), Username Enumeration Prevention, Content-Security-Policy, Honeypot, CAPTCHA with reCAPTCHA, and Automated Logout. All are free on Drupal.org, actively maintained for Drupal 10 and 11, and together they cover weak passwords, missing headers, configuration mistakes, stolen logins and bot abuse.
Key takeaways
- Start with Password Policy, Security Kit, Security Review and TFA — they stop the most common Drupal attacks.
- Drupal 7 lost support in January 2025 and Drupal 10 ends support on 9 December 2026, so run Drupal 11.
- Every module here is free; only install modules with Drupal 11 support and security coverage on Drupal.org.
Drupal core has a strong security record, but most hacked Drupal sites were not beaten by a core flaw. They were beaten by a weak admin password, a missing header, or a permission that was too generous. These nine free modules fix exactly those gaps.
How did we choose these Drupal security modules?
We chose modules that are free on Drupal.org, actively maintained for Drupal 10 and 11, covered by the Drupal security policy, and widely used on real sites. Each one solves a specific, common problem.
We left out abandoned modules, Drupal 7-only modules, and paid add-ons that duplicate what core or a free module already does. If a module has no Drupal 11 release, do not install it on a new site.
Install in priority order. The first four modules below give you most of the protection; the rest add depth for forms, sessions and bots.
Which Drupal security modules should you install first?
Install Password Policy, Security Kit, Security Review and TFA first, then add the rest for your forms and user roles. This table shows what each module does and who needs it most.
| Module | Best for | Free plan | Starting price | Key feature |
|---|---|---|---|---|
| Password Policy | Strong passwords | Yes | Free | Password rules and breached-password checks |
| Security Kit | Security headers | Yes | Free | CSP, HSTS and clickjacking protection |
| Security Review | Finding mistakes | Yes | Free | Automated configuration checks |
| TFA | Admin logins | Yes | Free | Authenticator-app second factor |
| Username Enumeration Prevention | Hiding usernames | Yes | Free | Blocks account-discovery probes |
| Content-Security-Policy | Stopping XSS | Yes | Free | Fine-grained CSP headers |
| Honeypot | Bot-free forms | Yes | Free | Invisible bot traps |
| CAPTCHA / reCAPTCHA | Spam forms | Yes | Free | Human checks on forms |
| Automated Logout | Idle sessions | Yes | Free | Logs out idle users |
What are the best security modules for Drupal?
The nine modules below are the strongest free choices for Drupal 10 and 11 in 2026. They are listed in the order most sites should install them, starting with passwords and headers.
1. Password Policy — best for strong passwords
Password Policy enforces password rules for every role: minimum length, character types, no reuse of recent passwords, and expiry where you need it. Weak passwords are still the easiest way into a Drupal site.
- Role-based rules, so admins get stricter requirements than commenters.
- Password Policy Pwned checks new passwords against the Have I Been Pwned database and rejects leaked ones.
- History and expiry controls for regulated or shared accounts.
Pros: free, flexible, and easy to explain to editors. Cons: strict rules can frustrate users if you set them too high.
Pricing: free on Drupal.org. Pick it if: anyone logs in to your site, which is almost every site.
2. Security Kit — best for security headers
Security Kit, often called Seckit, adds HTTP security headers without editing server files, as described on its Drupal.org project page. It covers Content-Security-Policy, X-Frame-Options against clickjacking, Strict-Transport-Security to force HTTPS, and origin checks against cross-site request forgery.
- One admin screen for the headers most sites need.
- Helps stop cross-site scripting and clickjacking attacks.
- Works alongside your web server headers, so test for conflicts.
Pros: fast to set up and high impact. Cons: a strict CSP can break embedded scripts, so test on staging first.
Pricing: free on Drupal.org. Pick it if: you want the biggest single hardening win. Check your headers afterwards with our free security headers checker.
3. Security Review — best for finding configuration mistakes
Security Review scans your site for common mistakes: unsafe file permissions, text formats that allow dangerous HTML, overly powerful roles, error messages that leak details, and risky file upload settings. It is reported on more than 16,000 sites, according to its Drupal.org project page.
- Automated checks you can run after every major change.
- Clear pass and fail results with guidance on each fix.
- Useful as a regular audit, not just a one-time scan.
Pros: finds problems you would miss by eye. Cons: it reports issues; you still have to fix them.
Pricing: free on Drupal.org. Pick it if: you inherited a site or have many editors and roles.
4. Two-factor Authentication (TFA) — best for admin logins
TFA adds a second login step, usually a code from an authenticator app, for admins and editors. A stolen password alone is no longer enough to take over your site.
- Supports authenticator apps using time-based codes.
- Can require TFA only for trusted roles, such as administrators.
- Integrates with services such as Duo in some setups.
Pros: the strongest single control against stolen passwords. Cons: you need a recovery plan for locked-out admins.
Pricing: free on Drupal.org. Pick it if: any account can change content, configuration or users.
5. Username Enumeration Prevention — best for hiding usernames
This module stops attackers from learning which usernames exist on your site. That discovery step usually comes before a targeted brute-force or phishing attempt against a real admin.
- Blocks the password-reset and login probes that reveal valid accounts.
- Reduces useful information for credential-stuffing attacks.
- Lightweight and easy to enable.
Pros: simple and low risk. Cons: modern Drupal core has closed some of these gaps already, so the gain is smaller than it once was.
Pricing: free on Drupal.org. Pick it if: your site has public registration or a login form that attackers can probe.
6. Content-Security-Policy — best for stopping XSS in depth
The Content-Security-Policy module gives you fine-grained control over CSP headers, telling browsers which sources of script, style and media they may load. It is one of the strongest defenses against cross-site scripting.
- Per-page and per-role policies for complex sites.
- Report-only mode lets you test a policy before enforcing it.
- Pairs well with Security Kit on simpler sites.
Pros: precise control for sites with many scripts. Cons: needs care and testing; a wrong policy can break features.
Pricing: free on Drupal.org. Pick it if: your site loads third-party scripts, embeds or analytics.
7. Honeypot — best for bot-free forms without friction
Honeypot adds invisible fields and timing checks to your forms. Real visitors never see them, but bots fill in the hidden field or submit too fast, and their submissions are rejected.
- Protects contact, registration and Webform forms.
- No puzzles or extra steps for real users.
- Works well alongside CAPTCHA when spam is heavy.
Pros: invisible to users and very effective against simple bots. Cons: determined bots can adapt, so it is not a complete anti-spam solution.
Pricing: free on Drupal.org. Pick it if: you get form spam but do not want to annoy visitors.
8. CAPTCHA and reCAPTCHA — best for stopping form spam
CAPTCHA adds a human check to forms, and the reCAPTCHA module connects it to Google reCAPTCHA. Use it on registration, contact and comment forms where Honeypot alone is not enough.
- Multiple challenge types, including invisible reCAPTCHA.
- Per-form settings, so you only challenge risky forms.
- Reduces automated account creation and spam comments.
Pros: familiar to users and strong against bots. Cons: adds friction and sends data to Google when you use reCAPTCHA.
Pricing: free modules on Drupal.org; reCAPTCHA itself is free for most sites. Pick it if: Honeypot alone does not stop your spam.
9. Automated Logout — best for idle sessions
Automated Logout logs out users who have been idle for a set time. It limits the damage if an editor leaves a logged-in laptop unattended in a shared office or cafe.
- Different timeouts per role, so admins time out faster.
- Warning before logout, so active users are not surprised.
- Simple to configure and easy to test.
Pros: cheap protection for shared devices. Cons: short timeouts can annoy editors working on long pages.
Pricing: free on Drupal.org. Pick it if: staff share devices or work in public places.
How do you choose the right Drupal security modules?
Start from your biggest risk, not from a long list. A small brochure site needs different controls from a membership site with thousands of logins and file uploads.
- Check the version first. Only install modules with a Drupal 11 release and recent maintenance activity.
- Check security coverage. Prefer modules with the Drupal.org security-coverage badge.
- Install only what you need. Every module is code to maintain and update.
- Test on staging. Headers and password rules can break real workflows, so test before production.
- Review roles and permissions. No module fixes a role that can do too much.
For a wider baseline, our small business cybersecurity checklist covers updates, backups and access control alongside website hardening.
Are free Drupal security modules enough, or do you need paid tools?
For most small and mid-size Drupal sites, the free modules above are enough when they are configured well and kept updated. Paid help is usually about time and expertise, not about buying a better module.
Consider paid support when you run a high-traffic or regulated site, need a security audit, or cannot apply updates quickly. A managed Drupal host or a maintenance partner can cover patching, monitoring and backups for you.
What paid tools cannot replace is the basics: a supported Drupal version, strong passwords with two-factor authentication, least-privilege roles, and prompt updates. Get those right first, then spend money where it saves you time.
What mistakes should you avoid with Drupal security?
The most common mistake is installing modules and then forgetting them. An unpatched module is worse than no module, because it gives you false confidence while attackers probe known flaws.
- Staying on Drupal 7 or an old Drupal 10. Drupal 7 lost support in January 2025, and Drupal 10 ends on 9 December 2026.
- Giving too many people admin rights. Review roles every few months.
- Skipping backups. A backup you have never restored is not a backup.
- Ignoring Security Review warnings. Run it after every major change.
- Using the same password everywhere. Use a password manager and unique passwords for every account.
Also check that your site forces HTTPS. Our free SSL checker confirms your certificate and HTTPS setup in seconds.
The bottom line
Start with Password Policy, Security Kit, Security Review and TFA, then add the form and session modules your site actually needs. Keep Drupal and every module updated, and move to Drupal 11 before Drupal 10 support ends.
Once the modules are in place, verify the result from the outside. Run the free security headers checker to confirm your headers are working as intended.
Frequently asked questions
What is the best security module for Drupal?
Security Kit is the best single starting point because it adds security headers in one place, but no one module is enough. Pair it with Password Policy, Security Review and two-factor authentication for a solid baseline.
Are Drupal security modules free?
Yes. The modules in this list are free and open source on Drupal.org. You pay only for the time to install and configure them, or for a developer or host if you hire help.
Does Drupal need security modules if core is secure?
Drupal core has a strong security record, but most breaches come from configuration: weak passwords, loose permissions and missing headers. Modules close those gaps that core alone does not cover.
Which Drupal version is secure in 2026?
Drupal 11 is the supported version to use in 2026. Drupal 7 lost support in January 2025 and Drupal 10 reaches end of life on 9 December 2026, so plan your move to Drupal 11 now.
How do I keep Drupal secure after installing modules?
Apply core and module updates promptly, run Security Review regularly, limit admin roles, use strong passwords with two-factor authentication, and keep backups you have actually tested.
Is CAPTCHA enough to stop bots on Drupal?
No. CAPTCHA helps on forms, but bots still probe logins and other endpoints. Combine Honeypot or Antibot with rate limiting, strong passwords and two-factor authentication for admin accounts.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Drupal.org module pages and current Drupal 10 and 11 guidance from Vardot, Aurone and Acquia.
How we write and fact-check →