Malware in ecommerce website is a nightmare for anyone. And of course, with magento site, it ‘s one of the most important we have to prepare for it. In this article I will show you how to scan and remove malware for magento hosting site with Linux Malware Detect – LMD.

magento-malware

First of all, if you are using shared magento hosting then you have no way to install this software to scan and remove malware, so that if you use shared hosting, let ‘s make sure you choose the right magento hosting so they have already supported scan and remove malware automatically. You can check top 3 best magento hosting, they are all support malware protect for their hosting package.

Let ‘s understand a little about malware. Malware, short for malicious software, is any software used to disrupt computer operation, gather sensitive information, or gain access to private computer systems. It can appear in the form of executable code, scripts, active content, and other software. ‘Malware’ is a general term used to refer to a variety of forms of hostile or intrusive software. The term badware is sometimes used, and applied to both true (malicious) malware and unintentionally harmful software. In magento site malware can get your customer information, get credit card information (if you save it in database) and do anything with files, source and server resource. But in this article, we will not focus to how risk malware can bring to us, we will focus to how to get out of the risk.

1. What to do if magento hosting meet malware issue

I believe almost you come with this article after you meet the problem with malware on your server or hosting.

Website malware

If you malware attack from your website (strange script in your website), the first step you need to do is backup the current version and restore the previous version to make sure it will not make more risk. After that let ‘s install and configure LMD.

Hosting/Server malware

Nothing you can do if you can’t restore entire of server, in this case, you have to install and configure LMD and scan entire of server.

2. How to install and configure LMD to scan and remove malware?

This is the main part of article and luckily it ‘s quite easy.

– Download the current version here http://www.rfxn.com/downloads/maldetect-current.tar.gz

– Extract and follow the instruction to install

– Look at the readme file here http://www.rfxn.com/appdocs/README.maldetect

– And do the update database malware by running this command

maldet -u

maldet -d

Now run this command to scan the folder you want

maldet - a /home/users/

Above command will scan all files and folders in /home/users/

But the problem is we only need to scan the new files to save time, let ‘s say to run a cronjob every 2 days then you will need to scan new files in 2 days only. Let ‘s do this magic task by this command

maldet -r /home/?/public_html 2

Now, enjoy the result and good luck!

If you meet malware issue and you can’t solve the problem let contact us and we will take care it for you.

2 thoughts on “Scan and Remove malware for magento hosting site with LMD

  1. Thanks for a very useful tips to remove malware. But I am in a hosting and my website meet malware issue. I can’t install the malware scanner from you to hosting. How can I remove it?

Leave a Reply