Antivirus Deletes Game File: Fix False Positive Fast

Cybersecurity & Malware Beginner 👁 7 views 📅 Jun 24, 2026

Your antivirus wrongly deleted a game file. Restore it from quarantine and tell Windows Defender to leave it alone.

Quick answer

Open Windows Security > Virus & threat protection > Protection history. Find the deleted file, click Actions > Restore. Then go back to Virus & threat protection > Manage settings > Exclusions > Add exclusion > Folder, and pick the game's folder.

Why does this happen?

Antivirus software, especially Windows Defender, sometimes flags game files as threats. This is a false positive — the file is safe, but the antivirus thinks it's dangerous. It happens often with:

  • Cracked or modified game files (even if you own the game legally)
  • DLL files that game mods change
  • Cheat engine tools or trainers
  • Older games that use unusual code patterns

I've seen this with Cyberpunk 2077 mods, Minecraft launcher files, and even Steam.exe once. Defender got aggressive after a Windows update in 2023.

The fix is simple: restore the file and tell your antivirus to ignore that game folder from now on.

Step 1: Restore the deleted game file

  1. Open Windows Security. Click the shield icon in the system tray, or search "Windows Security" from the Start menu.
  2. Click Virus & threat protection (left side).
  3. Under "Current threats", click Protection history. You'll see a list of recent actions.
  4. Find the entry that says "Threat removed" or "Quarantined" with the game file name. It will look like game.dll or Game.exe. The date and time match when you tried to run the game.
  5. Click the arrow next to that entry to expand the details.
  6. Look for Actions button. Click it, then choose Restore. The file goes back to its original folder. After this, you should see a green checkmark saying "Restored".

Don't skip this step. If you just run the game again without restoring, it'll still crash because the file is missing.

Step 2: Add the game folder to exclusions

This stops Defender from deleting that file again. You only need to do this once per game.

  1. In Windows Security, go back to Virus & threat protection.
  2. Under "Virus & threat protection settings", click Manage settings.
  3. Scroll down to Exclusions. Click Add or remove exclusions.
  4. Click the + Add exclusion button, then choose Folder from the dropdown.
  5. Browse to the game's installation folder (like C:\Program Files (x86)\Steam\steamapps\common\YourGame or C:\Users\YourName\AppData\Local\YourGame).
  6. Select the folder and click Select Folder. Now you'll see it in the exclusion list.

Wait, you're not done yet. After adding the exclusion, close Windows Security and try running the game again. It should launch without errors. If it still crashes, restart your computer first — sometimes Defender holds a lock on the restored file.

Alternative fix: Use a different antivirus

If you use third-party antivirus like Avast, McAfee, or Malwarebytes, the steps are similar. You need to find the quarantine section and add an exclusion for the game folder. Here's a short guide:

  • Malwarebytes: Open the app > Detection History > Quarantine > Restore. Then go to Settings > Allow List > Add > Allow folder.
  • Avast: Open Avast > Protection > Virus Chest > find the file > right-click > Restore. Then go to Menu > Settings > Exceptions > Add exception > folder path.
  • McAfee: Open McAfee > PC > Real-Time Scanning > Excluded Files > Add file. You'll need to restore from quarantine via the security history tab first.

If you can't find the file, search for "quarantine" in the antivirus's help menu. Every tool hides it in a different spot, but it's always there.

When this fix doesn't work

Sometimes the file gets deleted before you can restore it — especially if the antivirus was set to "Delete" instead of "Quarantine". In that case:

  1. Check if the game has a repair tool. Steam users: right-click the game in Library > Properties > Local Files > Verify integrity of game files. This re-downloads missing files.
  2. For Epic Games Store or Battle.net, go to the launcher's settings and find "Repair" or "Scan and Repair".
  3. If there's no repair tool, uninstall and reinstall the game. That's a pain, but it's the only way to get the original file back.

One more thing: If you're using a cracked game or a modded file, the antivirus might still flag it after you restore it. In that case, add the exclusion before you restore the file — while it's still in quarantine. That way Defender won't touch it again.

Prevention tip: Set up exclusions before you install

The real fix is to stop the problem before it starts. When you install a new game, especially one with mods:

  • Create a folder for your games outside of the Program Files directories. Use C:\Games\ or D:\Games\. Defender is less aggressive with folders it doesn't watch as closely.
  • Add that whole Games folder to your antivirus exclusions. Takes 30 seconds, saves you hours later.
  • If you're modding, add the mod manager's folder too (like Vortex or Mod Organizer).

I've been doing this for years, and my false positive count dropped to zero. Don't trust your antivirus blindly — it's a tool, not a brain.

Was this solution helpful?