Trojan:Win32/HeavensGate.RPY!MTB is a Microsoft Defender Antivirus detection for a Windows trojan. Keep the affected item quarantined. If the warning appears again, open Protection history and compare the latest event’s time, affected path and action with the first alert. An old quarantine card can stay visible after cleanup. A fresh detection after restart or a file you already ran calls for a full scan and a check for where the file came from.
Microsoft published this exact detection entry in October 2023 and provides no public technical behavior details for it.[1] Use the evidence from your PC to assess what ran and what Defender stopped. The detection name cannot tell you whether files were installed or accounts were accessed.
Check what Defender did with the file
Open Windows Security → Virus & threat protection → Protection history. Expand the entry with the matching name. Note the date and time, Affected items path and status. The full details may require administrator access. On a work or school device, send these details to IT and follow their instructions.[2]

- Action needed: Choose Quarantine and let Defender finish. Review the resulting status before assuming the action succeeded.
- Quarantined: Leave the file isolated while you check its source. For a confirmed unwanted file, choose Remove in the quarantine card. If an untrusted installer or ZIP supplied it, remove that source package without opening it again.
- Threat blocked: Defender blocked and removed the item in that card. Check the affected path and whether you had opened or run another copy.
- Remediation incomplete: Save the path and any error details. Follow the Defender incomplete cleanup guide if the action repeatedly fails.
Is it the same alert or a new detection?
Take this example. Defender quarantines a file inside a ZIP in Downloads on Monday. After reboot, you open Protection history and see the same Monday time, path and status. That is the existing record. If a new card appears Tuesday for a different file under C:\Windows\Temp, Defender encountered another affected item. Save both paths and scan the PC. A new card for the same ZIP after a browser download or cloud sync points you toward the source of the returning copy.
Compare the alert time with the activity just before it appeared. A ZIP that comes back only after sync calls for checking the synced copy. A fresh file at sign-in calls for checking which app or startup process is producing it. Keep the History entries and avoid launching the flagged file to test your theory. If the same file ran before quarantine, another component can remain even after the visible file is isolated.
Scan the PC if the file ran or the alert returns
- Update Defender and run a full scan. In Virus & threat protection, open Protection updates and check for updates. Then select Scan options → Full scan → Scan now. Open Protection history when the scan finishes.
- Check for related files and startup changes. If you ran an untrusted file or a fresh alert returns after quarantine, use Gridinsoft Anti-Malware on the affected Windows PC. Install it from the official download below, update its Threat List, and run a Full scan. Review each finding and its path, apply cleanup to suspicious detections, and restart when prompted. Compare the verification scan and any new Defender events with the details you saved.
- Use Defender Offline if the detection keeps returning. Where available, choose Microsoft Defender Antivirus (offline scan) under Scan options. Save your work first because Windows restarts. The scan runs outside the normal Windows session. If BitLocker is enabled, have the recovery key available and follow Microsoft’s steps for your device. Check Protection history again after startup.[3]
A remaining installer component or startup task may recreate a file after quarantine. A full-system scan can help find that source without asking you to remove unfamiliar Windows components by hand.
If scans keep finding fresh items, save the latest reports and seek help from IT or the scanner’s support team. If you ran the suspect program and see unfamiliar sign-ins or account changes, use a separate trusted device to secure those accounts. Change affected passwords, revoke unfamiliar sessions, and check recovery details.
What if Defender flagged a program you trust?
Keep the file quarantined while you verify the publisher and exact version through the software vendor’s official channel. Ask the vendor for a signed replacement or a published checksum for that exact download. A valid signature helps establish who signed the file. A matching checksum confirms the bytes match the reference you checked. If Defender still flags a verified official release after updating, ask the publisher or your IT team to review it or submit the file to Microsoft as a suspected incorrect detection. Leave Allow on device and exclusions alone while that review is pending.[4]
FAQ
Can I delete the old HeavensGate entry?
Keep it while you investigate. Microsoft says Protection history retains events for two weeks. Judge the result by the last action, the affected path and the outcome of a fresh scan.
Does this alert mean someone stole my passwords?
The label alone cannot establish what ran or which data was accessed. If Defender blocked an unopened download, note the action and remove the untrusted source. If you ran it or find suspicious account activity, check sessions and secure affected accounts from a trusted device.
References
- Microsoft Security Intelligence. “Trojan:Win32/HeavensGate.RPY!MTB.” Published October 16, 2023. Accessed December 5, 2026. Threat encyclopedia.
- Microsoft Support. “Protection History in the Windows Security App.” Accessed December 5, 2026. Protection History documentation.
- Microsoft Learn. “Microsoft Defender Offline scan in Windows.” Accessed December 5, 2026. Offline scan documentation.
- Microsoft Security Intelligence. “Submit a file for malware analysis.” Accessed December 5, 2026. File submission portal.

