Surfing the web you will have heard about the existence of malicious websites. Virustotal is a well known website that helps you to discover which site is malicious and which is not before actually requesting the suspected URL in your browser. But what does it mean that a website is classified as “malicious”? What actions do these sites perform and how do they manage to do that? In this article you’ll read a brief introduction about how these sites work, how you can recognize them and how you can be able to protect yourself from them.
How A Malicious Site Acts
We can distinguish between two different kind of evil sites. Those that require an action performed by the user to infect him and those that infect the victim without requiring any action. When you visit a website you can be infected in different ways. You can click on an advertisement unwittingly starting a malicious action performed by the server, you can download and open a dangerous content stored on the server, you can have your credentials stolen if the site you’re visiting is a phishing site or you can just sit in front of your computer, require a certain URL and be infected without having done anything wrong. Well, for what concerns downloading an evil content, the mechanism is simple. If you execute the downloaded content (beware that it could also be an image or a pdf with an attached, hidden virus, not necessarily a “.exe” file) a malware will be executed on your machine and you’ll be infected. In the case of an advertisement, an innocuous advertisement is placed on a trustworthy website, and successfully injected with a malware. In this way, the ad becomes a widespread malware that infects all the users that are visiting the site. In some cases, the malware can be spreaded only if you click on the advertisement. Then you’ll be redirected to a malicious website instead of the site you expected. In other cases you can be infected without doing anything.
How Can You Protect Yourself ?
For what regards the first type of malicious site, thus those that infect you after you perform a certain action, the recommendation is to avoid to download content or clicking on links or ads. If you really have to click on a link, you can do it in a virtual machine or you can copy and paste it on virustotal before clicking it, just to control it is not a malicious site. Anyway there could be some kind of redirection so the link that appears on the site is not really related to the named site but to a malicious site. In this case, pasting the fake link in virustotal will not be useful, so please just avoid clicking on links. Once you have downloaded a malware, just hope that your antivirus can disarm it or that your firewall can close the connection between your pc and the evil server.
For what concerns the second kind, there are few things that you can do encountering a malicious site that can infect you without you having done anything. The first thing you can do is patching your browser. Great organizations of hackers, usually target well known exploitable vulnerabilities, so if you patch your browser and update your system with all your software, you should be secured by this point of view. Anyway you couldn’t avoid a zero day infection. In order to maximize the number of victims infected, hackers will target the most used browsers, so a way to avoid being attacked, could be using a different browser. Take a look to the statistics on the different browsers’ usage and make your considerations. The last thing you can do is using a blacklist. There are numerous lists of websites known as malicious, you can use them copying them in your browser’s blacklist so that you’ll never encounter the evil sites in your life. Also take a look at the google’s blacklist when searching a website in your searching engine. Google will enlighten the sites considered malicious.