Abstract

What happens between the reader on the wall and the lock releasing, and where can each step be attacked? Following one badge read gives five points to assess: the reader-to-controller link, the controller’s local decision, the lock relay and door inputs, the controller’s network services, and the head-end server. A reader configured for Wiegand output sends the credential number in cleartext with no link authentication, and implants that log and replay it have been public since 2008. OSDP adds a supervised RS-485 link and optional AES-128 Secure Channel, but Bishop Fox showed in 2023 that optional encryption, capability downgrade, persistent install mode, weak keys and key capture during provisioning can leave credential numbers readable and the reader unauthenticated. Advisories describe unauthenticated remote code execution on HID and Mercury panels and hard-coded credentials in Nice Linear eMerge E3 units. At the door, configured alarm policy, input supervision and egress design are separate controls. The defensive answer is to require Secure Channel with per-reader keys, supervise every input, isolate and patch controllers, and verify each of these at the installed door rather than on the data sheet.

One badge read, five points to assess

A cardholder presents a badge. The reader authenticates the credential, or merely reads a number from it, as discussed in our article on cloning access cards. That article covers the card and the reader’s radio interface, and gives Wiegand and OSDP only a short section.

One illustrative architecture, taken from Mercury’s LP1502 controller documentation, shows what follows. The reader sends what it read over a reader port that can run Wiegand-style data lines, clock-and-data, F/2F or two-wire RS-485.1 The controller makes the access decision itself: Mercury describes the LP1502 as performing “access control, alarm management and scheduled operations” and as able to function “independently of the host”.2 It drives the lock through Form C relays and watches the door through eight inputs, and it reports to host software over Ethernet.1 Some deployments go further and connect the head-end to a corporate directory or forward its events to a security operations centre; those are design options, not properties of the panel.

That gives five points to assess, each holding a different asset. The reader link carries credential numbers. The controller holds the decision logic and a local copy of cardholder data. The relay and inputs hold the physical state of the door. The controller’s network services are a further point of exposure: what someone who can reach them can do depends on which services are enabled, what privileges they require and whether the installed firmware has known flaws, as the advisories below show. The head-end holds the master database and the operator accounts.

Wiegand: a number on two wires

The electrical interface

Wiegand takes its name from the Wiegand-effect wire that early swipe cards embedded, and the electrical protocol outlived the cards. Zac Franken’s 2008 Black Hat DC talk and the BLEKey white paper both describe it the same way: three conductors, one for binary 0 (DATA0, usually green), one for binary 1 (DATA1, usually white) and a ground.34 Both data lines idle high, at 5 V in the BLEKey authors’ description, and the reader sends each bit by pulling the corresponding line low for a short pulse.4

The Security Industry Association lists a 1996 standard, SIA AC-01-1996.10, “Access Control Standard Protocol for the 26-BIT Wiegand Reader Interface”, covering the electrical elements of reader-to-panel data transfer, power, and control of devices on the reader.5 I could not obtain its text, so the timing figures here are vendor examples. Keri Systems gives a nominal pulse width of 100 microseconds and a pulse interval of 1 millisecond.6 BALTECH’s reader documentation gives configurable defaults of 50 microseconds and 2 milliseconds, and calls Wiegand “a de-facto standard for read-only connections between a card reader and an access control system”.7 On those figures, a 26-bit frame lasts roughly 26 to 52 milliseconds, and simple hardware can record it.

H10301 and longer formats

The bits are only a number until a format gives them meaning. HID’s standard 26-bit format, ordering code H10301, has a leading parity bit, an 8-bit facility code, a 16-bit card number and a trailing parity bit; DMP describes it as the format that “almost all access control systems accept”.86 Keri notes that an alternative 12/12 split once competed with 8/16, which “eventually became the main format”; the 8/16 layout allows 256 facility codes and 65,536 card numbers per code.6 BALTECH describes the parity rule for standard frames: the first bit is even parity over the first half of the data, and the last bit is odd parity over the second half.7

The BLEKey presenters used a worked example: facility code 21, card number 29644.9 Their slide shows the bit stream, and the arithmetic is easy to check. Facility code 21 is 00010101 and card 29644 is 0111001111001100. The first twelve data bits contain six ones, so the even-parity bit is 0. The last twelve also contain six, so the odd-parity bit is 1. The frame on the wire is 00001010101110011110011001, the same 26 bits as on the slide. Parity detects a mis-read. It adds no secrecy, and anyone who can compute it can form a valid frame.

Longer formats change the field sizes and not the principle. DMP’s integrator paper lists the 26-bit format and Farpointe’s 39-bit format as public formats, and describes HID Corporate 1000 formats in 35- and 48-bit lengths as registered to an end user; it notes that proprietary formats move fields around within a given length, and that its panels accept up to 255 bits.8 Registration and proprietary formats can restrict who may order cards with a given number range, depending on the format and the vendor’s ordering rules. They do nothing for a number recorded on the wire, because the recorder captures the bits whatever they mean.

One-way, unauthenticated, unsupervised

Wiegand data flows from reader to controller only. On the BALTECH readers documented, the controller’s influence over the reader is limited to separate input lines for LED and beeper; the LED turns green while the host holds an input low.7 There is no channel on which the controller could challenge the reader, so it cannot cryptographically tell a genuine reader from another device that drives the data lines correctly. Mercury’s 2026 migration brief summarises the consequences: Wiegand “sends credential data in clear text and provides no feedback on reader identity or status”, so credentials “can be intercepted, replayed or cloned”, readers “can be replaced or modified without detection” and “cable tampering generates no alerts”.10

A reader that authenticates a cryptographic credential and is configured for Wiegand output still sends the resulting number in cleartext. Franken’s 2008 slides made the point about every reader in his talk, from retina scanners to smart-card readers: all used “the wiegand electrical and data protocols to communicate to the access control system”.3 The BLEKey paper said in 2015 that HID’s iCLASS and iCLASS SE readers continued to support Wiegand output.4 HID’s January 2024 guidance lists interception of credential data “electronically between the reader and controller” among the ways numbers are obtained.11

Published taps and replay devices

