MIFARE DESFire in Access Control: Secure Identification and Application Management
DESFire: a card with its own file system
MIFARE DESFire — the flagship line of NXP's MIFARE family: a contactless ISO/IEC 14443 Type A smart card operating at 13.56 MHz, whose chip runs a full operating environment with a file system. Where MIFARE Classic and MIFARE Plus store data in fixed sectors, DESFire organizes memory as a set of applications, within which files of various types are created, each with its own access rights and keys. In essence, it is several independent smart cards in a single package.
Communication with the card runs over the ISO/IEC 14443-4 protocol at speeds up to 848 kbit/s, with mutual authentication per ISO/IEC 7816-4. The chip has a 7-byte UID that can be switched to random-response mode: it presents a random number externally, and the real identifier is revealed only after authentication. The DESFire EV3 hardware platform is Common Criteria EAL5+ certified — the same level as bank cards and government documents.
In Seenaptec Access Platform, DESFire is one of two secure credential formats alongside MIFARE Plus. The system reads not the factory UID but the data of a protected application file using the site's key: a "foreign" card with the same serial number is not recognized as valid. The card is issued using the platform's own tools — this process is called credential issuance.
Applications: Isolated Domains on a Single Chip
The key concept of DESFire is the application: a dedicated memory area with a three-byte AID identifier, its own set of keys, and its own files. An EV1-generation card holds up to 28 applications, while in EV2 and EV3 their number is limited only by the EEPROM capacity (from 2 to 16 KB). Each application has its own master key: the keys of one service physically cannot open the files of another, so the domains are completely isolated.
For access control, this solves the problem of combining services: a single badge can host the access system application, a corporate cafeteria application, parking, or a loyalty program — while compromising the keys of a "non-critical" service in no way affects the access domain. This is exactly why DESFire is chosen for new sites with maximum key isolation requirements.
The EV2 generation added a delegated application management mechanism (MIsmartApp): a third-party service can create its own application on an already-issued card without access to the card's master key. The access control system owner does not need to reissue badges or share the master key — the access application remains under their control, while adjacent services are loaded separately.
In Seenaptec, the secure card profile describes the access application: the AID, the file structure, and the site keys. The platform does not use the card's other applications and does not restrict them in any way.
Application files: types and access rights
Up to 32 files are created inside the application, each with a chosen type and a fixed size. The set of six types covers everything an identifier needs: from simple code storage to counters and operation logs.
| File type | What it stores | Typical use |
|---|---|---|
| Standard file (Standard Data) | Arbitrary fixed-length data | Identifier code, card service fields |
| Backup file (Backup Data) | Data with transactional writing | Fields that must not be lost if a write is interrupted |
| Counter (Value) | 32-bit value with credit and debit operations | Balance, passage limits, paid services |
| Linear log (Linear Record) | Fixed-size records in sequence | Operation history, event timestamps |
| Cyclic log (Cyclic Record) | Ring buffer of records | Last N events within a limited footprint |
| Transaction file (Transaction MAC) | Cryptographic confirmation of a completed operation (EV2/EV3) | Audit of card writes, integrity verification |
Access rights are set at the level of each file and for each operation separately: read, write, read-write, and rights changes can be bound to different application keys — there are up to fourteen of them — allowed freely, or denied entirely. A reader presenting a "read key" physically cannot modify the data: rights enforcement is handled by the card itself, not the system.
During issuance in Seenaptec, files matching the identifier structure are created in the access application, and the code is written to them under the site's key. At access points, the read profile specifies which application and which file to take the identifier from — the public UID plays no part in the access decision.
Secure data exchange and storage
All operations on DESFire protected areas take place within a session: the card and the reader mutually authenticate with the application key, derive session keys, and then operate in one of three transfer modes — plain with a checksum, with a cryptographic signature applied to each block (MACed), or fully encrypted (enciphered). The mode is defined by the application settings when the application is created; encrypted exchange is used for the identifier file, so intercepting the radio traffic reveals neither the code nor the keys.
A separate mechanism is transactional writing: backup files, counters, and logs are committed atomically. Either the operation completes in full, or the card rolls back to its previous state. For a credential that is held up to the reader for a fraction of a second and can be pulled away mid-write, this is critical: properly issued cards never end up "half-written", and the Transaction MAC file in EV2 and EV3 makes it possible to verify that the operation actually completed.
In Seenaptec, the secure channel operates at both levels. At the card level, the identifier code is written and read within a session using the site's keys. At the line level, the read code travels from the device to the server over OSDP Secure Channel: the initial connection is established with the SCBK-D base key, then a working key is set, and the full-encryption mode with an automatic key enables regular rotation without operator involvement. The access decision is made by the server — neither the credential itself nor the line carries any rights.
Where DESFire works at a facility
The secure application file is read by AGRG multi-format readers — from compact wall-mounted AXI units to SH-series cabinet handles for server and telecommunications cabinets. Reader compatibility with different card families and the specifics of reading protected areas are covered in the AGRG AXI multi-format reader review.
The "multiple services on a single credential" model is especially convenient at sites with complex infrastructure — in data centers, the energy sector, and industrial facilities: the card remains both an access pass and a data carrier for related services, while the access domain is isolated by its own keys. For the data center solution, see the "Data Centers" section.
DESFire does not require replacing everything at once: a mixed card fleet is a standard phased-migration scenario. Legacy credentials keep working while issuance under the new profiles proceeds by department or on a rotation schedule; the practical side of such a transition is described in the article on Wiegand system migration and secure issuance.
The step-by-step issuance operations — credential registration, bulk issuance, reissuance, and the division of roles between the badge office and the security officer — are covered in detail in the article "MIFARE Plus and DESFire Access Card Issuance" and in the platform documentation.