McAfee uses a variety of methods to detect malware. They have a team of researchers who constantly analyze new threats and create signatures for them. These signatures are then added to their virus definitions, which are used by their software to scan for malware. In addition, they also use heuristics and behavioral analysis to detect new and unknown threats.