Threat Eraser
Windows 10 & 11 Buy license · $59.95
Removing threats

How to use the EICAR test file to check your antivirus is working

The EICAR test file is a harmless file every antivirus detects. Learn what it is, if it is safe, and how to test Windows Security and archive scanning.

Updated 4 minute read The Threat Eraser team

The EICAR test file is a harmless, industry-standard file that every mainstream antivirus program is designed to detect as if it were a virus. It contains no malicious code at all, just a short line of text, so you can use it to check that your scanner is switched on, up to date and reacting the way you expect, without putting your PC at any risk.

It was created by the European Institute for Computer Antivirus Research (EICAR) together with CARO, the Computer Antivirus Research Organization, precisely because testing with real malware is dangerous and, for most people, not legal or sensible to obtain.

What the EICAR file actually is

The file is a single line of 68 printable characters. If run as an old DOS program it would only print the message "EICAR-STANDARD-ANTIVIRUS-TEST-FILE!" and stop. Modern 64-bit Windows will not even run it. Antivirus vendors agree to treat this exact string as a detection, so it acts like a fire drill: the alarm goes off, but there is no fire.

The official files are published on the official EICAR website, eicar.org, in four forms:

FileWhat it tests
eicar.comBasic detection of a program file
eicar.com.txtDetection regardless of a harmless-looking extension
eicar_com.zipWhether the scanner looks inside ZIP archives
eicarcom2.zipWhether it looks inside a ZIP within a ZIP (nested archives)

Is it safe to download?

Yes. The file cannot harm your computer, steal data or spread. The only "risk" is that your antivirus will do its job and block or quarantine it, which is the point. Two things to keep in mind:

  • Only download it from eicar.org. A file claiming to be the EICAR test from a random site could be anything.
  • On a work PC, ask first. Company security systems may log the detection and alert your IT team, who will not thank you for a surprise investigation.

How to test Windows Security with EICAR

  1. Make sure real-time protection is on: Settings > Privacy & security > Windows Security > Virus & threat protection > Manage settings, and check Real-time protection is On.
  2. Visit eicar.org, find the download area for the anti-malware test file and download eicar.com.txt.
  3. Your browser or Windows Security should block it almost immediately. Microsoft Defender typically reports it with a name containing EICAR_Test_File.
  4. Check Virus & threat protection > Protection history to confirm it was quarantined or removed.
  5. Repeat with the ZIP versions to see whether archive scanning works.
Do not turn off your antivirus to "get the file through". To test a scanner such as Threat Eraser, use its built-in test option instead, as described below. Switching off real-time protection, even briefly, leaves your PC unprotected.

What the results tell you, and what they do not

A successful EICAR detection confirms that:

  • The scanner is installed and running.
  • Real-time scanning reacts to new files (if it caught the download automatically).
  • Notifications and quarantine are working.
  • Archive scanning works, if the ZIP versions were caught.

It does not tell you how good a scanner is at catching real malware. Every product detects EICAR because it is a fixed, well-known string. Judging detection quality needs independent testing with real samples. EICAR is a health check, not a benchmark.

If nothing happens when you download the file, check that real-time protection is on, that another antivirus has not taken over from Windows Security, and that you have not added your Downloads folder as an exclusion. If you suspect your protection has been tampered with, read how to tell if your computer has a virus.

When EICAR testing is useful

  • After installing or reinstalling security software.
  • After a malware clean-up, to check the infection did not disable your protection. See what to do after removing malware.
  • When setting up a new PC for staff, as a quick check that protection is active.
  • When you have configured folder watching or automatic quarantine and want to see it in action.

Testing Threat Eraser with EICAR

Threat Eraser includes the EICAR test file among its built-in signatures, so detection works even before the first definition update. Rather than downloading anything, use Tools > Test Detection (EICAR) to run a safe test that shows how a detection appears, including its category (test file) and severity. The test is quick and works even offline.

The test is a handy way to see how Threat Eraser presents results in practice. You can also watch quarantine, automatic quarantine in Real-Time Watch and tray notifications working, so you know exactly what will happen if something real ever turns up in your Downloads, Desktop or Documents folders.

Find out more about the Threat Eraser malware scanner.

Frequently asked questions

Can the EICAR file infect my computer?

No. It is a short line of text with no harmful code, which antivirus vendors agree to detect as a test.

Does detecting EICAR prove an antivirus is good?

No. Every mainstream scanner detects it, so it only confirms the scanner is active and responding, not how well it catches real malware.

Why are there ZIP versions of the EICAR file?

They test whether a scanner looks inside archives, including a ZIP file inside another ZIP file.

Get three guides like this every month, plus software update notices.Subscribe →