Removal guide Trojans

Remove “File contained a virus and was deleted” (Virus Removal Guide)

By Stelian8 min read

If you are seeing a “this file contained a virus and was deleted” message, when trying to download a program using Internet Explorer 8, 9 or 10, then your computer is infected with a ZeroAccess rootkit.

Advertisements

[Image: file contained a virus and was deleted Internet Explorer]

The ZeroAccess trojan is a dangerous threat that has been circulating for several years. In the time that ZeroAccess has been in the wild there have been a number of revisions, with modifications to its functionality, infection strategy and its persistence mechanisms on an infected machine. However, the core purpose has remained: to assume full control of the machine by adding it to the ZeroAccess botnet and to monetize the new asset by downloading additional malware.
Primarily, Trojan ZeroAccess is a kernel-mode rootkit, similar in ethos to the TDL family of rootkits. It uses advanced techniques to hide its presence, is capable of functioning on both 32 and 64-bit flavors of Windows from a single installer, contains aggressive self defense functionality and acts as a sophisticated delivery platform for other malware.

Trojan ZeroAccess remains hidden on an infected machine while downloading more visible components that generate revenue for the botnet owners. Currently the downloaded malware is mostly aimed at sending spam and carrying out click fraud, but previously the botnet has been instructed to download other malware and it is likely that this will be the case again in the future.

Advertisements

The “program contained a virus and was deleted” trojan has been observed being distributed by exploits and programs that promote software-piracy, such as ‘keygens’ and ‘cracks’ (programs designed to bypass software licensing).

To protect itself from being removed, the ZeroAccess rootkit will prevent Internet Explorer 8, 9 and 10 users from downloading any piece of software that might lead to its removal.
When this happens, the Internet Explorer users will see a “filename.exe contained a virus and was deleted” message, which is obviously generated by this infection.
[Image: program contained a virus and was deleted infection]
The “file contained a virus and was deleted” infection, will only affect the Internet Explorer users, so if you are using Google Chrome or Mozilla Firefox, you should be able to download any piece of software without seeing this bogus alert.

In order to remove “[filename].exe contained a virus and was deleted” infection and stop this fake message from showing up and blocking software downloads you need to remove the ZeroAccess rootkit from your computer.

Advertisements

How to remove File contained a virus and was deleted virus (Virus Removal Guide)

This malware removal guide may appear overwhelming due to the amount of the steps and numerous programs that are being used. We have only written it this way to provide clear, detailed, and easy to understand instructions that anyone can use to remove malware for free.
Please perform all the steps in the correct order. If you have any questions or doubt at any point, STOP and ask for our assistance.

STEP 1:  Use ESETSirfefCleaner tool to remove File contained a virus and was deleted

In this first step, we will use the ESETSirefefCleaner tool to remove the File contained a virus and was deleted from your computer.

  1. You can download ESETSirefefCleaner from the below link.
    Download ESET Sirefef CleanerYour download starts right away.

    Unable to download “ESETSirefefCleaner.exe contained a virus and was deleted”.
    More recent variants of Sirefef might prevent you from downloading this removal tool. If you cannot download the tool, follow the steps below:

    1. Click Start → Computer → Local Disk (C:) → Program Files.
    2. Right-click the Windows Defender folder and select Rename from the context menu.
    3. Add a unique variation to the filename, such as .old (for example, Windows Defender.old).
    4. Click the link above to download the ESETSirefefCleaner tool.When the download is complete, make sure to rename the Windows Defender folder back to its original filename before running the ESET SirefefCleaner tool.
  2. Double-click on ESETSirefefCleaner.exe to start this utility. You may be presented with an User Account Control pop-up asking if you want to allow this to make changes to your device. If this happens, you should click “Yes” to continue.
  3. The message “Win32/Sirefef.EV found in your system” will be displayed if an infection is found. To remove File contained a virus and was deleted from your computer, press the Y key on your keyboard
    ESETSirefefCleaner virus detected
  4. Once the tool has run, you will be prompted to restore system services after you restart your computer. Press Y on your keyboard to restore system services and restart your computer.
    ESETSirefefCleaner Press Y to remove malware
  5. Once your computer has restarted, if you are presented with a security notification click Yes or Allow. and then continue wit the next step.

STEP 2: Use RKill to stop the File contained a virus and was deleted malicious processes

RKill is a program that will attempt to terminate all malicious processes associated with File contained a virus and was deleted, so that we will be able to perform the next step without being interrupted by this malicious software.

