Access card UID: what it is and why UID-based identification is insecure
What is a UID and how the system reads it
UID (Unique Identifier) is the factory serial number of a contactless card's chip. It is written to the chip during manufacturing, and in legitimate cards it cannot be changed: for ISO/IEC 14443 cards (MIFARE and compatible), it is a 4- or 7-byte value; for 125 kHz cards, it is a code in the EM-Marin format or similar. Technically, the UID has a single function — addressing: the reader uses this number to distinguish cards during the anti-collision stage, when several credentials end up in its field at once.
An important consequence: the UID is transmitted in plain text. The "return the serial number" command requires no keys or authentication — the standard is designed this way so that any reader can work with any card. Therefore, the code can be obtained simply by bringing the card close to a reader; the standard registration of identifiers in an ACS is built on the same mechanism.
In Seenaptec Access Platform, the scanned number becomes the identifier's "Code" in the "Identifiers" panel: the card is tapped against any reader in the system or a control USB reader at the operator's workstation, or the code is entered manually. During commissioning, the read event itself is also visible — in "Commissioning (LIVE)" mode, an entry with the scanned identifier's code appears in the feed on every presentation.
The code then goes through the standard access-request processing chain: the reader receives it upon presentation, the peripheral device transmits the event over the OSDP line, the decision-making service finds the person by the identifier, checks their status, active passes, rights to the object, validity period, schedule, and the object's rules — and issues an "allow" or "deny" decision, which is recorded in the event log along with the reason.
Why identification by UID alone is insecure
UID is an identifier, not proof of authenticity. A system that decides on the number alone answers the question “what code was presented,” but not “is this a genuine card.” And copying the number is technically easy:
- UID is read without keys. Any ISO 14443 reader — including inexpensive field devices and emulators — picks up the number in a fraction of a second; a brief moment near the card is enough.
- The number is written to a blank. Cards and key fobs with rewritable UIDs, as well as hardware emulators that replay the scanned code bit-for-bit, are readily available: to an access control system the clone is indistinguishable from the original.
- Uniqueness is not guaranteed even without malicious intent. 4-byte numbers repeat across manufacturers and batches; a 7-byte UID is more reliable as an address, but it changes nothing against forgery — it is copied in exactly the same way.
- A clone passes “quietly.” A fake card carrying someone else’s number appears in the log as a routine entry by the owner: the access event contains no sign of forgery, because only the code was checked.
Practical takeaway: a UID works as a way to name an identifier and keep it on record — in the platform the code is used to look up the person and verify passes — but it must not be used as the sole factor of authenticity.
Secure identification: authentication instead of a number
Secure cards — MIFARE Plus, MIFARE DESFire — are built differently: in addition to a public UID, they have a memory area accessible only after cryptographic authentication. The reader and the card prove to each other that they know the AES key without revealing it over the air, and the identifier used by the system is data from the protected area rather than the serial number. Such a card cannot be copied by reading its number: without the key a clone will not pass authentication, and keys are computed individually for each card (diversification), so compromising one card does not expose the others.
In Seenaptec Access Platform, card keys are a separate material type in the secure "Secrets" vault of the "Security" workspace: the value is entered once, is encrypted after being saved, and is not displayed on any screen — consumers access it by reference, while creation, replacement, and deletion are recorded in the audit log without the values themselves. Cards are issued under these keys at the operator workstation; the secure issuance process for MIFARE Plus and DESFire is covered in a separate article. The Seenaptec lineup also includes a certified card for this scheme — AGRG SL3 Certified MF+ (MIFARE Plus X 2K, SL3 security level, 7-byte UID).
It is worth emphasizing separately: the channel between the reader and the server is protected regardless of the card type — OSDP Secure Channel, with working-key establishment and automatic rotation, closes the line to eavesdropping and tampering. The weak point of UID-based identification is not the line, but the fact that the card hands out its only "secret" in the clear.
UID and secure identification: what's the difference
| UID-based identification | Protected identification | |
| What is read | The chip's public serial number | Data from a memory area after cryptographic authentication |
| What presenting it proves | Only the fact that a code was presented | The card's authenticity — only the original knows the key |
| Resistance to cloning | A blank card or emulator can replicate the number in seconds | Without the key, a copy fails authentication |
| Keys | Not used | Stored in "Secrets," cannot be read from the interface, diversified per card |
| Forgery in the event log | Indistinguishable from the cardholder's access event | Rejected before the access decision is made |
The UID itself doesn't go anywhere: it remains a convenient name for the identifier in the "Identifiers" panel, used for record-keeping, reissuance, and investigations. What changes is its role — instead of serving as "proof," it becomes an administrative attribute, while authenticity is confirmed by cryptography.