As we all know that antivirus is used to protect your computer from viruses and parasites. It is very important to make sure that the antivirus is effective and working properly, so that, you can prevent any dangerous infections. There are a number of antivirus software available today, they promises to protect your computer completely, but, sometimes they do not work as per the market standard. If you are using internet on regular basis then are very much chances to get infected by dangerous virus or malwares. In this article, we will discuss how to create a sample virus to ensure your antivirus works. Before reading the steps below, we would like to tell you that this is not a virus, but a well known sample file which is used to test antivirus and malware programs. Do not panic to test it because it will not harm your computer and it will only use to detect by your antivirus to ensure that it is working properly.

To create the sample virus, read the steps given below carefully.


First step is to open the notepad. To open the notepad open “run” and type “notepad” in the box given, press enter. It will open the notepad. You can also open notepad using the mouse. Right click on the home screen and select new text document.


Now in the note pad you need to type the following line:


You can also copy and paste from here, if you face difficulty to write this one.


After typing the above line, go to menu and select “save as”. In the save as window, click the drop down menu and select all file as file type.


Now to name this file, type EICAR.COM and then click save.


The time you click the save tab, you will get a notification by your antivirus that it quarantined the test file. EICAR is nothing but a non-viral string of files that most antivirus included in their signature database.  If you want to get more information about this test file then you can follow the link given below:


When you click on the link, you will see information about this test file by Symantec.

If your antivirus found and quarantined this file, it means that the program is working properly otherwise there is some problem in your antivirus. You can update the antivirus or remove it and download another one.

Sometimes the antivirus will not find if automatic scan is not started. In that case, you can scan the whole computer or scan the drive specified. We also recommend you to check whether your antivirus is full version or not because free version of the antivirus will not be able to detect this sample virus. We again confirm you that it is not a virus that harms your computer but it is an industry-standard way to test antivirus programs.