Because this utility will only stop File contained a virus and was deleted running process and does not delete any files, after running it you should not reboot your computer as any malware processes that are configured to start automatically will just be started again.
  1. You can download Rkill from the below link.
    Download RKillOpens the download page in a new tab.
  2. Double click on Rkill program to stop the malicious programs from running.
    Start the Rkill program
  3. RKill will now start working in the background, please be patient while this utiltiy looks for malicious process and tries to end them.
    Rkill Running
  4. When the Rkill tool has completed its task, it will generate a log. Do not reboot your computer after running RKill as the malware programs will start again.
    Rkill Program


STEP 3: Scan your computer with Malwarebytes Anti-Malware to remove File contained a virus and was deleted

Malwarebytes Anti-Malware is a powerful on-demand scanner which should remove the File contained a virus and was deleted virus from your machine. It is important to note that Malwarebytes Anti-Malware will run alongside antivirus software without conflicts.

  1. You can download download Malwarebytes Anti-Malware from the below link.
    Download MalwarebytesFree official installer. Your download starts right away.
  2. When Malwarebytes has finished downloading, double-click on the “mb3-setup-consumer” file to install Malwarebytes Anti-Malware on your computer.
    Malwarebytes installer
    You may be presented with an User Account Control pop-up asking if you want to allow Malwarebytes to make changes to your device. If this happens, you should click “Yes” to continue with the installation.
    Malwarebytes User Account Control Prompt
  3. When the Malwarebytes installation begins, you will see the Malwarebytes Setup Wizard which will guide you through the installation process.
    Setup Malwarebytes installer
    To install Malwarebytes Anti-Malware on your machine, keep following the prompts by clicking the “Next” button.
    Completing the Malwarebytes Setup Wizard
  4. Once installed, Malwarebytes will automatically start and update the antivirus database. To start a system scan you can click on the “Scan Now” button.
    Perform a system scan with Malwarebytes
  5. Malwarebytes Anti-Malware will now start scanning your computer for malicious programs.
    This process can take a few minutes, so we suggest you do something else and periodically check on the status of the scan to see when it is finished.
    Malwarebytes scanning for malware
  6. When the scan has completed, you will be presented with a screen showing the malware infections that Malwarebytes Anti-Malware has detected.
    To remove the malicious programs that Malwarebytes has found, click on the “Quarantine Selected” button.
    Malwarebytes Quarantine Selected
  7. Malwarebytes Anti-Malware will now quarantine all the malicious files and registry keys that it has found.
    To complete the malware removal process, Malwarebytes may ask you to restart your computer.
    Malwarebytes removing malware from computer
    When the malware removal process is complete, you can close Malwarebytes Anti-Malware and continue with the rest of the instructions.

STEP 4: Double-check for malicious programs with HitmanPro

HitmanPro can find and remove malware, adware, bots, and other threats that even the best antivirus suite can oftentimes miss. HitmanPro is designed to run alongside your antivirus suite, firewall, and other security tools.

  1. You can download HitmanPro from the below link:
    Download HitmanProOfficial Sophos download. Free scan, free 30-day trial to remove threats.
  2. When HitmanPro has finished downloading, double-click on the “hitmanpro” file to install this program on your computer.
    HitmanPro icon
    You may be presented with an User Account Control pop-up asking if you want to allow HitmanPro to make changes to your device. If this happens, you should click “Yes” to continue with the installation.
    HitmanPro User Account Control Pop-up
  3. When the program starts you will be presented with the start screen as shown below. Now click on the Next button to continue with the scan process.
    HitmanPro setup process
  4. HitmanPro will now begin to scan your computer for malware.
    HitmanPro scanning for File contained a virus and was deleted virus
  5. When it has finished it will display a list of all the malware that the program found as shown in the image below. Click on the “Next” button, to remove malware.
    HitmanPro detected malware
  6. Click on the “Activate free license” button to begin the free 30 days trial, and remove all the malicious files from your computer.
    Activate HitmanPro to remove malware
    When the process is complete, you can close HitmanPro and continue with the rest of the instructions.

(OPTIONAL) STEP 5: Use Zemana AntiMalware Portable to remove File contained a virus and was deleted

