Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

A Drupal recipe that installs and configures a practical baseline of security hardening modules for production sites.

What This Recipe Provides

This recipe automates the setup of essential security modules with sensible defaults:

  • Security Kit (SecKit) – HTTP security headers including Content Security Policy (CSP), X-Frame-Options, HSTS, and CSRF protection
  • Login Security – Brute-force login attack prevention with IP-based lockout
  • Autologout – Automatic idle session expiry for inactive users
  • Password Policy – Enforce strong password requirements (length, character types, username checking)
  • Paranoia – Block PHP code execution via the admin UI
  • Flood Control – Admin UI for managing IP-based rate limiting
  • Ban module(Drupal core) – IP address banning functionality

Safe Defaults for All Environments

The recipe uses conservative defaults that work in development, staging, and production:

  • HSTS is disabled by default – Enable it via Config Split or settings override once you're on HTTPS
  • CSP runs in report-only mode – Review violations at '/report-csp-violation' before enforcing
  • Autologout is disabled by default – Configure per-environment session rules as needed

Post-Apply Steps

  1. Review CSP violation reports and adjust your policy
  2. Enable HSTS in production environments only (via Config Split or settings.php)
  3. Configure autologout rules for your security requirements
  4. Test login lockout behavior to ensure legitimate users aren't blocked

Requirements

  • Drupal 10.3 or Drupal 11
  • All security module dependencies are installed automatically via Composer

Recommended companion project:

Recipes Manager makes recipes much easier to work with in real projects because it brings recipe discovery and management into the Drupal UI. If your team wants a smoother editorial and admin workflow for applying and reviewing recipes, this is the easiest way to get it.

Activity

Total releases
1
First release
Jun 2026
Latest release
20 hours ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Jun 16, 2026