Antimalware, antivirus software are designed to scan the system for malicious software. The program compares detected suspicious files with blacklisted malware definitions to identify if it is a threat or not.
In addition to this, the best anti malware software uses the Heuristics method to detect suspicious files.