Advanced: RFID Backdoor Hack

Last month a hardware backdoor was published, which virtually comprises most RFID access-based systems out there. I haven’t been able to read it in detail till now. It’s a great read I have linked it below. RFID systems are used for access systems in hotel rooms and as employee badges use a cheap IC called FM11RF08. This is a contactless smart card chip developed by Shanghai Fudan Microelectronics, designed to be compatible with NXP’s MIFARE Classic cards but very cheap. Most devices in the last decade of installation would probably use this chip.

The paper reveals a critical flaw in FM11RF08S (newer secure version of the classic) cards. The vulnerability stems from a hardware backdoor, allowing attackers to access and compromise user-defined keys. This backdoor is triggered by using specific authentication commands that are normally used to initiate communication between the card and a reader. Through fuzzing (random testing of commands), they discovered that certain authentication commands respond in weird ways, allowing access to a backdoor authentication mechanism.

Normally, commands starting with 60 or 61 would authenticate using the card’s user-defined keys (keyA or keyB), but by changing specific bits, the card accepts a backdoor key, which allows the attacker to authenticate without knowledge of the actual keys. After breaking the backdoor key, the attacker gains access to all user-defined keys on the card, even if those keys are diversified or unique for each card sector. The allows an attacker to read all data stored on the card, including sensitive user information. Then the attacker can use a device like the Proxmark3 to clone the card. Once cloned, the attacker can emulate the card to any system that relies on the FM11RF08S. A pretty brilliant work with the hack.

So if you are a business owner using one of these systems and have something even remotely valuable guarding access with these chips, time to switch to something better!

If you liked the post, Share it with your friends!

BackToBasics: Trimmer Potentiometers

Often called Trimpots, these little components are essential for fine-tuning circuits and ensuring your devices function just the way you want. A potentiometer is essentially a variable resistor, which allows you to manually adjust the resistance in a circuit. A trim pot is a type of potentiometer that’s designed for more precise, infrequent adjustments. Think of it as the control knob that you set once and forget. They are used for tuning circuits, setting reference voltages, and setting opamp gains when resistance tolerance needs to be handled post-assembly.



Trimpots have 3 terminals, two connected to the ends of a resistive element, and a third one (the wiper) that slides along the resistive track. By adjusting the wiper, you change the resistance between the wiper and each end of the resistor. What you need to remember is that there will always be a finite resistance between the terminals, it may not always be zero on one end. Refer to the datasheets for the minimum resistance or the terminal resistance for this value. When selecting trimpots, consider the same factors you’d consider when choosing a resistor like resistance tolerance, temperature variation, and power rating. What is extra would be contact variational resistance, which is the max change in contact resistance that will be encountered when the wiper moves from one place to another. We want this to be low. Good quality manufacturers also specify vibrational or shock tolerances.

They come in different shapes and types. The key one is a single turn vs multi-turn. It specifies the number of rotations you need to full resistance range. Multiturns are expensive but offer precise control of resistance for fine-tuning. It comes in open frame or sealed packages(useful in high humidity cases).

A common mistake I see among clients is using trimpots(as they are smaller) where rotary potentiometers should be used. Trimpots have a notoriously short lifespan (100-200 cycles) compared to rotary pots (about 10k cycles). Always check the datasheet for cycles! If the knob will be adjusted often, use a rotary pot.

If you liked the post, Share it with your friends!
1 25 26 27 28 29 118