The public record of Wiegand implants is long, and it shows what a defender is up against.

Gecko (2008). Franken’s Gecko sat on the Wiegand lines, recorded credential numbers and replayed them on command. It was controlled by command cards, and it used the reader’s “Access Allowed” LED control line to validate cards.3 The controller’s own feedback line told the implant which captured numbers were worth keeping.

BLEKey (2015). Mark Baseggio and Eric Evenchick presented BLEKey at Black Hat USA 2015: a coin-cell powered board with a Bluetooth Low Energy module and an insulation-displacement connector for attaching to the reader’s data wires.4 The authors put its production cost at about $10. The released firmware handled HID Prox-compatible formats of 26 to 40 bits, stored captured cards and could replay them.4 Their slides list four demonstrated uses: recording numbers for cloning, replaying a number to open the door, denying service at the reader, and skimming with a modified long-range reader.9 Their defensive slides named tamper detection, logging and video surveillance.9

ESPKey and successors. ESPKey describes itself as a “Wiegand data logger, replay device and micro door-controller” and can log, inject and replay credentials.12 The Tick, a newer open-source implant by Jakub Kramarz, compares itself with BLEKey and ESPKey, lists Wi-Fi for ESPKey, and claims support for configurable data lines, clock-and-data interfaces and a subset of OSDP.13 Its README notes that an early hardware revision was used in a Black Hat Asia 2025 talk, “Behind Closed Doors - Bypassing RFID Readers”. SecuRing’s Julia Zduńczyk gave a talk of almost the same title at SEC-T 2024 that included a live demonstration of intercepting Wiegand between reader and controller.1314 Bishop Fox’s OSDP research starts from the same premise, describing ESPKey as exploiting the fact that Wiegand “is unencrypted, and simply transmits RFID badge numbers such that anyone listening can intercept”.15

Where the cabling is reachable, so is the attack. BLEKey’s authors observed that the readers they examined were held on by one to four screws, with labelled terminals or a colour-coded pigtail behind the cover.4 A reader on the unsecured side of a door, with its wiring reachable behind it, gives access to the link without passing through the door it controls.

Three kinds of downgrade

Three distinct mechanisms are often all called downgrade, and they need different controls.

The first is a credential downgrade. HID’s January 2024 guidance describes attackers who read the data from a Seos or DESFire credential and write it to a legacy card, which a reader then accepts if it still runs in “Migration mode” with legacy credential types enabled.11 HID’s remedy is to disable legacy credentials in the reader once migration is complete. It also warns that configuring many readers “generally requires power cycling them” and recommends preventing unauthorised physical access to readers, “including reader power, to prevent unauthorized enabling of migration mode”.11

The second is the configured reader output. The same document states that HID Signo and iCLASS SE/multiCLASS SE readers “support legacy Wiegand transmission (unencrypted, unmonitored)” as well as OSDP, and recommends OSDP in Secure mode with non-default keys.11 Mercury’s LP1502 accepts several reader protocols on its ports.1 Which output a reader uses, and which protocol a controller port accepts, is set at commissioning; the documents reviewed here do not describe either side switching automatically. The commissioning record for each door should state both.

The third is an OSDP plaintext fallback, in which an OSDP link that should be encrypted runs without Secure Channel. That is a property of OSDP implementations and is covered below.

Guessing numbers through the reader

A cleartext number with a known format also invites enumeration. In one engagement, Zduńczyk’s team at an HID Prox site found that two cloned cards had numbers “very close to each other”, suggesting a box of consecutively numbered fobs. They tried nearby numbers at a staircase reader away from cameras and found about 30 valid ones; “apparently there were no alerts or suspicious activity checks”.16 HID makes the general point that ordering sequential credential numbers can let someone reconstruct valid numbers without access to a specific card.11 Whether a panel records each invalid read, and whether anyone is alerted to a burst of them at one door, should be confirmed at commissioning; it is a detection control, and it does not stop the guessing.

The bus

The Open Supervised Device Protocol is owned and maintained by SIA and published internationally as IEC 60839-11-5, which the IEC webstore dates 8 July 2020 (edition 1.0, Technical Committee 79).1718 SIA’s page says it released version 2.2.2 in October 2024.19 The specification must be purchased, and I did not have it.18 The protocol details below come from LibOSDP, an open-source implementation whose documentation excerpts the specification, and from the researchers who attacked it.

OSDP runs over half-duplex RS-485 on one twisted pair, at listed speeds from 9,600 to 230,400 bit/s.20 The controller (control panel, CP) sends every message and each peripheral device (PD) replies only when addressed; a PD must reply within 200 milliseconds, or send osdp_BUSY, after which the CP may retry.20 Each packet starts with a fixed header: a start-of-message byte, a one-byte peripheral address in the range 0x00 to 0x7E, a length, and a control byte whose two low bits are a sequence number. An optional security block, the command or reply code, data, an optional four-byte MAC and a checksum or CRC follow.21 The bus can carry several readers per pair, though Mercury notes that most installations use one reader per port and “multi-drop addressing is typically unused”.10

Supervision is the first gain over Wiegand, and it does not depend on encryption. Because the controller polls, it can notice a reader that stops replying, and there is a dedicated request for reader tamper status.22 How quickly an offline or tamper condition becomes an operator alarm depends on the controller’s retry settings, the reader’s capabilities and how events are routed. Mercury lists “continuous monitoring of reader availability and tamper state” among the things Wiegand cannot provide.10

What the controller can command

The command set turns the reader into a managed peripheral. LibOSDP’s table of protocol commands includes, among others:22

CommandCodePurpose
CMD_LED, CMD_BUZ, CMD_TEXT0x69, 0x6A, 0x6BReader LED, buzzer and display
CMD_OUT0x68Drive the reader’s outputs
CMD_LSTAT, CMD_ISTAT, CMD_RSTAT0x64, 0x65, 0x67Local, input and reader tamper status
CMD_CAP0x62Ask the reader what it supports
CMD_KEYSET0x75Set the Secure Channel key
CMD_FILETRANSFER0x7CTransfer a file to the peripheral
CMD_BIOREAD, CMD_BIOMATCH0x73, 0x74Scan, or scan and match, a biometric
CMD_XWR0xA1Transparent mode: tunnel smart-card APDUs through the reader
CMD_PIVDATA, CMD_GENAUTH0xA3, 0xA4PIV data and card authentication

