This is what most people think of when they think about how an antivirus works. The most basic detection process is known as specific detection.
Most modern antivirus programs feature multiple scanning detection processes. Whenever you download or launch a file, an antivirus program scans the file for malware.