Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> What process does npm use to make sure my new key is valid? Can a person with control over my email address fake that process?

It seems there should be some multi-factor process.

Developers need to register a password, an email address, and a YubiKey/TOTP token. If they lose access to the email address, they can log in to their account with the password and token. If they lose the token, they can be issued a new one with the email and password (or recovery codes).

As long as the account stays secure (i.e. an attacker doesn't manage to keylog the developer's NPM password and email password) then the NPM account can be trusted to add new package signing keys. The npm client then needs to trust metadata from NPM which vouches for these new keys.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: