calling this format "secure" is not sufficient, here is a review that asked the right questions.
https://neilmadden.blog/2019/12/30/a-few-comments-on-age/
Unfortunately, the age spec doesn’t document its threat model or the security goals it is intended to achieve so I’m having to read between the lines to work out what was intended.
Yeah it's definitely not cutting edge on all fronts. Another issue is that the length of the plaintext is being exposed. Simple padding would help mask that in most, if not all, instances.
It's for the case where you are concerned about malicious modification and the user is expected to not deal with the ramifications of the error message. This case in particular:
$ gpg2 -d backup.tgz.pgp | tar xz
So the modified backup file can do bad things before anyone can stop it because gpg will complete the operation before warning of the modification.
It doesn't have integrated signature support so that in most cases an attacker can use the public key to entirely replace the file and avoid the bother of some sort of known text attack in the first place. So I think that the use case is so narrow as to disappear. The linked article covers this. That is really all there is. It serves best as a demonstration of what an encryption utility would be like that blows up and errors out on a possible modification, as opposed to completing the operation and returning the error at the end.
If I've confused this for some other idiosyncratic argument about PGP's "authenticated" encryption, I apologize for scrambling the thread. Probably the top-line response re: PGP is that there might be no cryptographic tool in common use with a less coherently documented threat model than PGP.
Comments (88) 23 threads
Show all comments
Showing thread 15 of 23
https://neilmadden.blog/2019/12/30/a-few-comments-on-age/ Unfortunately, the age spec doesn’t document its threat model or the security goals it is intended to achieve so I’m having to read between the lines to work out what was intended.
It doesn't have integrated signature support so that in most cases an attacker can use the public key to entirely replace the file and avoid the bother of some sort of known text attack in the first place. So I think that the use case is so narrow as to disappear.
The linked article covers this. That is really all there is.
It serves best as a demonstration of what an encryption utility would be like that blows up and errors out on a possible modification, as opposed to completing the operation and returning the error at the end.
https://news.ycombinator.com/item?id=27433186
This is, to put it charitably, an idiosyncratic argument about how data encryption is supposed to work.
I think if we did that, the stupid discussion about GPG and framing its lack of IND-CCA2 as a "recoverability feature" would become moot.
Continue this thread — 2 replies