OTP is typically used to increase security of login process by using an additional factor. Depending on the threat-level, you can store OTP tokens separately from login and password.
Most threats are mitigated by storing otp tokens in your "Git-Passwordstore" next to your login & password. An entry may look like:
gopass show git-passwordstore/website/yourLogin
Will result in
yourPassword
---
login: yourLogin
url: https://website.com
totp: YourOtpTokenBase32Encoded
You can generate your otp code with
gopass otp git-passwordstore/website
897402 lasts 17s |-------------=================|
For protection against exposed "Git-Passwordstores" you can use a "Local-Passwordstore" to store your otp-tokens. Entries may look like:
gopass show git-passwordstore/website/yourLogin
will result in
yourPassword
---
login: yourLogin
url: https://website.com
gopass show local-passwordstore/website/yourOtp
will result in
otpauth://totp/Website:yourLogin?secret=YourOtpTokenBase32Encoded&issuer=Website
You can generate your otp code with
gopass otp local-passwordstore/website/yourOtp
897402 lasts 17s |-------------=================|
- Shop-Hacker-Kid: Buys pawned credentials.
- Organised-Crime-Hacker: Uses phishing, may hack your git server.
- Customs-Officer-Hacker: Copies your hard drive, may ask for your facebook password.
- Intelligence-Hacker: Break in to your flat physically or hack your computer remote, may place a key logger.
- Shop-Hacker-Kid tests bought credentials for your account on "Website".
- Mitigated by using otp (both password store locations are secure enough).
- Organised-Crime-Hacker phishes your "Website" login and password.
- Mitigated by using otp (both password store locations are secure enough).
- Organised-Crime-Hacker hacks your git server and gets a clone of your Git-Passwordstore.
- Mitigated by using otp in your Git-Passwordstore as long as your gpg-key and passphrase is unexposed.
- Mitigated by using otp in your Local-Passwordstore.
- Customs-Officer-Hacker copies your hard drive.
- Mitigated as long as your hard drive is encrypted
- Mitigated if your passphrase remains unexposed.
- Intelligence-Hacker copies your hard drive, places a key logger and after some weeks reads all your keyboard inputs.
- Only a not exposed hardware otp token will mitigate this threat.