PDF download Download Article
Download a fake or real virus to test your antivirus software
PDF download Download Article

This wikiHow teaches you how to test your computer's antivirus program with a fake virus and how to use poor browsing and security habits to contract a computer infection. Keep in mind that actually getting a virus on your computer is incredibly risky and can result in the computer failing to work, loss of personal information, and even legal ramifications.

Things You Should Know

  • You can download a harmless test virus from https://www.eicar.org to test your antivirus software.
  • You can also get a virus from torrent and pirated software downloads, clicking certain ads, and opening attachments on junk emails.
  • Before getting a virus on purpose, back up your data and remove sensitive information from your computer. Use a virtual machine and disconnect from the internet.
Method 1
Method 1 of 2:

Downloading a Test Virus

PDF download Download Article
  1. For the test virus to be detected, you'll want your computer's antivirus program running . Keep in mind that the test virus isn't actually a virus, so it won't harm your computer.
    • On Windows, you have a program called Windows Defender that should be on by default.
    • On Mac, you'll need to use a third-party antivirus program like Malwarebytes or AVG.
  2. Go to https://www.eicar.org/ in your computer's browser. EICAR is a European IT security firm that, among other things, helps IT departments test their networks' security measures.
    Advertisement
  3. It's in the dark-blue banner near the top of the page. Doing so opens the EICAR disclaimer.
    • You can read through this disclaimer and explanation of use before proceeding if you have any questions about how the test virus should be used.
    • If your antivirus software scans the file and puts it in quarantine, you may be unable to delete it. Consult your antivirus software company for assistance if this happens.
  4. It's near the bottom of the page.
  5. EICAR provides the test virus in four different files for different purposes. The four test files are as follows:
    • EICAR.ORG-COM: This is the main test virus file. It is a text file that contains a string of 68 characters. It should be enough to trigger your antivirus scanner.
    • EICAR.ORG-TXT: This is the same file as the first file, but with a different file name. If you experience problems downloading the first file, you can download this file instead. Then you will need to rename the file "eicar.com"
    • EICAR.ORG-ZIP: This download contains the main test virus file in a ZIP file . You can use this download to see if your antivirus scanner can scan viruses within a ZIP archive.
    • EICAR.ORG-ZIP.2: This download contains the test virus within a zip file inside another zip file. You can use this download to see if your antivirus scanner can detect viruses within a ZIP archive two layers deep.
  6. It may take several seconds to begin downloading. If the file successfully makes it to your computer's "Downloads" location, you will most likely see a pop-up warning you that a malicious file was detected.
    • If you're on a Windows computer and your Windows Defender antivirus is enabled, the file won't even be allowed to download. You can circumvent this by re-downloading the file several times in quick succession, clicking the Windows Defender pop-up notification, clicking the name of the file in the "Current threats" section, checking the "Allow on device" box, clicking Start actions , and clicking Allow when prompted.
  7. If the file still hasn't been picked up by your antivirus program, manually scan for threats from within your antivirus program. This will usually cause the file to be found, quarantined, and removed from your computer.
    • If your antivirus scan still doesn't pick up the file, you should invest in a different antivirus program.
  8. Advertisement
Method 2
Method 2 of 2:

Downloading a Real Virus

PDF download Download Article
  1. Back up your computer . Since viruses can quickly render a computer inoperable, backing up your computer's files to an external hard drive is recommended.
  2. Viruses are designed to spread, and it is irresponsible to test viruses on a computer that is not isolated from the internet. Ensure that your test environment is contained so that the viruses you are testing cannot spread to computers that you don't want infected.
    • You'll also want to make sure that your computer doesn't have any sensitive information (e.g., credit card numbers, social security identification, payment records, etc.) on it just in case your virus can copy the contents of your hard drive.
    • Make sure that the computer or computers you are testing on are not connected to the Internet when you open an infected file.
    • For greater security, test viruses using a virtual machine on a physical computer that is not connected to the internet.
  3. Infecting your own computer can jeopardize your data and personal information. If your computer is connected to the internet or other computers on a network, you run the risk of infecting others.
    • In most countries, infecting someone's computer with a virus is illegal.
    • If you are trying to test your antivirus software, it is strongly recommended that you use the test file in the previous method .
  4. Most routers contain hardware firewalls that can help protect your computer. For maximum vulnerability, you should connect your modem directly to your computer via an Ethernet cable , which will bypass the router's security.
  5. Disable your computer's Firewall . The firewall serves as a built-in threat deterrent, so disabling it will allow unauthorized programs to access your computer.
    • In some cases, disabling your computer's Firewall will also allow unauthorized users to access your network.
  6. Most antivirus programs do an admirable job of catching most viruses, so you'll want to disable or remove your antivirus software completely before trying to infect the computer.
  7. There are a variety of communities online dedicated to testing internet security, and you may be able to find links to known viruses in the community discussions. One of the most popular internet security (NetSec) communities is the NetSec subreddit. You can find a variety of discussions and links to sites containing specific viruses. [1]
  8. One of the most popular ways for viruses to be spread is through pirated media and software. Look for "cracks" or "serials" for popular programs requiring a file to run. These files often contain viruses that execute when you run the crack for the program.
    • Torrents are a very popular way to share these files. When browsing torrent sites, look for torrents with low ratings and comments from other users warning about viruses. These are the ones you want.
    • P2P sharing programs are another popular way to spread viruses. Programs like Kazaa and Gnutella are some of the more popular options.
    • Many websites, known as "warez" sites, will offer "free" downloads for virtually any program. These are almost always infected with viruses and adware, and the program itself rarely works.
  9. Many advertisements—especially ones about enhancement-based drugs or services—redirect to shady sites that contain virus downloads.
  10. Open your email's Spam or Junk folder, then open an email from an unknown sender and look for a download button or link.
    • Sometimes simply opening a spam email will be enough to contract a virus.
    • For some spam emails, you'll have to click a link in the email to prompt a virus file to download.
  11. Screensavers are traditionally some of the most infected files around, especially when downloaded from untrustworthy sources (e.g., torrenting websites).
    • This method will typically only work for Windows computers, as the screensaver (.scr) files are usually only executable on a Windows computer.
  12. When the test is complete, run multiple virus scans and delete all the infected files you downloaded. You may need to use Safe Mode to |get rid of all the viruses. In extreme cases, you may have to erase your computer's hard drive and reinstall the operating system to wipe out all traces of the virus.
  13. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Can Gmail cause a virus?
    Community Answer
    Gmail itself can't cause a virus, but if you open a shady email (most likely, most of the ones in your spam folder) and click a link in it, you can get infected with a virus.
  • Question
    Why do I need to click on ads to get a virus?
    Community Answer
    Most ads are full of malware, adware and trackers. This is one of the easiest ways to get a virus on your computer.
  • Question
    Can WiFi get a virus?
    Aaron N
    Community Answer
    Although viruses can infect your device via WiFi, It is extremely unlikely that a WiFi router could get a computer virus. Even though it is rare, it is important to update your firmware to prevent this from happening. Your WiFi can, however, be modified by hackers if they know or guessed the password.
See more answers
Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Visiting websites that host illegal content can get you in trouble with your local police, or, in extreme cases, the FBI.
      • Intentionally infecting a computer you do not own is illegal in most areas. Even downloading a virus onto your own computer runs the risk of unwittingly infecting other computers, either through the network, through email, or even over a USB drive.
      • You are risking your information and privacy by downloading viruses. Not all antivirus programs can remove every virus. These viruses can cause damage to your devices.
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 662,556 times.

      Is this article up to date?

      Advertisement