Protection against Ransomware by Pulling Backups

As I got the idea of duplicacy correctly it pushes backup to a backup server (or destination).
This makes it vulnerable to ransomware because all necessary data (password/certificate) is stored on the machine where the source files are located. This makes it possible that an attacker can delete all backups on the remote backup server.
Is there any possibility (which I may have overseen) to pull backups instead of pushing them?
The only idea I have so far is to automatically mount a network drive from the source system to the target system and then trigger a backup. But this is only a workaround.

Nobody? Just let me know if me thoughts were right or wrong :wink:

There are some points to evaluate:

  • If the storage is going to “pull” backups, then it has to be something with processing capabilities (to execute :d:) and not just storage. Then it will also be vulnerable to attacks (including ransomware).

  • This “storage with processing” will have access (even if read only) to your original (unencrypted) files.

  • There are ways to set up storages to only accept new files, and not accept edits or deletions.

Due to these and other reasons, I think the “push” setting is safer.

1 Like

Hi!
(Assuming the pulling server is safe) the pull idea is a pretty good one.

Similiar topics (but perhaps not with this ransomware angle) has been discussed here:

You could disable storing the storage passwords in the storage, using the no_save_password option and only manual backups. Malware would not be able to access storage unattended.

@towerbr, options for immutable storage is a good one! (where available)
Perhaps one could have one cloud account with only add (for scheduled tasks) and another for management of the same data. (should you ever need it) (which one does) (ever so often!)

Pull-based backups can be a pretty good strategy but unfortunately Duplicacy’s current design doesn’t allow it and I don’t see that changing, or even needing to change, as there may be better ways to mitigate against ransomware imo…

Before Duplicacy, I was using another backup tool for backing up client’s data - dirvish.org, which is basically a Perl wrapper script around rsync and implements snapshots via *nix hardlinks. In fact I still use it for backing up cPanel websites over ssh. That tool is pull-based, and works quite well.

But you have the security problem of exposing access - potentially over the internet - directly to the machine to be backed up. Now this is fine if you know how to set up ssh/sftp with public/private key authentication (and keep everything patched!), but if you have a lot of endpoints…

Theoretically, you could combine such a system with Duplicacy. Use Dirvish/rsync to pull data and Duplicacy to backup that sync’d repository locally. Of course you’d need at least double the space. Or you could mount a remote repository with sshfs and back it up directly with Duplicacy.

Personally, I think it would be feasible to lock down a sftp server such that it would only allow chunks and snapshot files to be written (once) and not deleted. i.e. WORM (Write Once Read Many).

I haven’t tried this approach yet. For a start, I don’t think OpenSSH can do it. Also, I suspect Duplicacy uploads chunks and then renames them into place, so the permissions may need to be tweaked, and is it truly WORM if renames are allowed? Perhaps it would have to be combined with a special WORM-like filesystem and/or filesystem snapshots to protect the storage, so the worst an attacker could do is rename chunks and you’d still be able to recover thanks to periodic filesystem snapshots.