LibOSDP returns card data as REPLY_RAW, a raw bit array; the older character-array reply, REPLY_FMT, is deprecated, and LibOSDP ignores it.22 The table shows what the protocol defines and what LibOSDP supports. A given reader implements the subset it advertises in its capability report. Transparent mode lets the controller drive the card’s exchange directly; LibOSDP’s FAQ notes that this use case “may have a license requirement from HID/Assa” and that the standard includes an alternative, Extended Packet Mode.18 Mercury lists updates to “a reader’s configuration and firmware from a centralized location” among OSDP’s advantages.10 The risk from these commands depends on which ones a reader accepts and from whom. A device that can impersonate the controller on an unprotected link can send whatever the reader will accept, which is why The Tick and Bishop Fox’s tooling include controller-side modes.1323

Secure Channel

Secure Channel uses AES-128.2419 LibOSDP describes the handshake as two command-reply pairs. The controller sends CMD_CHLNG; the reader replies with REPLY_CCRYPT, from which the controller authenticates the reader and computes session keys; the controller sends CMD_SCRYPT, which lets the reader authenticate the controller; and the reader’s REPLY_RMAC_I carries “the initial reply MAC the CP will use as the IV for encrypting its next command”.24 Both sides hold three session keys, one for encryption and two for MACs, derived from a shared Secure Channel Base Key (SCBK).24

The hard part is getting a unique SCBK into each reader. The specification defines a default key, SCBK-D. A reader placed in install mode accepts a session on SCBK-D, during which the controller can set a new SCBK with CMD_KEYSET; on receiving it, the reader leaves install mode.24 LibOSDP quotes the specification’s requirement (v2.2, section D.8) that the reader have “an installer accessible selection ... that, while enabled, would enable the SCBK-D based connection”.24 Installations that key readers this way on the production cable send the real key once under a session protected only by the published default. LibOSDP also supports configuring each device with its own SCBK directly, and describes keying a reader over a controlled point-to-point link before it is connected to the production bus.24

Install mode is a state of the reader. What the controller does when a handshake fails is a separate choice. LibOSDP’s documentation, as accessed in November 2026, describes its default this way. If the handshake fails on the configured key and the reader has not yet completed a session on its real key in that controller process, the controller retries with SCBK-D in case the reader is in install mode; if that also fails, “the CP goes online without a secure session and retries every 10 minutes”. Once a reader has completed a handshake on its real key, the controller refuses SCBK-D for it, because a device that deliberately fails the challenge “would be handed a session on a key published in the spec”. That latch “cannot survive a restart of your application”, and a separate ENFORCE_SECURE flag forbids install mode and plaintext operation.24 Commercial controllers make their own choices on each point. Whether a link may ever run without Secure Channel is therefore a deployment policy, set in the controller, and not something the protocol guarantees.

Badge of Shame: the Bishop Fox findings

Dan Petro and David Vargas of Bishop Fox presented “Badge of Shame: Breaking into Secure Facilities with OSDP” at Black Hat USA 2023 and at DEF CON 31 on 12 August 2023, and released a tool, Mellon.252623 Petro’s post of 9 August 2023 describes five exploitable problems.15

  1. Encryption is optional. OSDP “supports but doesn’t strictly require encryption”. The team bought an Axis A1001 controller that advertised OSDP support and found it lacked the security parts.15
  2. Downgrade. A reader reports its capabilities, including encryption support, in a message that cannot itself be encrypted. A device on the wire can alter it, and “depending on your hardware, and how it is configured, the controller might just continue on anyway”.1523
  3. Install mode left on. Install mode lets a reader obtain the SCBK, and Petro writes that “many controllers are configured to remain in ‘install mode’ persistently”, in which case a device on the wire can obtain the key.15
  4. Weak keys. Sample code circulates with hard-coded keys, and patterned keys such as repeated or sequential bytes are few enough to try.15
  5. Keyset capture. Petro writes that OSDP has no secure in-band key exchange and “currently no out-of-band mechanisms”. Where a replacement reader is keyed on production wiring, a listening device on that cable can record the key-set message and decrypt later traffic protected by that key.1523

The Mellon README adds design criticisms that the researchers rate medium or low in isolation. In their assessment, MACs are truncated to 32 bits, IVs derived from them are limited to at most 32 bits of entropy, session keys rest on 48 bits of controller nonce, the sequence number has two bits, two secure-channel message types carry no encrypted data, the command byte stays in cleartext inside a session so an observer “can tell when people badge in”, and the default key SCBK-D “provides no security and should be removed”.23 The two-bit sequence number and four-byte MAC are visible in LibOSDP’s packet layout.21 The README presents these as weaknesses of the protocol, not as demonstrated attacks.

SIA’s response on 10 August 2023 framed the disclosure as “several weaknesses in an OSDP implementation”, said its OSDP technical subcommittee had met Petro, and said his recommendations “will be identified for revision in the next version of OSDP v2.3”.27 The two accounts address different layers. Three of the five findings (optional encryption, downgrade acceptance and persistent install mode) are configuration or implementation choices that a correctly configured product can refuse. Keyset capture concerns how keys are provisioned: keying readers over a controlled link rather than the production cable addresses that exposure. The README’s other points concern the cryptographic design, such as the 32-bit MAC field, which bounds the integrity check, and the cleartext command byte. No provisioning procedure changes those; only a revision of the standard would. Unique per-reader keys are a containment control, limiting a captured or weak key to one link. SIA’s current material puts the emphasis on installation practice: its 2026 checklist says unsecured mode “should only exist during initialization”, and its troubleshooting guide asks installers to “verify that secure channel is properly configured and that a unique key pair is applied to each ACU/PD connection”.2829

Petro’s defensive advice follows the same split. Configure controllers to refuse unencrypted readers, leave install mode off except while installing, treat reader tamper and unexpected reader failures as possible attacks, and key replacement readers off the production wiring, on a short cable known to be clean.15

