This is a quick post that shows how I upgraded to Wordfence Premium to get real-time defence feeds, malware scanner and two-factor authentication for WordPress logins
Aside
If you have not read my previous posts I have now moved my blog to the awesome UpCloud host (signup using this link to get $25 free UpCloud VM credit). I compared Digital Ocean, Vultr and UpCloud Disk IO here and UpCloud came out on top by a long way (read the blog post here). Here is my blog post on moving from Vultr to UpCloud.
Buy a domain name here
Now on with the post.
What is Wordfence
WordFence is a free WordPress plugin (install guide here) that helps protect your WordPress site by logging and blocking bad events. I was a big fan of the Wordfence sister program called GravityScan (before it was retired)
Read my review of the free Wordfence plugin here.
I was using Wordfence free to
- Whitelist logins for known IP’s (read my guide on whitelisting IPs here)
- Block known bad IPs from the Wordfence global network (but with a 30-day delay)
- Create a firewall
- Rate limiting page requests
- Scan my site for malware
- Ability to see past failed logins (and ban them)
- Ability to block/ban users who try and login form new IP’s
- Force strong WordPress account passwords
- Set ban thresholds
- Have I Been Pwned breached password checks
- Much more
Install and set up Wordfence (Free)
Read my guide here to learn how to setup Wordfence (Free).
Malware Infections
Your website is often scanned and ranked for safety by sites like Norton Safe Web, Google, Trend Micro, Kaspersky Virus Desk, SiteGuarding etc along with search engines. Having malicious files on your site will affect your site Search EnginOptimizationio (SEO).
I had a 5-year-old scan of a subdomain (that was hosted on a CPanel Host). The subdomain had false positives for malware.
Working to remove the false positive was a lengthy process.
You should aim to stay off the radar or many site scanning, check VirusTotal often to keep your self-updated as to the status of your website. Wordfence will hopefully detect real malware issues automatically in the future.
https://sitecheck.sucuri.net/ is a good site that can aggregate your sites safety ratings.
WordfFence Free v Premium
Wordfence Premium
Prices (USD)
WordFence Premium
Read about some benefits of Wordfence Premium here.
- Real-time firewall rules and malware signatures
- Global Wordfence premium IP blacklist
- Priority server processing for premium customers
- Two Factor Authentication (only if you don’t use whitelisting I found out)
Read more about getting the most from Wordfence Premium
Buying a Wordfence Premium API Key
- Login to https://www.wordfence.com/dashboard/
- Click Buy More API Keys
- Enter your Payment Details
>Thanks, your card information has been updated. You can now go to your API Key Manager and create and manage your Wordfence API keys.
Now you can buy an API key and copy and paste the API ey o to your Wordfence plugin.
Wordfence Firewall
Wordfence does a great job at showing failed/successful, top blocked IP’s
Wordfence Malware Scanner
Wordfence premium has schedulable scans with real-time malware signatures
Scan Progress
Testing the scanner
Wordfence says “A Wordfence scan examines all files on your WordPress website looking for malicious code, backdoors, shells that hackers have installed, known malicious URLs and known patterns of infections.”
I created an eicar.txt test file (information on eicar here (slightly modified so I don’t get tagged again b virus scanners)) to test the Wordfence malware scanner
I enable scanning of files outside of WordPress
I rescanned my site with Wordfence
Result: Nothing??
I logged a support ticket to see if this is right?
Update: Wordfence support replied and said “Thanks for writing in. We do detect the EICAR test file, but scans don’t scan file types that aren’t dangerous on a site by default, since scans would waste a lot of time on files that aren’t exploitable.“
I disagree a virus is a virus.
Wordfence says “A Wordfence scan examines all files on your WordPress website looking for malicious code, backdoors, shells that hackers have installed, known malicious URLs and known patterns of infections.”
I guess “all” does not mean “all”?
Wordfence support said EICAR files are detected if I rename the file to php. I renamed the file and to enabled “Scan images, binary, and other files as if they were executable“.
I started a new scan
> Scan Failed
>The scan has failed because we received an unexpected response from the Wordfence servers. This may be a temporary error, though some sites may need adjustments to run scans reliably
🙁
I scanned my system with ClamAV and it found the EICAR file.
Result:
ClamAV found the virus.
Setting up Two Factor Authentication (work in progress)
Add your desired user and number
Click Enable User
Wait for the text message and activation code (on your phone)
Enter the activation code and press Activate
The two-factor authentication should be activated
List of two-factor authorization enabled users.
I logged out of WordPress and logged back in but the two-factor auth did not work, I logged a support Ticket with my theme maker and WordFence.
Update: Wordfence Support “Wordfence > Tools > Two Factor Authentication options there is an option for Enable Separate Prompt for Two Factor Code which you could disable and try.“
This fix did not work. I sent a 2nd diagnostics report to Wordfence.
Wordfence support said
Pros
- Protects and blocks bad logins
- Real-time blocked IP and malware feeds
Cons
- Almost $140 Australian dollars a year
- A scan does not detect eicar.txt test virus files (ticked logged), renamed to eicar.php and still no luck.
- Two-factor auth (authenticator and SMS) does not work (ticket logged)
- Wordfence support resolve/close support tickets with no confirmation from the user.
- Two Factor Auth is disabled if you whitelist IPs 🙁
Is Premium worth it? Yes if you want “Real-time firewall rules and malware signatures” (and don’t whitelist your IP).
I hope this guide helps someone.
Please consider using my referral code and get $25 UpCloud VM credit if you need to create a server online.
https://www.upcloud.com/register/?promo=D84793
Ask a question or recommend an article
[contact-form-7 id=”30″ title=”Ask a Question”]
Revision History
v1.4 Updated conclusion and Wordfence refund
v1.3 added whitelist 2FA info
v1.2 added replied from Wordfence support re EICAR and Two Factor Auth.
v1.1 Added Pros and Cons section
v1.0 Initial Post