Recover a File Quarantined as a Threat by Endpoint Security
For customers whose antivirus or endpoint protection quarantined a file they still need. This runbook helps you confirm what happened, restore the file safely if it is a false positive, and avoid the same interruption next time.
TL;DR — If a file was quarantined, the fastest path is to check your security product's quarantine list in its dashboard or local app, confirm the exact detection name and file path, then restore it only if you trust the source and your team agrees it is a false positive. The most common fix is restoring the file from quarantine and adding a narrow allow rule (an exception that skips future scans for that exact file, folder, hash, or signer) so it is not removed again. Reading time: ~6 min
The scenario
It is the middle of a normal workday and a file you used this morning is suddenly gone. Maybe it is a customer PDF on a shared Windows laptop, an installer your team uses for a line-of-business app, or a script your agency delivered that now disappears every time you download it. You search the folder, check the Recycle Bin, and ask a coworker to resend it, but the replacement vanishes too. Then you notice a security pop-up saying a threat was detected and quarantined.
Symptoms
- The file disappears from its folder a few seconds after download, copy, or unzip.
- You see a notification like:
Threat detected and quarantined
- Or a more specific message like:
Item was moved to quarantine
- In Microsoft Defender or another endpoint security app, the alert shows wording such as:
Detected: Trojan:Script/...
Action: Quarantined
Status: Remediated
- Trying to open the original path gives an error such as:
The system cannot find the file specified.
- Email attachments or downloaded ZIP files fail to save, or save and then vanish.
- Security logs show the original file path and a detection name, often with a timestamp matching when the file disappeared.
Likely causes
| Cause | How common | Quick check |
|---|---|---|
| False positive on a legitimate file | Very common | In your security app or provider dashboard, open Alerts/Detections/Quarantine and compare the quarantined file path to the file you lost |
| File really is malicious or tampered with | Common | Right-click the original download source or ask the sender to provide the SHA-256 hash and compare it to the quarantined file details if shown |
| A broad custom policy or exclusion mistake is triggering on scripts, ZIPs, or installers | Common | In your security product policy, open Malware/Threat Protection settings and review recent policy changes |
| The file is being re-quarantined by another security layer after restore | Sometimes | Restore the file once, then immediately check whether a second alert appears from a different product or service |
| The file was quarantined from email, browser, or cloud sync before it ever reached the folder you expected | Sometimes | Check your mail security quarantine, browser download protection history, or sync service security alerts |
Step-by-step diagnosis
-
Open the quarantine list first.
- Dashboard path: in your endpoint security dashboard or local security app, go to something like Security history, Detections, or Quarantine.
- What to look for: an entry with the same filename, original path, and timestamp.
- This is your problem if: the file appears there with status like "Quarantined" or "Removed".
- Jump to: Fixes → False positive on a legitimate file or Fixes → File really is malicious or tampered with depending on whether you trust the source.
-
Confirm whether the file is known-good or suspicious.
- Cheapest check: ask the sender or your internal team for the expected SHA-256 hash (a fingerprint of the file) and compare it with the file details shown in quarantine, if available.
- Windows local command if you still have another copy:
Get-FileHash "C:\Path\To\File.exe" -Algorithm SHA256
- macOS/Linux local command if you have another copy:
shasum -a 256 /path/to/file
- This is your problem if: the hash does not match a trusted copy, the sender cannot verify the source, or the file came from an unexpected link.
- Jump to: Fixes → File really is malicious or tampered with.
-
Check whether a policy change caused it.
- Dashboard path: open your provider's security policy area, then review Threat protection, Antivirus, Behavior rules, or Custom indicators/exceptions.
- What to look for: a recent change that blocks all scripts, all macros, all ZIPs, unsigned executables, or a whole folder used by your app.
- This is your problem if: the timing matches the first quarantine event and multiple safe files are being caught.
- Jump to: Fixes → A broad custom policy or exclusion mistake is triggering on scripts, ZIPs, or installers.
-
Test for re-quarantine by another layer.
- Restore the file once from quarantine, then watch for a new alert within 1-2 minutes.
- Common second layers: email security, browser download protection, another antivirus product, or a sync service scanning the folder.
- This is your problem if: the file returns briefly and then disappears again with a different alert source.
- Jump to: Fixes → The file is being re-quarantined by another security layer after restore.
-
Check upstream quarantine points.
- Email: open your mail security quarantine in your mail admin portal.
- Browser: open download history and look for blocked or unsafe download warnings.
- Sync storage: check your cloud storage security alerts and file activity.
- This is your problem if: the file never actually landed on disk, or only some delivery methods fail.
- Jump to: Fixes → The file was quarantined from email, browser, or cloud sync before it ever reached the folder you expected.
View as text
[Sender/Download] ---- 1. file arrives ----> [Endpoint]
|
| 2. scan
v
[EDR/AV Engine]
|
3a. malicious -------->|<-------- 3b. false positive
v
[Quarantine]
|
| 4. restore + allow rule
v
[User]Fixes
False positive on a legitimate file
- Restore the file from quarantine in your security product.
- Typical path: Security history/Detections/Quarantine → select file → Restore.
- Add the narrowest possible allow rule.
- Prefer, in this order: file hash, digital signer/publisher, exact file path, then exact folder.
- Avoid allowing an entire downloads folder unless you have no safer option.
- If your product supports submission, submit the file as a false positive to the vendor from the same alert page or vendor portal.
- If the file is business-critical, keep a clean copy in a controlled folder outside Downloads while the vendor reviews it.
Windows Defender local commands if you have admin rights:
Get-MpThreatDetection
Restore-MpThreat
Add a path-based exclusion only if your team approves it:
Add-MpPreference -ExclusionPath "C:\BusinessApp\TrustedFiles"
Verify it worked:
Get-ChildItem "C:\BusinessApp\TrustedFiles"
One-line check: restore the file, reopen the folder, and confirm no new quarantine alert appears.
File really is malicious or tampered with
Do not restore it just to keep work moving.
⚠️ Restoring a truly malicious file can infect the device, spread to shared storage, or expose customer data.
- Leave the file in quarantine.
- Delete any duplicate copies from email, downloads, chat apps, and shared folders.
- Ask the sender for a fresh copy from a verified source, or re-download only from the vendor's official site.
- Run a full scan from your endpoint security app.
- If the file was opened before quarantine, contact support or your security contact to review the device.
Windows Defender local scan commands:
Start-MpScan -ScanType FullScan
Verify it worked: the file remains quarantined or deleted, and a replacement from a trusted source has a matching SHA-256 hash and is not detected.
A broad custom policy or exclusion mistake is triggering on scripts, ZIPs, or installers
- In your security dashboard, open the policy applied to the affected device or device group.
- Review recent changes to:
- script blocking
- archive/ZIP scanning
- unsigned executable blocking
- behavior rules
- attack surface reduction-style rules
- Roll back the recent change or create a narrower exception for the exact app, signer, or path.
- Re-apply policy to the device, then restore the file from quarantine.
If your team manages Defender with PowerShell, list current preferences:
Get-MpPreference
Verify it worked: a newly downloaded or restored copy of the same trusted file stays in place for at least a few minutes and no new detection appears.
The file is being re-quarantined by another security layer after restore
- Identify the second product from the new alert source.
- Examples: browser safe browsing, email security, another antivirus, or cloud storage malware scanning.
- Pause and remove duplicate scanning where possible; running two endpoint antivirus products at once often causes conflicts.
- Add the same narrow allow rule in the product that is doing the second quarantine.
- Restore the file again only after the second layer is addressed.
Common local check on Windows for Defender detections:
Get-MpThreatDetection | Select-Object InitialDetectionTime,ThreatName,Resources
Verify it worked: after restore, there is only one security product reporting the file, or none if the file is approved.
The file was quarantined from email, browser, or cloud sync before it ever reached the folder you expected
- Check the upstream quarantine:
- Mail admin portal: look for Quarantine or Threat Explorer-style areas.
- Browser: open download history and review blocked downloads.
- Cloud storage: open security alerts or file activity.
- Release or allow the file only if it is verified safe.
- Download or sync the file again after release.
- If your endpoint product also quarantines it afterward, return to the earlier fixes and add a matching allow rule there too.
Verify it worked: the file appears in the intended folder and remains there after sync/download completes.
Prevention
- Keep a trusted-file intake process for installers and client deliverables. Store expected hashes in a simple manifest:
{
"BusinessAppInstaller.exe": "3f4d7f0d6b7d0d7f1d2a4d9d0c8d7e6a1b2c3d4e5f60718293a4b5c6d7e8f901",
"ClientExport.zip": "9a8b7c6d5e4f30112233445566778899aabbccddeeff00112233445566778899"
}
- Add a CI check for files your team ships so customers can verify them later:
shasum -a 256 dist/* > SHA256SUMS.txt
- Prefer signer-based allow rules over folder-wide exclusions when your security product supports them. This reduces the chance that an unsafe file in the same folder is also allowed.
- Monitor quarantine events centrally. Create an alert for repeated detections of the same filename or path on multiple devices; that usually means either a false positive affecting many users or a real outbreak.
- Keep business-critical files out of Downloads and temp folders. Use a dedicated folder such as:
C:\BusinessApp\TrustedFiles
Then scope any exception to that exact path, not the whole user profile.
- Document policy changes. Before enabling broad script or archive blocking, test on one pilot device first, then expand if clean. A simple change log entry with date, rule name, and rollback steps saves time during the next incident.
This article was written by an AI system and published pending human review. Verify anything you intend to act on.
Have a project in mind?
Get an instant AI price estimate for it, or talk directly to our team.
One email a month on what we learn building with AI