What a migration buys before and after Secure Channel

A staged migration delivers in two steps. Moving a door from Wiegand to OSDP without Secure Channel gives supervision: the controller can report a reader that goes offline or reports tamper, and the reader’s LED and buzzer come under controller command.1022 The credential number still crosses the cable readable, and a device that can answer polls can still impersonate the reader. Requiring Secure Channel with a unique key per reader adds confidentiality and reader authentication on that link.1024 Mercury’s brief anticipates a period in which Wiegand and OSDP readers run in parallel, and warns that installers should “confirm that Secure Channel encryption is enabled rather than assuming that OSDP mode alone provides security”.10 During that period, every door still on Wiegand keeps its exposure, and the areas behind those doors are protected only as well as their remaining Wiegand links allow.10

What SIA OSDP Verified tests

SIA announced OSDP Verified on 27 April 2020.30 SIA’s product list describes it as “a comprehensive testing program that validates that a device conforms” to the standard and its performance profiles, and lists current profiles for Secure, Smart Card and Biometric devices.31 A 2021 article by Joseph Gittens describes the original four-profile scheme, including a Basic profile for supervised “Wiegand replacements”.32 Testing is done by a third-party laboratory on submissions from SIA members, and a verified device family is defined as a “unique combination of device type, firmware version, and OSDP profile”.33

SIA publishes test descriptions on GitHub.34 The test spreadsheet (version 2.8.1) includes Secure Channel cases for key setting, rekeying and key rotation.34 Test 050-09-18 states the rule that a reader must answer only a designated set of configuration commands in the clear, even in Secure Channel; its published peripheral procedure checks that a cleartext poll is refused and that a cleartext ID request is answered, and a separate controller check fails the controller if invalid cleartext traffic is seen.35 These are device-level conformance checks on a submitted model and firmware. They do not show whether a particular installed door has Secure Channel enabled, which key it uses, whether install mode was turned off, or how a particular controller is configured to handle a reader that will not negotiate. Bishop Fox recommends OSDP Verified hardware and still directs defenders to check controller configuration for the downgrade and install-mode problems, and to rely on procedure against keyset capture.15 Trellix reported that the Mercury device it attacked had been certified for federal use and added to the GSA Approved Products List, and observed that such labels “do not necessarily connote rigorous testing or auditing”.36

The controller decides

What lives in the panel

Mercury’s LP1502 data sheet gives a sense of the class. It lists capacity for 240,000 cardholders with up to 255 access levels each, a 50,000-event transaction buffer, anti-passback in nested, area, hard, soft and timed-forgiveness forms, threat levels and if/then macros, and it claims “data at rest encryption” via an embedded crypto chip.2 Mercury’s brief describes the design intent as local enforcement, “allowing doors to function securely during network or host outages”.10

Local decisions have consequences in both directions. A controller that keeps working when the host is unavailable also keeps applying whatever records it holds. A credential revoked at the head-end stays valid at a panel until the change is downloaded, for as long as the local record, its access level and its schedule allow it. Encryption at rest protects data on storage that is removed or read offline; it does not, by itself, say what an attacker with code execution on a running controller can read. Those are questions for the vendor, answered per model.

Anti-passback is a logic control that can blunt replay. Axis’s documentation for its Secure Entry system gives one concrete example: with anti-passback on a zone, “a person must exit the area before using their credentials again”; the hard setting denies a second entry with the same credential and raises an alarm, while the soft setting only logs it. Axis requires door position sensors on every door in the zone so the system can register that a door was actually opened, and notes that anti-passback stops working if doors in the zone belong to different controllers that go offline.37 Its value against a copied credential therefore depends on accurate entry and exit records, readers on both sides of the controlled area, and the policy chosen.

Driving the lock

The controller’s output is a relay. Mercury’s installation manual describes the LP1502’s four Form C relays: the normally open and common contacts are “typically used” to deliver power to a door strike, and the normally closed and common contacts when “momentarily removing power to unlock the door, as with a mag lock”, followed by an instruction to check local building codes.1 Jason Ashton of TrustedSec summarises the two lock families: fail-secure locks, typically electric strikes, remain locked on loss of power, while fail-safe locks, typically magnetic locks, need power to stay locked.38

With a fail-secure strike, the egress side of the door usually has a lever or panic bar, and Ashton’s view is that the request-to-exit device should then “only signal valid egress and should not unlock the door”.38 Electrically locked egress doors fall under specific code provisions. The International Building Code has separate arrangements for sensor release, door-hardware release, delayed egress and controlled egress.39 Under sensor release, a sensor on the egress side unlocks the door when it detects an approaching occupant, and a separate manual unlocking device near the door must, in the ICC’s summary, interrupt power to the lock directly.39 The adopted code sets the full requirements for each arrangement, and they vary by edition and jurisdiction.

For security, the consequence is that on a sensor-release door the egress sensor and the independent manual release can unlock the door without the access decision. Compromising the controller is one route to an open door among several.

Door position and request-to-exit inputs

Two inputs turn a lock into a monitored opening. A door position switch reports whether the door is open, and a request-to-exit device reports activation on the egress side. What the system does with them is configured alarm policy. Axis’s Secure Entry documentation is one example: the operator chooses whether a door forced open raises a system alarm, which “requires a door position sensor”, and whether a door “held open too long” does.37 A REX activation tells the controller that the egress device was triggered. It does not prove that someone left. TrustedSec notes that a system without these components will “not function properly for re-locking the door upon opening or alerting when the door is improperly opened”.38

Those inputs are wires, and supervision is a separate setting from the alarm policy. Mercury’s manual says that unsupervised inputs report “only the open or closed states”, while supervised inputs also report open circuit and shorted states, using two 1 kΩ resistors placed “as close to the sensor as possible”; it lists grounded and foreign-voltage states too, with the caveat that these “are not a requirement of UL 294 and therefore not verified by UL”.1 With supervision, cutting or shorting the cable produces a distinct condition the panel can report as a fault. Without it, a short or a cut can look like one of the two normal states, depending on how the contact is wired. Axis likewise lets supervision be turned on separately for door monitors and REX devices, with end-of-line resistors fitted near the device.37 The LP1502 also has dedicated inputs for cabinet tamper and power-supply fault.1

