Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,594 karma · joined Dec 4, 2013 (12y ago) · 4,862 submissions

email: I'll add a suitable email one of these days
Submissions

comment 3y ago · link · parent

> I was kinda hoping to avoid storing the private key on the local machine at all.

I may be misunderstanding but I use U2F with OpenSSH (8.3). The private key is not on the local machine. It's still SSH public/private key pair but the private key on the computer is only a "key handle", not the real private key. The private key is protected on the security key. I don't mind copying that private key around: although it looks like a private key, it's just a key handle and not the actual private key.

comment 3y ago · link · parent

A friend of mine and all his colleagues are using OnlyKey (pricey). I use a Ledger Nano S for U2F/webauthn. These two are requiring a PIN to register/auth.

comment 3y ago · link · parent

> I really would like to use it, but without ability to backup it

I totally know the feeling. I was there, I don't believe for a second that enrolling another key is an acceptable option and I solved that problem in a way that works for me.

You can clone your own security key if you're willing to deal with the problem that now becomes: "How do I safely store the secret allowing to restore another security key?".

I'm using paper seeds, split over several countries. A $5 wrench attack on my mom to have her open her safe won't be sufficient. The attacker would need to $5 wrench another half too, which my mom doesn't have.

Ledger Nano S (supposedly a cryptocurrency hardware wallet but I only care about the U2F support) has a U2F "nano app" installable on the key which shall do U2F (and webauthn, which is backward compatible from the device's point of view... It's not clear to me if it's going to work as a "passkey" too or not). They cost $79 or something.

They're using these kind of secure chips from STMicroelectronics: https://www.st.com/en/secure-mcus/st31h320.html

Ledger kinda knows what they're doing: their CTO was part of the original FIDO spec group.

Buy two of them, initialize them with the same seed. Make sure to secure your paper seed.

In my case the issue of "cloning and backuping a U2F/webauthn key" is solved. But it's a trade off: now I have to deal with storing the paper seed allowing to restore the U2F key.

In exchange for that hassle I get U2F everywhere (SSH being a big, big, big one) and my security keys are protected by a PIN (three wrong PINs and they reset to factory default). And I don't leave with the constant fear of losing my security key and being locked out of all my services / having to reset everything.

As an added bonus that Ledger Nano S has a tiny device telling you if you're registering or authenticating and it's telling you where you're registering/authenticating. It becomes very hard to trick you into registering/authenticating to a bad party.

Also for me to be really in trouble I'd need to both lose the ability to restore/clone another key and I'd need to lose access to the two security keys that are configured with the same seed.

That is highly unlikely.

comment 3y ago · link · parent

> The attack surface of yubikey vs a laptop you carry around is interesting.

If you use the term "Yubikey" to describe the simplest model of Yubikey and not as a generic term to describe these security keys. Both Yubikey and their competitors are offering more advanced models: models which aren't simply unlocked by a tap on the device.

Then the attack surface compared to a laptop you carry around certainly becomes very interesting.

The security key I use most (I've got several models) have their own tiny screen and are protected by a PIN and won't work anymore after three wrong PINs (and let's not shift the goalpost by discussing what happens if you forget your PIN, that's another subject).

A friend of mine and his colleagues, sysadmins at a major ISP, all use "OnlyKey". They're protected by a PIN too (no screen but six digits on the security key). One PIN to register the security key, another PIN to auth.

Then there are security keys, including Yubikeys, only unlocked by fingerprints: now we're talking about Ethan Hawke stealing your laptop, your security key and recreating your fingerprints from a glass he stole at the bar (it's not impossible, but we're very far from "we stole your laptop while the session was unlocked").

> like a rubberducky or teensy flashed with some malware installing HID emulator.

Wait, what would a teensy used for nefarious purposes do here? You can't sniff what's inside the Yubikey. It's kinda the whole point: it's a challenge/response only answered by knowing a secret protected by the HSM on the Yubikey. There's nothing to sniff. If you didn't intercept and modify the key while the person registered on a service, you'll never be able to auth without unlocking the actual key which was used to register to the service. You may be able to sniff and relay the auth but you'd still not be able to extract the secret out of the security key.

> Because if not then all that added layer of secure feelings is pointless from an operational security perspective

I don't know: all the big security hacks we saw recently would all been stopped cold dead in their tracks had U2F/webauthn been used (like the, supposedly, Plex related on where one dev had a years old, compromised, version of Plex which was used to exploit his home computer, which then allowed to get inside the company's network for all was needed to log in to the company's network was to sniff a password).

Google reports there have been zero break ins since years, since when they moved all their employees to mandatory U2F (then switched to webauthn and I take it now to passkeys?).

I'm overall confused by your comment... What kind of attacks are you exactly talking about? Someone stealing your laptop then installing a teensy in your laptop and putting the laptop back in place, without you noticing? Or just someone stealing your laptop while the Yubikey is in it?

Are you actually saying that because some Yubikey aren't protected by a PIN and because some people leave this model of Yubikey in their laptop at all times, all security keys don't offer any additional protection compared to a laptop being stolen?

comment 3y ago · link · parent

I'm running Linux on a LG Gram laptop and that beast feels way sturdier than any Mac laptop. It's lighter than any Mac laptop too (hence the LG "Gram" name, I guess). FWIW my Mac M1 laptop's screen died after about a year without any good reason. Meanwhile my years old MILSPEC LG Gram laptop keeps cranking just fine.

Do I miss the retina display? Yes and no. I may miss the tiny pixels but I sure as heck do not miss the brittleness: a laptop has to feel like something you can count on. Not like some fragile piece of porcelain which you must take extra care of.

Now I'm excited by Asahi too but in my case it'd be more for a desktop than a laptop (I think I'm really done with Mac laptops).

comment 3y ago · link · parent

Indeed. For those unaware: while the mainstream media were busy castin SBF, frontpage, as an altruistic white knight, Marc Cohodes was out there telling everyone that SBF was a "no name" (his words) fraudster running a ponzi scam.

comment 3y ago · link · parent

Full disk encryption that are decrypted using a U2F security keys are now here (latest LUKS/systemd allows to do that).

And Yubikey don't leak secrets.

If your system is compromised to the point that someone gets access to the full disk decryption key protected by your Yubikey, you've got bigger problem than securely erasing the disk.

Need to recommission a disk? dd to the disk because why not. Some sectors didn't get dd'ed? Well, the bad guys need your Yubikey too.

So, really, what do we think about Yubikeys?

Are people now going to steal your Yubikey in addition to finding the sectors that weren't overwritten by dd?

comment 3y ago · link · parent

> This behavior was actually a core copy protection trick. The custom drive writing the commercial software would gate the transitions in the middle of a sector, leading to a region that would read different noise every time.

Can you explain that a bit more? On the software side, how could you detect if you had a pirated disk or not? Read a few times the same data and make sure it'd always be different?

comment 3y ago · link · parent

> those 2FA desktop apps should not exist in the first place

They can exist but they should be called what they are: 1FA ; )

comment 3y ago · link · parent

There's a similar one for Emacs I know of, htmlize.el. It reuses the parsing already done by Emacs (not just from the major mode but by any minor mode too) and output HTML exactly matching the colors syntax highlighting you see in your Emacs buffer.

comment 3y ago · link · parent

Not commenting on the whole IPv6 vs IPv4 debate but simply answering your question...

There aren't enough IPv4 addresses, so any ISP using IPv4 addresses is going to give 99.999% of their customers exactly one IPv4 address. Not ten. Not two. One.

So NAT has to work. Grandma has nothing to configure because either NAT works or grandma is calling her ISP to ask why her tablet ain't working.

So when the customer gets exactly one IPv4 address, the ISP is forced to hand a router doing IPv4 NAT. They have no way around it.

While if you take an ISP handing out hundreds of billions of IPv6 addresses to each customer, well... They are not forced to hand a router which does proper firewalling.

It's not a question of whether it'd be easier for the ISP to give a correctly configured IPv6 router firewall vs handing an IPv4 correctly doing NAT.

It's that when they hand one IPv4 address, they don't have the choice. NAT must work and there's no way around it.

comment 3y ago · link · parent

> It looks like these start at $250? I'd expect them to work well.

Price inflated, like the price of nearly everything. I paid mine 150 EUR back in the days (still not cheap but not either the 4 digits high-end audiophile stuff).

The thing is: you want thing to work fine from Linux's side and in my experience USB Audio on Linux just works.

I'm sure there are other brands/models at reasonable price points.

comment 3y ago · link · parent

> I've had multiple of these and some of them have tons of EM noise, which is very obnoxious.

Ah darn yup! If there's one thing I'd expect from these is to not be noisy! FWIW I'm using a CambridgeAudio DAC and, well, CambridgeAudio is supposed to be a good brand when it comes to audio stuff (amp is CambridgeAudio too).

comment 3y ago · link · parent

> and audio...

Overall tip for anyone using Linux and having issues with audio... USB Audio is magical and works wonder. I never bother with the computer's in-board sound: it's USB Audio immediately through a DAC. Works fine. Apple sells $10 USB-C-to-3.5mmjack DAC which are basically a tiny cable (for anyone lamenting it's "too bulky" to have a full-on DAC next to their laptop).

For desktops: problem doesn't even register. Just bypass the audio components on your motherboard and use a proper DAC.

As an added bonus computers are particularly electrically noisy and a DAC is a great way to do away with all that the noise.

So my advice: just use a DAC with Linux. Plug it in. Marvel at "dmesg" showing "USB Audio" and enjoy quality sound.

comment 3y ago · link · parent

> I do understand that people want the Mac for the build quality of the laptop, not just for speed.

I find LG Gram laptops to be of higher build quality than Mac laptops. They may be pricier too depending on which LG Gram and which Mac you buy though.

Mac laptops feel and are incredibly brittle. They may look shiny and the screen may look gorgeous, but they're simply brittle.

People here and there like to make fun of "MILSPEC" but my MILSPEC LG Gram can sustain quite a beating. Meanwhile my M1 Mac is 1/5th the age of my LG Gram and the M1 Mac's screen is already broken.

Mac laptops are very good looking but they are not, to me, of great build quality. They're also heavier than my LG Gram.

comment 3y ago · link · parent

Are these ARM64 Mac using ECC?

P.S: the 3440x1440 screenshot in TFA looks gorgeous on my system. Everything is using subpixel AA (terminals, code editor, browser, except for the URL, for whatever reason) but not the file manager. I wonder why that is.

comment 3y ago · link · parent

> UEFI bootkits may lose on stealthiness when compared to firmware implants – ... – as bootkits are located on an easily accessible FAT32 disk partition.

It's kinda a surprise that it's only detected in the wild now if it's that obvious.

comment 3y ago · link · parent

> You can bitch about RPIs or you can go support something else.

I will and thanks for your comment... I'm pretty much Debian and Debian derivatives only so you convinced me.

I've got eight Pi I think. I started with the "Model 1" (which wasn't called that back then), on which I was running RasPBX (Raspbian with FreePBX+Asterisk) hooked to a SIP trunk to power four Cisco VoIP phone at my wife's little SME. Worked flawlessly for years. My best one I'd say is in the vintage arcade cab, with a Pi2JAMMA hat bigger than the Pi (!). I've got three towered on my desk, two of them operational 24/7.

So early adopter and user as it gets, not the kind to let the Pi not powered up... But I think this headline and the troubles getting one convinced me and I'm done with that brand.

I'll order BeagleBoards now and run Debian on them.

comment 3y ago · link · parent

That's not the same thing at all. 400 USD is, well, way more expensive than a Pi.

Then there's the room it takes / the formfactor. I've got three Pi stacked on my desk (and 2 out of the 3 are powered at nearly all times). I've got one in my arcade cab, with a Pi2JAMMA adapter. The Notebook wouldn't fit or would look clunky. Also, well, how do you put a hat on a Notebook? How do I put it in my cab and have the JAMMA connector power it?

You're comparing apples and oranges (not that your notebook doesn't look good).

I'm not saying what they're doing is fine but people looking for a Pi aren't looking notebook.

comment 3y ago · link · parent

It's really nice and I'm a fan of the man but... Even back then it was a really simple spellchecker. Back then stuff like the "metaphone" and "double metaphone" algorithms already existed (suggesting candidates based on similarly sounding words). Fun algorithms 'em metaphones I'd say. Relatively easy to implement/port (been there, done that).

I'm sure there's better stuff now.

Also it's possible to better ranks candidates to fix typos by taking into account the layout of the keyboard (e.g. on a QWERTY keyboard is you see "wery" it is, despite having an edit distance of 1, highly unlikely the person typing meant to type "very". "weary" is much more likely). So just sorting by edit distance and then suggesting the most common word often doesn't result in the best candidate being shown first.

And then context. Ah, context. I type this and my browser isn't aware I'm talking about algorithms and not only says "metaphone" is incorrect but suggests "megaphone".

So... The matter still isn't settled if you ask me.

comment 3y ago · link · parent

Ah the mouse on the other hand is something I rarely reach for : )

