Dave Hall Consulting logo

Automated Security Reviews of Drupal Sites

Most experienced Drupal developers have worked on sites with security issues. Keeping modules up to date is a pretty straight forward process, especially if you pay attention to the security advisories. Coder can find security issues in your code.

Recently I needed to perform a mass security audit to ensure a collection of sites were properly configured. After searching and failing to find a module that would do what I needed, I decided to write my own. The Security Check module for Drupal checks basic configuration options to ensure a site configuration doesn't have any obvious security flaws. This module isn't designed to find all flaws in your site.

Security Check works by checking a list of installed modules, settings for variables and permission assignments. I hope that others in the community will have suggestions for other generic tests that can be implemented in the module. If you have any ideas (or patches), please submit them as issues in the queue.

This module isn't a substitute for a full security audit, which can be conducted in house or by a third party such as Acquia's Professional Service team. Security Check is designed to be run as part of an automated site audit to catch low hanging fruit.

To use Security Checker install it in ~/.drush and then cd to any docroot and run "drush security-check" or if you prefer to use an alias run "drush @example secchk" from anywhere.

That´s a great idea. I didnt

Manu wrote:

That´s a great idea.

I didnt looked at the code right now, but it would be great to have a pluggable class system like Migrate to be able to implement custom tests for various situations...

Added Tue, 2013-07-16 05:33

Security Review module

Ben wrote:

I'm not sure what your searches were but the http://drupal.org/project/security_review project has existed for a long time and is this exact same goal. And it provides a hook so individuals can create their own tests.

Added Tue, 2013-07-16 05:58