Section 7.32

Company identifier

Definition

A company identifier is a 16-bit number that the Bluetooth SIG (Special Interest Group), the industry body that publishes the Bluetooth specifications, assigns to one member company and lists in its Assigned Numbers document [282]. Bluetooth messages use the number to name a company. In the version information that two controllers exchange, it names the company that made the sender’s Bluetooth controller §7.4. In manufacturer-specific advertising data, it names the company that defined the format of the bytes that follow. The sender writes the value itself, and nothing in Bluetooth verifies it.

The idea

Many companies put data of their own design into Bluetooth advertisements, and host software works around known defects of particular controller chips. Both need a label that says whose format, or whose chip, is involved, and no two companies may use the same label. A central registry prevents clashes: the Bluetooth SIG hands out each 16-bit number once. A receiver that finds 0x0059 in the company field of a version message knows which company the sender claims built its controller: Nordic Semiconductor.

A registry makes numbers unambiguous; it does not make senders honest. Telephone caller identification is a fair picture. The numbering plan gives each telephone number to one subscriber, yet a caller can make another subscriber’s number appear on the screen. A company identifier is likewise a claim in the sender’s own words. Two different authorities stand behind it: the registry decides what a number means, and the sender decides which number to send. The picture stops in one respect: a false caller number is always a deception, while a Bluetooth device may carry another company’s number honestly, for example in a data format that company defined.

How it works

Assignment. The Bluetooth SIG publishes the Bluetooth Core Specification and a companion document, Assigned Numbers, which lists the values that the specifications refer to. A member company asks for a company identifier, and the SIG assigns an unused 16-bit value and adds the pair to the list. For example, 0x004C is Apple, Inc., 0x0059 is Nordic Semiconductor and 0x0006 is Microsoft. The value 0xFFFF is reserved for tests made before a company has a number of its own, and must not appear in products that ship. Like other multi-byte Bluetooth fields, a company identifier travels least significant byte first: 0x0059 is sent as the bytes 59 00.

Where the number appears.

What the number names. In the version exchange, the company identifier names the controller’s manufacturer, often the chip vendor rather than the brand on the product: a fitness band of brand X, built on a Nordic chip with Nordic’s controller firmware, reports 0x0059. In manufacturer-specific data, the number names whoever defined the format: Apple’s iBeacon format for location beacons starts with 0x004C, and beacons from other makers that send iBeacon frames carry 0x004C too.

Who sets the number. The value is whatever the controller firmware, or the software that builds the advertising data, puts in the field. Open-source controller firmware makes it a build setting: the controller in the Zephyr RTOS §6.33 (real-time operating system), for example, has the configuration option BT_CTLR_COMPANY_ID.

Worked example

A phone connects to two devices and reads their version information. Both send the same 6 bytes of control message, 0C 0B 59 00 34 12. Decoded:

Device 1 is built on a Nordic chip. Device 2 is built on another vendor’s chip, and its firmware was configured to report 0x0059. Looking up 0x0059 in Assigned Numbers returns Nordic Semiconductor for both, and that lookup is correct. The inference “this controller was made by Nordic” is right for device 1 and wrong for device 2, and nothing in the 6 bytes tells the two apart.

An advertising packet contains the field 1A FF 4C 00 02 15, followed by 21 more bytes. The first byte, 0x1A = 26, is the length of the rest of the field: 1 type byte and 25 data bytes. FF is the type, manufacturer-specific data. 4C 00 is the company identifier 0x004C, Apple, Inc. 02 15 marks an iBeacon frame with 0x15 = 21 bytes following: a 16-byte identifier, a 2-byte value called major, a 2-byte value called minor and 1 byte of transmit power, 16+2+2+1=2116 + 2 + 2 + 1 = 21. The data bytes add up as 2+1+1+21=252 + 1 + 1 + 21 = 25. The receiver can conclude that the sender uses Apple’s iBeacon format. It cannot conclude that Apple made the device: the beacon may come from any maker that implements the format, or from anyone who copies the bytes.

Stated precisely

Two authorities stand behind a received company identifier, and they guarantee different things.

The claim “this controller was made by Company(c)\mathrm{Company}(c)” therefore holds only if a further statement, which the receiver can verify, ties this particular device to that company. Examples are a certificate issued under a manufacturer’s signing key, or an attestation §6.32: a statement signed by a key that hardware keeps inside the device, checked against a public key that the receiver already trusts. Bluetooth defines no such statement for the company identifier. Encrypting the link changes nothing: encryption shows that the bytes came from the device at the other end of the link, not that the device reports the truth about itself.

Limits and common mistakes

A company identifier does not prove who made the controller, which firmware it runs, or what the device may do. It is a claim, useful for choosing a decoder, a known workaround or a statistic. Pairing does not change this: a peer on an encrypted, authenticated link can still report any company identifier.

Even an honest value names one of three different companies, depending on the field: the maker of the controller, the owner of a data format, or, in the PnP ID, the vendor of the product. Mixing them up gives wrong conclusions without any attacker.

The attacker picks the value, so a policy keyed on the company identifier is a policy the attacker selects. If one value unlocks a looser rule, every attacker reports that value. A company identifier may select a stricter rule or a bug workaround; it must never relax a check.

The version information exists only once a connection is set up, and the host may have to ask for it. A decision made before it arrives must use a default, and the value may never arrive at all if the peer’s controller does not answer.

The bytes travel least significant first; reading 4C 00 as 0x4C00 looks up the wrong company. And the company identifier is not the 24-bit OUI (Organizationally Unique Identifier) that begins a public device address §7.30: the IEEE assigns OUIs, the Bluetooth SIG assigns company identifiers, and neither proves who made a device.

Questions answered

Does a reported company identifier prove the peer manufactured that controller?

No. A reported company identifier proves only that the peer’s firmware wrote that number into the field. The number is a 16-bit value that the Bluetooth SIG (Special Interest Group) assigns to one company, and in the version information that controllers exchange (the CompId field of LL_VERSION_IND) it is meant to name the controller’s manufacturer. But the peer chooses what to send: open-source controller firmware makes the value a build setting, any firmware can be changed to report another company’s number, and nothing in Bluetooth signs or checks it. The message often travels before pairing, unencrypted; and even on an encrypted link, encryption shows only that the bytes came from the device at the other end, not that the device tells the truth.

Even an honest value names the maker of the controller chip or its firmware, not the brand of the product. Proving manufacture needs a separate statement that the receiver can verify, such as a certificate or an attestation signed by a key held inside the device and checked against a trusted public key. Without one, treat the company identifier as a claim: use it to choose a decoder or a workaround, never to grant permission or to relax a check.

Related entries: Public, static random, and private addresses (§7.30), Authenticity versus authorship (§1.38), Measured boot and attestation (§6.32), Link Layer (§7.6). Further reading: [93, 282].