MIFARE DESFire in Access Control: Secure Identification and Application Management

Applications, Files, and AES Keys: How the Secure DESFire Identifier Is Issued and Works in Seenaptec Access Platform
Seenaptec · 02 December 2026
Model

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.

Domains

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.

Files

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 typeWhat it storesTypical use
Standard file (Standard Data)Arbitrary fixed-length dataIdentifier code, card service fields
Backup file (Backup Data)Data with transactional writingFields that must not be lost if a write is interrupted
Counter (Value)32-bit value with credit and debit operationsBalance, passage limits, paid services
Linear log (Linear Record)Fixed-size records in sequenceOperation history, event timestamps
Cyclic log (Cyclic Record)Ring buffer of recordsLast 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.

Keys

DESFire Key Hierarchy

01.
Card level

PICC master key

Card master key: controls the creation and deletion of applications and the changing of the key itself. During initialization, the factory transport key is replaced with the site key — from that point on, only the system owner can configure the card.
02.
Application layer

Up to 14 keys in each

Inside an application sits a set of keys 0–13, each with a dedicated role: file read, write, and permission changes. In EV3, applications support up to 16 key sets with fast rotation — swap the entire key fleet without reissuing cards.
03.
Cryptography

AES-128 and 3DES

Hardware DES and 3DES for compatibility, with AES-128 as the primary choice. After mutual three-pass authentication, the parties obtain session keys that differ from the card keys.
04.
Privacy

Random UID

In Random ID mode, the card responds to anticollision with a random number, and the real 7-byte UID is revealed only after authentication — it is impossible to track a person by the card's factory number.
05.
Diversification

Every card has its own key

Working keys are derived from the master key and the unique parameters of the credential: compromising one card does not expose the others, and the master key is never written to the card and never leaves the secure perimeter.
06.
Authenticity

Chip Authenticity Check

EV2 and EV3 can prove that the chip is manufactured by NXP (Originality Check) — this filters out counterfeit chips in the issued card fleet, while the Proximity Check mechanism makes relay attacks on the reader more difficult.
Channel

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.

Issuance

DESFire Issuance in Seenaptec Access Platform

Card key in the platform's secure secrets storage
Secrets

Object keys in storage

Symmetric card keys are entered in the "Secrets" section of the "Security" workspace: each value is entered once, encrypted, and never displayed on any screen again — consumers access the secret by reference, while the audit log records operations without the values themselves.
Identifier template: card type and validity period rule
Template

Identifier template

The template defines the card type — "Standard", "Internal", or "Control" — and the validity period rule: "No expiration", "For 3 months", "For a year", or "Until a date". Uniform credentials are issued from it without manually filling in fields.
Desktop AGRG-TBL-USB USB reader with a DESFire card at the pass office workstation
Record

Initialization on the reference reader

At the pass office workstation, the AGRG-TBL-USB USB reader switches the card from its factory state to the site state: the transport keys are replaced with the site's keys, an access application with files is created, and the identifier code is written to a secure file.
Addressable OSDP reader AGRG AXI 6 mounted on a wall beside a door
Profiles

Reading Profiles on AGRG Devices

The settings for "which application, which file, and which keys to use when reading the card" are applied to AGRG readers and handles centrally: through equipment templates during automated SecureBus discovery, from the device card, or as a bulk operation — without having to walk the site.
Reissuing a DESFire card without changing the person's passes
Accounting

Lifecycle and Reissuance

An issued card is registered in the "Identifiers" panel and moves through states from "Active" to "Lost" and "Withdrawn"; bulk entry is performed by importing personnel from CSV. The "Reissue" operation changes the credential medium without affecting the person's passes or access rights.
Practice

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.