Zemana AntiMalware Portable is a free utility that will scan your computer for the File contained a virus and was deleted and other malicious programs.
This step should be performed only if your issues have not been solved by the previous steps.
  1. You can download Zemana AntiMalware Portable from the below link:
    Download Zemana AntiMalwareOpens the download page in a new tab.
  2. Double-click on the file named “Zemana.AntiMalware.Portable” to perform a system scan with Zemana AntiMalware Free.
    Zemana AntiMalware portable
    You may be presented with a User Account Control dialog asking you if you want to run this program. If this happens, you should click “Yes” to allow Zemana AntiMalware to run.
    Zemana AntiMalware User Account Control
  3. When Zemana AntiMalware will start, click on the “Scan” button to perform a system scan.
    Zemana AntiMalware Free Scan
  4. Zemana AntiMalware will now scan your computer for malicious programs. This process can take up to 10 minutes.
    Zemana AntiMalware scanning for virus
  5. When Zemana has finished finished scanning it will show a screen that displays any malware that has been detected. To remove all the malicious files, click on the “Next” button.
    Zemana AntiMalware Removing File contained a virus and was deleted Virus
    Zemana AntiMalware will now start to remove all the malicious programs from your computer.
Your computer should now be free of the File contained a virus and was deleted. If you are still experiencing problems while trying to remove File contained a virus and was deleted from your machine, you can ask for help in our Malware Removal Assistance forum.
Advertisements

Finish the cleanup. Keep protection on.

Follow the removal steps above, then consider ongoing protection against malicious software and unwanted advertising.

Affiliate links We may earn a commission if you buy through these links, at no extra cost to you. How we’re funded

MalwarebytesSCAM & MALWARE PROTECTION

Go beyond a one-time scan.

Malwarebytes can detect and remove malware and unwanted programs. Premium Security adds real-time protection against new threats.

  • Scam Guard for suspicious messages
  • Real-time malware protection with Premium
Explore MalwarebytesExplore features on the official website
AdGuardAD & TRACKER BLOCKING

Reduce unwanted ads and redirects.

AdGuard filters ads and trackers while you browse. It can help reduce exposure to advertising that sends you to unwanted pages.

  • Blocks intrusive ads and pop-ups
  • Filters trackers while you browse
Explore AdGuardExplore features on the official website

Features vary by device and plan. These tools add protection; they do not guarantee that a website or offer is trustworthy.

Join the discussion

46 comments

Share your experience or ask a question about this article.

