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.
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.
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 )`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.
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-otpAlthough 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!)
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.
If you grab it from a plugged-in yubikey, you can copy and paste it. That seems way easier
It does—if you carry the Yubikey you don't need a phone.
They also do single-token cards: https://www.token2.com/shop/category/programmable-tokens
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...)
I really wish they'd just stick to classic TOTP.
For that matter, how do they prevent you from using the same password for both?
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.
Compromising or stealing a device is a significant escalation from guessing passwords.
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.
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.
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.
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.
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.
Why not save the secret on your laptop and generate the OTP on your laptop?
I personally use an Android emulator on my laptop, which achieves the same goal. It saves and restores state automatically for quick startup.
url freedom.to
Or just disable notifications. The iphone has a do not disturb mode that can be scheduled.
"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."
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.
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.
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
I think humans crave freedom and free time, with good health more than anything else. This frees you up to care about doing things which we feel more rewarding and fun.
Several times you are better off skipping the drills and rituals and just focus on making lots of money as quickly as possible. And of course competing to accumulate more money just for the heck of it is equally demotivating as well. Focus what you want from the money and that is likely to move you along better use of your time and effort.
yeah and i figured thats fine !
I take time spent on HN as an example. I used to think if i limit my HN time to under 10-15 mins a day, would be ideal. But the slippery slope was stopping. It felt rude. And i had no one but myself to get angry on. Weird loop.
I then go the opposite, allow myself to binge. Kinda forced looking at HN every occasion i had a few mins. I get bookmakes to avoid typing the url. Browse on every device. Add comments, browse past lists, front page, best comments, etc. All the dopamine boosts. And I notice the dopamine effect reduces. The fun in comments, upvotes and finding something new just evaporates. A day or two of this makes me sick of the orange banner and the beige background. I delete bookmarks, remove everything. Make a new account to start fresh. Add a rule to block the domain, all out of a natural reaction, mind you.
i dont have real stats but it feels like over 2 years of this, i've spent less time on HN, than before. I'm not constantly fighting myself. It comes and goes in waves, like seasons of nature. Right now its spring and slowly getting into HN summer as explained by my flurry of comments past few weeks.
I’m not a psychologist, but I believe that occurs often, some things just lose that sparkle with the time, and it’s okay, you just need to find a new way to make your task. This article is a good example of how you can do this, and, with some time, change your methods!
Some things require larger blocks of time. For example, you need several days in line to take a vacation; you can't simply take "5 minutes of vacation" every day. Some things are done much better if you dedicate an entire day, or at least a few consecutive hours to them: whether it is learning something new, writing a blog article, relaxing, hanging out with your friends, etc.
It would be more natural to work 16 hours a day when you feel like it, and then take a day off.
- It reduces the subconscious slot-machine mechanic (compared to refreshing a Web page) since I know there won't be anything new in my feed for the next several hours.
- There are also tangible benefits to using a proper feed reader, like only seeing unread items. That also discourages "cheating", since reading things outside of my feeds will require me to mark them as "read" after the next update.
I receive comment-replies via email, filtered into an IMAP folder that refreshes a bit faster than the RSS feed, to allow conversations.
These don't have notifications, but if I'm in the mail reader I can see their unread count (usually zero; and hence can be dismissed with a glance)
Unfortunately, that part of the brain usually sucks at coming up with an alternative plan, and "do something else, anything" is not very actionable. And you still need to pay your bills somehow.
The natural reward for work is work done. I don't need a motivational system to do the dishes. The motivation is seeing the dirty dishes gradually disappear, and the kitchen become cleaner. I don't need to create pieces of papers to represent that, because it is already happening right there, in real life.
If I work on a project, it helps to specify all things that need to be done (as opposed to working on something open-ended), so that I can see how I am getting closer to the moment of "done". A nice thing about test-driven development is that you produce a set of checkboxes first, and then you gradually check them off. Even if the work is open-ended, if I keep thinking about new features that would be nice add, it helps to specify a "version 1.0", and after achieving it, a "version 2.0", etc. The idea is that after each version I can take a break and feel that my work is done.
The least motivating thing is probably the job, as an employee. You work for 8 hours a day (generously assuming no overtime). There is no way to complete those 8 hours in e.g. 4 hours of working harder and then take a walk. In theory, if you do Scrum, you should have a certain reasonable amount of work assigned per sprint, and if you do it faster, then I guess you can take a short break and do something enjoyable (such as refactoring). In practice, almost no one does Scrum by the book; you will probably be randomly interrupted by extra tasks, and given unrealistic deadlines to avoid the possibility of completing the work earlier.
Another demotivating thing about the job is that there is no personal consequence of completing a project; you immediately start working on a new one. The natural response to completing a work is to congratulate yourself and take a break. But at work, the vacations are mostly unrelated to projects. Also, you are paid per time spent working, not by the number of projects finished. So it is all disconnected.
So I guess it all needs to be a part of some greater project, which can possibly be completed one day. Such as, putting your money in index funds, and planning to retire as soon as you reach a specified amount. Then each day you can congratulate yourself for getting 0.01% closer to the goal. (Or you can save money for other specific things, if that is what you desire.)
Man no offense but this sounds devastatingly sad. "We must starve ourselves of fun so that the barest excitement at work feels good."
Don't worry, that rule only applies to poor people!
.
More seriously, how long does it take to stop the dopamine high? Could we schedule our lives so that we would e.g. spend one month doing the most exciting things ever... followed by three days of meditation... which would make us ready for a few months of hard work... and then do it again?
You know, so that we are still productive at work, but don't have to sacrifice most of the joy in life to achieve that.
If not then you're already 'starving' yourself of the purest form of pleasure (which is a good thing, don't get me wrong). I don't think taking one step further is that sad.
Instead, there are many thousands of different substances which can elicit, heighten, prolong or enable pleasure; some illegal, some legal, some included in your favourite meals and snacks.
Even vanilla is a ”drug” which enhances pleasurable feelings. (Vanillin and ethylvanillin are monoamine oxidase inhibitors and consuming them will increase serotonergic and dopaminergic activity)
Yeah, I mean I think we barely know what that would even be. But some drugs come pretty damn close I'd wager, and I'm not talking about vanilla or ethylvanillin.
I think if you've dabbled in opiates, you've come pretty close to what the purest form of pleasure would feel like.
People unable to feel the full spectrum of pleasure sober have quite a different experience, since these substances completely eradicate any pain, grief, anxiety and stress that commonly prevents pleasurable feelings for occurring.
Having had fentanyl for a couple of surgical procedures, I am inclined to disagree. No one should feel that happy after having their colon inflated like a balloon or chunks of metal screwed into their bones.
Like this is clearly not healthy.
When I was a kid, I'd eat Trix cereal. I enjoyed it. Now - I find it sort of gross. It's too sweet. You can reach that same point with cake or pizza or a candy bar, etc. - in that, those foods become sort of gross. Foods like spinach become more satisfying. Not only that, but that satisfaction may yield a higher reward than you ever could with Trix cereal. But you'd never reach that higher level of satisfaction as long as you're eating Trix cereal every day.
That is extremely dependent on an individual's metabolism. When I was young I had hyperthyroidism and could not keep enough weight on. I could, and needed to, consume a huge amount of calories without gaining a pound. Now, my thyroid's burnt out, and my sleep is terrible, and it feels like I gain wait from breathing in air.
More specifically, when TFA talks about difficulty writing an email vs playing hours of video games, I thought it was worth mentioning that 2 hrs of factorio 3 or 4 nights a week might actually dampen the excitement of work a little by providing a perfectly tailored experience designed to engage the part of your brain that your employer would pay your for.
The analogy isn't about "hunger is the best seasoning" (although isn't that an apt colloquialism !), the analogy is insulin resistance is something like "dopamine resistance" both take consistent large over indulgences or poor decisions (however socially acceptable!) to cause a runaway effect which degrades "health".
Hope that's clearer. It's about establishing healthy habits not starving oneself.
Self-discipline looks different for everyone. I don't think it's necessarily unhealthy.
Much like people that struggle with their weight need to turn every meal into accounting for lean protein and leafy vegetables.
Eventually, you crave the broccoli a bit more than you used to, and it makes the diet easier.
A desirable (practical) reality would seem to stem not just from first order effects now, but also in summation of all the credits and debits that it leaves us over time.
Interestingly these seemed to be one of the messages of Severance, and Dylan's character even appeared to have ADHD
My problem is typically more that there are plenty of more interesting things to do than anything I'd like to do right now.
Exercise is annoying, as without a lot of modern life, it largely takes care of itself. Back when I could just walk to a grocery, as an easy example, it was unsurprisingly easy to stay in decent shape.
Sorry for being off-topic, but you actually can (not a scientist, just speaking from experience). My guess is the digestion slows down and the sugar gets released into the system at a slower rate (probably because of the lower overall Glycemic index?). Anyways, it actually works! Just eat your salad before the ice cream to make sure it does :)
Hard agree, and yes we have our vices, but wouldn't life be better if we had more agency over them?
My phone is overwhelmingly a detriment to my life, it's just disguised as a necessary utility by doing the same things I could do anyway if I didn't have it. It's not never uniquely valuable to me, but those rare signals don't need to be tightly coupled with so so so much noise.
The big one for me lately is the aptly named tethering. It's wild that it's not just built into my mac at this point, if it weren't for that, (maybe 2Fa as well) I'd leave the phone at home so often I'd probably forget about it, and I long for that future.
Think about games where you're grinding doing tedious stuff to level up your character. Not nearly as fun, but still something you can end up doing for hours.
However, if the task ahead of me is great and I'm motivated, then I automatically seek less novelty to focus on it. IOW, maintaining a boring baseline of routine so that novelty is selective is important as a way of being able to "jump into action". It's good to get off the phone. It doesn't replace the intrinsic motivation.
There's an aspect to productivity advice that is about shouting down your burnout by adding more productivity hacks or taking stimulants or flagellating oneself. Burnout's root cause has to be approached by asking the tougher questions about life and aligning with a philosophy that is truthful to that. The work itself will have moments of routine boredom, exhilaration, and heartbreak, but the motive has to endure all of it.
OK I got a bit triggered by this sentence. Not at TFA, but sharing my own experience: Games are fun. And I don't mean Type 1 vs Type 2 fun and the email is somehow type 2 fun. I mean that the stimulation / "hit" from a game is just higher than 90-99%% of work tasks (writing a new CLI or optimizer excluded!!). We pile on much stimulation to the work to get it to hit harder: Working by others (social/peer), snacks (biological rewards), free caffeine, money (sometimes lots), etc. And physical trinkets.
We have studied this to death in other parts of our own biology, like food. Unhealthy food/drink is fun. It's a pleasurable reward sometimes, but if it forms the basis for your diet you are going to have a lot of trouble enjoying healthy stuff. You can't outrun a bad diet. You can't add a kale salad after a bowl of ice cream and expect your insulin levels to go down. You have to treat the underlying problem: A hugely stimulating / rewarding thing is displacing the healthy stuff. Almost every piece of sane health advice after 1900 has focused on removing unhealthy factors first.
Work/hobby is no different. When I'm obsessed with factorio (it happened a lot once or twice), I find it harder to focus on work. When I "fast" from those "treats", work takes on new enjoy-ability. Dopamine diet is probably the wrong technical term, but it nails the practical effects well.
I'm sure phones are just as stimulating for some. We all have our vices.