News for hackers. Stuff that matters.
Re:Restic – Backups Done Right by blattimwind on Thursday October 31, 2019 @04:22PM (#21413308)
Borg's encryption is questionable at best. Performance wise it's not particularly good and probably will never get better because of the large, somewhat complex Python codebase.
Re:Restic – Backups Done Right by lima on Thursday October 31, 2019 @04:53PM (#21413619)
What's questionable about it? It seems that they use modern AEAD ciphers in a reasonable way.

I'm more concerned about the repository format and config file (i.e. attack surface, since the repo is potentially untrusted).

Performance is actually better than Restic, and performance-critical parts of Borg are written in C or use C libraries.

Re:Restic – Backups Done Right by blattimwind on Thursday October 31, 2019 @05:55PM (#21414131)
> What's questionable about it? It seems that they use modern AEAD ciphers in a reasonable way.

No, using one key per repository and a persistent message counter is not a reasonable design.

https://borgbackup.readthedocs.io/en/stable/internals/securi...

Re:Restic – Backups Done Right by Erlich_Bachman on Thursday October 31, 2019 @06:43PM (#21414540)
For what threat model does this matter?
Re:Restic – Backups Done Right by blattimwind on Thursday October 31, 2019 @07:02PM (#21414670)
"When the above attack model is extended to include multiple clients independently updating the same repository, then Borg fails to provide confidentiality (i.e. guarantees 3) and 4) do not apply any more)."

Edit: I've posted this a bunch of times here, pretty much every time it caught my eye when someone said this tool has good crypto, and by now I'm used to people just downvoting it and saying it doesn't matter because obviously no one ever would use it like that and the design is fine etc. (isn't the point of deduplication to save disk space?)

Re:Restic – Backups Done Right by IshKebab on Thursday October 31, 2019 @05:33PM (#21413915)
From OPs link:

> If we perform similar backups to the same remote destination over SSH (Borg) and SFTP (Restic), the initial backups take roughly the same time, but the subsequent incremental backups take something like 10x longer with Restic.

Also I'm wary of encrypting personal backups. I think the chances of me forgetting a password that I used literally once are quite high, and what's the point of a backup if you can't actually access it?

Re:Restic – Backups Done Right by sjy on Thursday October 31, 2019 @10:04PM (#21415695)
I'm worried about that too, but you can deal with it by making the system that automates your backups also test your memory of the password (while still creating a non-interactive backup even if you ignore the prompt). Alternatively, reuse a password that you regularly use offline, like a disk encryption or SSH passphrase.
Re:Restic – Backups Done Right by firepoet on Friday November 01, 2019 @07:27AM (#21417702)
Or use a password manager..
Re:Restic – Backups Done Right by trulyrandom on Thursday October 31, 2019 @05:39PM (#21413976)
I would also like to know more about why you think Borg's encryption is questionable. I'm not familiar with Borg's internals, but there's not much one could do wrong here, as it should just be simple symmetric encryption. Does it not use a strong cipher? Is the cipher used incorrectly? Is the key derivation method weak?