I have read quite a few posts about preventing account password takeover from various malicious ways, and many OPSEC measures are there to prevent it from happening.

Consider a case where you face a total blackout or technical failure. Now, you need to log in to your password manager, which requires either OTP on email or TOTP. You don’t have access to the TOTP app because the backup is stored in cloud storage, whose email login also requires OTP.

How would you prevent such from happening?I haven’t found a satisfactory solution or explanation for that yet.

  • Katlah@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    33
    ·
    edit-2
    2 years ago

    You backup your 2FA locally. Problem solved.

    If you’re using the cloud for anything related to security you’re doing something wrong. (In my opinion)

  • RageAgainstTheRich@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    2 years ago

    Oh this is a good post for me! This happened to me. I had my pc drive encrypted so when it boots, i need to provide it with the password before it boots my OS. I use bitwarden to store my passwords and my bitwarden needs my 2FA code to unlock.

    I wanted to install the newest version of LineageOS on my phone so i backed up everything to my pc and made sure i had everything backed up properly.

    Then i wiped my phone and downloaded the new LineageOS iso and had to put it on my phone using ADB. But it had an issue to where it wouldn’t detect the phone. So i thought “Let me reboot my PC real quick because that might fix it.”

    Presses reboot… "Please type your password to decrypt your harddrive: "

    Fuck…

    I have never had a worse panic attack in my life. EVERYTHING was on that drive. My work, my photos, my bank info, my entire life was on that encrypted drive.

    But my password was on bitwarden. And to unlock bitwarden i needed my 2FA. Which i had backed up on my drive… which was now encrypted and i couldn’t unlock anymore.

    I absolutely fucking lost it.

    I dug through the entire house and after almost 8 hours of searching i found one of my old laptops in a box in the attic. I suddenly i got the idea that MAYBE i had once backed up my phone stuff before because i ran the phone OS it came with and i then at one point installed LIineageOS.

    I dug through every single folder and suddenly i found an old vault backup of the two-factor authenticator UNENCRYPTED app that i had used before.

    I send it to my wife’s phone and imported it into the app. The ONLY account that was on there… was bitwarden.

    After almost 14 hours of pure stress and panic, i was able to decrypt my harddrive.

    So my PERSONAL advice is ALWAYS store a physical backup.

    I don’t want to go through that stress ever again.

  • m-p{3}@lemmy.ca
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    2 years ago

    One trick is that you can enroll your TOTP codes on more than one device, the only thing the device need is the clock to be synced to provide the correct code.

    You can store your TOTP codes in many places:

    • A mobile app like Aegis (Android) or 2FAS (Android, iOS). Those even offer a way of backing up your TOTP codes, but you need to take the proper measure to store them safely.
    • A password manager that can handle TOTP like Bitwarden (with a premium subcription) or KeePassXC.
    • A security key like the Yubikey 5 can safely store TOTP keys (up to 32) and generate them through the Yubikey Authenticator app.

    That way you don’t get caught your pants down if one of your device dies, get stolen, etc. Also, keep the recovery keys / backup keys in a safe place just in case of a worst case scenario.

    Keep in mind that your TOTP backup and Password Manager files like KeePassXC can be the weakest link in your OPsec if you’re not careful.

  • RovingFox@infosec.pub
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    Personally I use BitWarden with a unique pain in the ass password that I have written it down somewhere.

    From there I can get back into everything.

  • synestia@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    Export your OTP database to an (optionally) encrypted file on a USB stick and put that in a lockbox/somewhere safe. If encrypting the stick/file: make sure you use a memorized/written down password.

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    I sync my KeePass database to Dropbox.

    I have access to Dropbox on my phone and my desktop. Of I change either I can copy the file to the new device and setup the sync again.

  • vrighter@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    keep a copy of the db on your phone. I set up syncthing so the “cloud” I back up to is just my phone. You can obviously use other methods too for redundancy. I also use keepass, so my database is in my control.

  • kevincox@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    I created a USB with an encrypted copy of my root password to a few people. It also has backups of encrypted passwords databases and some other useful files.

  • solrize@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Now, you need to log in to your password manager, which requires either OTP on email or TOTP. You don’t have access to the TOTP app because the backup is stored in cloud storage, whose email login also requires OTP.

    The mind wobbles. Don’t do what you are describing.

  • grue@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    That’s what generating some backup OTPs (e.g. like this, minus the Google part since this is !privacy) and printing them out on physical paper is for.

  • Yuumi@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    3-2-1 rule, 3 backups, 2 locations, 1 off-site

    but it’s more like 3-3-2 for me tbh

  • JoeKrogan@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    I export my totp from freeotp+. I have it added to keepassxc and sync that with syncthing to multiple devices.

    If I lose the phone I can just import the exports to a fresh app on another phone.

    Another option is use waydroid and backup the VM