Apex conversion with spectrum antenna and LED

some years ago I explored using subdermal implant to do 2fa and unlocking (on linux), I was told here the apex was gonna come and implement a lot of the stuff needed and I see things have progressed a lot! this seems to be perfectly feasible with the apex line now and a lot of auth/crypto stuff is fully supported now, FIDO2 makes this all very workable.

I am an EU resident and I am seriously thinking of getting the apex conversion kit so it can do payments on top of everything the apex can, I would very much like an LED in it when it pays, it’s my understanding from reading the forum that the best range comes from the module version and not the spectrum version, correct? any real world experience with POS readers?

does anybody has a picture showing how bright the LED in the apex spectrum (the converted one) is? I searched the forum, love all the blinkys around, but couldn’t find one for the apex spectrum installed.

I would love to have an LED turn on when my hands are close to my keyboard (mechanical keyboard, fully moddable with NFC hardware) but I think that the hands would almost always be too far from the reader to actually turn the LED on, I’m thiking of a wrist placement, correct?

any experience in getting a developer account from fidesmo to use their developer api to deploy custom apps to it?

3 Likes

We have been experimenting with LEDs on the Apex module but it’s very experimental at the moment and would require a custom work order.

I pay with the module everywhere. I used to have spectrums and the module vastly outperforms the spectrum on certain models of payment terminal, but most it’s on par.

Your best bet is to probably go with an xLED or collection of them.. probably LF (125khz) and build an LF power coil into your keyboard.

They don’t do that anymore. If you have an app you want to deploy and it’s open source we can look at publishing it so it can be deployed to the Apex. Otherwise there’s the flexSecure product.

6 Likes

well, everything here is experimental, so when you say “very” experimental should I be worried? :slight_smile:

I might be onboard with this and ask for a custom work order if you think you want to do it, the spectrum seems to me also has more limited placing options due to the size, the scheme also shows the same limitations for the module version though? wrist/arm/watch placement would be my choice, even though P1,2,3 seem more convenient for payment.

they both seem to require a scalpel installation if I’m not mistaken, I just contacted the only partner listed in the map in Italy but I suspect they are out of business, there are other body modifications shops around though (I’ve read the guidelines on how to contact them) and I might even get a surgeon to do it, there is one in my circle of friends, I hit him up to ask what he thinks about all this, will let you know :wink:

since this is my first ever experience with chip implants I might just start with an xLED in P0 to see how the installation procedure goes for me, what about removal if I then want to upgrade to something else in the same position? is it way more complex than installation?

I’m a developer so I would love to tinker with these, I saw the flexSecure option but a payment enabled one beats the usage of a custom one in my book, and javacard make me cry, claude code could help but still…maybe on the other hand, we’ll see.

the physics of the LF frequencies seems way better for the keyboard embedded reader/presence sensing kind of thing, you do know your thing :grin:.

But let’s say I also want something that replies with a UUID later on to actually do presence sensing and not just the illumination, HF will always requires very close proximity to achieve induction/power harvesting, correct? I saw options like the xEM/next/xmagic but no LED LF in those, correct?

so many questions, I know, thanks for answering :innocent:

1 Like

yeah same difficulty but actually the spectrum is slightly easier as it’s resin not polymer and technically smaller surface area so it can put up with install locations the module may have trouble with like directly over bone / tendons in the hand etc.

personally i have two modules, one in each arm just above the wrist area. i pay for things all the time. my left arm gets the most use as i pay at drive-throughs all the time and left is the only viable arm to extend out the window.

yep both need scalpel work

you can try out one of the javacard test cards and if you come up with something cool you want on your Apex, we can talk about publication.

just fyi, a UUID is a specific term for an exact type of 128 bit identifier defined by RFC 9562. HF tag UIDs have between 56 bits and 96 bits and are defined by various HF standards like ISO14443, ISO15693, etc.

