TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pressing YubiKeys

505 pointsby bertrandomover 4 years ago

59 comments

geocarover 4 years ago
&gt; iTerm2 has a feature called Triggers, which can execute actions based on text matching a regex in your terminal. So we could write a regex to listen for “Yubikey for” and have it run the same script, eliminating the need to press buttons altogether.<p>Don&#x27;t do this.<p>Actually seriously, don&#x27;t do most of this.<p>The fact that your computer <i>cannot</i> induce the yubikey to provide its key material (or evidence of the key material) is where it gets &quot;security&quot; from in the first place. As soon as someone can convince your computer to do <i>something</i> there&#x27;s an increased chance they can get it to do something else.<p>Some suggestions:<p>- Wire the F14 key up separately to &quot;the finger&quot; (and not to wifi)<p>- Use a yubikey simulator[1]. If your sysadmin won&#x27;t trust you with the key material inside the yubikey so you can use a simulator, they definitely won&#x27;t trust yourself to emulate the simulator with the finger either.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;sstelfox&#x2F;yubikey-simulator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sstelfox&#x2F;yubikey-simulator</a>
评论 #24672648 未加载
KerryJonesover 4 years ago
&gt; If you work in tech, you probably have a YubiKey<p>That is a gross overstatement. As someone who works for a pre-IPO startup and been in the bay in various startups for a number of years, I&#x27;d hazard that only 5-10% of the engineers had YubiKey, let alone &quot;work in tech&quot;.<p>Whether or not we _should_ is another question.
评论 #24674122 未加载
评论 #24669784 未加载
评论 #24667874 未加载
评论 #24668562 未加载
anonovaover 4 years ago
Adaprox has various &quot;finger bots&quot; for those who don&#x27;t want to build their own: <a href="https:&#x2F;&#x2F;www.adaprox.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.adaprox.io&#x2F;</a>
评论 #24665073 未加载
评论 #24664934 未加载
评论 #24665549 未加载
评论 #24665112 未加载
评论 #24664756 未加载
评论 #24665157 未加载
vnxliover 4 years ago
This is some cowboy engineering and i love it. totally shooting from the hip, but still finishing up with a nice long-form post. like other comments mentioned this is super impractical but that&#x27;s not the point. building a robot finger to push a button at the push of a button is a hilarious saturday afternoon project<p>good job bert!
评论 #24670307 未加载
wrsh07over 4 years ago
Ways they could solve their problem without significantly compromising security:<p>1. Plug the yubikey into the monitor<p>2. Use an extension cord (as they did)<p>3. Switch back to an otp app (eg Google authenticator or Duo)<p>4. Credit to conk [1] or agl [2]: extend the conductivity via conductive foil or other material, connect to ground to simulate touch<p>Ways you can improve convenience while reducing security:<p>1. This!<p>2. Disable 2fa (credit to another commenter)<p>If 2fa is required by your company, circumventing it by eliminating the security benefit should be severely reprimanded.<p>Why not build a different shitty robot?<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24664842" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24664842</a><p>[2] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24664881" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24664881</a>
评论 #24667050 未加载
评论 #24669104 未加载
sxpover 4 years ago
When I was at Google around 2012, the company had a custom 2FA dongle that detected motion rather than touch. An engineer who had remotely ssh&#x27;d into their workstation needed to 2FA and realized that they could send an SMS to their phone, cause the phone to vibrate, and trigger a false 2FA event on the dongle. (Or maybe they got their computer to play a loud noise. I forgot the specific details.)<p>Similar to this fake finger, it was a cool hack at the time but defeated the purpose of 2FA.
评论 #24665015 未加载
评论 #24667986 未加载
taldoover 4 years ago
Urban myth: somebody taped a hotdog to the CD drive tray of their workstation, and put the yubikey right in front of it. Then, whenever they needed to touch the YK while not physically in front of the workstation, a quick `eject &#x2F;dev&#x2F;cdrom` did the trick ;)
评论 #24668844 未加载
评论 #24666753 未加载
GeertBover 4 years ago
Why not just keep the wire attached to the Yubi-key, but leave it electrically floating (high-impedance state) and have the board ground it whenever it needs to be pressed? No need for mechanical triggers...
评论 #24666245 未加载
AceJohnny2over 4 years ago
Tangentially:<p>&gt; <i>And if you work on a political campaign or as a journalist, you should definitely have one (or something similar).</i><p>It&#x27;s tough, tptacek &amp; idlewords have been facing an uphill battle with that:<p><a href="https:&#x2F;&#x2F;idlewords.com&#x2F;2019&#x2F;05&#x2F;what_i_learned_trying_to_secure_congressional_campaigns.htm" rel="nofollow">https:&#x2F;&#x2F;idlewords.com&#x2F;2019&#x2F;05&#x2F;what_i_learned_trying_to_secur...</a>
dzhiurgisover 4 years ago
Google won’t let you setup 2FA without adding a phone number which kind of sets you up for sun swapping attack by design...<p>My biggest beef is lack of NFC in MacBook. I wan’t a key in card factor because who the hell has keys these days. Maybe add hardware button on the card. It would work on on mobile and laptops. Banks could use their own credit cards for logging in...
评论 #24667924 未加载
评论 #24681112 未加载
评论 #24667880 未加载
ShakataGaNaiover 4 years ago
This reminds of back in the olden days (when SMS MFA was still an &quot;OK&quot; thing to do) we needed shared MFA for IT Admins of various SaaS apps. We setup a dedicated phone, duct taped to the wall, to get these codes and push them to hipchat (via Tasker &amp; NodeJS).<p>One of my team members did a write up about it years ago: <a href="https:&#x2F;&#x2F;obviate.io&#x2F;2015&#x2F;04&#x2F;16&#x2F;making-of-the-mfa-phone-because-twilio-is-too-easy&#x2F;" rel="nofollow">https:&#x2F;&#x2F;obviate.io&#x2F;2015&#x2F;04&#x2F;16&#x2F;making-of-the-mfa-phone-becaus...</a>
sarah180over 4 years ago
This reminds me of something that happened at a company I worked at maybe ten years ago. An employee was fired for setting up a webcam that pointed at his 2FA key generator so he could log in remotely without having to carry it around. Hacker mentality, but not in a way that won him the respect of the security team.
johnnyAghandsover 4 years ago
Is there a SOAP interface for this? We&#x27;re interested in rolling this out where I work.
评论 #24666640 未加载
CyberRageover 4 years ago
It seems like you don&#x27;t understand the main advantage of these types of security tokens.<p>Rogue trigger of a security token isn&#x27;t really an issue when using the recommended U2F standard.<p>U2F uses the domain as part of the challenge-response in U2F so that phishing\spoofing attacks can be defeated.
评论 #24666135 未加载
mcdeeover 4 years ago
A slight aside, but so many of these keys seem to have the touch point &#x2F; button applying force perpendicular to the direction of insertion, I wonder if there is any long-term potential to cause damage to the USB interface.
评论 #24666061 未加载
jeroenhdover 4 years ago
The obvious next step is to plug this into a server and control it through USB over IP. Call it &quot;remote, centrally controlled 2FA&quot; and your manager will love it!
评论 #24665474 未加载
评论 #24665169 未加载
评论 #24666002 未加载
评论 #24666326 未加载
评论 #24665491 未加载
评论 #24667008 未加载
aglover 4 years ago
You can just glue a wire to the touch plate and connect it to ground when you want to simulate a touch.
评论 #24664954 未加载
gcommerover 4 years ago
This could be handy for automating a real world end-to-end test of a yubikey auth flow.
评论 #24665101 未加载
f0ffover 4 years ago
Congratulations, you&#x27;ve defeated the purpose of having a YubiKey
评论 #24666540 未加载
评论 #24668235 未加载
评论 #24665469 未加载
Raphmediaover 4 years ago
The final thoughts at the end of the article are amazing:<p>&quot;Why not just press the button?&quot; ... &quot;Don’t you get it? This button BAD, but this button GOOD. Me want to press GOOD button.&quot;
评论 #24665984 未加载
cjaover 4 years ago
Surely an authenticator app like Authy is more secure than a hardware key like Yubikey.<p>To access my account with the former an attacker needs my phone and me to log in to it for them.<p>To access my account with the latter an attacker just needs to hardware key.<p>I usually have my phone on me whereas I don&#x27;t want to have to keep track of a tiny USB device and am likely to just leave it plugged into my laptop. My laptop is the most valuable item in my home and so most likely to be stolen, along with the attached key.
评论 #24682557 未加载
评论 #24677227 未加载
conkover 4 years ago
Nice build but over engineered. You could achieve the same result by taping a piece of aluminum foil, or maybe even a wire to the capacitive sensor and connecting it to ground through a relay. Use the ESP8266 to toggle the relay when you want to simulate a button press.
评论 #24665631 未加载
评论 #24668319 未加载
评论 #24664985 未加载
pkzover 4 years ago
&quot;Now that we have that shell script, we can call it from other places as well. iTerm2 has a feature called Triggers, which can execute actions based on text matching a regex in your terminal. So we could write a regex to listen for “Yubikey for” and have it run the same script, eliminating the need to press buttons altogether.&quot;<p>But isn&#x27;t the whole idea that it shouldn&#x27;t be possible to trigger it from software?
mattnewtonover 4 years ago
Why not just put the yubikey in a housing with a mechanical switch above it and screw it into the side of your keyboard?
codegeekover 4 years ago
&quot;So.. you built a button that you press that will press a button? Why not just press the button?” which was a bit infuriating because they clearly missed the whole point. “Don’t you get it? This button BAD, but this button GOOD. Me want to press GOOD button.”&quot;<p>This is gold.
Havocover 4 years ago
Does the yubikey sense both force AND capacitative touch?<p>Cause if it&#x27;s only capacitative there is an easier way:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=JDgDMBquBw0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=JDgDMBquBw0</a>
评论 #24666366 未加载
peternickyover 4 years ago
I’ve used various yubikeys in personal environments over the past 7 years and found them to be a gimmick rather than a useful tool.<p>They are quite versatile and can be used for many different use cases which is part of the problem in my opinion. While not a total dummy, I found yubikey software and documentation to be difficult to use and configure and a pain to find how to setup the key for common scenarios. This brings me back to ideal users, probably corporate use where a dedicated team can support users for the specific use cases.
shrubbleover 4 years ago
Why did he not call it The Finglonger?
Jnrover 4 years ago
Or you could just disable the requirement of using the touch.
notRobotover 4 years ago
Couldn&#x27;t you just skip the motor, and have a wire always touching the contact, and use a relay to connect the other end of the wire to ground?
sedatkover 4 years ago
Presses, either accidental or through phishing, with YubiKeys can leak identity, I wrote about it before. Disable OTP mode if you&#x27;re not using it. <a href="https:&#x2F;&#x2F;medium.com&#x2F;hackernoon&#x2F;avoid-leaking-your-identity-with-yubikey-92539b6608a" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;hackernoon&#x2F;avoid-leaking-your-identity-wi...</a>
skizmover 4 years ago
The Bloomberg terminal uses a piece of hardware that generates 2FA tokens, but requires you to scan your fingerprint each time. So we need a fake finger that also has my fingerprint, and a webcam pointed at the 2FA hardware, so I can just get my auth keys remotely and not need to carry around another dongle.
rgoulterover 4 years ago
&quot;Why have an Applescript call a shell script? I found that when I launched the shell script directly from Karabiner Elements, it opened a new instance of Terminal.app and took focus away from the window that is prompting for the YubiKey. This causes everything to run in the background.&quot;<p>Does anyone know why that is?
Ceriumover 4 years ago
A little off topic: Does anyone know of a way to get the results of a yubikey press into a remote desktop session? I frequently remote desktop into laptops that are in arms reach. If I need to use the yubikey, I have to remove it and plug it into my desktop and press it, since it acts as a local keyboard.
评论 #24670318 未加载
评论 #24665529 未加载
thih9over 4 years ago
&gt; If you work in tech, you probably have a YubiKey<p>I have worked in tech for 10+ years and I haven’t heard about this product until today.<p>I guess it’s more likely to own a macbook&#x2F; dell &#x2F; hp &#x2F; etc than a yubikey.<p>Still, if someone said “If you work in tech, you probably have a macbook”, they wouldn’t be taken seriously.
pdxpatzerover 4 years ago
I would place the yubikey on top of a small squared base made out of Sugru, therefore elevating it and making it easier to press.. If you are concerned about the stress on the usb port then you use one of those &quot;right angle usb cable&quot; short cables available on amazon.
natvertover 4 years ago
haha, this is great! i was thinking about making something similar to skip youtube ads on my ipad!
评论 #24664521 未加载
anfractuosityover 4 years ago
Reminds me of this, &quot;The Tinda Finger Swipes Right On Tinder So You Don&#x27;t Have To&quot;<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=IaoDfOaYF4w" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=IaoDfOaYF4w</a>
djhworldover 4 years ago
Really enjoyed reading this post thanks.<p>It makes me laugh that such a small problem (pressing a yubikey at an awkward angle, which sometimes doesn&#x27;t register properly) can be solved with such a delightful over engineered solution.
walrus01over 4 years ago
see also: <a href="https:&#x2F;&#x2F;smallhacks.files.wordpress.com&#x2F;2012&#x2F;11&#x2F;camera.jpg" rel="nofollow">https:&#x2F;&#x2F;smallhacks.files.wordpress.com&#x2F;2012&#x2F;11&#x2F;camera.jpg</a>
评论 #24664662 未加载
gouggougover 4 years ago
The one thing I don&#x27;t understand with Yubikeys: doesn&#x27;t leaving them plugged in at all times in your computer (which the form factor highly encourages you to do) completely defeat the purpose?
评论 #24670630 未加载
评论 #24671230 未加载
评论 #24670025 未加载
Mellowwover 4 years ago
Why would one always leave the yubikey in their laptop? Isn&#x27;t one of the security features supposed to be physical seperation of the key and the system when the owner isn&#x27;t around?
nukerover 4 years ago
Apple Touch Id on Macbooks is pretty much YubiKey replacement, right?
评论 #24669622 未加载
supernova87aover 4 years ago
I thought the article was going to be about how there was a serious real vulnerability in the hardware and some remote attacker could spoof the Yubikey being touched.<p>Then the article turned into a joke.
dathinabover 4 years ago
For the new yubi keys with fido support I would recommend disabling OTP it massively improved the user experience for me., in difference to TOTP OTP has done fundamental problems. And fit reasons not affecting many people OTP is implemented by pretending to be a keyboard which is just anoying in many cases.<p>But all other operation modes (FIDO,FIDO-U2F,PIV, OpenPGP) do not have that problem.<p>So when possible I use password manager + FIDO(-U2F), where no it&#x27;s password manager + TOTP using the yubikey (I plug the USB-c yubikey into my phone accessing the keys TOTP functionality through the authenticator app).
评论 #24671531 未加载
trashburgerover 4 years ago
Wouldn&#x27;t a really long insulated cable that you touch with your finger work? It would just carry the capacitance, and it would probably cost pennies.
doom2over 4 years ago
Really liking the SA 1976 key set! What is the board?
评论 #24664922 未加载
GekkePrutserover 4 years ago
The whole point of this touch to sign is that it can&#x27;t be hacked remotely :) and you can just turn it off for most modes.
homakovover 4 years ago
No, no one should own a yubikey.<p>It&#x27;s an entirely useless device. All you need is a pw manager that saves you from non-malware attacks (email compromise aside). Yubikey cannot save you from persistent malware, which makes it useless in almost all scenarios. The only hardware device that makes sense is the one with a screen (like trezor). Simple click-to-use devices carry no protections that you wouldn&#x27;t otherwise get with a pw manager.
hda111over 4 years ago
Too much untrue assumptions. I worked in tech for years and never used a YubiKey or similar device.
cproctorover 4 years ago
Now we need a yubikey captcha.
drewbugover 4 years ago
This lets malware trigger one time code emission...
评论 #24664496 未加载
0xCMPover 4 years ago
A proper hack
fmajidover 4 years ago
He never heard of a solenoid?
评论 #24673971 未加载
humanfromearthover 4 years ago
The keyboard is sooo cool!
评论 #24673940 未加载
1970-01-01over 4 years ago
This is as impressive as it is pointless. You are treating the symptom and not the problem.
dokemover 4 years ago
This is a great example of writing without having a clear idea of who your audience is.
etaioinshrdluover 4 years ago
&quot;If you work in tech, you probably have a YubiKey&quot;<p>The author must live in some kind of bubble. This may only be true at Big Tech companies or other companies with a atypically strong security focus.
评论 #24666763 未加载
评论 #24666071 未加载
评论 #24666113 未加载
评论 #24666045 未加载
评论 #24666831 未加载
djsumdogover 4 years ago
At work we use to use the old Yubi keys that were nice and long and had a good contact areas. Then they switched to the nanos and wouldn&#x27;t reprogram the old ones (or even order the larger ones of the same generation, or let us pay for them ourselves).<p>You can do the entire OTP entirely in software. Just be sure that the location you place the secret is encrypted:<p><a href="https:&#x2F;&#x2F;battlepenguin.com&#x2F;tech&#x2F;replacing-okta-verify-with-open-source-software&#x2F;" rel="nofollow">https:&#x2F;&#x2F;battlepenguin.com&#x2F;tech&#x2F;replacing-okta-verify-with-op...</a>
评论 #24666234 未加载