comment 3y ago · link · parent

I mostly use fuzzy searching, not exact matching, it's so convenient.

From Emacs, I just don't search in org-mode, I search into typically my entire user directory, in both .txt files, source code files, .org files, etc. using "counsel-rg" (just a wrapper around ripgrep).

It's super quick. I enter, say, at the Emacs rg prompt:

    gmp lib
So that's "gmp<space>lib" and it'll find every line, in any single file, no matter it's format, where, on the same line, there's "gmp" followed by, anywhere else later on the line, "lib", no matter the capitalization.

The wrapper around rg takes care of calling it with the correct magic invocation.

Say I type: "pi rypi" then Emacs/counsel shall spawn a call to rg looking like this (it's configurable):

    /usr/bin/rg --max-columns 240 --with-filename --no-heading --line-number --color never -i "(pi).*?(rypi)"
And, well, I much prefer to enter simply "pi rypi" and have "(pi).*?(rypi)" generated for me.

I've got the call to "counsel-rg" assigned to a shortcut.

I use it all the time.

P.S: ripgrep is an amazing tool written an HN'er, burntsushi. It's really fast and, by default, won't search into many files you don't care about anyway. It is so fast that on my relatively modern machine (AMD 3700X / NVME M.2 PCIe 3.0x4 SSD) I don't bother and typically search from the root of my home directory.

comment 3y ago · link · parent

I'm ashamed to admit that although I'm an Emacs poweruser (even getting okay'ish at writing elisp after all these years), I use org-mode but I'm terribly bad at it.

I mostly use it because it allows collapsing text and don't use any advanced feature. I'll sometimes include pictures and a piece of code here or there but it's really mostly just text (I take it that's the whole point !?).

And it'd say it's already quite good even when used in that "dumb" way.

comment 3y ago · link · parent

Oh it's seriously bad I think:

"The spider's name means "murderess" in Greek, which is appropriate for the deadly arachnid. And it's no wonder why — it's one of the most venomous spiders on Earth. Its bite, which delivers neurotoxic venom, can be deadly to humans, especially children, although antivenom makes death unlikely."

https://www.livescience.com/41591-brazilian-wandering-spider...

comment 3y ago · link · parent

Not that that long ago (10 years? 15 years? Phones with camera were already common), a very rare brazilian wandering spider bit someone in a supermarket in the UK. It then looked ultra aggressive, which is uncommon for spiders, so someone took a picture with its phone.

If I remember correctly it's thanks to showing the picture to the doctor, which had it sent to a zoo (!), that they realized how dangerous it was and thankfully another zoo (?) had the serum.

My memory is fussy but it happened, in the UK.

Turns out the spider traveled all the way from Brazil into... Bananas.

Another common name for the brazilian wandering spider is the "banana spider" : )