The REX bypass, briefly

A passive-infrared REX sensor responds to changes in the infrared radiation it receives from its field of view. Ashton describes PIR REX sensors being activated from the unsecured side of the door, and says most integrators are unaware of the problem.38 When that happens the sensor activates; depending on configuration, the controller then records an exit, shunts the door-forced alarm for that opening, and, on a sensor-release door, the lock releases. He argues against removing the sensor where codes may require it. His mitigations are to relocate it, use exit hardware with an integral switch, and seal the door edges with astragals or weather stripping.38 He also suggests a pressure mat wired with the sensor so that an opening without both raises a forced-door event.38 That is an alarm-verification measure. Any change to the circuit that releases an egress door has to stay within the adopted code and be approved by the authority having jurisdiction.

The controller as a networked computer

Mercury panels, 2022

In June 2022 Sam Quinn and Steve Povolny of Trellix presented research on HID Mercury controllers at Hardwear.io. Trellix said more than 20 OEM partners build access control products on Mercury boards.36 They used on-board debug ports on a test unit to obtain root and the firmware, then analysed network-reachable services. In their lab, “by chaining just two of the vulnerabilities together” they gained root remotely and ran a program alongside the legitimate software that could “unlock any door and subvert any system monitoring”.36

CISA’s advisory ICSA-22-153-01, dated 2 June 2022, lists the affected panels as sold by Carrier’s LenelS2: LNL-X2210, LNL-X2220, LNL-X3300, LNL-X4420, LNL-4420, and S2-LP-1501, -1502, -2500 and -4502.40 It lists eight CVE assignments, CVE-2022-31479 to 31486. They include a command injection through a crafted hostname that an unauthenticated attacker can trigger, scored 9.6 with a user-interaction requirement; unauthenticated firmware upload causing denial of service; an unauthenticated buffer overflow in update-file handling scored 10.0; an authenticated path traversal allowing arbitrary file writes; and an authenticated OS command injection.40 CISA’s stated impact includes “monitoring of all communications sent to and from the device, modification of onboard relays, changing of configuration files”.40 Carrier’s bulletin lists the fixed firmware versions for each CVE and, as a mitigation, a setting that disables remote web login: once applied, “you cannot remotely login into the controller’s web page”, and a local override on the board is needed to log in again.41 Trellix’s table on 9 June 2022 showed CVE-2022-31486 with no patch; Carrier’s bulletin of 2 June lists firmware versions addressing it.3641

HID VertX and Edge, 2016

The Zero Day Initiative’s advisory ZDI-16-223, published 28 March 2016 and credited to Ricky Lawshae of Trend Micro DVLabs, covers the discoveryd service on HID VertX and Edge controllers. It describes “the failure to sanitize user data before executing a system call”, exploitable without authentication to execute code with root privileges on vulnerable HID Edge installations (CVSS 10.0).42 HID distributed the fix through its password-protected developer site for partners.42

Nice Linear eMerge E3

CISA advisory ICSA-24-065-01, dated 5 March 2024, covers the Nice (formerly Nortek) Linear eMerge E3-Series at firmware 1.00-06 and earlier, reported by Gjoko Krstic of Zero Science Lab. It lists path traversal, an OS command injection allowing remote code execution (CVE-2019-7256, CVSS 10.0), unrestricted file upload, disclosure of administrative credentials in cleartext, and hard-coded credentials in “multiple binaries”.43 The mitigation section says Nice “encourages users to upgrade to the latest firmware” and adds network isolation and credential changes.43 CISA’s Known Exploited Vulnerabilities catalogue has listed CVE-2019-7256 since 25 March 2024.44 A later advisory, ICSA-25-114-04 of 24 April 2025, describes a separate unauthenticated OS command injection, CVE-2024-9441, in versions up to 1.00-07. On patching, it says “Nice did not indicate if/when a patch would be developed”, and it repeats the advice to minimise network exposure, isolate devices behind firewalls and change default credentials.45

Firmware integrity and biometric terminals

Siemens’ advisory SSA-367714 reports that SiPass integrated AC5102 (ACC-G2) and ACC-AP controllers “do not properly check the integrity of firmware updates”, so a local attacker, or one who intercepts a firmware transfer from the server, can load modified firmware. Its revision of 14 October 2025 says “currently no fix is planned”. The listed mitigation is to enable TLS between server and controllers, supported from ACC firmware V6.5.1, which addresses modification in transit and leaves the device’s own lack of an integrity check in place.4647 Kaspersky’s analysis of a ZKTeco biometric terminal, published 11 June 2024, found 24 vulnerabilities, including SQL injection through the QR-code reader and command injection. On the tested device the management protocol’s password, the “COMKey”, “is set to 0 by default, that is, there is no password”, and is limited to values up to 999999.48 The KEV catalogue separately lists a path traversal in ZKTeco’s BioTime time-and-attendance software, added 19 May 2025.44

The head-end and the network

The controllers report to host software that pushes cardholder changes and collects events. The LP1502 data sheet lists host communications protected by TLS or AES, custom peer certificates and 802.1X port authentication among the product’s options.2 Its installation manual adds that a factory default login can be enabled temporarily through a local maintenance switch on the board, that at least one user account should be defined and the switches returned to normal before commissioning, that a public IP address “is not recommended”, and that SNMP, zeroconf discovery and the web configuration module can be disabled and host-port encryption enabled.1 Those are capabilities; whether they are on is a fact about each deployment, and the SiPass case shows what happens to firmware updates when transport security is off and the device does not check integrity.46