To be honest, at the sizes of the xLED antenna coils you are going to see almost no difference in performance between HF and LF.. so a NExT v2 is going to be another option if you want HF with UID capabilities.

thanks for being here!

3 Likes

My opinion, this is a waste of a prime location for an xSeries.

If you want blinky :blinky_green: , go for a NEXTV2 as it has more functionality but still with the blink.

Its pretty straight forward, but why do that if you dont have to.

I’ve done a few, but if I planned better, I wouldn’t have needed to. Other times were for upgrades.

3 Likes

Using the Apex-line of chips on Linux is workable but still pretty janky compared to Windows and Mac. I haven’t done much recently, but as of a year ago, getting FIDO2 support into browsers required using a bridge that essentially converted the NFC FIDO2 protocol into the presence/USB protocol. Once set up it works reasonably well on Chrome.

If you are talking about using an Apex + FIDO2 to secure an encrypted drive or volume via LUKS, that does work, but it has a pretty big limitation IMO. Essentially, you can only use a FIDO2 device as the sole key source for a LUKS container. It can’t be set up as a 2nd factor (e.g. passphrase + Apex). In theory you can set a PIN on your Apex that you would have to enter, but I wasn’t able to get that working correctly with LUKS (this was a year ago though, might be better now)

FIDO2 works with LUKS via the HMAC-secrets extension, which runs entirely offline. Without a PIN, all sorts of Evil Maid scenarios are possible. LUKS usually stores the key id in unencrypted plain text. An attacker who had access to the encrypted container can get that ID then use it to “trick” your Apex into coughing up the HMAC secret. They put that on their own FIDO2 key and can now unlock the volume. Of course that implies the attacker has close physical proximity to the Apex.

A better approach, and one that I started to sketch out an architecture for before life stuff, was to make a custom key provider for LUKS (there is a plugin system) that would combine user input (passphrase) with an HMAC secret, creating actual 2FA. The pieces are all available in theory, but there are a bunch of complications, especially if you want this to work for full disk encryption, since those pieces have to also function in a pre-boot initramfs environment.

2 Likes

Hmm.. I’m not an expert here but this clanged off my noggin in an off-key way. How would this work exactly?

1 Like

It’s essentially the equivalent of having an unencrypted /boot partition. No matter how you slice it, some information needs to exist outside of the encrypted container that is used in the decryption process. For FIDO2, the important, initial piece of data is the clientId, and LUKS2 stores that inside the JSON metadata in the container’s header.

 
systemd-cryptenroll?

--fido2-parameters-in-header=BOOL
When enrolling a FIDO2 security token, controls whether to store FIDO2 parameters in a token in the LUKS2 superblock. Defaults to “yes”. If set to “no”, the fido2-cid= option has to be specified manually in the respective /etc/crypttab line along with a key file. See crypttab(5) for details.

 

fido2-cid=
Takes a Base64 encoded FIDO2 client ID to use for the FIDO2 unlock operation. If specified, but fido2-device= is not, fido2-device=auto is implied. If fido2-device= is used but fido2-cid= is not, the volume must be of LUKS2 type, and the CID is read from the LUKS2 JSON token header. Use systemd-cryptenroll(1) for enrolling a FIDO2 token in the LUKS2 header compatible with this automatic mode.

 
https://gitlab.com/cryptsetup/cryptsetup/-/blob/main/FAQ.md

  • 10.11 Does LUKS2 store metadata anywhere except in the header?
    It does not. But note that if you use the experimental integrity support, there will be an integrity header as well at the start of the data area and things get a bit more complicated. All metadata will still be at the start of the device, nothing gets stored somewhere in the middle or at the end.

 
You can test this via sudo cryptsetup luksDump --dump-json-metadata <path-to-volume>. That command will dump out the metadata, and if the volume was enrolled with the defaults listed above, it will contain the FIDO2 client ID. That command is run without needing to first unlock the volume or enter the FIDO2 credentials.

