The Transaction MAC feature of NXP’s MIFARE DESFire EV3 and MIFARE Plus EV2 ICs can help to prevent fraudulent merchant attacks. It allows to prove the authenticity of executed transactions between the reader terminal and an IC inside a smart card.
NXP MIFARE TeamMIFARE is the leading contactless development platform used in more than 40 different applications worldwide.
2. 1EXTERNAL
TRANSACTION MAC TO HELP PREVENT FRAUDULENT MERCHANT ATTACKS
O F F L I NE T R AN S AC T I O N S W I T H S E C U R E VAL I D AT I O N
• The Transaction MAC (TMAC) feature allows the infrastructure operator / POS operator / merchant to prove the genuineness and authenticity
of executed transactions between the reader terminal and the IC inside a smart card
• Helps to establish trust in a multi-service provider system
− Proving that every transaction is genuine towards the backend system via secure verification of transaction validity
• Card generated TMAC covers all transaction details, allowing to detect:
− Forged or fraudulent transactions
− Replay of transactions
− Unreported and missing transactions
Preventing
fraudulent
merchant attacks
Generating a MAC
for the transaction,
proves
genuineness of
executed
transactions
Allows to detect
replayed,
manipulated or
missing
transactions using
the TMAC counter
3. 2EXTERNAL
TRANSACTION MAC TO HELP PREVENT FRAUDULENT MERCHANT ATTACKS
O F F L I NE T R AN S AC T I O N S W I T H S E C U R E VAL I D AT I O N
Backend
Clearing House
Offline Transaction
TMAC Key
AES128
TMAC
TMAC Key
AES128
Reader
Terminal
Service
Provider Y
Reader
Terminal
Service
Provider Z
4. 3EXTERNAL
TECHNICAL DETAILS: HOW TO ENABLE TRANSACTION MAC FEATURE ON THE CARD
On MIFARE DESFire EV3
• Can be enabled independently for each application
• Established by creating a Transaction MAC file inside the application
• Correct access rights for Transaction MAC file need to be set
• Desired Transaction MAC key needs to be written into Transaction MAC file in a secure way
• Once enabled, Transaction MAC will be calculated automatically by the IC with every CommitTransaction
command targeting the application, and returned to the reader
On MIFARE Plus EV2
• In total, four Transaction MAC Keys can be configured on the IC
• Each TMAC Key is connected to one TransactionMACBlock which contains current TMAC Value and
Counter plus one TransactionMACConfiguratinBlock
− TransactionMACConfiguratinBlock specifies which MIFARE Plus data or value blocks shall be protected by Transaction
MAC
• Once enabled, Transaction MAC will be calculated automatically by IC when updating one or more
protected blocks
• Write / Transfer / Increment Transfer / Decrement Transfer commands trigger Transaction MAC
finalization and updating of TransactionMACBlocks
5. 4EXTERNAL
MORE INFORMATION ABOUT TRANSACTION MAC FEATURE
Item Number Availability
Datasheet - MIFARE DESFire EV3 DS4489 NXP Docstore (confidential)
Datasheet - MIFARE Plus EV2 DS5223 NXP Docstore (confidential)
Application Note - MIFARE DESFire EV3 Quick-Start Guide AN5755 NXP website (public)
Application Note - MIFARE DESFire EV3 Features and Hints AN5881 NXP Docstore (confidential)
Application Note - Feature and Functionality Comparison between
MIFARE DESFire EV2 and MIFARE DESFire EV3
AN5756 NXP website (public)
Application Note - MIFARE Plus EV2 Features and Hints AN5760 NXP Docstore (confidential)
Application Note - Comparison between MIFARE Plus EV2 and
previous types
AN5762 NXP Docstore (confidential)
RFID Discover Software SW1866 NXP Docstore (confidential)
NXP Reader Library (Windows based) SW1717 NXP Docstore (confidential)
https://www.nxp.com/products/rfid-nfc/mifare-hf/mifare-desfire
https://www.nxp.com/products/rfid-nfc/mifare-hf/mifare-plus
https://www.docstore.nxp.com/