Hacker News new | ask | show | jobs
by natbennett 23 days ago
Flipper Zero is one of the handiest little pieces of tech I’ve ever owned. Being able to copy RFID keys is occasionally fantastically useful.
3 comments

Is... that possible? I thought the whole point is that those were a challenge-response specifically to avoid ever them disclosing over the air the material necessary to impersonate one.
You're thinking of NFC, not RFID, and with NFC the owner might not have changed the default keys.

It's a common mix-up (people barely differentiate between the terms anymore, though I'm surprised nobody in 2 hours mentioned it yet), basically RFID is (historically) an ID; a username. Like an ID field in a database. NFC is near-field communication: bidirectional. It does challenge-response and typically runs on hardened chips. But yeah people will call NFC chips RFID and RFID chips NFC all the time. Both are waterproof devices doing radio transmissions on wireless power and you can't tell them apart without using some equipment to try and read the chip type (even if most phones can do that nowadays), so I can understand the terminology generalisation

> and with NFC the owner might not have changed the default keys

Or the use case doesn't depend on any protected bits. A lot of NFC chips are being used as glorified ID tags even if the hardware could do more. And what actual security the hardware provides varies a lot - it's more like a gradient from dumb ID to full java card than a clean distinction.

Ah yes, very true
Some cards don't have any form of security. For example Konami "e-amusement" cards are just an ID number, which is also written on the back of the card. It is a username so to speak, the password is the PIN you enter when you start the game.

Some cards use some kind of challenge-response but are weak and are easily crackable.

Some cards have an anti-copy protection based on rolling codes, be careful with these. The idea is that when you use it to, say, open a door, the card sends a code to the reader and if correct, that code is burned and the reader replies with the next code, which is stored in the card for the next time, making every other copy (possibly including the original) unusable. If the card emulator doesn't store the rolling code, you are completely locked out.

Some cards have a proper challenge-response mechanism that works and can't be easily copied.

Oof, that burned-code scheme sounds like it has some painfully sharp UX edges if something goes awry in the new code resync portion.

But I'm guessing that's for serious security, where going to the guard shack is preferable to letting anyone unauthorized in?

Keyfobs absolutely should use a secure challenge-response protocol in order to prevent cloning. Unfortunately, it's extremely common for RFID devices to simply use the tag ID which is trivially cloneable. Many of the systems that make some attempt at security still fail by using a broken protocol or a flawed implementation.
As others have said, most are dumb, some just slightly less so. A few captured nonce values and a dictionary attack will crack most with ease.
Many RFID cards are literally just an ID number, and will happily allow you to copy that number to your own RFID card (look up "blue cloner guns", although they have their own downsides). Basically just security through obscurity. Cards that do fancy crypto stuff exist, but odds are your workplace badge, apartment fob, or hotel room key is the simple kind (because those are cheaper)
For a lot of applications someone being able to clone the card is also not that big of a problem. E.g. a hotel will invalidate the code on the card anyway when you check out so it doesn't matter for security whether a past guest has cloned the card.
In my old apartment I was able to copy my fob from my apartment office. In my new one I had to record the interaction with the door and was then able to open the door
I don’t know a whole lot about RFID, but some of the most basic cards can be copied very easily. When scanned, the reader always reads the same bits.

I believe there are some more secure cards, like Mifare DESFire EV3 that do provide some security. You’d be shocked how insecure most RFID readers for security cards are.

Oh yeah that’s how you’re supposed to do it. But it’s entirely possible to set up a system that uses RFID key fobs that uh, doesn’t.

In the case where it was most useful to make copies they did eventually replace the system with one where the keys weren’t copy able. Which was better!

Depends on where you are. Newer systems are resistant to attack, but not everywhere has upgraded to newer systems.
Even that process can be flawed, see: Crypto1 and all the shenanigans that followed.

Recent UL-C/AES disclosure too IIRC

RFID keys vary from utterly dumb ID-based, to hackable challenge-response, to actual NFC smartcard (very rare).

Some of that can be trivially cloned.

Most dont :)
I use it to clone remotes of "dumb" devices and emulate them with ESPHome to make them "smart" fully offline under my control.
Can you outline the process here? What transmitters do you use with esp32?
Everything you can capture with Flipper has off-the-shelf cheap simple components you can find in your DIY electronics/maker store: IR leds, 433Mhz antennas. Seeed xiao is also small enough that you can stuff it and a relay into appliances and simulate button presses.
Is this something you do often? I could see a few use cases and also for copying garage keys. But I don't think I would use it enough to justify the investment
> I don't think I would use it enough to justify the investment

This is not a rational purchase - most of the rule breaking done with the zero is for fun or convenience, rather than being truly illegal.

It used to be more fun before the hotels started handing out NFC unlocks with your phone.

Still, being able to send each other a key for a hotel room on Signal is a nice trick if you are traveling with a sufficiently tech savvy group of people.

If you just want to clone a typical garage door remote, you're way better off buying a generic $5 fob. Almost all the 433MHz garage fobs I've seen are designed to easily clone each other. And if cloning doesn't work, it's probably because you need to access the door controller and hit a few buttons to pair the remote directly. Also trivial, and also often pretty physically insecure. In the smaller apartment buildings I've lived in, the boxes containing these control units have usually just been hidden behind by a couple of screws and a "danger electricity" sticker.

If your current remote has multiple unused buttons on it as they often do, you can already try this out.

IMO for garage much easier to just add garage door opener that works from your phone.
And then I need to pull my phone to open the garage door? No thanks
Means you don’t need to carry your keys when you go for a walk and you can trigger via voice or iPhone’s shortcut button.

I still use button on the wall and if you actually park in garage you can keep using fob.

You can't even clone you garage door opener key anyway.

Flipper Zero and its clones have always been pseudohacker nonsense. Fun little party trick I suppose.

Sometimes you can clone them. My 20+ year-old condo uses non-rolling code "MegaCode". It's hit or miss.
Nope! Only occasionally. But it’s handy on those occasions.