2 Likes

Ok.. but how does that result in someone being able to;

??

1 Like

It doesn’t, not alone. But it allows an attacker to have everything they need to get the plaintext secret if they have access to your Apex (e.g. close physical proximity). With the client id they could use a Flipper or other device to complete the HMAC-secret exchange with your Apex. Once they have the plaintext secret, they can copy it their own FIDO2 key, go back to your laptop, then use it to unlock the volume.

Just a variation of the classic Evil Maid, but with implantable FIDO. The full attack looks something like

  • Attacker gains access to unattended, encrypted laptop
  • Attacker boots it using a bootable USB that searches for encrypted volumes/disks and copies the LUKS header
  • Attacker obtains the client ID from the header
  • They load it on to a Flipper or other device that can complete the FIDO2 HMAC-Secrets protocol.
  • Attacker gets close to your hand, runs the exchange on the Flipper. The channel is encrypted, but the Apex doesn’t know the difference between the real laptop making the request and the Flipper.
  • Attacker extracts the secret, then loads it into a FIDO2 device or emulator.
  • Attacker returns to your laptop, plugs in the device and boots/decrypts.

User presence (PIN) would stop it (or at least make it much harder), but I wasn’t able to get the PIN request working when I set it up last year. The Apex would send the PIN required messages, Linux would prompt for it, but it didn’t appear to be sending it back to the Apex after I entered it.

2 Likes

I think this part is still wrong.. they could not load it into their FIDO2 device because they do not actually have the FIDO2 device secret, only the HMAC’d client ID (the LUKS secret, not the FIDO secret). If you took the LUKS secret and made that your HMAC secret, then the client ID passed in would produce a completely different output (not the LUKS secret).

This is the part I was tripping on. The attacker would basically need to emulate a FIDO device that did no calculations and just output the LUKS secret, which is trivial yes, but it’s a far cry from extracting HMAC secrets from a FIDO device. That’s an entirely different level of concern.. at least for me it is.

2 Likes

Ah, ok, that’s fair. Once the plaintext secret is recovered, the attacker simply needs a way to present it to the laptop. I didn’t work through much past that point, since the core compromise has already occurred. But yeah, getting that plaintext secret loaded into an actual FIDO2 key under the same client ID would be difficult/impossible.

3 Likes

Thank you for this suggestion!! I use mine all the time too!

:100:

This could be a definite concern for anything sniffing data. If anything is ever transmitted plain text. The hope is nothing is plain text.

The shared secret that is exchanged through the FIDO2 HMAC-Secret extension is encrypted in transit, but that encryption happens using a negotiated channel between the requesting device and the FIDO 2 device (aka the Apex Chip). An attacker that simply sniffs the NFC traffic won’t be able to learn the secret, but an attacker who previously had access to the unencrypted client id from the LUKS header file can present themselves as the encrypted volume, and use the FIDO2 key exchange protocol to set up an encrypted session. The Apex will happily cooperate and transmit the secret over that channel, which the attacker can then view.

1 Like

Yep. That makes total sense.

Can y’all do an iClass Spectrum? I just found out my badge is HID iClass Legacy and the data is all 0xFF and seems like it just cares about the ID. I wanna get a test card and test if I can clone it. If so I want an iClass Spectrum :heart_hands:

1 Like

Can we? It could be engineered. It would cost a lot of money and probably yield less than one sale annually. So while we can, we most likely won’t.

I want to say iClass is 14b, yeah? In theory the UG4 can do 14b.

3 Likes

Yeah 14b for iClass.. would be difficult to make it into a blinky. It would be flex also so the led probably wouldn’t last all that long as all smt LEDs on flex have longevity issues.

3 Likes

I was thinking of it being a custom work order deal.

Then I need to figure out how to get it on the dug4led :grin:

I’ll see if I can play with it some more later. Thanks!

2 Likes