Discussion

  1. Natruly Stylish

    I legit can’t believe that my problem is fixed. 2-3 years after my problem started on my old laptop & I was about to give up. I came across this article & all I did was change the Windows Defender folder name & I no longer get the error messages. I saw someone else experienced the same success in the comments so I tried that before continuing the other steps. THANK YOU, THANK YOU, THANK YOU! I hope I can move forward without ever needing those other steps but at least I know the article is here if I need it!

    ReplyReport
  2. DB

    Option 1 worked like a charm! I had to use Rkill instead of Comofix as it does not work with Windows 8.1 Also if you are within a domain there is no free option for HitmanPro (I skipped this step) Thank you for the guidance….

    ReplyReport
  3. Sprdave85@gmail.com

    One of the most comprehensive collections of tools I have seen in a long time. Thank you for posting.

    ReplyReport
  4. Niku

    Finally!!!! I was 30-sec close to restoring my computer.. I’m no way near being a computer genius, so option 1 worked like a charm!! I’m SUPER ecstatic!! Thank you for your simple step-by-step process.. Truly appreciate it! You jus saved me $400.. Works like a charm ;)

    ReplyReport
  5. Paul

    Very grateful to you, Stilian, for what you’re doing. I think the Option 1 steps have cleared the Zero Access trojan from my laptop – it showed up early on in ComboFix. However, I made a stupid mistake with your instructions about renaming the Windows Defender file – I ran all the scans with the file renamed, and only went back to the normal name afterwards. So Defender still doesn’t have its full icon in Control Panel, and I still can’t download files in Internet Explorer (though I can at least open the Defender folder and see the list of files in it). I’ve tried giving it back its original name and re-running ComboFix (no problems reported) and Services Repair. But the problem isn’t solved. Is there anything more I can do?

    ReplyReport
  6. Michelle

    Oh my goodness!!! My computer is free from this terrible virus. I followed Option one step by step and it worked like a charm. My firewall is turned on and everything. I have been working on this for a week now. Cannot thank you enough.

    ReplyReport
  7. Shunamit Cherut

    Dear Stelian,
    Thank you so much for this manual, it takes time but it soooo worth it!!
    a million thanks, you are a life saver!!

    ReplyReport
  8. Luke P

    Thank you soooo much!!! Worked a treat!! Long process but instructions were spot on and accurate. Highly recommended even for the not so computer literate out there.
    Thanks again!!

    ReplyReport
    1. Stelian Pilici

      In reply to bren

      Hello,
      Yes, you can delete/uninstall any utilites that we have used to remove this infection.

      Stay safe!

      ReplyReport
  9. HM

    I just rename the windows defender without doing the other steps and now I can download what I want !!

    ReplyReport
    1. Stelian Pilici

      In reply to HM

      Hello,
      Please go ahead with the other steps as the infection is still present on your machine. This is a very serious piece of malware, so as soon as you get rid of it, the better it is.

      Stay safe!

      ReplyReport
  10. SueT.

    My troubles started with the FBI moneypak virus and I thought this “file deleted” started from that virus. So, when I fixed the FBI virus I thought I was OK. But I tried to download a day later and couldn’t. I tried RKILL and then ran malwarebytes. Ran it in safemode had to use a USB flash drive to run the programs. That didn’t fix the problem. Then I found your blog. Option 1 seemed to work I still had to use a USB flash drive to run COMBOFIX. Its took hours to run and I don’t think it turned off my internet access. At the end it wouldn’t completely shutdown. It was shutting down for hours. So I forced it and then it took a long time to do the report. I downloaded rougueKiller but when I double clicked on it, it wouldn’t run. So I ran Malwarebytes and found no threats. And every thing seems to be okay. I hope. I have Norton 360 and don’t really understand how I got this. But it fix the FBI moneypak and not the this.
    Thanks for you Tips.

    ReplyReport
  11. Stelian Pilici

    Hello Rick,
    Indeed, this is one of the most stubborn infections to remove. The worst part is that the infection is very wide spread, and as you’ve seen, the removal process is time consuming.

    Stay safe!

    ReplyReport
  12. D. King

    Thanks for this great information Stelian. I followed the plan step by step and it worked perfectly. One less headache to worry about. You da man!

    ReplyReport
  13. Mash

    Trying option 1 renamed windows defender as described, when I move to the next step Roguekiller it says the link contains a virus and was deleted, then go to step 4 run as described tick everything and remove then go to step 5 and hitmanpro has the original virus message hitmanPro.exe contained a virus and was deleted.
    So the only one I can run is Malwarebytes but it does not seem to be removing the virus on its own. Any advice greatly appreciated

    ReplyReport
    1. Stelian Pilici

      In reply to Mash

      Hello,
      Lets try to enable the Admin account, and clean up your computer from this account.

      1.Open the Command Prompt window by clicking the Start button, clicking All Programs, clicking Accessories, and then right-click on the Command Prompt icon and select ““Run as administrator”
      2.Now type the below command:
      net user administrator /active:yes
      3.You should see a message that the command completed successfully. Log out or restart your computer and you’ll now see the Administrator account as a choice.
      4. After you have chose to login into the Administrator account, run a scan with all the tools from OPTION 1.
      5. Once this process has been completer, you can then log back in into your regular account.
      Stay safe!

      ReplyReport
  14. husker_dick

    Option 1 worked great for me. Disabling antivirus programs was harder than it sounds. I wasn’t sure if there might be some running I didn’t know about. Mcafee said it was disabled, but Combofix alerted me that it was not. I finally just went ahead and ran Combofix and ignored the warning. Luckily it ran with no problems although it took at least a half hour and wasn’t sure it was actually doing anything – just takes patience. The full Malwarebytes scan took about 4 hours. Before running I checked a thumb drive with Malwarebytes and it had the same 2 unremovable registry issues my hard drive had. I’ll need to check the drive I have my backup data on to see if it is also infected. I can just reformat the thumb drive, but I’m not sure how to apply option 1 to my backup drive. Maybe just connect it and rerun all of option 1?

    ReplyReport

Report a comment

Reports are private and reviewed by a moderator.

Written by

Stelian

Stelian leverages over a decade of cybersecurity expertise to lead malware analysis and removal, uncover scams, and educate people. His experience provides insightful analysis and valuable perspective.

61,141 articlesWriting since 2011
More from Stelian →

MalwareTips community · since 2009

Stuck on a step? 75,000+ members can help you for free.

Post your question on the forum and our volunteer malware removal experts will walk you through it, step by step.

75K+members
999K+forum messages
100K+forum topics
17+years online

Previous

Remove “Mise à jour Media Player maintenant” pop-up virus

Next

Remove ReactivePlayer.com pop-up virus (Removal Guide)

Share