News for hackers. Stuff that matters.
Re:A receipt printer cured my procrastination by al_borland on Thursday June 12, 2025 @09:28AM (#44257559)
> I'm sure phones are just as stimulating for some.

This is one of my big objections do 2FA. My work has been pushing it hard, and from a security perspective, I get it. However, it’s all via an Authenticator app on the phone. We can no longer set down our phones and simply work. To start working, and periodically throughout the day, we are now forced to pickup our phones to authenticate. This invites the chance to see other notifications, check and app quickly, or more generally, break flow as we have to switch to another device and back again.

All of this seems like a suboptimal solution.

Re:A receipt printer cured my procrastination by jvanderbot on Thursday June 12, 2025 @09:33AM (#44257614)
You should try a CLI-based workflow for 2FA. As long as you can exfiltrate the secret (and you often can by pretending you can't scan QR codes), then you can use oathtool to generate passcodes.

1. use 'pass' to save the secret: 'pass edit work.secret' <enter it and quit>

2. use oathtool to generate 2fa given a secret:

' #!/bin/bash

oathtool -b --totp "`pass show $1.secret`" >&1 '

use it like '2fa work'

If you have 'xsel' you can even do

'oathtool -b --totp "`pass show $1.secret`" | xsel -ib'

to copy it to clipboard automatically.

Re:A receipt printer cured my procrastination by mxmlnkn on Thursday June 12, 2025 @10:02AM (#44257937)
Even if you only have the QR code, you can download the image or screenshot it and then extract the secret without ever having to use a smartphone by using zbarimg and then manually extracting the secret from the URI:

    sudo apt-get install zbar-tools oathtool
    zbarimg qr-2fa-code.png
    
Output:

    QR-Code:otpauth://totp/username?secret=ABCDEFSECRET012349BASE32&period=30&digits=6
If you have some 2FA that you need to enter 10 times per day, then you can also add a global shortcut to automatically paste it. Of course, this undermines the "second device" security. Some PC password managers also support 2FA, e.g. https://github.com/paolostivanin/OTPClient ( sudo apt install otpclient )
Re:A receipt printer cured my procrastination by Gormo on Thursday June 12, 2025 @04:45PM (#44263009)
I have this little one-liner mapped to a hotkey combo:

`bash -c 'xfce4-screenshooter -r -o zbarimg | gxmessage -title "Decoded Data" -fn "Consolas 12" -wrap -geometry 640x480 -file -'`

Works great if you have xfce4-screenshooter, gxmessage, and zbarimg installed. It allows you to draw a box around a screen region, screenshots it, decodes it via zbarimg, and pipes the output into a dialog box with copyable text.

Re:A receipt printer cured my procrastination by pmahoney on Thursday June 12, 2025 @10:37AM (#44258335)
Just to add, 'pass' has an otp extension to simplify this a bit [1]

With that, you can do

    $ zbarimg -q --raw qrcode.png | pass otp insert <some-name>
    $ pass otp <some-name>  # or pipe to xsel
[1] https://github.com/tadfisher/pass-otp
Re:A receipt printer cured my procrastination by chriswarbo on Thursday June 12, 2025 @01:50PM (#44260582)
Heh, I use pass like this; but it's on my (Pine)Phone, so it doesn't solve the parent's original problem ;-)

Although the nice thing about CLI workflows is that I can easily run it by SSHing into my phone (just make sure you set up GPG so the passphrase prompt will appear in your terminal, and not as a popup on the phone!)

Re:A receipt printer cured my procrastination by reddit_clone on Thursday June 12, 2025 @02:12PM (#44260822)
We also have Microsoft authentication that displays a number on the browser and asks you to enter in on the device! :-(
Re:A receipt printer cured my procrastination by roywashere on Thursday June 12, 2025 @03:25PM (#44262099)
My company also uses MS auth + 2fa for everything. Even signing into corporate G-suite :-). But I do not like the Microsoft Authenticator - I previously had issues where it would not show the number - and I was able to switch to a different TOTP provider. It’s a bit buried in the menus but possible
Re:A receipt printer cured my procrastination by svelle on Thursday June 12, 2025 @06:56PM (#44264092)
Unless they have explicitly disabled it even m365 has the option to add a totp 2fa method. Might be worth double checking.
Re:A receipt printer cured my procrastination by dwedge on Thursday June 12, 2025 @12:14PM (#44259425)
If it's Authenticator you can use bitwarden from your browser, that's what I do. If you're using a custom app or something different then yeah it's annoying
Re:A receipt printer cured my procrastination by Sanzig on Thursday June 12, 2025 @09:36AM (#44257645)
Hmm. I wonder if there would be a market for a super simple TOTP authentication device with an e-paper display. Kind of like those RSA tokens with the LCDs, but more modern and able to hold any number of TOTP credentials.

Getting the credentials loaded could be a bit of a pain without a camera for QR code scanning. Easiest solution would be via Bluetooth to a companion app, which you would probably want anyway for periodic time sync (likely wouldn't be worth it to embed a GNSS receiver just to update the time).

Probably be a pretty small market, but as a niche Kickstarter device? I could see a small but loyal customer base.

Re:A receipt printer cured my procrastination by HappMacDonald on Thursday June 12, 2025 @10:03AM (#44257941)
Sounds like a job for a second phone, one which you'd just be extra careful to only use for one purpose. It can be cheap as balls, but it will have a QR-compatible camera and whatever else we may have come to expect from such a device. :)
Re:A receipt printer cured my procrastination by mystifyingpoi on Thursday June 12, 2025 @01:47PM (#44260555)
Yup. Just use a secondary 5-year old phone for dirt cheap. I was actually considering doing it once, but the convenience takes a hit.
Re:A receipt printer cured my procrastination by tigereyeTO on Thursday June 12, 2025 @12:04PM (#44259288)
A yubikey works great for this
Re:A receipt printer cured my procrastination by lazyeye on Thursday June 12, 2025 @02:18PM (#44260956)
I used to use a yubikey but have now moved onto a fingerprint sensor and passkeys. Doesnt work for all sites but does for most of them.
Re:A receipt printer cured my procrastination by worldsayshi on Thursday June 12, 2025 @09:51AM (#44257821)
I would love this, but only if it also successfully implemented a few disparate authentication protocols that essentially do the same things (prove identity) but are regrettably proprietary - like the de facto standard electronic ID in Sweden, BankID.
Re:A receipt printer cured my procrastination by hbn on Thursday June 12, 2025 @10:08AM (#44258008)
Yubikey?
Re:A receipt printer cured my procrastination by Sanzig on Thursday June 12, 2025 @11:37AM (#44259006)
Yubikey does TOTP on-board, but you need to connect it to a phone or computer (no display or on-board power). It solves a different problem, where you want to have your TOTP credentials on a tamper resistant hardware security module. It doesn't solve the "don't want to carry around a phone for TOTP" problem.
Re:A receipt printer cured my procrastination by tigereyeTO on Thursday June 12, 2025 @12:06PM (#44259319)
If you read a six-digit pin from an e-ink display, you have to type it into your computer.

If you grab it from a plugged-in yubikey, you can copy and paste it. That seems way easier

Re:A receipt printer cured my procrastination by bawolff on Thursday June 12, 2025 @02:35PM (#44261273)
This doesnt make sense. If you need a 2FA code then you are obviously using some device like a laptop already. Yubikey totally solves the "need a second personal device" problem.
Re:A receipt printer cured my procrastination by WhyNotHugo on Thursday June 12, 2025 @02:43PM (#44261437)
> It doesn't solve the "don't want to carry around a phone for TOTP" problem.

It does—if you carry the Yubikey you don't need a phone.

Re:A receipt printer cured my procrastination by ValdikSS on Thursday June 12, 2025 @10:52AM (#44258511)
Flipper Zero supports that
Re:A receipt printer cured my procrastination by fifticon on Thursday June 12, 2025 @09:42AM (#44257715)
they exist, in my country they are available as alternative to smartphone apps for identity auth. (ie you can choose between android, iphone, and TOTP LCD device.)
Re:A receipt printer cured my procrastination by billyjmc on Thursday June 12, 2025 @05:33PM (#44263444)
This is nearly what you’re looking for (well, not that close, but it’s got the right spirit):

https://blog.singleton.io/posts/2022-10-17-otp-on-wrist/

Re:A receipt printer cured my procrastination by Aaron2222 on Thursday June 12, 2025 @08:14PM (#44264558)
Re:A receipt printer cured my procrastination by myself248 on Thursday June 12, 2025 @11:18PM (#44265441)
Make sure your GNSS receiver supports OSNMA, and be _extremely_ trusting of your battery-backed RTC and profoundly skeptical of time jumps over a certain magnitude.

GNSS spoofing is trivial now and it's an extremely useful way to manipulate a target device's idea of time, which breaks all sorts of things. (SSL certificate validity periods...)

Re:A receipt printer cured my procrastination by fossuser on Thursday June 12, 2025 @09:45AM (#44257746)
Yubikey nanos are the way out of that specific problem
Re:A receipt printer cured my procrastination by unshavedyak on Thursday June 12, 2025 @10:39AM (#44258366)
I imagine Yubikey doesn't support all the stupid custom-app-2fa that companies push out.

I really wish they'd just stick to classic TOTP.

Re:A receipt printer cured my procrastination by mjfisher on Thursday June 12, 2025 @05:41PM (#44263505)
Is there a way of getting them to store a dozen or so totp secrets? And if so, how do you select which one you want to use?
Re:A receipt printer cured my procrastination by ajolly on Sunday June 15, 2025 @04:10PM (#44284681)
For that use case get an onlykey rather than a yubikey.
Re:A receipt printer cured my procrastination by treetalker on Thursday June 12, 2025 @10:31AM (#44258255)
I imagine you've considered it already, but maybe your work would be willing to put the 2FA secret into something like 1Password, which you could access on your computer instead of your phone.
Re:A receipt printer cured my procrastination by unshavedyak on Thursday June 12, 2025 @10:38AM (#44258341)
Defeats the purpose of 2FA though. I'd argue a cheap 2FA-only phone would be good, if they're struggling to touch their real phone without being consumed by distractions.
Re:A receipt printer cured my procrastination by xanthor on Thursday June 12, 2025 @11:03AM (#44258652)
It does not defeat the purpose of 2FA as possession of the decrypted 1Password vault is the second factor.
Re:A receipt printer cured my procrastination by BobaFloutist on Thursday June 12, 2025 @12:12PM (#44259399)
Isn't that just remembering two passwords instead of one? And isn't two passwords instead of one basically the same as remembering one very long password?

For that matter, how do they prevent you from using the same password for both?

Re:A receipt printer cured my procrastination by InitialBP on Thursday June 12, 2025 @12:30PM (#44259649)
https://news.ycombinator.com/item?id=44259556

I posted another comment explaining why 1Password Vault with both a password and a OTP code is still secure, but in short it does not defeat the purpose. Your vault's are protected and in the situation where someone gets access to your vault it's most likely to be full access to your computer at which point they have other viable methods to get access to a specific service you use.

Re:A receipt printer cured my procrastination by jascha_eng on Thursday June 12, 2025 @04:12PM (#44262637)
Isn't the whole point of 2fa that if someone gets access to my computer they can't do shit because they'd need my phone too?
Re:A receipt printer cured my procrastination by InitialBP on Thursday June 12, 2025 @04:31PM (#44262862)
The “whole point” of 2fa is that even if someone knows your password they cannot login with just credentials.

Compromising or stealing a device is a significant escalation from guessing passwords.

Re:A receipt printer cured my procrastination by 0cf8612b2e1e on Thursday June 12, 2025 @07:27PM (#44264293)
It is also more obvious when your device has been stolen vs just the password.
Re:A receipt printer cured my procrastination by unshavedyak on Thursday June 12, 2025 @12:02PM (#44259268)
Well i'm assuming 1Pass is also storing the password. Ie if it's in the same place for your pass and token, it's 1FA, no?
Re:A receipt printer cured my procrastination by dullcrisp on Thursday June 12, 2025 @12:30PM (#44259650)
No the two factors are something you have and something you know. Not something you have and another thing you have. In this case decrypting the vault requires two factors.
Re:A receipt printer cured my procrastination by unshavedyak on Thursday June 12, 2025 @01:14PM (#44260183)
In my view the factors are attach vectors. If i wrote both my token and my pass down on a single sticky note, it's 1FA. If i have them on two stickies stored in two locations, it's 2FA.

Though i have no idea, that's just how i internalized it over the years. In your 1Pass example, it's a single attack vector (the password of my 1pass) to compromising both the token and the password of the product/server/thing.

Re:A receipt printer cured my procrastination by dullcrisp on Thursday June 12, 2025 @01:18PM (#44260235)
How many feet apart do the two sticky notes have to be before it’s 2FA? :)
Re:A receipt printer cured my procrastination by unshavedyak on Thursday June 12, 2025 @01:39PM (#44260459)
In the spirit of the idea, it would be the attack vector imo. So behind locked doors, buildings, safes, etc.

Eg a hacker can access my computer, even have a clipboard/keylogger on my machine, and have a difficult finding my token if it's on my phone. They need to attack my phone and my computer.

Having them both in your unlocked 1Password vault means if someone walks by your computer they can access your account. A single location with both of your "2FA". If they had a keylogger installed on your machine, they only need your single 1Pass password to breach your "2FA".

Granted i imagine that a Phone TOTP would still be a concern with a keylogger on your PC, since you still enter it on your compromised machine. Still more difficult than the having the totp key though, of course.

Re:A receipt printer cured my procrastination by xanthor on Wednesday June 25, 2025 @10:05AM (#44377502)
You're inventing a new definition of the term 2FA. The problem it was created to solve was the ability of attackers to remotely access services using weak or compromised user passwords. This is relatively low cost to do on a mass scale whereas rooting each individual's computer to compromise their password manager is not.
Re:A receipt printer cured my procrastination by vitro on Thursday June 12, 2025 @10:34AM (#44258283)
Re:A receipt printer cured my procrastination by password4321 on Thursday June 12, 2025 @11:39AM (#44259036)
Taking the 2 out of 2FA since 2017!</sarcasm>

Thanks for sharing a potentially useful tool but I will not use it without a lot more details about how this browser extension secures the 2FA secrets from sketchy websites/ads.

Re:A receipt printer cured my procrastination by BHSPitMonkey on Thursday June 12, 2025 @11:53AM (#44259176)
Most trusted desktop password manager apps can manage and autofill OTPs in browsers as well, e.g. KeepassXC and 1password. (If you're making the tradeoff anyway, I think you may as well use a password manager you already trust with other secrets.)
Re:A receipt printer cured my procrastination by dicknuckle on Thursday June 12, 2025 @10:56PM (#44265359)
keepassxc does great with TOTP codes, but the default client isn't the easiest to add them with.
Re:A receipt printer cured my procrastination by tigereyeTO on Thursday June 12, 2025 @12:02PM (#44259272)
Use a yubikey
Re:A receipt printer cured my procrastination by ambicapter on Thursday June 12, 2025 @09:30AM (#44257589)
Time to get a “work” phone.
Re:A receipt printer cured my procrastination by krustyburger on Thursday June 12, 2025 @12:07PM (#44259330)
The optics of that can be questionable. Just ask Skyler White or her brother-in-law.
Re:A receipt printer cured my procrastination by al_borland on Thursday June 12, 2025 @04:41PM (#44262966)
I carried 2 phones for many years. It was more trouble than it’s worth. Especially these days. Working from home, my only work use of the phone is for the Authenticator app.
Re:A receipt printer cured my procrastination by Tokumei-no-hito on Thursday June 12, 2025 @11:57AM (#44259206)
do you use a pw manager? bitwarden (OSS) has it built in if you pay for premium. i think it's an extra 1-3/mo but well worth it to support the team
Re:A receipt printer cured my procrastination by mcherm on Thursday June 12, 2025 @09:42AM (#44257719)
First of all, I'm not a fan of constantly needing to re-authenticate.

But for your specific problem there is a simple solution that isn't particularly expensive. Buy a new phone. Install 2FA on it, and don't install anything else.

Re:A receipt printer cured my procrastination by GianFabien on Thursday June 12, 2025 @07:57PM (#44264447)
I just use an old phone that I've wiped clean and removed the SIM. Sits on the desk and I just glance at it when I need a new 2FA code.
Re:A receipt printer cured my procrastination by radnor on Thursday June 12, 2025 @09:36AM (#44257649)
For Windows, here's a free little authenticator app that lives in your system tray: https://github.com/richard-green/Authentiqr.NET
Re:A receipt printer cured my procrastination by jaffee on Thursday June 12, 2025 @10:08AM (#44258007)
1Password can be your 2fa and autofill those fields. It has a built in scanner which will look at your screen and read the QR code on the screen (no separate device needed).
Re:A receipt printer cured my procrastination by netsharc on Thursday June 12, 2025 @10:31AM (#44258259)
The comments here have the genre of "2 factor, 1 device"...
Re:A receipt printer cured my procrastination by InitialBP on Thursday June 12, 2025 @12:24PM (#44259556)
Two Factor doesn't mean 2 devices. Two factor generally has been thought of as "something you know, and something you have."

Let's do a quick threat model on putting both passwords and MFA tokens in a 1password vault.

1Password employees a recovery key + password login by default, and logging into a vault requires you to either have a device with the encrypted vault on it and your password, or have knowledge of your password and knowledge of your recovery key (normally in a file which makes it something you have) essentially traditional 2fa needed to log into a new device.

If someone steals your phone with 1password installed - they need your 1password to be able to access your credentials on the physical device. At that point they already have both your factors - your phone (have) and your password (know) - still protected by 2fa.

If someone manages to fully root your computer, they could wait until you unlock your vault and then extract your credentials. However, if you use traditional 2fa on a separate device - then they can just wait until you log into the target app, and then ride your session and get the same level of access to the target. While there may be a small difference in level of effort or how long it takes, the same access level is possible, and the requirements are that they have very privileged access to your operating system. Someone rooting the device that you login to services is grants them "single factor" access to your services when you access them.

There is some subtle differences between these, but except for situations where you have very high privileged requirements, at which point you should be using yubikeys or standalone MFA devices, using 1Password with OTP and password is very comparable to using a separate device for MFA.

I'm a previous red teamer and currently a blue teamer.

Re:A receipt printer cured my procrastination by dullcrisp on Thursday June 12, 2025 @12:42PM (#44259801)
It was never meant to be two device authentication.
Re:A receipt printer cured my procrastination by thenaturalist on Thursday June 12, 2025 @09:36AM (#44257652)
Get a Yubikey or similar, have a USB port close, one finger tip, done.
Re:A receipt printer cured my procrastination by dckx on Thursday June 12, 2025 @09:51AM (#44257823)
> However, it’s all via an Authenticator app on the phone.

Why not save the secret on your laptop and generate the OTP on your laptop?

Re:A receipt printer cured my procrastination by joombaga on Thursday June 12, 2025 @06:46PM (#44264014)
I use MS Authenticator for work too. It doesn't do standard TOTP, at least not for Entra. The QR codes don't contain the secret. IDK that anyone has been able to exfiltrate a secret and generate codes with a third party app.

I personally use an Android emulator on my laptop, which achieves the same goal. It saves and restores state automatically for quick startup.

Re:A receipt printer cured my procrastination by mattbee on Thursday June 12, 2025 @12:36PM (#44259727)
Re:A receipt printer cured my procrastination by umvi on Thursday June 12, 2025 @01:00PM (#44260006)
Get a keyboard with a usb port on the side. Insert yubikey nano. Now instead of annoying 2FA you just reach your finger over and touch.
Re:A receipt printer cured my procrastination by chairmansteve on Thursday June 12, 2025 @01:01PM (#44260023)
You can use the Freedom app.

url freedom.to

Or just disable notifications. The iphone has a do not disturb mode that can be scheduled.

Re:A receipt printer cured my procrastination by bwestergard on Thursday June 12, 2025 @01:17PM (#44260227)
In my union contract we have language that requires the employer to provide us with a hardware 2FA token for just this reason. I and some of my coworkers don't use smartphones, and we didn't want to be obligated to use one for work.

"So long as [employer's] access management vendor... supports the use of physical two-factor authentication devices (for example, a YubiKey), [employer] shall make such devices available to Employees upon their submission of a request for the device."

Re:A receipt printer cured my procrastination by autoexec on Thursday June 12, 2025 @07:20PM (#44264259)
I've worked in places that wanted to push cell phone apps on the team for auth and we also pushed for hardware tokens. It worked extremely well. The concerns we had were mainly centered on privacy since the app wanted location/camera access and apps can (or at least at the time could) get a ton of data from your device without requesting any permission at all like getting a list of every app you have installed, or data from sensors like the accelerometer, gyroscope, compass, barometer, thermometer, etc.
Re:A receipt printer cured my procrastination by lazyeye on Thursday June 12, 2025 @02:15PM (#44260890)
Most password managers (Bitwarden, 1Password etc) have a function for generating TOTP codes.
Re:A receipt printer cured my procrastination by jklinger410 on Thursday June 12, 2025 @02:29PM (#44261163)
It's not your job's responsibility to cater to your lack of self control
Re:A receipt printer cured my procrastination by al_borland on Thursday June 12, 2025 @04:44PM (#44263002)
Even doing nothing beyond the authentication, it is still requiring task switching, changes devices, waiting for codes, entering them, switching back. It’s very disruptive to any type of flow state.
Re:A receipt printer cured my procrastination by yard2010 on Thursday June 12, 2025 @05:03PM (#44263172)
But it's in their best interests.
Re:A receipt printer cured my procrastination by slumberlust on Thursday June 12, 2025 @02:38PM (#44261352)
Why does it have to be an app on your phone? IT should be able to support yubikeys (or similiar) and even printed OTP lists.
Re:A receipt printer cured my procrastination by al_borland on Thursday June 12, 2025 @04:38PM (#44262930)
I see some evidence that yubikeys are used somewhere in the organization, but not sure where or how.

The only information we were sent to get this all setup was specifically for a phone. The portal that exists to add devices only appears to support phones.

I have a co-worker who simply tried to use Authy instead of MS Authenticator and it didn’t work. There is a lot of bureaucracy that typically makes it not worth the fight.

Re:A receipt printer cured my procrastination by icoder on Thursday June 12, 2025 @03:08PM (#44261838)
Reminds me of when I was developing an application 'in' Facebook (when it was mostly friends but with adds for addictive games in the sidebar)
Re:A receipt printer cured my procrastination by yard2010 on Thursday June 12, 2025 @05:02PM (#44263164)
Ever since I disabled all the notifications on my phone my life has been happier. It won't work for everyone (50% of the time it doesn't even work for me), but I can't help but write this anecdote here.
Re:A receipt printer cured my procrastination by haswell on Thursday June 12, 2025 @05:46PM (#44263541)
I'm old enough to have lived through the era of standalone authenticators. The downsides of that approach are also numerous.

I understand where you're coming from though, and I think this is where OS features like Focus Modes come into play.

When I'm in a "Work" mode, I literally don't see notifications from most of my apps. They don't show up in the notification center, or on app icon badges, or anywhere.

This takes a few minutes to set up, but once it's in place, it's fantastic. I also do this for other aspects of my life: Photography, Research, etc. When I'm in those modes, I don't want to see anything except for the apps that are specific to what I'm doing. It's worth the effort of setting this up IMO, and extends far beyond just work.

Re:A receipt printer cured my procrastination by Game_Ender on Thursday June 12, 2025 @07:27PM (#44264298)
Have you tried a smart watch? The Duo 2FA app lets you add an arbitrary TFA code based authenticator with same QR code Google Authenticator supports and generate those from their Apple WatchOS [0] or Android WearOS apps. I have used it successfully for years, it's a huge reason I got an Apple Watch in fact. Now you'll have to configure your watch with a "work" focus mode that turns off all notifications and not install any fancy apps on the watch (do those still exist?), but it can free you from your phone.

Along the same lines the Meta Wayfarer[2] smart glasses lets you take slice of life photos and videos without needing to whip out your phone. You lose a ton of quality but stay in the moment more. The AI features are getting better so eventually you'll be able to use it for basic information lookup.

0 - https://guide.duo.com/apple-watch

1 - https://guide.duo.com/duo-wear

2 - https://www.meta.com/ai-glasses/wayfarer

Re:A receipt printer cured my procrastination by octatrack on Thursday June 12, 2025 @08:00PM (#44264464)
Apple Watch with Authy is a great solution for this. I don’t need to have my phone in the same room to use 2FA.
Re:A receipt printer cured my procrastination by hippari2 on Thursday June 12, 2025 @09:08PM (#44264801)
This is one of the thing that smart watches should be doing, or even better, something like https://blog.singleton.io/posts/2022-10-17-otp-on-wrist/.
Re:A receipt printer cured my procrastination by SlightlyLeftPad on Thursday June 12, 2025 @11:37PM (#44265527)
Invest in a password manager that stores it all, including the rolling codes