'Malware' is an umbrella term used to refer to computer viruses, worms, trojan horses, ransomware, spyware, adware and other malicious programmes.
Facebook said for the past year, it has been working with anti-malware companies like ESET, F-Secure and Trend Micro to offer free malware clean-up software to its users.
"To make this programme even more effective, Kaspersky Lab is bringing their expertise to our malware clean-up efforts. If we detect malware on your computer, we will offer Kaspersky Malware Scan for Facebook among our other clean-up tools to help take care of the problem," Facebook said in a blogpost.
"Thanks to the collaboration with these companies (Kaspersky and others), in the past three months, we have helped clean up more than 2 million people's computers that we detected were infected with malware when they connected to Facebook," Facebook Software Engineer Threat Infrastructure Team Trevor Pottinger said in the post.
Also Read
In these cases, Facebook presents a clean-up tool that runs in the background while the user continues using the website and they get a notification when the scan is done to show what was found, he added.
In a separate blogpost, Kaspersky's Kate Kochetkova said Facebook is a major target for phishers with one in five phishing scams targetting Facebook notifications.
"For this reason, one should be vigilant when receiving e-mails from this network, they might be fake. Additionally, there are lots of Trojans targeting Facebook users as well," she said.