Is there a modern version of the EICAR test file? Something lika a 64 bit EXE?
The old 16 bit COM file doesn't even run on modern systems.
I usually use some benign file that is detected anyway, like netcat or VNC, but a standard one would be better IMO.
Addition:
Some background: a while ago I experimented with some file permission settings that hid the file from most AV scanners (they fixed this hole since) but still allowed it to be executed. For this test a file that can be actually executed is needed. As EICAR is unfit for this, I used, IIRC, the bo2k exe file.
Following the the logic of some comments and answers (it does not need to run, just should be detected), why have a COM file at all? A simple TXT file containing EICAR-STANDARD-ANTIVIRUS-TEST-FILE would do the same job.
printfand compile it – Sravan Aug 29 '16 at 11:21