Too lazy too google it so I posted what I remember ; )

[1] https://en.wikipedia.org/wiki/Phoneutria

comment 3y ago · link · parent

I think I'll just get rid of it (give it to the wife or something): there are several things I don't like about it. No USB-C port (sure I could add an adapter), only 1 Gb/s ethernet on the mobo, etc. I'm not even sure I can just put a 5700G in it without having the flashing mobo.

I'll probably build something around an Asus B650-Plus mobo: it's got USB-C stock, 2.5 Gbit/s ethernet, DDR5 (I know it's pricier and boots slower, but it's faster too), etc.

I'll reuse one of the NVMe .2 SSD I've got laying around so the whole build should set me back 1 K EUR (with 32 GB of DDR5), which is quite okay.

comment 3y ago · link · parent

Ah nice, I'll try to see if I can find one that can do 4K @ 75 Hz (well 3840x1600 really, not 4K but if it does 4K it's good for me).

comment 3y ago · link · parent

There was a blog post posted here a few weeks/months(?) ago but basically the person was using an old kernel. I'll look more into it.

comment 3y ago · link · parent

Oh I don't necessarily want to passive cool the whole box... I typically stuff a Be Quiet! CPU cooler and a BeQuiet! PSU and I'm happy like that.

comment 3y ago · link · parent

My pleasure and thanks for fixing it!
1
122123124
163