Security Pack automatically installs and configures a number of recommended security modules.

Out of the box configuration is tailored to be as unobtrusive as possible, while still providing good base security configuration.

After installation, it sets up the following:

1. Password Policy

  • All authenticated users will have a password expiration of 90 days.
  • Passwords must be at least 12 characters in length.
  • Passwords must have at least 3 different character types.

2. Auto Logout

  • All users will be automatically logged out after 30 minutes of inactivity.

3. Antibot

  • User, search, and webform forms are protected with Antibot.
  • This requires JavaScript to be enabled before a form can be used, reducing the number of spam submissions.

4. Login Security

  • Login Security is configured to soft-block hosts after 10 invalid login attempts within an hour.
  • Soft blocked hosts can still use the site anonymously but will not be able to use any login forms.

5. Security Kit

  • Content Security Policy Headers are enabled in reporting only mode.
  • Out of the box CSP configuration provided by Security Pack works fine in enforcement mode with a vanilla Drupal install, but other custom modules or themes might require additional fine tuning.
  • A good way to test this is to do a thorough rundown of your site with the browser console open. If any Content Security Policy errors are logged, you can add them manually to the SecKit settings.
  • Once you're satisfied that nothing legitimate is being blocked, you should disable "Report Only" in the SecKit settings to start enforcing the Content Security Policy.
  • CSRF protection is enabled to stop other domains making requests to your Drupal site.
  • The HTTP Strict Transport Security (HSTS) header is enabled to force browsers to serve your site over HTTPS.

6. Username Enumeration Prevention

  • Tries to prevent anonymous users from discovering the IDs or usernames of registered accounts.

Project information

Releases