Sitelock and anti malware by hackers on wordpress
-
Dealing with my first client that had hacker situations on her wordpress... and she just got into sitelock. I am curious what everyones thoughts are and what other plug ins you suggest. I have used and suggested things like wordfence, bulletproof security, wordpress security, things like that. I just don't want her to get into a scam and I don't know enough about it.
-
Well isn't big deal at all. You need to:
- investigate error 500. Usual this is part of "door knocking". You should see who and what is going to do just for error 500. Watchout for /wp-content where themes and plugins are. Also /wp-admin and /wp-include where WP core is.
- investigate 404 errors. This is part 2 of "door knocking". Often happens when vulnerability doesn't exist. Like timthumb or revSlider - someone still knocking on few days. (this was vulnerability that leave more than 100k sites with PHP execution)
- investigate strange redirects - 301, 302. IF site is working perfect you shouldn't see any redirects. But if you're WWW and someone link w/o WWW you can see redirect. Also WP comes with internal redirector for broken urls, can be typo mistakes. But more interesting are vulnerability so any strange activity can be easy seen.
- investigate strange traffic - can be POST or GET to /wp-content/plugins or /wp-content/themes PHP code. In perfect world only WP can call them. Or using WP-AJAX. Direct calling to code isn't recommended anymore.
- investigate bot traffic - like 2000 requests for 30 mins to wp-login.php This is one example - you can easy see them because one IP can do lot of requests.
- you need to check file structure - new/changed files can be warning that something was happened. I like GIT/Mercurial or SVN because they can check quick folders for changes. Bad news - you need SSH access and some dev skills. If you don't have SSH then you can download whole site and compare it with original copy. I can recommend WinMerge (free and open source) tool for comparing files/folders in Windows. If you're on Mac just as me you can use FileDiff (free) or Kaleidoskope (paid tool, trial available). There is also paid multi platform tools as Beyond Compare, Araxis Merge, Delta Walker and few more.
- you need to make HTTP password to sensitive portions of WP. Also you must do some hardening of WordPress installation. This is covered in Codex here. For example try to login on mine site: http://www.mobiliodevelopment.com/wp-admin/ Good luck!
- you can implement additional security in .htaccess like 5G firewall here. Or you can implement WAF (web application framework) like modsecurity.
I think that i cover most of mine daily routine inspections. Look scary but when you get experience will took less than 5 minutes per site.
-
That is great advice! That helps! Where and how can I investigate the web attacks? Esp through wordpress. It is out of my expertize. I can try via IP ... but IP can be bounced around with different towers. Or I could contact the server.
-
I have talk about WordPress security before month ago in WordPress Bulgaria 2015.
So very short - if you have update to latest versions of core, plugins and themes and they're stable you don't have anything to worry about.
The problem is when some of them comes with non well checked code - most plugins or themes. This mean that if there is some vulnerability you can be infected over and over. Same can happen if you download from illegal sites plugin/theme with some added code as vulnerability. Don't think that "this won't happen on me" because this is one of most frequently way to distribute malware to users.
All that security layers add extra PHP code that need to be executed and slow down site. They also bring issues to some users. I never forget when few months ago ping in Twitter some site that i can reach their site from Bulgaria. Yes - due settings in their "security" plugin.
That's why you need few ways:
- you need to use only plugins/themes from original author. If they're on WordPress.org then this is preferred. This doesn't mean that they can't have some vulnerability, but you just minimize chance
- you need to update them regular
- you need to use only proven plugins/themes in your practice. I believe that plugins with 100k installs is tested than plugin with 10 installs
- you always should keep backup of site and it's database local on your computer. In hacked site case - you just need to restore from backup for 5-10 mins
- keep backups on regular basis - can be plugin or manually. There you can diff backups for changes very quick
- you need some skills to investigate web attacks using checking web server log files. I do this on daily basis for mine most important sites. If some IPs or user agents doesn't follow rules - deny their access
- in case of hack - keep archive of hacked site and then recover. One of huge mistake more novices make is to trying to clean site. Most of malwares keep somewhere in WP "dead hand" and they're back later. Experts (like me) need lot of time to find and disabled them. With backups - this is piece of cake
- If you follow this but keep hacked... then think out of box - maybe plugin have unknown vulnerability or theme. Sometime other sites/scripts working on same hosting account can infect you. I have even seen infected whole hosting company on server level. Then you need expert assistance. You can find this in WP forum and/or in your hosting provider.
- Some hosting providers provide extra service as - WordPress hosting. This is often high-speed solution with added extra level of security on server level. I can recommend SiteGround, WPEngine or nestify.io
List is really long and boring. But if you follow all these rules - you don't need "security" plugin. It's critical for you to know what's happen in WP and when this is happening. I often can see people that doesn't know that they're infected but they doesn't have backups or archives. This make mine job longer and expensive.
PS: I know that checking site on daily basis sound little bit scary. But take me maximum 5 minutes per site for day.
-
Along with BulletProof, Wordfence is one of the highest rated, and most used security plugins for WordPress.
However her hacking issue was likely the cause of a security vulnerability in one of her WordPress plugins. We often see this with clients that do not update their plugins, or have plugins that haven't had updates in ages. Some plugins are created as a front solely to steal data or have another security vulnerability.
One of the best ways to combat this is to #1. Make sure you update your plugins regularly and #2. Only download plugins that are highly rated and are updated regularly.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Traffic to blog home page is going down after changing my WordPress Theme
I recently changed my wordpress theme from a standard free theme to a newer theme. The home page I switched up a bit adding more calls to action to some of our top posts and leading people to popular categories and so on. This greatly improved the usability of our site as it allowed us to highlight new posts. The previous free template simply listed 10 of our most recent posts on a page with small snippets and then you had to move to the next page to keep reading. Since switching my theme the blog traffic has stayed relatively level. That being said, the specific posts traffic is going up a lot whereas the organic traffic to the blog homepage is now nearly depleted. Is this a common thing to happen or is there anything I can do to fix this issue?
Content Development | | saultienut0 -
Is joomla better than wordpress let me know your thoughts
Hi, i am wondering if wordpress is better than joomla. We have been having a talk and been wondering if our main site www.in2town.co.uk should stay in joomla or if we should think about moving it over to wordpress. I would like to hear what people think, if wordpress is better than joomla for a magazine or if we should stick with joomla and forget about moving over to wordpress. It would be great to hear people's opinion and maybe some examples of popular magazines or newspaper sites that are using wordpress instead of joomla. It would also be interesting to know how hard or how easy it is to move across to wordpress from joomla. Would value your thoughts on this issue and find out which is better for seo. many thanks
Content Development | | ClaireH-1848860 -
What is better joomla or wordpress
Hi, i am sites in joomla and wordpress but i am interested to find out what people think of joomla and wordpress and which is the better platform for websites, joomla or wordpress. I have read a lot about how wordpress is better than joomla then i have also read how joomla is better than wordpress so i would just like to know what people on here think. would love to see some examples of good websites in either wordpress or joomla
Content Development | | ClaireH-1848860 -
Moving a html site into Wordpress
I'm getting ready to move a site into Wordpress. The current or old site is built with static html pages. My question is, how should I handle Google with these old pages. Should I 301 redirect from each old page to the new? Or is there a better way to handle it?
Content Development | | brandco0 -
WordPress Guest Post Admin Access?
Is there a plugin or function in WordPress for a guest poster to just get admin access to control comments? Example: Big Brand X writes a guest post on www.yoursite.com. Big Brand X wants admin access to approve or delete comments on their guest on www.yoursite.com. Big Brand X doesn't want access to edit their guest post or any other post on www.yoursite.com, they just want admin access to manage the comments on their guest post. Is this possible? Thanks for the help!
Content Development | | explorionary0 -
Wordpress blog, transferring .com to .org
For many years now we've had a wordpress.com blog, and accumulated a lot of links from it as a result. We now have a wordpress.org blog and are keen to move all the old posts on to the new .org site. How can this be done without losing the links from the old .com blog? Thanks in advance.
Content Development | | copywritingbuzz0 -
My Wordpress traffic has gone through the roof, huge referrals from wordpress.com - why?
My Wordpress traffic has hit an all time high over the last few days - in the last 48 hours I've had as many views as the last two months combined. This huge spike in traffic has coincided with a great piece of exclusive content that went up, but I wouldn't expect the traffic to be nearly as high as this. The strange thing is that all the extra traffic seems to be referred from Wordpress.com, however, I cannot drill down to a more specific URL. Also, the referrals do not seem to translate into page views of the homepage, nor a particular article. Can anyone offer any insight into this situation? Thanks
Content Development | | pugh0 -
What plugins & tactics are you using for Wordpress meta SEO?
Currently I use All-In-One SEO and I quite like how simple it is to setup and it's stable. Is that still one of the best ones? What are you using these days? Is it worth stripping out the superfluous meta tags that Wordpress now puts in? Is there any value to adding meta descriptions to all my Tag pages and if so, is there a good plugin that will auto magically create unique descriptions for these pages? Same goes for my paginated archives. Thanks!
Content Development | | flowsimple0