Definition
Public, static random, and private addresses are the 48-bit device addresses used in BLE §7.1 (Bluetooth Low Energy). They identify the sender or target while devices discover one another and connect. A public address is assigned through the IEEE. A static random address stays fixed until at least the next power cycle. A private address changes over time. A listener can still link sightings if the device broadcasts the same serial number under each address. A separate flag distinguishes public from random addresses.
The idea
A receiver must tell senders apart: to answer the right advertiser, to recognize a device it has bonded with, and to ignore the rest. A worldwide unique address has two costs: the manufacturer must buy a block of numbers from the IEEE, and a fixed address lets any listener follow the device for life. BLE therefore offers a choice. A public address is unique and permanent. A static random address is free, and two devices pick the same 46 random bits only by rare chance. A device using resolvable private addresses has a public or static random identity address and an identity resolving key §7.29 (IRK), a 128-bit secret. It changes the address it transmits and puts a short check value in each new one. A peer that already has the IRK can recompute the check and look up the associated identity. A non-resolvable private address carries no such check. Anyone can still recognize repeats of the same address while it is in use.
Whatever the kind, the sender writes the address into its own packets, like the return address on an envelope: the post office never checks who wrote it, and anyone can write any return address. The address tells a BLE receiver what the sender claims, not who the sender is. The picture stops at resolvable private addresses, which a key holder can test; even then, a copied address passes the test.
How it works
Byte order §4.21. An address is printed as six hexadecimal bytes, most significant first: C4:5B:12:7A:90:3E. The radio sends the bytes least significant first, 3E 90 7A 12 5B C4. The HCI §7.5 (Host Controller Interface), the interface between host software and the Bluetooth controller §7.4, passes them in that order too, so a byte array §14.5 printed in memory order shows the address reversed.
The type travels beside the address. The 48 bits do not say whether an address is public or random. In packets on the advertising channels, a header bit named TxAdd gives the type of the sender’s address (0 public, 1 random), and a bit named RxAdd gives the type of a target’s address. Packets inside a connection carry no device addresses; the connection is known by an access address chosen at setup. The peer’s address and type are therefore fixed when the connection starts.
The kinds.
Public device address (
TxAdd= 0), built by the rules of the IEEE 802 standards [281]. The organization assigns each device an address within its IEEE allocation. For a large block, the organization receives a 24-bit prefix called an OUI (Organizationally Unique Identifier) and assigns the remaining 24 bits. Medium and small blocks leave 20 and 12 bits, respectively, for the organization to assign.Static random address (random type, top two bits
11): 46 random bits, not all zero and not all one. The device keeps it at least until it is power-cycled; a peer searching for the old address will miss a device that drew a new one at power-up.Resolvable private address §7.31 (random type, top bits
01): 22 random bits complete the upper half, and the lower 24 bits are a check value computed from the upper half with the IRK. The random part must contain both a zero and a one. The Generic Access Profile recommends a maximum interval of 15 minutes between private address changes.Non-resolvable private address (random type, top bits
00): 46 random bits, not all zero and not all one, differing from the device’s public address. Replaced at intervals.
The pattern 10 is reserved. The first printed byte of a random address therefore shows its kind: C0 to FF static, 40 to 7F resolvable, 00 to 3F non-resolvable. Interpret those two bits only after the separate type flag identifies a random address.
Identity address. A device’s identity address is its public or static random address. When peers bond and negotiate identity-key distribution, the receiving peer stores the IRK with the sender’s identity address and its type. Keys can also be provided in advance. What makes later resolution possible is access to the matching IRK. When the controller resolves the address, the HCI LE Enhanced Connection Complete event reports the peer’s identity address. Its peer address type 0x00 means public, 0x01 random, 0x02 a public identity address found by resolution, and 0x03 a static random identity address found by resolution.
Matching. A table keyed on addresses, such as the list of bonded devices or the controller’s filter accept list (the devices whose packets it lets through, called the white list before version 5.3 of the specification), must key on type and 48 bits together. A public address and a random address with equal bits are different addresses.
Worked example
A scanner receives three advertising packets.
TxAdd= 1, addressC4:5B:12:7A:90:3E. The first byte0xC4is1100 0100in binary, so the top bits are11: a static random address.TxAdd= 1, address5A:3C:21:A3:B9:22.0x5Ais0101 1010, top bits01: a resolvable private address, which only a holder of the right IRK can attribute.TxAdd= 0, addressC4:5B:12:7A:90:3E: the same bits as the first packet, but of public type, so by the formatC4:5B:12is an IEEE company number and the top bits say nothing. This is a different address from the first.
A rule that never matches. An administrator lists the first device in an allowlist as (public, C4:5B:12:7A:90:3E). The device connects as (random, C4:5B:12:7A:90:3E). The keys differ in type, so the lookup fails although every byte is equal, and the device gets the rule for unknown devices. Writing the row with type random fixes it. A row typed in packet order, 3E:90:7A:12:5B:C4, fails the same way.
A rule that matches the wrong sender. An attacker M sends its controller the HCI command LE Set Random Address with the value C4:5B:12:7A:90:3E and advertises with TxAdd = 1. Type and bytes match the row, so a check on the address alone admits M. If the receiver is bonded with the real device, it can start encryption with the long-term key §7.28 (LTK) stored in the bond; M lacks that key, so encryption fails and the connection ends. The address proved nothing; the key check exposed M.
Chance clashes. A static random address has allowed values. By the birthday bound §5.6, two of devices draw the same one with probability at most . For devices there are pairs, and .
Stated precisely
An address is a pair : the type , public or random, and a 48-bit number . Two addresses are equal exactly when both parts are equal. For a random address, let , where means rounded down; is the value of the two most significant bits, from 0 to 3. Then marks a static random address, a resolvable private address and a non-resolvable private address; is reserved. For and , the random part must be neither all zero bits nor all one bits. A device’s identity address is its public address or its static random address.
The contract an address gives is narrow. A receiver that reads from a packet learns that the sender wrote there, and nothing about who the sender is. Binding a packet to a particular device takes a key, such as the long-term key of a bond or a key that signs the data.
Limits and common mistakes
Address equality is not authentication §1.6. Host software sets any random address with LE Set Random Address, many controllers have a vendor-specific command that rewrites the public address, and a software-defined radio, whose signal is produced by software, sends whatever bits it is given.
Comparing the bits without the type, with the wrong type, or in the wrong byte order makes a rule silently never match. Test each address-keyed rule with a real connection from the device it names.
A public address can identify the organization assigned its block if you look up the appropriate prefix length. It can be copied like any bits and proves nothing about who made the device; the company identifier §7.32 entry treats the same question for the company numbers of the Bluetooth specifications.
Copying an identity address yields no secret. An address is public, so a key derived from a secret together with the address stays unknown to a copier who lacks the secret. The copier gains only the ability to claim the address, which matters wherever a rule relies on the address alone.
A device that draws its static random address at first start must store it, and its software must read its own identity address only after loading the stored value; a value read earlier may be missing or freshly drawn. A renewed static address leaves every bond stored under the old one useless.
Questions answered
Can a peer spoof a reported address or company identifier?
Yes. A peer can report any address and any company identifier, because both are values that the sender writes into its own packets, and BLE (Bluetooth Low Energy) verifies neither when it receives them. Host software sets any random address with the Host Controller Interface command LE Set Random Address, many controllers accept a vendor-specific command that rewrites even the public address, and a software-defined radio transmits arbitrary bits. A company identifier, the 16-bit number of the company that a device claims made its Bluetooth controller or defined its data format, is written by the same firmware into the version information that controllers exchange and into manufacturer-specific advertising data.
What a spoofer cannot do without the matching key is narrower. It cannot start encryption with the long-term key of another device’s bond, cannot make new resolvable private addresses for another device’s identity resolving key (although it can replay recorded ones), and cannot produce a valid signature. Use addresses and company identifiers to find records and to classify devices, and grant permission only after a check that needs a key.
Related entries: Resolvable private address (RPA) (§7.31), Company identifier (§7.32), Authentication (§1.6), Identity resolving key (IRK) (§7.29), Long-term key (LTK) (§7.28). Further reading: [18, 93, 275, 281, 283].