When you are the world’s leading CMS platform and the online publishing platform of choice for millions of websites and loved by thousands of web developers and website designers, it’s inevitable that at some point in time, WordPress will become an easy target for attacks by hackers wanting to score a “big win”.
In April 2013, WordPress installations around the world were subjected to a global-scale brute force attack.
These attacks were caused by networks of infected computers programmed to attack other computers (called “botnets”).
How To Protect Your WordPress Site From A Brute-Force Attack
What Is A Brute-Force Attack?
A brute-force attack is a technique used to break an encryption or authentication system by trying all possibilities.
(Source: Chinese University Of Hong Kong)
There are many methods hackers use to try and break into WordPress sites. One of these is by trying to guess the site’s administration login username and password. This can be done using software programs and scripts that automatically tries to guess hundreds of login possibilities in minutes.
If you’re using obvious usernames and predictable passwords, your site could be an easy target for hackers.
This is called a “brute force” login attack.
Botnet – What Is This?
A botnet is a number of Internet-connected computers communicating with other similar machines in an effort to complete repetitive tasks and objectives. This can be as mundane as keeping control of an Internet Relay Chat (IRC) channel, or it could be used to send spam email or participate in distributed denial-of-service attacks. The word botnet is a combination of the words robot and network.
(Source: Wikipedia)
A “Botnet” is a network of computers that have been compromised and infected with malicious code, which can then be controlled remotely as a group, typically without the computer owners even being aware that this is happening.
Botnets are often used to blast out mass spam emails.
The screenshot below was taken from a site that monitors online security showing the locations of the command centers of a botnet that has been actively compromising computer networks all around the world since 2009 called “Zeus” …
(The Zeus botnet has been actively infecting computer networks all around the globe since 2009. Screenshot source: SecureList.com)
The botnet attacks on WordPress were well organized and highly distributed. Over 90,000 IP addresses were identified by a number of webhosting companies just in the initial attack, when millions of attempts to force their way into WordPress users administration areas occurred. The worldwide attack then continued, with over 30,000 WordPress sites and blogs being hacked every day.
News of this mass brute force botnet attack was reported by all of the major webhosting companiesand leading technology publications, such as Forbes, TechNews Daily, BBC News, Tech Crunch, PC Magazine, and even on the official US Department of Homeland Security website …
(Powering millions of websites worldwide makes WordPress a target for hacking attempts)
Does This Mean WordPress Is Not Secure And We Should Stop Using It?
No. In fact, there are many very good reasons why you should continue using WordPress if you are concerned at all about website security.
To understand why WordPress is a secure platform for websites, read this article: Can You Build A Secure Business Online Using WordPress?
It’s important to understand that, in the case of April 2013 brute force botnet attack described above, there was actually no WordPress vulnerability being exploited (the same script was also targeting sites built using applications like Joomla).
Mike Little, one of the co-founders of WordPress with Matt Mullenweg, said this about the brute-force attacks:
It is a “simple” script that attempts to login using the admin login and a generated password. So if your password is too short or based on dictionary words it will be guessed and then the script can login legitimately and do whatever it wants including installing scripts (as plugins) or editing files. The attack tries to guess your password, if it succeeds, the most secure site in the world is wide open because they have your password.
Protecting Your WordPress Site From Brute Force Attacks – Ten Security Measures
Every blog with a vulnerability offers potential value to hackers. Every website has value to hackers. Business websites, personal blogs, government web sites … even sites owned by web security and anti-hacking experts can and have been targeted.
If a malicious user can exploit a way to compromise the control of your blog, the website or blog can then be used to target other valued web sites.
Additional undesirable effects of having your site hacked include being blacklisted by Google, having spammy links promoting things like viagra, porn, etc. inserted into your content, redirecting visitors to phishing sites and other websites, drive-by downloads (adding malicious scripts on your visitors’ computers), and many other nasties.
The reality is that brute-force software bots are very likely looking for vulnerabilities and trying to break into your site as you are reading this article. Whether they will get into your site or not, depends on how hard or easy you will make things for hackers to continue persisting until they either discover a way to get access, or give up and go look for a less protected target.
How Much Information Are You Broadcasting To Hackers About Your WordPress Site?
Does your website run on WordPress? If so visit a site like Hackertarget.com and run your site through their WordPress security check …
(WordPress Security Scan Product image source: Hackertarget.com)
You will see that the test returns a number of results and details about your website setup …
(Hackertarget – website security check results. Screenshot: Hackertarget.com)
It should be obvious after using the above tool that if you are able to access all of this information, hackers can too.
(Image source: BlogDefender website)
Being able to see what version of WordPress you are using, which plugins and themes you have installed on your site, and which files have been uploaded to certain directories on your server can be valuable information to hackers, as these can inform them about any security vulnerabilities, especially where site owners haven’t updated their sites.
If your site or blog is driven by WordPress and you’re not precautionary steps to bolster the security of your site, then we can practically guarantee that, at some point in time, your site will be hacked, or at least targeted by bots, because these brute force attacks are systematically hitting WordPress installations worldwide!
When a site is hacked, webmasters will find themselves completely “locked out” of their own site, or notice that their content has been interfered with or even entirely wiped out. Typically, compromised sites will be infected with malicious scripts without the owner’s knowledge or awareness.
To help avoid the heartache that comes with having your web site being hacked into, we have listed below 10 simple, yet essential and effective security measures that will help to protect your WordPress site from brute force attacks.
Note: Some of the measures shown below require some technical understanding of how to modify core WordPress and/or server files. If you are not technical, or don’t want to mess around with file code, then ask your web host or search for a professional WordPress technical provider in our WordPress Services Directory.
***
Security Measure #1 – Get In Touch With Your Web Host
Contact your webhosting service provider and ask them what security precautions have been put in place to help prevent your site from brute force attacks, and what is done to make sure that your server files and data get regularly backed up.
It’s important to check that your host backs up your sites and that, if disaster strikes, you can easily get your files and data back.
Security Measure #2 – Perform Regular WordPress Backups And Keep Your Site Regularly Updated
You should never rely only on your hosting provider for your site backups. Instead, learn how to maintain and manage your WordPress site or get this service done for you and maintain a habit of performing a complete site maintenance routine frequently (e.g. weekly, fortnightly, etc …)
A complete WordPress maintenance routine ensures that:
- All unnecessary data and files are removed,
- All WP data and files are free of errors, optimized and backed up,
- All software, themes and plugins are up-to-date,
- etc …
A complete WordPress site maintenance routine looks like this …
(Maintaining your WP installation frequently backed up and updated is vitally important for WordPress security. Source: WPTrainMe.com)
Again, we cannot stress enough how important it is to maintain your WordPress installation fully backed up and updated. WordPress maintenance is not hard or time-consuming, but it must be done to ensure the security of your website or blog. If you do not want to learn how to do WP maintenance yourself, get someone else to do it but make sure it gets done. Backing up your website is the next most important thing you must do after making sure that your heart is still beating!
If you don’t want to back up your files manually, there are many plugins you can use. Learn about a WordPress backup plugin that can fully automate your site backups here: Backup, Copy And Keep Your WP Site Protected With Backup Creator Plugin For WordPress
Security Measure #3 – Make Sure That Your Username Is Not “Admin”
The mass brute force attack on WordPress sites was mostly an attempt to compromise site admin panels and gain access to sites by exploiting WordPress sites that used “admin” as the user name.
For reasons of website security, don’t install sites with the username admin. This is the first thing hackers will test. If your blog’s user name is admin, change it immediately.
For a simple tutorial created especially for WordPress admin users that shows you how to change your username, go here: Changing Your WP User Name From Admin To A More Secure User Name
Security Measure #4 – Make Sure Your Password Is Strong
A “brute force” attack occurs when a malicious script persistently tries to guess the right password and username characters that will unlock your site.
Unless you put some measure in place to block the brute-force attack (see further below for a couple of effective ways to do this), the “bot” will just keep attacking your site until it eventually “cracks” the code.
Passwords that are easy to guess, therefore, become very easy targets for brute force attacks. Make sure that you change your password to a string containing at least eight characters long, with upper and lowercase letters, combined with a few “special” characters (e.g. %, $, &, etc).
Roboform is a password management tool you can use to help you generate very secure passwords …
(Roboform is a password management program you can use to help you generate different passwords)
We have created a simple tutorial created especially for admin users on how to change your WordPress admin password here: What To Do If You Need To Reset The Login Password
Security Measure #5 – Prevent Access To Your wp-config.php File
The wp-config.php file contains information about your blog’s database and is used to define advanced WordPress options.
(WordPress WP Config file)
If a hacker breaks into your site, they will typically try to access your wp-config.php file, because this file contains your WordPress database information, security keys, etc. Getting access to this information would allow someone to change anything in your database, create a user account, upload files and take control of your site.
To protect your WordPress site from being attacked and even being used as part of a bot net, therefore, prevent your wp-config.php file from being accessible. This requires knowing how to edit database information, move files around in your server and changing access permissions.
Security Measure #6 – Rename Or Delete Unnecessary Installation Files
Delete or rename the install.php, upgrade.php and readme.html files from your server.
These files are not required after installation. If you don’t want to remove these files, just rename them.
Security Measure #7 – Keep Your WordPress Blog, Themes And Plugins Up-To-Date
Hackers are always on the lookout for vulnerabilities in earlier versions of WordPress that they can exploit, including outdated versions of WP themes and plugins.
Ensure that all of your software files, plugins, themes, etc. are always up to date.
Security Measure #8 – Disable Your WordPress Theme Editor
WordPress installations come with a built-in editor that lets you edit theme and plugin files from the dashboard.
In WordPress, you can access your WordPress Theme Editor by selecting Appearance > Editor from the dashboard menu …
(The WordPress theme editor can be accessed using the main menu)
This means that anyone logging into your site can see and make changes to all of your WP theme template files, or cause mayhem on your site.
If you want to prevent people from accessing the WordPress Theme editor, you will need to disable it. This can be done by adding code to your wp-config.php file.
Security Measure #9 – Remove Access To Your Site’s Uploads Directory
The “uploads” folder contains all the media files that get uploaded to your blog.
Normally, this folder is visible to online users. All a person needs to do to see the contents stored in your site’s “uploads” directory is navigate to your directory using their browser …
(WordPress has an uploads directory where all of your media files are stored)
If any files stored in his folder have weaknesses or vulnerabilities that can be exploited by hackers or malicious users, this could seriously threaten the security of your website.
Protecting your directories will prevent unauthorized people from viewing your ‘uploads’ folder and other important directories. This can be done using plugins, setting file permissions, adding a blank index.php file (this is literally a blank file called “index.php”) to your uploads directory, and so on. Again, it’s best to ask help from someone who knows what they are doing if you are not sure about what to do.
Security Measure #10 – WordPress Security Plugins
There are some great security plugins for WordPress available that specifically address most security issues faced by WordPress website owners, such as preventing unauthorized users from accessing your site, protecting your files from brute-force attacks, preventing unauthorized file uploads, etc.
Many WordPress plugins address some but not all areas of WordPress security. One plugin that seems to do a comprehensive job of scanning, fixing and preventing potential issues that could lead to hackers accessing your site files and causing irreparable damage to your site is SecureScanPro.
(SecureScanPro – security software solution for WordPress)
SecureScanPro is easy to install and easy to use, and addresses most of the security areas that WordPress users need to address.
Another plugin you may want to look at using is BlogDefender.
Blog Defender
Blog Defender is a package of WordPress security video tutorials, plugins and tools, plus WordPress security documentation in PDF and DOC formats.
BlogDefender scans you website for security holes …
And lets you quickly and easily fix these …
If you don’t want to invest in a security plugin like SecureScanPro or BlogDefender, you can use various free plugins, such as Limit Login Attempts …
WordPress is a secure web platform, but neglecting simple maintenance tasks like keeping your WordPress core files, WP plugins and themes updated to their latest versions, tightening file and data protection and taking other necessary precautions can have disastrous consequences.
No matter what kind of business you run or plan to run online and how small you think your web presence is, you cannot afford to ignore the importance of securing your site.
As a final reminder, below is the advice given by a website security expert to all WordPress users after the large-scale brute-force attacks on WordPress in 2013 …
Owners of websites based on WordPress CMS must improve at least basic security settings and implement best practices such as the use of robust passwords and the accurate management of “admin” accounts.
Pierluigi Paganini, Chief Information Security Officer, Security Affairs
***
As you can see, website security is very important if you run a WordPress site. Hopefully, the above information will help keep your WordPress site protected from brute-force attacks. If you need any further help or assistance with WordPress security, please consult a WordPress security specialist, or search for a professional WordPress service provider in our WordPress Services Directory.
Also, remember subscribe to WPCompendium.org to receive notifications when we publish new tips on WordPress security and reviews of WordPress security plugins.
***
"Wow! I never knew there's so much to learn about WordPress! I bought one of the WordPress for Dummies three years ago, such authors need to be on this course!" - Rich Law, Create A Blog Now
***