Most active commenters

    ←back to thread

    274 points alexmolas | 12 comments | | HN request time: 0.001s | source | bottom
    Show context
    dvh ◴[] No.41085012[source]
    I used totp first time yesterday on GitHub and I don't understand it's point. I had to install otpclient app (from Ubuntu repository) where I typed 4 strings and it spit out one number which I typed back to GitHub. Attacker could do this as well, so the only thing totp does is to prove I can read and write. What am I missing here?
    replies(5): >>41085035 #>>41085041 #>>41085055 #>>41085334 #>>41086875 #
    mercora ◴[] No.41085035[source]
    It's supposed to be on another independent device.
    replies(1): >>41085052 #
    1. deredede ◴[] No.41085052[source]
    Doesn't have to be. While storing them on your computer does not protect you from an adversary with access to your computer, it still protects you against an advrsaey e that intercepts (or guesses, maybe after a breach) your password.
    replies(1): >>41085100 #
    2. 0x073 ◴[] No.41085100[source]
    It doesnt have to be yes, but it's called 2 factor auth because of the reason that your computer is 1 factor and another device is 2.

    It won't protect you from the intention 2fa was created.

    replies(3): >>41085673 #>>41085747 #>>41085847 #
    3. joshribakoff ◴[] No.41085673[source]
    E-mail or sms codes are not 2fa then either, if the attacker has your device (presumably with the e-mail app logged in already and the password saved). But this seems like a dubious distinction, its like saying 2fa is no longer 2fa if the attacker has access to the second factor. Thats not particularly remarkable.

    You can call it 2sv, though. Two step verification. But a user can certainly chose to use in a way that makes it 2fa by storing the totp secret on a dedicated device. The bottom line for most use cases is that it stops people from getting in even if they guess or crack your password.

    With hardware tokens, it still has tradeoffs. What happens when the “user” (read attacker) claims they lost or damaged the yubi key? What factor do you use to verify them before sending a new yubikey in the mail? What happens if someone breaks into the user’s mail? Etc. no method is perfect.

    4. kevindamm ◴[] No.41085747[source]
    The second factor isn't about a second device. It is additional to something you know (password), typically the second factor is something you have (device, yubikey, etc.).

    The idea being that the intersection of {people who can get your password, such as through phishing or other digital attack} and {people who have physical proximity and can steal your physical device} are typically much smaller than the set of people in either category.

    replies(2): >>41085812 #>>41085889 #
    5. ◴[] No.41085812{3}[source]
    6. deltaknight ◴[] No.41085847[source]
    For what it’s worth, whilst your point somewhat stands, generally just 2 devices are not considered 2 factors.

    Usually, the factors are considered as:

    - something you know (e.g a password)

    - something you have (e.g. a device token)

    - something you are (e.g. a fingerprint or other biometrics)

    Single factor with uses just one of these, which is why you can unlock your phone with either a passcode and a biometric with the same level of security (when talking about factors)

    Two factors should have two unique ones of these, and in this case a TOTP generator on the same computer as you are logging in on is fine because the computer counts as “something you have” and the password you enter counts as “something you know”. An attacker who takes your computer still only gains 1 factor (disregarding secure enclaves and password protection etc) and doesn’t have both.

    Of course if an attackers manages to access both your password manager and your TOTP generator (whether or not they’re on the same device), then both factors are compromised because the “something you know” factor has been broken due to the things you know being stored somewhere.

    Of course, the way you practice the security of each of the factors is important and can vary greatly depending on how you effort you want to put in to it. For instance, keeping TOTPs on just hardware tokens which you never keep plugged in protects against your device being stolen.

    7. PhilipRoman ◴[] No.41085889{3}[source]
    >something you know (password)

    Conveniently saved in your browser :) Might not be easy to extract from a logged-out device, but grabbing the device quickly can bypass both "factors" simultaneously.

    Makes me wonder how functions like CryptProtectData protect against physical disk access with hex editor. The hash of the login password can be changed to anything and obviously they cannot access the actual password since it should be destroyed after hashing. So unless TPM is involved I don't see how it can be secure.

    replies(2): >>41088625 #>>41088866 #
    8. Dylan16807 ◴[] No.41088625{4}[source]
    > Makes me wonder how functions like CryptProtectData protect against physical disk access with hex editor. The hash of the login password can be changed to anything and obviously they cannot access the actual password since it should be destroyed after hashing. So unless TPM is involved I don't see how it can be secure.

    It derives a key from your password when you log in. Changing the authentication hash will only let you log in, not figure out what the key was.

    replies(1): >>41088635 #
    9. PhilipRoman ◴[] No.41088635{5}[source]
    Oh that's smart, not storing the password anywhere but using the user as an input source for it.
    10. withinboredom ◴[] No.41088866{4}[source]
    Even if the TPM is involved, it can be cracked. But as with any hack, once someone has physical access to your computer, all bets are off.

    The odds of someone stealing your computer to hack into your accounts instead of simply selling it on eBay are practically zero for most people.

    replies(1): >>41103095 #
    11. fragmede ◴[] No.41103095{5}[source]
    can it really? the abilities of TLAs is unknown, but RSA with a properly sized key isn't known to have many weaknesses. that doesn't mean there aren't any sidechannel attacks but your average thief isn't going to be able to break into an encrypted hard drive on any reasonable amount of time, even if they have physical possession of the device. Or so I'm lead to believe. if you have evidence to the contrary, I'd love to hear!
    replies(1): >>41121775 #
    12. withinboredom ◴[] No.41121775{6}[source]
    https://hackaday.com/2024/02/06/beating-bitlocker-in-43-seco...

    :)