here are my thoughts on a possible approach.
it seems the concerns center around validating the keys.
solution 1 (generate new keys):
- i could add a functionality for regenerating keys.
- add functionality for exchanging the keys in various ways (qr, email, text, nfc)
- the remote peer app can import this file and update the contact’s keys.
solution 2 (validate keys):
- A generates hash of B’s public key
- A sends a link to B (through some trusted medium)
- link opens app validation page with the public key hash encoded in the url
- B generates hash of own public key (related to A)
- B is displayed “success response” if the hash is valid.
- (and vice-versa if wanted)
Spend some time trying to break your own system
i sure try, but im sure i’ve developed a bias about it being secure and so i might not be seeing all the possible scenarios. this is why feedback is important for me at this stage of development.
thanks for the link to that spec. it looks like it would be pretty unique between applications that have this type of spec. can you tell me what that kind of document is called?
i was recently pointed to something called ProVerif it seems to have a way of describing an implementation and it has some functionality to validate/detect security risks. ive only just come across it and and while it sounds too good to be true, it looks appropriately complicated. do you have any thought on it (or other tools like that)?
i added a section in the contact details page for validating public keys hash.
the experience could be improved in several ways with things like qrcodes, but for now, i think its a nice addition.
i will try set aside some time for proverif. im also investigating what is needed for CISA certification. even without the certification it’ll be interesting to see what i can do to security audit my own code (even though it looks like without and objective observer, the assessment isnt valid… but i could share it and someone else could say it looks good. and the overhead for them to assess my app could be less)