Giter VIP home page Giter VIP logo

Comments (2)

jasperweiss avatar jasperweiss commented on June 10, 2024 1

My mistake, I figured CryptoKit would have a function for generating/storing non-exportable symmetric keys for use with HMAC but it seems public key elliptic P-256 is the only supported key type and it is expected that applications use that to protect other secrets which are then used outside of the enclave which indeed does not produce the same security properties.

I agree with your conclusion that doing it outside the enclave wouldn't be right because it would be misleading users into thinking that it's equivalent to a physical key security wise. I'm actually glad you take a hard stance on such issues because otherwise you end up doing silly things like end-to-end encryption using unverified JavaScript in the browser like so many other products.

Much appreciated! Have a great day

from keepassium.

keepassium avatar keepassium commented on June 10, 2024

The very point of a hardware key is that:

  1. it must be present,
  2. it cannot be cloned.

Any app which keeps the HMAC secret on the phone automatically fails the first criterion. The phone becomes the only device required to open a database. So if an attacker shoulder-surfs your database (and/or phone) password, the game is over. With a real hardware key, the database remains perfectly protected.

A "software hardware key" also fails the "cannot be cloned" part. The thing is, Secure Enclave (SE) does not perform HMAC-SHA1, so this would need to be done in software, by the app. Which means that at some point the app would need to have the plain-text HMAC secret in device memory. Which makes it vulnerable to copying. Yes, it would be more complicated than copying a key file, but nevertheless. In contrast, a physical hardware key never exposes the secret to the outer world, making it impossible to copy at all.

To my taste, this level of convenience-vs-security tradeoff is too far from the "security" end. I don't want to enable bad security practices, so KeePassium is not planning any kind of "software hardware keys".

Buying another key with NFC or lightning, and perhaps another one for backup and constantly having to tap your phone with a key is just not something I’d imagine a lot of people would be doing.

Information protection is a spectrum. There are millions of people who think that "letmein" is a good password for all their services. Can they imagine people like us, who don't know their passwords, keep multiple backup copies, use an app to log in to anything, sometimes even pay for that app? And they are right: "letmein" is easy, free and waaaay more convenient. Yet here we are :)

from keepassium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.