BLE access control is becoming increasingly popular alternative to traditional keys and physical credentials among residential and business users. The convenience of using a smartphone as a secure digital key makes BLE an attractive way to control the access. So more and more providers are including contactless access control solutions into their value-added portfolios.
However, as with any premises access technology, the growing adoption of BLE access control also raises questions about security. Users and businesses naturally want to understand how the provider protects digital credentials. Whether it’s possible to intercept the communication, and how the system prevents unauthorized access attempts.
The BLE access device combines encrypted communication channels, protected digital credentials, and distance verification mechanisms. It ensures that users can benefit from the convenience of smartphone-based access while maintaining a high level of protection against unauthorized use.
How is BLE access control secured?
Traditional physical keys vulnerable to cope, loss or misuse. Digital access credentials require a different security approach. The approach protects the credential itself and the communication channel transmitting the credentials.
With Aipix-based BLE access control device, BLE tokens are transmitted through secure communication channels using banking-grade cryptographic algorithms. The solution encrypts all exchanged data, helping prevent interception, modification, or unauthorized reuse of digital credentials.
Users can configure the preferred automatic door opening distance according to their needs. The system also verifies the actual distance between the smartphone and the BLE controller before granting access.
This additional validation helps reduce the risk of unauthorized activation attempts from outside the permitted area. Also it ensures that access is provided only when the authorized device is physically close to the access point.
How does the BLE-based solution provide protection against unauthorized access? Justification of the cryptographic strength of the BLE access agreement scheme
The access authorization scheme between the mobile application and the BLE controller based on protocol v3. It is built on standard cryptographic primitives (AES-128, SHA-256, HMAC-SHA256) and their correct combination. The conducted analysis did not reveal any design flaws that would allow an attacker controlling the radio channel to open the controller without possessing a valid key.
The scheme will remain secure exactly as long as AES-128 and SHA-256 remain secure. Since these are cryptographic standards with many years of public analysis history, for which no attacks known that are practically more effective than exhaustive search.
Key quantitative indicators:
| Indicator | Wartość | Comment |
| Master key security strength | ≈ 190 bits | With a practical security threshold of 128 bits |
| Reliability of the Derived Encryption Key | ≈ 127 out of 128 bits | Losses during derivation are negligible |
| Probability of response forgery | 2⁻⁶⁴ per attempt | |
| Offline brute-force attack | Impossible | |
| Expected time to brute-force the signature | > 10¹⁰ years | At 10 attempts per second |
| Probability of request repetition during the service life | ≈ 3 · 10⁻⁸ | With 10⁶ unlock operations |
Distinctive advantages of the scheme:
- the verification process is fully autonomous — the controller operates without a connection to the server;
- the application is fundamentally unable to modify its own access rights or the key validity period;
- compromising a phone does not give an attacker anything beyond the permissions the user already had, and automatically becomes ineffective once the key expires;
- there is no custom-made cryptography.
Co to jest threat model for BLE access control solutions?
The following attacker model assumed:
- the attacker has full control over the radio channel: can passively listen, actively interfere, relay messages, and forge BLE advertising packets;
- can impersonate the controller to the phone and the phone to the controller;
- can repeatedly initiate exchanges, choosing arbitrary request values (adaptive selection);
- has computational resources within limits considered realistic in practice (conditionally up to 2⁸⁰ operations);
- does not possess the master key and does not have physical access to the internal components of the controller.
The attacker’s objectives considered to be:
- opening the controller without a valid key;
- opening it with a key that has expired or whose validity period has not yet started;
- privilege escalation;
- transferring a valid key to another controller;
- recovering the master key, client key, or token contents.
Co Consolidates Security Strength Statement of BLE access?
An attacker cannot unlock the controller without obtaining the valid “encrypted token–client key” pair for the specific controller and the relevant time period. The probability of success remains no higher than n · 2⁻⁶⁴, where N represents the number of attempts made by the attacker.
Recovery of the master key, client key, or access token contents from radio exchange data would require breaking the security of AES-128, SHA-256, or HMAC-SHA256.
What the BLE access security strength is based on?
The Client Key Is the Authentication Tag of the Token Itself
The architectural solution from which most of the scheme’s properties follow is that it calculates the client key as an authentication tag (HMAC) of the access token contents using the master key.
The same value serves both as the authentication code protecting the token integrity and as the secret through which the application proves its access rights. This leads to the following properties:
Token integrity is verified at no additional cost. The application transmits the encrypted token in plain form. Changing even a single bit of the token results, after decryption, in different content, and therefore in a different client key and a signature mismatch. It does not require a separate token integrity check as already performed as part of the response signature verification. This eliminates an entire class of implementation errors related to the order of authentication code verification and decryption operations.
The application cannot modify its own permissions. The token contents are unknown to the application; it only receives the ciphertext and the client key. To set an administrator flag or extend the validity period, it would be necessary to create new token contents and calculate an authentication tag for them using the master key, which is not available to the application. Brute-forcing ciphertext is useless: the corresponding client key would remain unknown. Privilege escalation is reduced to breaking HMAC-SHA256.
Impossibility of Response Forgery
An attacker who does not know the client key must provide a valid signature for a request generated by the controller and unknown in advance.
If an algorithm existed that could produce such a forgery with a probability significantly higher than 2⁻⁶⁴, the hackers could use it to construct either a distinguisher for HMAC-SHA256 as a pseudorandom function or an algorithm for finding partial preimages of SHA-256. For both primitives, researchers have found no attacks more efficient than brute force. No known attack against HMAC-SHA256 exploits its internal structure to recover the key faster than exhaustive search. SHA-256 also remains resistant to preimage attacks: existing results affect only significantly reduced-round versions and do not apply to the full algorithm.
It is important that the client key is the output of HMAC-SHA256, meaning it consists of uniformly distributed 256 bits rather than being a password or a value from a limited alphabet. Dictionary and structural attacks are therefore impossible by design.

