Antivirus programs employ a combination of techniques to identify and mitigate threats. These include signature-based detection, where known malware signatures are compared against files, and heuristic analysis, which looks for suspicious behavior or coding patterns. Some advanced antivirus solutions also use machine learning to predict and identify new threats.