NIST’s guide to operational technology security lists physical access control systems among OT systems, and CISA’s advisories above recommend keeping the devices off the internet, placing them behind firewalls and isolating them “from the business network”.4940 The attack paths that isolation removes are conditional. If user workstations can route to controller management ports, a compromised workstation can reach those services, and what it can then do depends on which services are enabled, what credentials they demand and whether the firmware carries flaws like those above. If the head-end server accepts corporate directory accounts for operator logins, a directory compromise may extend to the access control application; how far depends on how the application maps directory identities and groups to its own roles and what further approval it requires before a cardholder change. A dedicated controller segment that admits management traffic only from the head-end removes direct reachability from user networks. A head-end administered from a privileged tier limits which directory compromises carry over. The authorised management path from head-end to controllers remains and has to be protected on its own terms. Our articles on exposed management interfaces and segmentation cover the general design.

What to ask an integrator, and what to accept as evidence

The mapping below pairs each attack with a control, says whether the control prevents or only detects, and names the evidence an assessor or buyer can ask for. Any test that involves opening reader housings, connecting to buses or attempting entry needs written authorisation from someone entitled to give it; our article on physical penetration testing law explains why.

AttackControlPrevents or detectsAcceptance evidence
Recording or replaying a Wiegand linkOSDP with Secure Channel requiredPrevents, once enforcedPer-door record of protocol and Secure Channel status; controller setting that rejects plaintext readers
Same, before migrationReader tamper wired to a monitored input; protected cable routesDetects tamper; does not stop exposure of numbersTamper event received by an operator during commissioning
Credential downgrade through migration modeLegacy credential types disabled in readers; reader power and configuration protectedPreventsReader configuration export showing enabled technologies; acceptance test that a legacy card is refused
Guessing numbers at a readerCredential that authenticates; alerting on repeated invalid readsCredential prevents; alerting detectsAlert rule and a commissioning record of a generated burst reaching the console
OSDP without encryption or with downgrade acceptedController set to require Secure ChannelPreventsConfiguration screen or export showing the setting; an offline alarm when a reader cannot negotiate, paired with separate evidence that the door then refuses credentials from that reader
Install mode left on or fallback to SCBK-DInstall mode off after commissioning; fallback disabledPreventsCommissioning record per reader; vendor statement on fallback behaviour, recorded as design evidence and kept separate from behaviour observed on the installed system
Weak, shared or default keysUnique randomly generated key per readerContains a compromise to one linkKey identifiers per reader, or redacted evidence, from a separately protected key-management record; live key values are never handed over as evidence
Key capture during reader replacementKeying off the production wiring; tamper and offline events treated as incidentsReduces exposure; events detectWritten replacement procedure; incident records for past replacements
Cut or shorted door inputsSupervised inputs with end-of-line resistors near the deviceDetectsInput configuration export; commissioning test of fault reporting at each door type
REX triggered from the wrong sideSensor placement, gap sealing, alarm verification within codeReduces likelihoodSite survey record; changes approved by the authority having jurisdiction
Remote code execution on controllersFirmware that includes the vendor’s fixes; isolated controller segment; unneeded services disabledRemoves the flaws fixed in that release; isolation reduces reachFirmware inventory checked against vendor and CISA advisories and the KEV catalogue; firewall rules
Default or hard-coded credentialsChanged credentials; vendor fix or isolationPrevents defaults; isolation limits hard-coded accountsAccount list per controller; advisory review
Modified firmware loaded on the deviceSigned updates verified by the devicePrevents if the device enforces itVendor documentation of on-device signature checking, labelled as design evidence
Firmware modified in transitProtected transport between head-end and controller (for example TLS)Prevents tampering in transit only; does not replace an on-device checkTransport setting per controller
Head-end compromise through the directoryPrivileged administration tier; role reviewReducesList of accounts able to add cardholders, and how they authenticate
Nobody respondsController and head-end events forwarded to the SOC with runbooksDetectsEvent types forwarded; records of tamper, forced-door and offline events reaching a ticket

Some questions belong in the contract. Which readers and controllers are on the SIA OSDP Verified list, for which profile and firmware?31 Does the controller have a setting that rejects readers without Secure Channel, and what is its default? How does the integrator key a replacement reader, and where? Who receives vendor advisories, and who applies controller firmware? Will the controllers sit on a dedicated segment, and which of their services are needed? SIA’s checklist asks the installer to document each reader’s interface, key, address and speed.28 That record contains key material and belongs in protected key management. For acceptance, ask for key identifiers or redacted extracts alongside the configuration exports; they give an assessor something to verify without exposing the keys.

Cost drivers differ by row. Moving from Wiegand to OSDP needs readers and controller ports that support Secure Channel. Mercury’s brief says legacy cabling can often be kept and that replacement is considered when distances exceed typical ranges or the cable is in poor condition; its LP1502 manual adds that reused Wiegand cable “may not meet RS-485 twisted pair recommendations” and works best on shorter runs at lower data rates.101 Supervising inputs means resistors and labour at each door. Monitoring adds analyst time for as long as the system runs, and Petro’s advice to “treat all tampers as if you’re under attack” assumes someone receives them.15

Conclusion

On a door whose reader is configured for Wiegand output, anyone who can reach the wiring can record and replay the credential numbers that pass, whatever cryptography the card uses, and implants for this have been public since 2008. OSDP protects the credential number and authenticates the reader on that link when Secure Channel is required, keyed uniquely per reader, kept out of install mode and denied a plaintext fallback. Bishop Fox’s 2023 work showed how each of those conditions can fail, and OSDP Verified tests devices, not installed doors. At the door, configured alarm policy decides what is reported as forced or held, input supervision decides whether wiring tampering is reported, and code-compliant egress design governs how the lock can be released. Controllers and their management services have had unauthenticated remote code execution flaws in HID and Mercury products and hard-coded credentials in Nice Linear eMerge E3 units, and CISA lists one eMerge flaw as exploited in the wild. Most of the controls are configuration, wiring, network rules and procedure. Their evidence is per door and per controller: a test at one representative opening supports findings only for doors with the same equipment and configuration.

