MIFARE: Contactless Access Technology in Seenaptec
What is MIFARE
MIFARE is a family of contactless microchips and cards from NXP Semiconductors that has become the de facto industry standard for access control systems. The cards operate at 13.56 MHz under the ISO/IEC 14443 Type A protocol: the reader generates a field from which the chip draws power and exchanges data with it over a distance of several centimeters. Compared to the older 125 kHz cards, MIFARE offers more memory, a higher data rate, and cryptographic mechanisms — meaning the card can be not just a "fob with a number" but a secure credential.
In access control systems, the card acts as an identifier carrier: the reader obtains the code and passes it to the higher level, while the access decision is made by the system. That is why two characteristics matter in practice — which code the equipment actually reads and how well that code is protected against cloning.
In Seenaptec Access Platform, a MIFARE card is represented by the "identifier" entity: it has a type ("Regular", "Internal", or "Control"), a validity period, and a lifecycle state — from issuance to a person through blocking, loss, or withdrawal upon reissuance.
UID and Secure Memory: Two Usage Scenarios
The minimal option is reading the UID — the chip's unique serial number. It is transmitted openly whenever the field is activated: any compatible device can read it, and a card like this can be cloned with off-the-shelf tools. UID is convenient for compatibility with a legacy installed base and for low-risk areas, but as the sole factor at secured facilities it is considered weak.
The secure option is issuance into a protected memory area: the system writes the identifier into a card sector or application whose keys are known only to it. The reader authenticates on the card and receives the code from the protected area; the key itself is never transmitted over the interface. Such issuance cannot be forged by writing a code from the outside — the card must be issued by this particular system.
| Approach | What is read | Copy resistance | Where to use |
|---|---|---|---|
| UID (serial number) | Open chip number | Low — readable by third-party devices | Legacy installed base, guest passes, low-risk areas |
| Protected sectors and applications | Code written by the system at issuance | High — requires the issuer key (AES) | New facilities, restricted areas, new card issuance |
How a MIFARE card works in Seenaptec Access Platform
The card presentation flow works like this: the reader receives the code, the peripheral device sends the event over the OSDP line to the srv_osdp service, then through the MQTT broker to the srv_behavior service. The latter checks the credential: whether the validity period and permitted passage count hold, whether the access time is allowed, whether conditions apply, whether the anti-passback rule (APB) will fire, and whether escort is required. The decision is returned to the line — and the lock relay trips, or a denial is recorded in the log with its reason.
Two architectural properties matter specifically for the card topic. First, rights are assigned to the access object — a door, a turnstile, a cabinet — not to a specific reader: replacing a device on the line does not require reconfiguring the rules. Second, peripheral devices make no decisions — all logic resides on the server, so "flashing a permission" into the card or the reader is pointless.
The identification mode is configured per access object:
- "Card only" — the standard passage scenario;
- "Card + PIN" — after the card is presented, a 4–12 digit code is entered;
- "Card + escort" — after the visitor's card, the escort's card is presented (dual control);
- "Card + PIN + escort" — the PIN is entered by the escort.
The MIFARE card remains the identifier carrier, while the second factor is added by the system — at the object rule level, without replacing hardware. Setup details are in the administrator's guide.
Keys, Bus, and Log: What Protects the Card Perimeter
The card key in the platform is a named secret of the "Security" workspace, alongside the OSDP key and the backup password. Its value cannot be read from the interface — it can only be used by reference; the creation, rotation, and deletion of secrets are recorded in the audit log without the values themselves.
The "reader-to-server" exchange is protected on two levels: an encrypted OSDP Secure Channel with key installation and rotation, and for supported AGRG devices — automated Seenaptec SecureBus discovery, which detects devices on the line by their serial numbers and assigns addresses. Every event log entry is included in a hash chain — a breach of the log's integrity itself becomes an alarm.
Migrating a legacy card fleet
At existing sites, MIFARE typically replaces 125 kHz cards (EM-Marine, HID) or cards with exposed UIDs. The migration does not have to happen "in one day": multi-format readers read the old and new card fleets simultaneously, while new credentials are issued through the regular pass-office workflow — up to and including bulk import of personnel from a CSV file together with their cards.
Practical details are covered in the article about the AGRG multi-format reader and in the note on migrating Wiegand systems and secure card issuance in version 1.6.1.