The EICAR virus test is a harmless text file that is detected as a virus by most AV vendors. You can use it to verify that your local virus scanner is working (just copy the string into a plain text file), check to see if your email server scans for viruses (email yourself a copy), and test if scanners detect viruses inside archives (put it inside a zip file).
First, create a new text file and paste the following code into it:
Now, save the file as a eicar.COM (or any name will do, but the extension as, .com). We will now perform two types of test:
1. Email Attachement: To see if your antivirus is doing its job —just send a self email with eicar.com as the attachement in zip and non-zip version.
2. Desktop scanning: If your anitvirus software is integrated into windows shell, just right-click the file “eicar.com” and select your antivirus program to scan. Or you can open your antiviurs and point to the directory —where you have saved “eicar.com” file and scan it.