Replay Protection
The signature covers the entire response together with the request, and the request contains a random 64-bit value generated by the controller anew for each interaction. A response recorded by an attacker is valid only for a single value of this number and therefore cannot be replayed.
Binding to a Specific Controller
The request contains the public identifier of the controller’s master key, and the system includes this identifier in the signed data. This cryptographically binds the response to the intended key: if an attacker captures a response from one controller, another controller with a different identifier will reject it.
The signature can only be verified by the party that holds the master key, because the system derives the client key from the encrypted token using this master key.
Separation of the Signature and the Session Key
The signature is calculated as the first 8 bytes of the hash of the intermediate value.
If the signature were a prefix of the intermediate value itself, publishing the signature would reveal 64 bits of the future session key, reducing its security and creating a connection between public and secret material. Intermediate hashing provides cryptographic domain separation: recovering the session secret from the signature is impossible except by finding a partial preimage of SHA-256.
As a result, from a single HMAC computation, the scheme derives two values that are independent in terms of security: a public proof of key ownership and a full 256-bit session secret.
Localization of Application Compromise Consequences
Assume that an attacker has extracted the pair “encrypted token — client key” from the phone. The attacker gains the ability to open the same controller with the same permissions and within the same time limits as the legitimate owner.
| What the attacker does not obtain | Why |
| Master key | The client key is an output of HMAC using the master key; obtaining the master key is equivalent to breaking HMAC-SHA256 as a one-way function |
| Token contents | The token remains encrypted using a key derived from the master key |
| Permission extension or renewal | Access boundaries and permissions are fixed inside the token and verified by the controller; modification requires the master key |
| Access to other controllers | Master keys are unique for each device |
A leak only affects the permissions already granted to the compromised user, and the access automatically ends once the key expires.
Resistance to Adaptive Queries
During reverse connection, the phone responds to requests from any connected device, while during direct connection, an attacker can impersonate the controller. In both cases, the attacker can submit chosen requests and collect the corresponding responses.
However, this does not provide the attacker with any advantage. Each response reveals 64 bits of the function output for a chosen input. Recovering the 256-bit client key from such observations is a standard key-recovery problem for a pseudorandom function under chosen-input attacks, and HMAC-SHA256 provides no known solution better than exhaustive search.
Even two observations are sufficient for a candidate and uniquely determined, but verifying each candidate requires a HMAC computation, and the number of possible candidates remains 2²⁵⁶.
Absence of Custom Cryptography
The scheme relies exclusively on AES-128, SHA-256, and HMAC-SHA256 — primitives standardized in FIPS 197, FIPS 180-4, and RFC 2104, with many years of public cryptanalytic history and thoroughly tested implementations.
This is a significant advantage and deserves separate emphasis. The overwhelming majority of practical failures in access control systems are not caused by weaknesses in cryptographic primitives, but by weak or vulnerable schemes for combining and applying them.
Quantitative Assessments
| Parameter | Calculation / Evaluation | Wynik |
| Master key | 32 characters from an alphabet with 62 possible symbols | ≈ 190.5 bits of entropy |
| Derived encryption key | The key derivation function compresses 190 bits into 128 bits | ≈ 127 bits of entropy out of 128 possible |
| Entropy preservation mechanism | The permutation of nibbles in the second half of the master key combines a “low-entropy” nibble of one character with a “high-entropy” nibble of another character | Each resulting nibble is formed by combining two statistically different components |
| Online forgery probability | Probability of successful signature forgery per attempt | 2⁻⁶⁴ per attempt |
| Expected time to successful forgery | At 10 attempts per second | > 10¹⁰ years |
| Random number collision probability | Approximately q²/2⁶⁵ for q sessions | For 10⁶ controller openings during its lifetime: ≈ 3 × 10⁻⁸ |
The quantitative analysis shows that all critical security parameters provide a substantial margin over practical attack thresholds. The master key provides approximately 190-bit security, the derived encryption key preserves approximately 127 bits of entropy, online forgery requires infeasible computational effort, and the probability of random number reuse remains negligible even under large numbers of sessions.
Cryptographic strength of the BLE access agreement summary
The cryptographic core of the scheme is correctly designed, and its security is ensured by a consistent combination of factors:
- the exclusive use of standard, well-studied cryptographic primitives, with no custom cryptography applied in critical components;
- combining the client key with the token authentication tag, which provides token integrity “for free”, ensures the fundamental impossibility of privilege escalation, and enables fully autonomous stateless verification on the controller side;
- separation of the signature and the session key through hashing, allowing two independently secure values to be derived from a single computation;
- a key hierarchy that limits the consequences of client compromise to exactly the scope of permissions available to that client;
- carefully selected parameters with a justified security margin: ≈ 190 bits for the master key, ≈ 127 bits for the derived encryption key, and 2⁻⁶⁴ probability of forgery per attempt when the attacker has no ability to perform offline brute-force attacks.
BLE device as a foundation of contactless secure access and market opportunities
Modern access control is no longer only about opening doors. It is about protecting identities, securing communication channels, and creating reliable digital infrastructure.
Aipix-based BLE access control combines encrypted data transmission, protected digital credentials, proximity verification, and privacy-conscious design to provide a secure alternative to traditional access methods.
By balancing security, convenience, and regulatory requirements, BLE technology helps telecom operators, service providers, and organizations build scalable smart access solutions without compromising cybersecurity. At the same time, the BLE controller is just one of the available equipment options for organizing access point. The decision whether to implement it or not depends on the requirements and specifics of client’s project.
Ready to open up new opportunities for your telecom business with secured contactless BLE-access control and beyond? Contact us and we will explore together the smart access control solution organisation.
