LEGIC is a Swiss ecosystem used for building access across Europe. It is a family of 13.56 MHz chips with its own reader technology, its own licensing model and its own way of dividing memory. That is why it is missing from many generic RFID guides. This article covers the two main chip lines and what the Iceman client can do. Test only cards and systems you own or are authorised to assess.
Two generations
- LEGIC Prime. The original line, with a proprietary air protocol. The client recognises three sizes: MIM22 (22 bytes), MIM256 (256 bytes) and MIM1024 (1,024 bytes).
- LEGIC advant. The successor line, with chips that use the ISO 15693 or ISO 14443-A standards. The ATC128-MV, ATC256-MV and ATC1024-MV chips use ISO 15693 with nominal sizes of 128, 256 and 1,024 bytes (the ATC256-MV is the successor to the Prime MIM256), and the ATC4096-MP311 uses ISO 14443-A with 4,096 bytes and Common Criteria EAL4+ hardware certification. Usable memory is lower than the nominal figure on some parts.
The chips are sold to card makers and licensed system integrators, so the same chip appears in many cards, fobs and wristbands under different brand names.
How the memory is used
LEGIC’s memory model divides the chip into segments. On a Prime card the first 22 bytes are a system area that holds the 4-byte UID, a check byte derived from it (MCC) and a DCF field, and the segments start at byte 22. Each segment header carries its length, its write protection settings (WRP and WRC) and a read protection flag (RD), and each segment payload is protected by a CRC computed over the UID and the data. A single card can therefore serve several applications, such as a door system and a canteen, each in its own segment. The UID of a genuine chip is fixed, which is why the CRCs have to be recalculated when a dump is moved to a different card.

Reading a LEGIC Prime card
hf search
hf legic infohf legic info reads the card, removes the obfuscation of the data and prints the decoded header and the segments. To save the card:
hf legic dumpThe dump is written to a file named from the UID by default, and hf legic dump --de writes the data with the obfuscation removed so that you can read it. hf legic rdbl -o 0 -l 16 reads 16 bytes from offset 0, the start of the 22-byte system area, and hf legic view shows a saved dump. The client also has hf legic restore to write an exact dump back onto the same card family, hf legic clone to write a dump to a different card and hf legic sim to simulate a card. The hf legic commands cover LEGIC Prime only. An advant card answers as an ISO 14443-A or ISO 15693 tag, so hf 14a info or hf 15 info will show its UID, but its protected segments are out of reach of these commands.
Security in plain terms
LEGIC Prime relies on a proprietary protocol and on the obscurity of its design. Henryk Plötz and Karsten Nohl presented “Legic Prime: Obscurity in Depth” at 26C3 in December 2009, and published the details in 2010 and 2011. They found that the only security algorithm was an obfuscation function with about 15 bits of secret state, seeded with a 6-bit random number and with no secret key, so that neither card nor reader can authenticate the other and an attacker can play either role. They demonstrated reading protected cards, emulating cards and creating master tokens. Prime tags are therefore not secure against a determined attacker. In their 2011 paper the researchers concluded that Prime should be replaced with cards that use peer-reviewed cryptography in open protocols, and they noted that the way master tokens delegate rights can most likely be abused on LEGIC advant too, so an advant deployment needs its own assessment rather than being assumed safe.
What it can be copied to
With the Proxmark3 a LEGIC Prime dump can be restored to a card of the same family, or cloned to a different tag with the segment CRCs recalculated for the new UID, and the client can emulate the card. Because the UID of a genuine chip is fixed, the copy carries a different UID, which a system that checks it will notice. There is no broad blank that imitates all LEGIC cards.
Where it is used
Building access, time and attendance, cashless payment in canteens and laundries and public sector sites. The researchers listed military installations, government departments, power plants, hospitals and airports among Prime’s users.
If you meet LEGIC in an assessment, record the chip line first. Prime and advant need very different conclusions in a report. For a structured approach to access control assessments, see Attacking RFID Access Control: Assess, Report and Fix. For the Proxmark3 skills, see Proxmark: RFID Research and Cloning and the RFID and NFC Ultimate Course.
Proxmark3 commands
These commands were checked against Iceman client v4.23346, released September 2026. Run -h on any of them for the options in your own build.
hf legic inforeads and decodes the card, andhf legic readershows the UID and tag information.hf legic dumpsaves a Prime tag,hf legic rdblreads bytes, andhf legic viewshows a saved dump.hf legic wrblwrites bytes,hf legic wipeclears a tag,hf legic restorewrites an exact dump back to the same card family, andhf legic cloneandhf legic migratewrite a dump to a different tag.hf legic simsimulates a tag, loaded withhf legic eload, andhf legic eviewandhf legic einfoshow the emulator memory. v4.23346 fixedhf legic simwiping the emulator memory thathf legic eloadhad just filled, and aneloadupload that could arrive incomplete.hf legic crccalculates a CRC over given bytes.
Each chip in this guide has its own entry in the RFID and NFC Chip Database: LEGIC Prime MIM256, LEGIC Prime MIM1024, LEGIC advant ATC256-MV, LEGIC advant ATC1024-MV and LEGIC advant ATC4096-MP311.
More in this series
Start with the hub guide, How to Identify an RFID or NFC Card. Related reading: HID iCLASS and INSIDE PicoPass and MIFARE DESFire EV1, EV2 and EV3.
More from this author
- One capture, three questions2 December, 2026
- Payload channels versus timing channels2 December, 2026
