How to create the a test virus :-
1. Create a new text file using Notepad or any text editor.
2. Open the text file and enter the below code as the text of the file.
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
3. After the above code has been entered save the file as an .exe file
instead of a .txt file. For example, name the file test.exe instead of
test.txt. Alternatively you can save the file as a .txt file and then
rename the file after it has been saved.
Note: In order for
this to work you must have Windows showing the file extensions. By
default Windows may be trying to save the file as a .txt file even if
you end your file with .exe. For example, the file may be saving as
test.exe.txt instead of test.exe. If after saving or renaming the file
the icon still looks like a notepad, it is not being saved as an
executable file.
How to always show computers file extensions.
4. After the file has been saved the anti-virus should immediately
prompt for action, similar to what is shown below. If you do not receive
a prompt try highlighting the file, and then right-click and choose the
option to scan the file with your scanner.
If after
following all of the above steps you do not receive any type of warning,
your virus scanner is either not enabled or not working properly. We
highly recommend either re-installing the installed antivirus scanner or
trying an alternative virus scanner.