How to remove a malware from the time machine backup?

A malware file has been found on my mac. i can delete it but it remains in my time machine backup. how do i remove it and all backup copies from the time machine backup?


[Re-Titled by Moderator]

Posted on Jul 1, 2021 11:36 AM

Reply
37 replies

Jul 2, 2021 6:57 AM in response to etresoft

The router is new and the archive is not. The malware file was detected on both the Mac HD and the TM archive. So it did do the job of finding it in a place where it could potentially cause harm.


As I cannot remove the file from the archive, which I think is crazy, I have deleted the archive altogether and created a new one based on the content of my Mac at the present time.

Jul 2, 2021 2:02 PM in response to Old Toad

Unfortunately that feature has been removed in Big Sur. It seems the only way to delete a file from a big Sur time machine backup it to delete the entire backup set.


Thats it for me on this topic. I just have one comment to people. Don’t be so aggressive. I asked an innocent and legitimate question about the functionality of a piece of apple software just to be met with a tirade on the pros and cons (none it seems) of malware detection software - completely irrelevant to my question and not any opinion I sought.

Jul 2, 2021 11:33 AM in response to babowa

The point is nothing to do with the fact that the file was flagged as malware. It is the point that files which have been backed up to time machine cannot be removed from that backup.


it is that simple. Talking about Apple’s security an resilience to malware or viruses is irrelevant to my initial question.


I deleted my time machine backup and created a new one today. Drastic measures to delete ONE file.


But it does mean time machine cannot be used in Europe to back up files containing personal data. It is a requirement by law that such files are removed from ALL systems once they are no longer legitimately required by the business.

Jul 2, 2021 12:49 PM in response to electrician1982

GDPR doesn’t protect purported or actual malware.


Anti-malware detection tools routinely encounter false positives. Routinely.


Time Machine can delete specific files from existing backups.


Time Machine can be configured to not back up certain files, or to not back up certain devices.


Run the suspect file through VirusTotal, and see if any other tools flag the file, and whether the other reports (if any) are sensible and consistent, or—and as routinely happens—bogus, such as some ancient Windows malware mis-detection within a macOS app file or macOS document.


As for what I’m reading in this thread, you will also definitely want to discuss this whole matter and data retention in general with legal counsel, as some of what I’m reading in this thread seemingly conflicts with my understanding of GDPR requirements.


Send your Time Machine feedback to Apple > Product Feedback - Apple


Jul 1, 2021 10:12 PM in response to electrician1982

Hi there!


I would, personally uninstall this Netgear antivirus completely, and just install and run this:


https://www.malwarebytes.com/mac


(There is a temporary free version you can run as well).


Otherwise, If you are careful online, keep your Mac updated, as they come, and restart your Mac every now and then, it should be just fine. And chances are, after uninstalling your anti virus, the un-necessary pop ups will stop.

Jul 2, 2021 10:45 AM in response to electrician1982

electrician1982 wrote:

Isn’t it strange that a request to deal with a misgiving in the Apple Time Machine backup software has. There could be many legitimate reasons to do so, including compliance with European GDPR rules which govern how long personal data can be kept.

All of which is completely irrelevant because there is nothing you can do about it. If it is a problem, use another backup solution.

Jul 2, 2021 10:53 AM in response to electrician1982

electrician1982 wrote:

Is is being reported at malware every few hours by NETGEAR Armor security. Even if it can’t do any harm in time machine, it is annoying to get the threat notifications constantly.

That's also part of your problem. First, there is no reason to ever install or run any 3rd party "cleaning", "optimizing", "speed-up", anti-virus, VPN or security apps on your Mac.  This user tip describes what you need to know and do in order to protect your Mac: Effective defenses against malware and other threats - Apple Community.  


There are no known viruses, i.e. self propagating, for Macs.  There are, however, adware and malware which require the user to install although unwittingly most of the time thru sneaky links, etc.   


Anti Virus developers try to group all types as viruses into their ad campaigns of fear.  They do a poor job of the detecting and isolating the adware and malware.  Since there are no viruses these apps use up a lot of system resources searching for what is non-existent and adversely affect system and app performance.


There is one app, Malwarebytes, which was developed by a long time contributor to these forums and a highly respected member of the computer security community, that is desshoigned solely to seek out adware and known malware and remove it.  The free version is more than adequate for most users.  


Also, unless you're using a true VPN tunnel, such as between you and your employer's or bank's servers, they are useless from a privacy standpoint: Public VPN's are anything but private.  


Jul 2, 2021 12:12 PM in response to Yer_Man

I did choose to delete the entire backup set today but not because I wanted to. Of course I could have lived with the single suspect file being in that backup.


Seriously, Apple have made a big mistake here. Organisations will not be able to use time machine backups in Europe if they handle personal data. A simple mailing list must be deleted once it has been used. So, if I’m running a direct marketing campaign that will span some weeks, I cannot back my files up using Time Machine as I would fall foul of the law when I couldn’t delete those files on completion of the campaign. My only option would be to delete a complete backup set and start a new one. That sounds like a flaw in the backup solution to me.


[Edited by Moderator]

Jul 2, 2021 4:44 AM in response to electrician1982

All AV garbage is garbage. It’s really not arguable. It does absolutely nothing useful, but causes more harm than any malware.


I need to upgrade my router, and if there is no way to disable that garbage, I can leave Netgear products out of the search.

I would actually think the inability to delete files from TimeMachine backups is the issue here

That ship has sailed. There is no way to do that, likely due to using snapshots for the backup.

Jul 2, 2021 7:26 AM in response to electrician1982

electrician1982 wrote:

A malware file has been found on my mac. i can delete it but it remains in my time machine backup. how do i remove it and all backup copies from the time machine backup?



Third party AV is not recommended— it typically does nothing but add issues, false positives, etc to the macOS and competes directly with Apples own built in security.



Apple uses its Software Update service (which also drives system software updates that show in the App Store or via the softwareupdate command-line tool) as a mechanism for installing “background and critical” updates that are installed silently in the background with no notifications to the user.



Gatekeeper mechanism, central to security services, which tries to ensure that any code loaded is ‘safe’. Code signatures are only part of this.


XProtect checks the security and integrity of files, including in broader ways too, vulnerable document types, such as JPEG images, are also screened to ensure that they’re not malicious.


Apple’s Malware Removal Tool (MRT) an app which often complements XProtect’s signature-based screening, and can automatically remove all traces of many different species of malware.


System Integrity Protection (SIP) which ensures that nothing can tamper with key system files, or even Apple’s bundled apps.







macOS - Security - Apple https://www.apple.com/macos/security/

Apple Platform Security - Apple https://support.apple.com/guide/security/welcome/web


Jul 2, 2021 10:19 AM in response to steve626

Isn’t it strange that a request to deal with a misgiving in the Apple Time Machine backup software has turned into a slagging match of NETGEAR!


The fact is, not being able to delete a file from an archive is nonsense. There could be many legitimate reasons to do so, including compliance with European GDPR rules which govern how long personal data can be kept.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to remove a malware from the time machine backup?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.