Footnotes

  1. “Mercury LP1502 Controller Installation and Specifications”, PLT-05244 revision A.7, Mercury Security (vendor), February 2026. https://www.mercury-security.com/wp-content/uploads/2026/02/PLT-05244-A.7-Mercury-LP1502-Controller-Installation-and-Specifications.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  2. “LP1502 Intelligent Controller (2 Readers, 8 Inputs, 4 Outputs)”, Mercury Security data sheet (vendor), hosted by Schneider Electric. https://iportal2.schneider-electric.com/Contents/docs/LP1502-FINAL_7_9_18-.PDF (opens in a new tab) ↩1 ↩2 ↩3
  3. Zac Franken, “Physical Access Control Systems: Are you protected by two screws and a plastic cover?”, Black Hat DC 2008 presentation slides, 2008. https://www.blackhat.com/presentations/bh-dc-08/Franken/Presentation/bh-dc-08-franken.pdf (opens in a new tab) ↩1 ↩2 ↩3
  4. Mark Baseggio and Eric Evenchick, “Breaking Access Controls with BLEKey”, white paper, Black Hat USA 2015, August 2015. https://www.blackhat.com/docs/us-15/materials/us-15-Evenchick-Breaking-Access-Controls-With-BLEKey-wp.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  5. “SIA AC-01-1996.10: Access Control Standard Protocol for the 26-BIT Wiegand Reader Interface”, Security Industry Association standards page (standard text not consulted). https://www.securityindustry.org/industry-standards/sia-ac-01-1996-10/ (opens in a new tab) ↩
  6. “What Is Wiegand? A Brief History”, Keri Systems blog (vendor), 27 July 2017. https://kerisys.com/2017/07/27/what-wiegand-brief-history/ (opens in a new tab) ↩1 ↩2 ↩3
  7. “Wiegand”, BALTECH developer documentation (vendor), accessed 30 November 2026. https://docs.baltech.de/developers/wiegand.html (opens in a new tab) ↩1 ↩2 ↩3
  8. “Understanding Multi-Card Formats”, Digital Monitoring Products white paper LT-1915 (vendor), 2021. https://www.dmp.com/assets/LT-1915.pdf (opens in a new tab) ↩1 ↩2
  9. Eric Evenchick and Mark Baseggio, “Breaking Access Controls with BLEKey”, presentation slides, Black Hat USA 2015, August 2015. https://www.blackhat.com/docs/us-15/materials/us-15-Evenchick-Breaking-Access-Controls-With-BLEKey.pdf (opens in a new tab) ↩1 ↩2 ↩3
  10. Jeremy Fromm and Damon Dageenakis, “Migrating From Wiegand to OSDP”, Mercury Security technology brief (vendor), 2026. https://www.mercury-security.com/wp-content/uploads/2026/03/MER_26004_Content_Engine_OSDP-Tech-Brief_Final.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  11. “Safeguarding Against Legacy Downgrade Attacks”, HID Global white paper, hosted by Pavion, January 2024. https://pavion.com/wp-content/uploads/2024/02/Whitepaper-Safeguarding-Against-Legacy-Technology-FINAL.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  12. “ESPKey: Wiegand data logger, replay device and micro door-controller”, GitHub repository octosavvi/espkey, accessed 30 November 2026. https://github.com/octosavvi/espkey (opens in a new tab) ↩
  13. Jakub Kramarz, “The Tick”, GitHub repository jkramarz/TheTick, README, accessed 30 November 2026. https://github.com/jkramarz/TheTick (opens in a new tab) ↩1 ↩2 ↩3
  14. Julia Zduńczyk, “Behind Closed Doors – Hacking RFID Readers”, SecuRing talk page (SEC-T 2024), 12 September 2024. https://www.securing.pl/en/presentation/behind-closed-doors-hacking-rfid-readers/ (opens in a new tab) ↩
  15. Dan Petro, “Breaking Into Secure Facilities with OSDP”, Bishop Fox blog, 9 August 2023. https://bishopfox.com/blog/breaking-into-secure-facilities-with-osdp (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  16. Julia Zduńczyk, “Red Team stories – Bypassing RFID-based access control systems”, SecuRing, 14 May 2025. https://www.securing.pl/en/bypassing-rfid-based-access-control-systems (opens in a new tab) ↩
  17. “IEC 60839-11-5:2020 Alarm and electronic security systems – Part 11-5: Electronic access control systems – Open supervised device protocol (OSDP)”, IEC Webstore, published 8 July 2020. https://webstore.iec.ch/en/publication/33414 (opens in a new tab) ↩
  18. “Frequently Asked Questions”, LibOSDP protocol documentation, updated 24 June 2026. https://doc.osdp.dev/protocol/faq (opens in a new tab) ↩1 ↩2 ↩3
  19. “Open Supervised Device Protocol (OSDP)”, Security Industry Association, accessed 30 November 2026. https://www.securityindustry.org/industry-standards/open-supervised-device-protocol/ (opens in a new tab) ↩1 ↩2
  20. “Introduction”, LibOSDP protocol documentation, updated 24 June 2026. https://doc.osdp.dev/protocol/introduction (opens in a new tab) ↩1 ↩2
  21. “Packet Structure”, LibOSDP protocol documentation, updated 24 June 2026. https://doc.osdp.dev/protocol/packet-structure (opens in a new tab) ↩1 ↩2
  22. “Command and Reply Codes”, LibOSDP protocol documentation, updated 18 July 2026. https://doc.osdp.dev/protocol/commands-and-replies (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  23. Bishop Fox, “Mellon: OSDP attack tool”, GitHub repository README, 2023. https://github.com/BishopFox/mellon (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  24. “OSDP Secure Channel”, LibOSDP documentation, accessed 30 November 2026. https://doc.osdp.dev/libosdp/secure-channel (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  25. Dan Petro and David Vargas, “Badge of Shame: Breaking into Secure Facilities with OSDP”, Black Hat USA 2023 presentation slides, August 2023. https://i.blackhat.com/BH-US-23/Presentations/US-23-DanPetro-Badge-of-Shame.pdf (opens in a new tab) ↩
  26. “Badge of Shame: Breaking into Secure Facilities with OSDP”, DEF CON 31 talk listing, InfoCon database, 12 August 2023. https://infocondb.org/con/def-con/def-con-31/badge-of-shame-breaking-into-secure-facilities-with-osdp (opens in a new tab) ↩
  27. “Black Hat 2023 Session Underscores Importance of Implementing OSDP Properly”, Security Industry Association, 10 August 2023. https://www.securityindustry.org/2023/08/10/black-hat-2023-session-underscores-importance-of-implementing-osdp-properly (opens in a new tab) ↩
  28. “Implementing OSDP Access Control? Follow This Simple Checklist”, Security Industry Association, 10 February 2026. https://www.securityindustry.org/2026/02/10/implementing-osdp-access-control-follow-this-simple-checklist/ (opens in a new tab) ↩1 ↩2
  29. “Your Step-by-Step Guide to OSDP System Troubleshooting”, Security Industry Association, 28 April 2026. https://www.securityindustry.org/2026/04/28/your-step-by-step-guide-to-osdp-system-troubleshooting/ (opens in a new tab) ↩
  30. “Security Industry Association Launches SIA OSDP Verified Program”, Security Industry Association, 27 April 2020. https://www.securityindustry.org/2020/04/27/security-industry-association-launches-sia-osdp-verified-program/ (opens in a new tab) ↩
  31. “OSDP Verified Products”, Security Industry Association, accessed 30 November 2026. https://www.securityindustry.org/industry-standards/open-supervised-device-protocol/sia-osdp-verified/sia-osdp-verified-products/ (opens in a new tab) ↩1 ↩2
  32. Joseph Gittens, “OSDP Takes the Next Big Step”, SecurityInfoWatch, 15 January 2021. https://www.securityinfowatch.com/access-identity/access-control/article/21203550/osdp-takes-the-next-big-step (opens in a new tab) ↩
  33. “SIA OSDP Verified Program Process, Pricing & Application”, Security Industry Association, accessed 30 November 2026. https://www.securityindustry.org/industry-standards/open-supervised-device-protocol/sia-osdp-verified/sia-osdp-verified-application/ (opens in a new tab) ↩
  34. “osdp-verified: Resources for the SIA OSDP Verified Testing Program”, Security Industry Association GitHub repository, including test-descriptions/osdp-verified-test-cases.ods (version 2.8.1), accessed 30 November 2026. https://github.com/Security-Industry-Association/osdp-verified (opens in a new tab) ↩1 ↩2
  35. “Test 050-09-18 Config commands in cleartext”, SIA OSDP Verified test description, accessed 30 November 2026. https://raw.githubusercontent.com/Security-Industry-Association/osdp-verified/master/test-descriptions/test-cases-050/test-050-09-18.md (opens in a new tab) ↩
  36. Sam Quinn and Steve Povolny, “Trellix Threat Labs Uncovers Critical Flaws in Widely Used Building Access Control System”, Trellix, 9 June 2022 (Internet Archive copy of 27 September 2023). https://web.archive.org/web/20230927015626/https://www.trellix.com/en-us/about/newsroom/stories/research/trellix-threat-labs-uncovers-critical-flaws.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  37. “AXIS Camera Station Secure Entry user manual”, Axis Communications (vendor documentation), accessed 30 November 2026. https://help.axis.com/en-us/axis-camera-station-secure-entry (opens in a new tab) ↩1 ↩2 ↩3
  38. Jason Ashton, “Rekt by the REX”, TrustedSec blog, 9 January 2020. https://trustedsec.com/blog/rekt-by-the-rex (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  39. John Woestman, “Doors in the means of egress: Electrical locking systems permitted by the codes”, International Code Council, Building Safety Journal, 2 November 2020. https://www.iccsafe.org/building-safety-journal/bsj-technical/doors-in-the-means-of-egress-electrical-locking-systems-permitted-by-the-codes/ (opens in a new tab) ↩1 ↩2
  40. “Carrier LenelS2 HID Mercury access panels”, CISA ICS Advisory ICSA-22-153-01, 2 June 2022. https://www.cisa.gov/news-events/ics-advisories/icsa-22-153-01 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  41. “Product Security Advisory CARR-PSA-006-0622: HID Mercury access panels sold by LenelS2”, Carrier, 2 June 2022. https://www.corporate.carrier.com/Images/CARR-PSA-HID-Mercury-Vulnerabilities-006-0622_tcm558-170514.pdf (opens in a new tab) ↩1 ↩2
  42. “HID VertX/Edge discoveryd Command Injection Remote Code Execution Vulnerability”, Zero Day Initiative advisory ZDI-16-223, 28 March 2016. https://www.zerodayinitiative.com/advisories/ZDI-16-223/ (opens in a new tab) ↩1 ↩2
  43. “Nice Linear eMerge E3-Series”, CISA ICS Advisory ICSA-24-065-01, 5 March 2024. https://www.cisa.gov/news-events/ics-advisories/icsa-24-065-01 (opens in a new tab) ↩1 ↩2
  44. “Known Exploited Vulnerabilities Catalog” (JSON feed), CISA, accessed 30 November 2026. https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json (opens in a new tab) ↩1 ↩2
  45. “Nice Linear eMerge E3”, CISA ICS Advisory ICSA-25-114-04, 24 April 2025. https://www.cisa.gov/news-events/ics-advisories/icsa-25-114-04 (opens in a new tab) ↩
  46. “SSA-367714: Improper Integrity Check of Firmware Updates in SiPass integrated AC5102 / ACC-G2 and ACC-AP”, Siemens ProductCERT, published 23 May 2025, version 1.1 of 14 October 2025. https://cert-portal.siemens.com/productcert/html/ssa-367714.html (opens in a new tab) ↩1 ↩2
  47. “Siemens SiPass”, CISA ICS Advisory ICSA-25-148-01, 29 May 2025. https://www.cisa.gov/news-events/ics-advisories/icsa-25-148-01 (opens in a new tab) ↩
  48. Georgy Kiguradze, “QR code SQL injection and other vulnerabilities in a popular biometric terminal”, Kaspersky Securelist, 11 June 2024. https://securelist.com/biometric-terminal-vulnerabilities/112800/ (opens in a new tab) ↩
  49. Keith Stouffer et al., “Guide to Operational Technology (OT) Security”, NIST Special Publication 800-82 Rev. 3, September 2023. https://csrc.nist.gov/pubs/sp/800/82/r3/final (opens in a new tab) ↩