by fXmBeWm3TQ · 5y ago · 0 comments
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.
$ 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.
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.
I have looked into this a bit and there doesn't seem to be any reason age could not have a recovery utility. It would involve some minor brute forcing to find the next block and block number. It could even skip any 64k block that failed the integrity check so that only authenticated data was recovered. That would be consistent with the general principle about not releasing unauthenticated data that age was created to enbody.