Manuscript Offprint
arXiv:2610.38602STAR: Scalable TEE-based Anonymous Rate-limiter
ABSTRACT
Protecting Internet services from attacks such as TLS/HTTP floods requires rate limiting, yet identifying users to enforce these limits can compromise their privacy. Anonymous rate limiting promises to reconcile these goals, but existing schemes either struggle to scale or assume that services and authorities do not collude. We present STAR, which uses server-side trusted execution environments (TEEs) to overcome these limitations. By enabling lightweight cryptographic operations, TEEs make authentication efficient, but introduce a privacy challenge: malicious services can observe memory-access patterns to infer user secrets. We address this threat through countermeasures against secret-dependent memory accesses and assess our implementation using dynamic analysis. To extend these efficiency gains across servers, we also design a secure sharding mechanism that distributes client requests. We demonstrate that strong privacy guarantees can coexist with efficient authentication at scale; STAR processes authentication requests in tens of microseconds and handles approximately 13.9K requests per second per CPU core.
INDEX TERMS Anonymous Rate-Limiting, Trusted Execution Environment
I. Introduction
-
Web Application and API Protection (WAAP) that block users who send excessive HTTP requests or establish excessive TLS connections, potentially as part of HTTP or TLS flooding attacks, may want to avoid using identifiers (e.g., cookies) for user privacy.
-
Prepaid services that handle sensitive information (e.g., location information collected via toll roads) must limit each customer's usage to the purchased quota while preventing linking customer actions across sessions.
-
Services that use AI inference that handle sensitive topics (e.g., personal health) must cap user requests to prevent large numbers of inference requests that lead to substantial API charges while protecting user privacy.
B. Prior Work and Problem Statement
To address this tension, previous work has proposed anonymous rate-limiting schemes. Many of the prominent approaches rely on advanced cryptographic techniques (e.g., zero-knowledge proofs [1]–[4]) or client-side TEEs [5]. However, all of these prior works leverage cryptographic mechanisms that can impose high verification costs, which reduce a service's resilience to DoS and raise scalability challenges. Other prior works introduce a third-party authority that is assumed not to collude with the service [6], [7] to perform rate limiting using a more lightweight cryptographic mechanism. However, there is no reliable way to guarantee non-collusion, and privacy concerns therefore remain. This motivates an anonymous rate-limiting protocol that (1) is DoS resilient and scalable and (2) allows users to remain anonymous even if the service colludes with an authority.
C. Our Approach
In this paper, we propose STAR (Scalable TEE-based Anonymous Rate-limiter), a novel anonymous rate-limiting scheme that utilizes a server-side Trusted Execution Environment (TEE) operated by the service to address the above challenges. First, by leveraging the confidentiality of a TEE, STAR protects user anonymity and remains robust against anonymity violations by an authority, even when the authority colludes with the service. Second, by executing security- and privacy-sensitive logic inside a TEE,
STAR simplifies and accelerates processing, enabling high scalability by avoiding expensive cryptographic verification on the critical path. However, leveraging a server-side TEE comes with its own challenges, as we discuss below.
STAR consists of two protocols: registration and authentication. In the registration protocol, the service verifies the user's identity and utilizes its TEE to issue a credential to the user. In the authentication protocol, the user encrypts the credential together with pieces of metadata (including an epoch and a counter) and submits the ciphertext to the server-side TEE. The TEE then decrypts the ciphertext, performs several checks, and, based on the decrypted values, computes a blinded one-time identifier, i.e., "blind token". This blind token is then sent to the TEE host (i.e., the service), to which the host checks whether it has seen this value in the past. If it has, the service denies the user access to its service, thus enforcing the rate-limit. Most importantly, rate limiting is performed with respect to the blind token that is not linkable to the user's identity, realizing user privacy.
Design Challenge & Solution. STAR achieves anonymity by using a TEE during authentication to conceal user-identifying information from the service itself. However, simply placing this functionality within the TEE is not enough, as we must take into account that a malicious service may compromise user anonymity by observing secret-dependent control flow or memory-access patterns, which may leak user-related secrets and enable user tracking.
To address this risk, we carefully design STAR so that it has no control-flow or memory-access patterns that depend on secrets. Specifically, when generating the blind token used for rate-limiting, STAR uses only algorithms without dangerous secret-dependent branches and memory accesses.
Another challenge is regarding scaling STAR across multiple servers, that is, efficiently distributing the used-blind-token-sets. Distributed storage [8] can introduce performance overhead that may become a bottleneck for STAR, given its significantly lower processing cost than prior schemes.
To overcome this challenge, STAR employs sharding, where the destination server for each request is determined by a public value derived from its blind token. Each server can publicly verify the assignment, preventing malicious users from bypassing rate limits by replaying the same token across different shards. Moreover, because blind tokens are unlinkable, the routing information does not reveal user identities or enable requests from the same user to be linked.
Advantages and Limitations. STAR is designed to be practical in real-world environments. To demonstrate this, we implemented an end-to-end Proof-of-Concept (PoC) implementation consisting of a Core Library, a WAAP-like Rate-Limiting Service, a Web App Server, and a Client-side Proxy. We also use TLS extensions to carry STAR's payload, making STAR, to the best of our knowledge, the first anonymous rate-limiting implementation designed to
mitigate TLS flooding. Our open-sourced STAR code is publicly available, contributing to reproducibility .
To validate its scalability, we conducted a comprehensive performance evaluation of STAR. First, we measured server-side latency during authentication and demonstrate that STAR completes authentication processing on the order of a few hundred microseconds. This is about faster than the two prior works we compare against, namely ARC [3] and Scrappy [4]. Next, we measured server throughput and show that STAR can process approximately 13.9 kcps (connections per second) authentication requests per CPU core. We also evaluated memory consumption, which is only 1.08 MB per CPU core in Wikipedia-like large-scale settings. Finally, we evaluated communication overhead of STAR and this results only 192 B per authentication phase, which is smaller than that of prior work.
We also analyze the security of STAR by defining a formal security model using a game-based approach and proved that the STAR protocol satisfies the unlinkability and rate limitability properties, required for anonymous rate limiting, via hybrid games. In addition to the formal analysis, we performed a Timecop-style [9] dynamic leakage analysis to search for secret-dependent branches and memory accesses in the Core Library and show that our implementation is free from access-pattern leakage.
Although STAR has numerous advantages, it also has limitations. Most notably, our access-pattern analysis focuses on secret-dependent control flow and memory accesses in the protocol logic; platform-dependent and physical leakage from the TEE is outside its scope.
Contributions. In summary, we introduce STAR that offers:
-
a novel, scalable anonymous rate-limiting scheme built on a server-side TEE, with a design that avoids secret-dependent control flow and memory accesses to prevent leakage of user information, and sharding to distribute requests across multiple servers.
-
practicality: our PoC confirms that STAR can be deployed under modeled real-world environment settings.
-
high performance: server latency is on the order of a few hundred microseconds, throughput is 13.9 kcps per CPU core, memory consumption is 1.08 MB per CPU core, and communication cost is 192 B.
-
security and anonymity: our dynamic analysis of secret-dependent branches and memory accesses and formal security analysis demonstrate that the STAR protocol satisfies rate-limitability and unlinkability.
II. Background
A. Trusted Execution Environments
A Trusted Execution Environment (TEE) is a hardware-backed execution environment that protects the confidentiality and integrity of its code and data, preventing unauthorized access even from privileged software (e.g., OS/Hypervisor).
https://github.com/nict-sflab/star
Typically realized as specialized CPU features, this work assumes a TEE that provides the following fundamental guarantees: (i) Process Isolation: A TEE isolates its program from all software running outside of it, protecting the program memory and internal state. (ii) Memory Encryption (ME): The internal state of a TEE-protected process is transparently encrypted using CPU-resident keys before being written to main memory. (iii) Remote Attestation (RA): A TEE generates cryptographic evidence demonstrating to a remote verifier that (1) the communication endpoint is a genuine TEE backed by legitimate hardware, and (2) the exact intended program is executing within it.
Despite these robust protections, programs executing within TEEs remain vulnerable to adversaries inferring sensitive information by observing memory-access patterns (e.g., controlled channel attacks [10]).
B. k-Times Anonymous Authentication
(Periodic) k-times anonymous authentication (k-TAA [1]) is a privacy-preserving authentication scheme that enforces strict, per-period access limits. Let usk denote the user's secret key, cred their membership credential, gpk the group public key, cnt the current usage counter, K the maximum permitted counter value, and t the current time window. To authenticate, a user generates a zero-knowledge proof for the service, demonstrating the following statement (where PRF(⋯) denotes a PRF function and IsMember(⋯,⋯) denotes a membership verification protocol):
The service accepts the authentication if the proof is successfully verified and the value h has not been previously recorded for the current period t.
III. Related Work
To achieve both user anonymity and rate limiting, many anonymous rate-limiting schemes have been proposed in the literature, summarized in Table 1. However, existing approaches generally suffer from at least one of the following two critical limitations: (1) they are susceptible to collusion among trusted authorities, which undermines user privacy, and/or (2) they exhibit poor scalability, where their deployment can inadvertently lead to denial-of-service (DoS) vulnerabilities on the services they are meant to protect.
The first category of approaches relies on the assumption of non-colluding authorities, namely Privacy Pass [6] and Nymble [7]. Privacy Pass utilizes cryptographic techniques to restrict access frequency while preserving user anonymity. Nevertheless, this system remains vulnerable to timing-correlation attacks if the underlying authorities collude. Although Nymble is an anonymous blocklisting system, it also limits user access rate. However, if authorities in these systems collude with the service, users can be completely de-anonymized. Furthermore, due to the inherent design con-
TABLE 1: Comparison of anonymous rate-limiting works. T is the number of sub-periods in a period, K is the max number that users can access the system, and L is the number of pseudonyms used.
| Scheme | Anonymity Trust anchor | Server load |
|---|---|---|
| Privacy Pass | Non-colluding authorities | Light (O(1)) |
| Nymble | Non-colluding authorities | Light (O(T)) |
| k-TAA | None | Heavy (O(K)) |
| RLN | None | Heavy (O(log K + log L)) |
| ARC | None | Heavy (O(log K)) |
| Scrappy | None | Heavy (O(1)) |
| CACTI | None | Heavy (O(1)) |
| STAR | TEE | Light (O(1)) |
straints of anonymous blocklisting, Nymble strictly prohibits a user from maintaining multiple pseudonyms within a single time window, reducing flexibility.
Another category of solutions, including (periodic) k-times anonymous authentication (k-TAA) [1] and related protocols like Scrappy [4], ARC [3], and RLN [2], leverages zero-knowledge proofs (ZKPs) to mathematically guarantee that a user's access frequency remains below a predefined threshold without revealing any information to the service. However, generating and verifying ZKPs incurs substantial computational overhead. Under high-frequency access scenarios, such as those generated by automated bots, this overhead strictly bounds the service's overall scalability.
Alternatively, CACTI [5] explored constructing anonymous rate limiting by enforcing access limits using client-side TEEs. However, a fundamental limitation of this approach is that it excludes clients operating on hardware that does not support TEEs. Furthermore, to preserve user anonymity, CACTI requires the service to verify expensive privacy-preserving TEE attestation mechanisms (in CACTI's case, EPID [11]), which introduces scalability bottlenecks.
IV. System and Threat Model
A. Intuitive Definition
This section outlines the system architecture and the threat model considered in this work as well as the requirements that must be satisfied by STAR.
The primary entities within our system are:
-
User: that consumes the provided service.
-
Service: that provides services to users.
-
Auth Enclave: which is a trusted component responsible for authenticating users. The enclave logic strictly executes within a server-operated TEE.
We consider the user and service to be potentially malicious. A malicious user attempts to attack the service by exceeding the maximum allowed threshold of K access attempts within a given time window. The goal of a malicious service is to invade user privacy; specifically, the service may log and analyze all available user requests and memory access traces as well as modify the protocol ordering in an attempt to track or de-anonymize users.
Under these anticipated threats, STAR must be designed to satisfy the following core security requirements:
-
Rate-Limiting: A user can successfully authenticate at most times per time window; and
-
Unlinkability: The service cannot track a user across multiple authentication executions, i.e., the service cannot ascertain whether any two cryptographic payloads and observable memory-access traces originated from the same user.
In addition to these security requirements, scalability is a critical non-security requirement. Consequently, both the Auth Enclave and the underlying service in STAR must be highly performant and capable of handling a massive volume of concurrent requests from a large user base.
To achieve these requirements, we establish several security assumptions: First, we exclude adversaries that are typically considered out of scope in TEE-based systems, including adversaries that directly compromise the security guarantees of the TEE platform itself. For example, we assume an OS/hypervisor-level adversary but strictly exclude hardware-level adversaries. Specifically, we consider leakage caused by secret-dependent control flow and memory-access patterns, including array accesses, that can be observed by the service [10]. Platform- or microarchitecture-dependent attacks whose success is independent of the protocol logic are outside of this work's scope. Second, STAR adopts several assumptions common to other rate-limiting schemes. In particular, STAR assumes that users have already correctly obtained the global parameters shared by all entities, such as the TEE public key pk. To this end, we can consider that these global parameters are published on a trusted bulletin board (e.g., Certificate Transparency logs) together with STAR's RA evidence generated by the TEE. Using these materials, users are assumed to have verified that the global parameters are authentic, are bound to a genuine TEE, and correspond to the expected STAR code before executing the protocol. Additionally, we treat clock skew between clients as orthogonal to our core focus and assume that all clients synchronize their clocks to the correct current time. We also exclude network DoS attacks operating below Layer 5 (e.g., TCP SYN floods) and IP-based tracking attacks. We assume that these threats are adequately mitigated through domain-specific deployment mechanisms, such as L3 firewalls for lower-layer DoS attacks and Tor for IP-based tracking. Finally, Sybil attacks are similarly orthogonal to our core focus. Consequently, we assume that STAR integrates robust identity-verification mechanisms during registration, such as the hardware-backed certificates used in [4], so that a single user cannot register multiple distinct accounts.
| Gameratelimitℛ(λ) | ORegratelimit(cipher) |
|---|---|
| (pk, sk, HLs) ← Setup(1λ) | cipher' ← Regenclave(cipher, sk) |
| t' ← 0 | N ← N + 1 |
| i ← 0 | return cipher' |
| N ← 0 | |
| 1 ← ℜOratelimit() | OAuthratelimit(cipher'', s) |
| return [i > K × N] | h ← Authenclave(cipher'', t', sk) |
| HLs ← Authservice(h, HLs) | |
| i ← i + 1 | |
| return 1 | |
| ORefreshratelimit() | |
| t' ← t' + 1 | |
| i ← 0 | |
| HLs ← ∅ | |
| return 1 |
FIGURE 1: Rate-limitability security game.
All oracles stop and return when it fails (e.g., assertion fails).
B. Formal Definition
The STAR and the security requirements of STAR can be defined formally as follows:
Definition 1 (The definition of STAR). STAR is a set of the following processes:
-
Reg = (Reg, Reg, Reg): This process allows a new user to register with the STAR system. First, the user runs (cipher, ck) ← Reg and sends cipher cipher to the service. The service then invokes the TEE to compute cipher' ← Reg(cipher) and returns cipher' to the user. Finally, the user retrieves the credential by running cred ← Reg(cipher', ck) with the common key ck.
-
Auth = (Auth, Auth, Auth): This process allows users to send requests to the service subject to the rate limit. First, the user generates (cipher'', s, cnt) ← Auth(cred, cnt, pk) with a user counter cnt and sends the resulting request cipher'' to the service indexed s. The service then invokes the TEE to compute h ← Auth(cipher'', t', sk). Finally, the service verifies the TEE's response and then inserts h into duplication checking list by running HL ← Auth(h, HL).
Definition 2 (Rate-Limitability of the STAR). Rate-Limitability is defined as the property that, for any probabilistic polynomial-time (PPT) adversary , the probability that outputs 1 in the rate-limiting game shown in Figure 1 is negligible in the security parameter ; that is,
It is noteworthy that this rate-limitability game models the worst-case setting in which only adversarial users are considered. Accordingly, the adversary wins if it achieves
FIGURE 2: Unlinkability security game.
All oracles stop and return when it fails (e.g., assertion fails).
is a function resulting with memory access pattern of leakage.
more than successful authentications within a single time window, where denotes the number of malicious users registered by the adversary.
Definition 3 (Unlinkability of the STAR). For any PPT adversary , we define its advantage in the Unlinkability game shown in Figure 2 as
The protocol satisfies unlinkability if, for every PPT adversary , there exists a negligible function negl such that
Notably, in the unlinkability game, the adversary can observe the Enclave's memory-access patterns during both registration and authentication, denoted by . Thus, STAR must ensure that this leakage does not enable the adversary to determine whether two authentication requests originate from the same user.
V. Design Challenges
A. Rate-Limiting with Oblivious Access Pattern
Challenge. Whether to accept a request depends on the user's past access rate. A straightforward approach to determine this is to maintain a per-user access counter inside the

FIGURE 3: Blind-token mechanism of STAR
server-side TEE and consult it during authentication. However, by observing which per-user record is accessed by the TEE, the service may potentially compromise unlinkability.
Common defenses against this attack, notably linear scan [12] and ORAM [13], have limitations. A linear scan must traverse the entire state on every access to hide which entry was accessed, resulting in time per request and poor performance at scale. ORAM hides access patterns by randomizing storage locations, but it incurs high latency of , where is the number of entries [14]–[16]. Moreover, it complicates parallelization, leading to additional scalability issues [17], [18].
Conducting per-user state lookup during authentication is not ideal. We must, therefore, explore an alternative mechanism that satisfies several requirements simultaneously. First, because a per-user identifier is necessary for such a mechanism to enforce rate-limiting, its value must not be exposed through control flow or memory-access patterns. Second, the mechanism must enforce that a user can authenticate at most times within a time window. Third, distinct authentication attempts by the same user should remain unlinkable, except when the user reuses the same rate-limiting slot, which must be detected for rate-limiting purposes. Finally, the mechanism should be efficient and compatible with parallelization. Satisfying all of these requirements within a server-side TEE is nontrivial.
Solution. We address this challenge by introducing a mechanism that leverages a blinded per-request identifier, which we refer to as a blind token, shown in Figure 3. For each authentication attempt, the Auth Enclave computes a blind token using a sufficiently long user ID uid known only to the user and the enclave in addition to a counter and the current time window , both supplied by the user:
Here, cnt and uid serve as the secret key. Similar constructions are used in k-TAA [1], ARC [3], Nymble [7], and APHE [19].
The Auth Enclave first verifies that the user-supplied counter satisfies . A user may reuse a previously used cnt within the same time window; however, this produces the same blind token that has been redeemed before and is therefore rejected by the service. Any cnt values outside the permitted range are rejected by the enclave. Thus, at most distinct blind tokens can be successfully redeemed by a user within each time window. Once this check passes, the Auth Enclave generates .
After generating , the Auth Enclave returns it to the service, which checks whether the token has already been redeemed within the current time window. Specifically, the service maintains a list of already-redeemed blind tokens and performs duplicate detection over this list. The use of blind token and delegation of rate-limiting to the service introduces the following two advantages. First, because is calculated using a one-way function, the service cannot recover the user identifier from . Second, because the enclave does not perform rate limiting itself, it does not access user-specific state, removing the need for access-pattern-hiding approaches. This allows us to employ efficient lookup data structures such as hash sets.
Because is pseudorandom and varies with cnt and , authentication attempts by the same user are unlinkable across distinct (cnt, ) pairs. Moreover, we implement blind-token generation and the cnt range check with secret-independent branches and memory-access patterns. Enclave-side processing is limited to credential verification, counter checking, and token generation. This keeps the enclave codebase small and makes the access-pattern analysis in Section IX manageable.
There are several works that leverage blind tokens (or similar approaches), although their techniques cannot be applied directly to STAR due to limitations in functionality or performance. For example, APHE [19] uses a blinded value to limit login attempts without exposing the account name. However, it does not enforce a per-user limit on service access after a successful login, which is STAR's target. ZIPNet [20] utilizes blinded messages to construct an anonymous broadcasting system. Although ZIPNet also introduces some form of rate-limiting functionality, applying their approach to the STAR use-case (e.g., WAAP) would introduce extremely high bandwidth consumption since they require all users to transmit a real or cover message for anonymity purposes. Blinded tokens leveraged in k-TAA [1] and ARC [3] are computed on the client side. Due to this, clients must prove possession of the correct identifier without revealing the identifier itself, which requires computationally expensive zero-knowledge proofs. This also requires the algorithm to use hash functions optimized for zero-knowledge proofs, which is slower compared to general-purpose CPU-optimized ones such as SHA-256, which is used by STAR.
B. Distributing HL for Scalability
Challenge. In the previous sections, we described how we can increase the scalability of STAR by avoiding expensive cryptographic algorithms and data structures that hide access patterns. To further increase its scalability, STAR should be deployed in a distributed setting. There are two key information that must be distributed; sk stored within the
Auth Enclaves (discussed in Section B) and HL. One way of maintaining HL in a distributed setting is to run STAR on top of a distributed database (e.g., distributed hash table [8]) to leverage its atomicity guarantee and prevent race conditions. However, this approach can incur performance bottlenecks due to mutex locking, data merging, and data transfer in the service's intranet. Unlike prior work in which cryptographic processing is the primary bottleneck, this issue is especially significant in STAR, where per-request processing is expected to complete in the order of microseconds.
Solution. To address this issue, we employ the STAR protocol with partition on a per-server basis (i.e., sharding). Specifically, when the user computes the blind token from uid( cred), it also computes , which is the remainder obtained after dividing by the number of servers and routes the request to the server corresponding to . With this approach, each server maintains only the subset of values, corresponding to approximately of , and, therefore, user requests are distributed approximately evenly at a rate of , assuming that is uniformly distributed.
Several security considerations must be taken into account during the design of this solution. First, a malicious user may send a request to a server that does not correspond to . However, the server can always reject this request by recomputing and verifying whether it is assigned to that shard. Second, a malicious server may abuse this feature to track users via the routing value. Such tracking is computationally infeasible because the current does not provide any leverage to a malicious server in predicting the next , since is computed using a Hash. Finally, a malicious user may attempt to take down a specific server by selecting invalid routes and repeatedly accessing a single server. However, the impact of this attack on STAR is limited. This is because, owing to the sharding approach, even if one server becomes unavailable due to the above attack, the number of affected user requests is limited to only of the total number of requests, assuming is sufficiently large. Moreover, even if a user is affected, the impact remains limited, because the user can always retransmit the request using another counter, as long as is sufficiently large and the epoch duration is short.
VI. The STAR protocol
This section details the STAR protocol. To clearly present the steps of the protocol, we utilize the notation defined in Table 6 (in Appendix A) and show the protocol in Figures 5 and 6. For the underlying cryptographic operations, we assume that all variables are securely padded to fixed lengths, and that the secret key of the enclave sk, and the common key between users and the enclave ck and the identifiers uid are of sufficient length (e.g., 256 bits) to prevent brute-force attacks. Furthermore, we let MAC denote a cryptographic MAC, Hash() a hash function, Seal and Unseal AEAD sealing and unsealing, respectively, and Seal' and Unseal' public-key encryption and decryption,

FIGURE 4: The sharding mechanism of STAR

FIGURE 5: Registration protocol.
respectively. Additionally, pk represents the public key of the Auth Enclave, which the client is assumed to have verified a priori via remote attestation. Moreover, although we use sk to denote all secret keys of the Auth Enclave, the keys for HMAC and decryption should be distinct in the implementation. Finally, after each transition of the time window, the user's session counter cnt is reset to 0 and the duplicate-check list is flushed ().

FIGURE 6: Authentication protocol.

FIGURE 7: Implementation of STAR
VII. Implementation
To demonstrate its feasibility, we built an end-to-end proof-of-concept prototype of STAR in Rust, consisting of the Core Library, Rate-Limiting Service, protected Web App Server, and Client-side Proxy (see Fig. 7 for the overview).
During the implementation, we made several assumptions. We set the time-window length at one minute and to 100 as the default setting. Additionally, we abstracted the ID-verification mechanism since it can be realized through various means (e.g., TPM-backed certificates).
Challenge and Solution: How to Deliver Ciphertexts
Although STAR requires users to transmit cipher", determining the optimal transmission method is not trivial. The most straightforward way is to encapsulate it in the HTTP header. However, this allows the server to obtain cipher" only after the TLS handshake, so the risk of TLS flooding remains.
To address this issue, we use a TLS extension to deliver cipher". This way, the service obtains cipher" when it receives the TLS ClientHello message, allowing it to filter user requests even before completing the TLS handshake.
However, the implementation choice described above introduces an additional risk; intermediary entities between users and the service, e.g., ISPs, may intercept cipher", allowing them to block user requests and/or send them as their own requests. Although this is a limitation of our implementation, the impact of such attacks is limited. In the case of malicious blocking, users can detect the event (e.g., by not receiving a valid response), and resend cipher" via a different network route using the next counter value. Although this consumes an additional cnt value, the impact is minimal if K is sufficiently large or the epoch length is short. Moreover, sending an intercepted request does not affect the rate-limiting functionality of STAR, as it does not increase the total number of requests that can be submitted to a service. This is because the intercepted request must be generated by a user who received a legitimate credential from the service, which controls the number of credentials it issues depending on the load it can handle.
A. Core Library
The Core Library is responsible for the main cryptographic operations. This library covers most of the processes of the Auth Enclave and the user shown in Section VI, except for I/O-related processes (e.g., checking storage and sending data over the Internet).
Implementing this component required several technical design choices. First, we had to select cryptographic primitives that met the requirements set in Section IV. Specifically, we adopt SHA-256 for the hash function and HMAC-SHA256 for the MAC. For communication between the Auth Enclave and the user, we use a hybrid design in which HPKE is used to deliver an AEAD key (together with other messages), after which an AEAD is used. As for the primitives underlying these constructions, we adopt X25519 and ChaCha20-Poly1305, which are well suited to implementations with secret-independent control flow and memory access. We use implementations designed to avoid secret-dependent branches and memory accesses .
Additionally, we implement the Core Library so that control flow and memory-access patterns do not depend on secret information. Aside from external cryptographic libraries, which we assume do not introduce secret-dependent branches or memory accesses, the only operation that required explicit handling was byte-string comparison. Therefore, we implemented all byte-string comparisons using a linear scan over all bytes.
B. Rate-Limiting Service
The Rate-Limiting Service is responsible for blocking excessive requests from reaching the Web App Server (described below), which consists of (i) a Registration API Server that provides the registration procedure, (ii) a Filtering Proxy that performs authentication, and (iii) an Auth SGX Enclave, which is an implementation of Auth Enclave.
Registration API Server. This server handles user registration. It relays the user's registration request to the Auth Enclave and returns the encrypted credential produced by the enclave to the user. For compatibility with Pingora, we adopted Pingora Web for this implementation.
Filtering Proxy. This proxy is responsible for authentication. Upon receiving a user request, the Filtering Proxy invokes the Auth Enclave and checks whether the blind token returned by the enclave has not been used before using a HashMap. Taking inspiration from WAAP practices, we leverage a proxy design for the STAR authentication layer. For the actual implementation, we adopted Pingora due to its scalability and Cloudflare's deployment track-record. The duplicate check and insertion into the HashMap are performed atomically under a mutex to prevent race conditions between concurrent requests.
One challenge in implementing the core proxy is extending TLS. To address this challenge, we use OpenSSL to take advantage of its useful hook for validating custom extensions, namely TlsSettings::set_client_hello_callback . Auth SGX Enclave. This is the implementation of the STAR Auth Enclave. This provides the Filtering Proxy with an interface for invoking Auth Enclave functions implemented in the Core Library. Additionally, it provides the features of attesting pk and sharing sk between enclaves after mutual attestation , which is necessary for realizing the HL sharding design discussed in Section B. As the execution environment for the Auth Enclave, we adopted Intel SGX because it provides RA and ME while keeping the TCB small. Furthermore, to preserve the Rust implementation while minimizing the TCB, we used Rust SGX and implemented the enclave as an externally callable library. This design places many operations, including communication handling, outside the enclave, further reducing the TCB.
https://github.com/symbolicsoft/hpke-ng
https://blog.cloudflare.com/pingora-open-source/
https://docs.rs/chacha20poly1305/0.10.1/chacha20poly1305/
https://docs.rs/openssl/latest/openssl/ssl/struct.SslAcceptedBuilder.html
https://docs.rs/pingora/latest/pingora/listeners/tls/struct.TlsSettings.html
This is done via a dedicated key-managing enclave.
C. Web App Server
The Web App Server returns HTML pages to users, and is protected by the Rate-Limiting Service.
D. Client-side Proxy
The Client-side Proxy enables the user's browser to access the Web App Server. When a user sends a request through this proxy, the proxy increments the counter cnt, then generates and attaches cipher'' to the TLS extensions. For this implementation, we use OpenSSL, its hook function for TLS extension SslConnectorBuilder::add_custom_ext⁹, and Pingora to align with the Filtering Proxy implementation.
VIII. Performance Evaluation
In this section, we evaluate the performance of STAR. All experiments were conducted on a Standard DC24s v3 Azure VM, which has 24 CPU cores running at a frequency of 2.8 GHz, and 196 GB of memory.
A. Latency/Throughput Evaluation
1) Methodology
We measure the computational latency and throughput of STAR as well as two prior systems and compare the results. As for the prior works, we chose ARC [3] ¹⁰ (under the setting) and Scrappy [4], as they are recent anonymous rate-limiting systems whose code is open source.¹¹ We also chose these systems because they are secure against colluding authorities (cf. Section III) ¹².
2) Results
STAR latency and throughput. Tables 2, 3, and 4 show our measured results, which confirm that STAR operates at high performance. User-side latency is 87.4 µs while service-side latency is 71.7 µs (+ 423 ns for duplicate checking and inserting). We refer the reader to Tables 2 and 3 for a breakdown of the client- and server-side latencies, respectively. Furthermore, STAR achieves 13.9 kcps (connections per second) for verification, demonstrating its scalability.
Comparison evaluation. We demonstrate that STAR is more efficient than prior work. More concretely, under the above conditions, the proving latencies of ARC and Scrappy are 1.62 ms and 1.36 ms, respectively. Verification latency is 2.03 ms and 5.41 ms for ARC and Scrappy, respectively, which leads to a throughput of 493 cps and 185 cps for ARC and Scrappy, respectively. Based on the measurement numbers shown above, the proving latency of STAR is
TABLE 2: Client-side STAR latency.
| Process | Latency |
| Encryption | 87.2 µs |
| Route selection | 216 ns |
| Total | 87.4 µs |
TABLE 3: Server-side STAR latency. Parenthesized text indicates duplicate-check and inserting process latencies.
| Process | Latency |
| Decryption | 63.1 µs |
| Verification | 294 ns |
| Token generation | 242 ns |
| Route selection | 216 ns |
| Call Enclave & Return | 5.04 µs |
| Others | 2.20 µs |
| Total | 71.7 µs (+423 ns) |
approximately 15.6× or more faster than the two related works and 28.3× or more efficient for verification.
B. Filtering Performance Evaluation
1) Methodology
We evaluate the latency and throughput of the filtering process of the filtering proxy. Recall that in STAR, this proxy is responsible for filtering out any invalid requests before performing the TLS handshake to mitigate TLS flooding attacks. Therefore, in this evaluation, we focus only on the computational cost of receiving TLS ClientHello messages (i.e., SslAccepted::accept ¹³) with a custom extension configured to use TlsSettings::set_client_hello_callback ¹⁴. In detail, we investigate the following three potential attack scenarios: (i) a missing STAR TLS extension header; (ii) using cipher'' generated from an invalid credential; and (iii) replaying cipher''. We also measure the cost of establishing a TLS connection and compare that with the above measurements.
2) Results
Our experiments show that STAR provides sufficient throughput to mitigate the attack described above. Table 5 summarizes the results. The filtering proxy achieves (i) 123 kcps, (ii) 12.0 kcps, and (iii) 12.0 kcps for the three scenarios. This makes STAR 2.43 times more scalable than the measured TLS handshake, which was 4.92 kcps. Additionally, Figures 8 and 9 show that the throughput of STAR increases linearly. We can also observe the same trend in an environment with multiple STAR servers.
⁹https://docs.rs/openssl/latest/openssl/ssl/struct.SslConnectorBuilder.html ¹⁰https://github.com/cloudflareresearch/arc ¹¹Scrappy uses akakou/ecdaa; we used its Rust implemented version. ¹²Our measurements for each scheme exclude the cost of duplication check from each total latency, as they do not provide the same implementation of as STAR. This setting favors the prior systems and is unfavorable to STAR.
¹³https://docs.rs/openssl/latest/openssl/ssl/struct.SslAccepted.html ¹⁴See footnote 6.
TABLE 4: Latency and throughput comparison with prior works. cps = connections per second.
| Proving Latency | Verification Latency | Throughput | |
|---|---|---|---|
| ARC | 1.62 ms | 2.03 ms | 493 cps |
| Scrappy | 1.36 ms | 5.41 ms | 185 cps |
| STAR | 87.4 µs | 71.7 µs | 13.9 kcps |
TABLE 5: Latency and throughput comparison with TLS under a single thread setting. cps = connections per second.
| TLS | (i) | (ii) | (iii) | |
|---|---|---|---|---|
| Latency | 203 µs | 8.11 µs | 83.2 µs | 83.6 µs |
| Throughput | 4.92 kcps | 123 kcps | 12.0 kcps | 12.0 kcps |
C. Other Costs
1) Bandwidth Consumption
We measured the bandwidth consumption of the authentication protocol. The one-way overhead of STAR during authentication is 192 B. In comparison, the bandwidth consumption of ARC and Scrappy is B and 261 B, respectively, making the communication overhead of STAR lower than that of previous works.
2) Memory Consumption
We now examine the memory consumption of STAR. From Section VI we can see that the storage size of increases linearly. To empirically evaluate the memory consumption of in a modeled real-world scenario, we consider a Wikipedia-scale deployment. Concretely, we assume approximately 2,400 servers and 22.6 billion accesses per month, with the assumption that 1% of the servers are allocated for STAR-related tasks. In this setting, we estimate the number of entries in for a single time window to be 21,800 (= 22.6 billion ÷ (0.01 × 2400 × 30 × 24 × 60)), which totals approximately 1.08 MB. This is practical and because is flushed in a batch process when turns over, the memory overhead is constant throughout the operation and therefore remains within a practical operating range.
IX. Security Analysis
In this section, we analyze the security of the STAR protocol. We first conduct an access-pattern leakage analysis for any secret-dependent control flow or memory accesses and then, based on its results, provide proof sketches and full proof in Appendix D showing that the STAR protocol satisfies the security requirements defined in Section IV.

FIGURE 8: Throughput comparison for each attack. The line of (iii) overlays (ii).

FIGURE 9: Throughput comparison with responding to TLS ClientHello messages
A. Access-Pattern Leakage Analysis
1) Experimental Setup
We use a dynamic analysis tool to validate that our Core Library (and its dependencies) does not introduce secret-dependent branches or secret-dependent memory accesses. Note that in this evaluation, we evaluate the Core Library functionality related to the STAR protocol outside the SGX environment, where the required analysis tools are available. Therefore, SGX-specific functionalities that require an SGX environment, including remote attestation and sealing, remain outside the scope of this analysis.
This work adopts a Timecop-style [9] methodology. This approach repurposes Valgrind's mechanism for identifying conditional jumps and memory accesses that depend on uninitialized values to detect those that depend on secret values. Valgrind performs this analysis at byte-level granularity, which is finer than cache-line or page-level access observations and therefore also covers these coarser access granularities. This work uses crabgrind, a Valgrind wrapper.
In our experiment, we treat all inputs for the enclave (e.g., sk, t, cipher, cipher'') as the traceable variables and execute setting up, credential issuance, credential verification, and token generation as our target functions. Although we only set the above values, Valgrind automatically traces all values generated from them, i.e., uid, cnt and cred. We
https://wikitech.wikimedia.org/wiki/Servers
https://wikimedia.org/api/rest_v1/metrics/pageviews/aggregate/all-projects/all-access/all-agents/monthly/2026040100/2026043000 then inspect the conditional branches and access patterns within the Core Library that depend on these secret values.
Note that these checks can raise false alarms, i.e., secret-dependent branches that do not affect security. For example, even if a user supplies an invalid ciphertext, credential, or ephemeral key to an error-handling branch, the branch leaks that the input was invalid, which is acceptable in our setting. We therefore manually inspect each reported conditional branch and its corresponding code, and confirm that the branch does not indeed leak sensitive information beyond what the adversary already legitimately learns.
2 ) Experimental Results
We did not identify security-relevant secret-dependent memory accesses or branches. Although Valgrind reported several secret-dependent conditional branches or access-pattern changes, our manual inspection of the relevant functions confirmed that all reported cases were false positives. The list of functions and their accompanying inspection result is shown in Appendix C.
B. Cryptographic Security Analysis
Theorem 1 (Rate-Limitability of the STAR protocol). Under the random oracle model, assuming IND-CCA security of AEAD and public-key encryption, and EUF-CMA security of the MAC scheme, STAR satisfies rate-limitability.
Proof Sketch:
We prove the rate-limitability of STAR with the following sketched hybrid game:
Game 1. Ciphertext-Level Manipulation. We first consider arbitrarily crafted ciphertexts. Malformed cipher or cipher'' is rejected during registration or authentication. Otherwise, cipher and cipher'' decrypt to some ck* and , respectively, and the security of the underlying encryption schemes ensures that ciphertext manipulation gives no advantage beyond choosing or reusing these plaintext values.
Game 2. Plaintext-Level Manipulation. We next consider adversarially chosen plaintexts. Since pk is public, the adversary may encrypt an arbitrary ck*, but this only creates an additional registration counted in N. A forged credential, an invalid cnt or t, or an incorrect shard s is rejected by MAC verification, the range and time-window checks, or the check , respectively.
Game 3. Replay Attacks. Finally, replaying the same produces the same and is rejected because , Hence, for each credential, at most distinct counter values can be accepted in any time window. Therefore, after registrations, the adversary can successfully authenticate at most times in each time window.
Theorem 2 (Unlinkability of the STAR protocol). Under the random oracle model, assuming IND-CCA security of AEAD and public-key encryption, INT-CTX security of AEAD,
EUF-CMA security of the MAC scheme, and the fact that , only leaks negligible information, STAR satisfies unlinkability.
Proof Sketch:
We prove the unlinkability of STAR via the following sequence of hybrid games:
Game 1. Invalid Ciphertext. We first consider malformed ciphertexts submitted to the oracles. By the integrity and security of the underlying encryption schemes, such ciphertexts are rejected except with negligible probability and therefore reveal no information about the challenge bit.
Game 2. Invalid Plaintext. Since pk is public, the adversary can encrypt arbitrary plaintexts, including arbitrary values. However, a fresh cred is accepted only if it contains a valid MAC, whose forgery succeeds with only negligible probability.
Game 3. Invalid . If the adversary submits an arbitrary time window , the request is processed normally if ; otherwise, is returned. This verification reveals only whether the submitted time window matches t, which is common to all legitimate users in our model. Since this information is independent of the challenge bit, it provides no distinguishing advantage.
Game 4. Replacing Random-Oracle Outputs. We replace each with a consistently lazy-sampled random value. Because uid is hidden and has sufficiently high entropy, the adversary queries the corresponding random-oracle input only with negligible probability. Moreover, distinct authentications use distinct tuples, so the resulting h values, and hence , provide no advantage in linking requests.
Game 5. Replacing Ciphertexts. We replace each challenge authentication ciphertext with an encryption of a fixed-length dummy plaintext, while answering repeated challenge-ciphertext queries consistently using the h values sampled in Game 4. By the security of the public-key encryption scheme, the adversary cannot distinguish the real and dummy ciphertexts except with negligible probability.
Game 6. Remaining Values. The remaining non-random values are the public user-state handle n and the success status, neither of which depends on the challenge bit. Furthermore, by the assumed security of , the observed access patterns reveal only negligible information. Thus, the challenge distributions are identical in the final game, and the adversary's success probability in the original game is at most .
X. Discussion
A. TEE Timing & Cache-line Side-channel Attacks
STAR is designed to mitigate any access-pattern leakage; however, a TEE-based system may also leak other side channel information, including timing and cache-line side channels. Although these attacks are treated outside the scope of this work and STAR does not explicitly guarantee resistance to such attacks, its design may reduce the available attack surface. This is because, although we do not conduct any detailed security analysis against these attacks, STAR does not include potentially dangerous secret-dependent control flow and memory accesses, which many timing and cache-line side-channel attacks rely on.
B. Protocol-level Timing-Correlation Attack
STAR provides stronger mitigation than Privacy Pass against attacks that correlate credential replenishment with subsequent use. Privacy Pass users must periodically replenish their passes, potentially while revealing their identities. Although the passes themselves cannot be directly linked to this identity information, a colluding service and pass issuer may exploit timing correlations between replenishment and spending events to link multiple spending events to one another as originating from the same user. This risk is particularly pronounced when a pass is spent shortly after replenishment, because the temporal proximity provides a stronger signal for associating subsequent spending events with the same user. In contrast, STAR has no pass-replenishment phase and therefore exposes no corresponding pair of events to correlate. This difference gives STAR a concrete advantage over Privacy Pass under collusion between the service and authorities (see Sections III and IV).¹⁷
C. Tracking Users via Clock Skew
STAR assumes that the user clocks are synchronized. This is because users whose clocks exhibit drift may be tracked by the server if that drift is exploited. An alternative design is to use a service-provided time period , an approach leveraged by related works such as Scrappy [4] and CACTI [5]. However, introducing this approach into STAR would approximately double STAR's communication costs, resulting in a trade-off between privacy and latency.
XI. Limitation
A limitation of STAR is that its security depends on the security of the underlying TEE. Additionally, our access-pattern leakage analysis covers secret-dependent branches and memory accesses in the protocol logic and excludes other leakage patterns.
XII. Conclusion
In this work, we proposed STAR, a fast and anonymous rate limiter that utilizes TEEs on the server side. The STAR protocol avoids secret-dependent control flow and memory-access patterns that could reveal user-related secrets and its servers are distributed with the sharding mechanism.
REFERENCES
[1] I. Teranishi, J. Furukawa, and K. Sako, "K-times anonymous authentication," in International Conference on the Theory and Application of Cryptology and Information Security. Springer, 2004, pp. 308–322, doi: 10.1007/978-3-540-30539-2_22. [2] R.-L. N. (RLN), "What is rate-limiting nullifier?" [accessed 2026-05-25]. [Online]. Available: https://rate-limiting-nullifier.github.io/rln-docs/what_is_rln.html [3] C. Yun and C. A. Wood, "Privacy Pass Issuance Protocol for Anonymous Rate-Limited Credentials," Internet Engineering Task Force, Internet-Draft draft-yun-privacypass-arc-01, Aug. 2025, work in Progress. [Online]. Available: https://datatracker.iETF.org/doc/draft-yun-privacypass-arc/01/ [4] K. Akama, Y. Nakatsuka, M. Sato, and K. Uehara, "Scrappy: SeCure Rate Assuring Protocol with PrivacY," in Proceedings 2024 Network and Distributed System Security Symposium. Internet Society, doi: 10.14722/ndss.2024.24445. [5] Y. Nakatsuka, E. Ozturk, A. Paverd, and G. Tsudik, "CACTI: Captcha avoidance via client-side TEE integration," in 30th USENIX Security Symposium (USENIX Security 21). USENIX Association, Aug. 2021, pp. 2561–2578. [6] A. Davidson, I. Goldberg, N. Sullivan, G. Tankersley, and F. Valsorda, "Privacy pass: Bypassing internet challenges anonymously," Proceedings on Privacy Enhancing Technologies, 2018, doi: 10.1515/popets-2018-0026. [7] P. P. Tsang, A. Kapadia, C. Cornelius, and S. W. Smith, "Nymble: Blocking misbehaving users in anonymizing networks," IEEE Transactions on Dependable and Secure Computing, vol. 8, no. 2, pp. 256–269, 2009, doi: 10.1109/TDSC.2009.38. [8] I. Stoica, R. Morris, D. Karger, M. F. Kaashoek, and H. Balakrishnan, "Chord: A scalable peer-to-peer lookup service for internet applications," in Proceedings of the 2001 Conference on Applications, Technologies, Architectures, and Protocols for Computer Communications, ser. SIGCOMM '01. New York, NY, USA: Association for Computing Machinery, 2001, p. 149–160, doi: 10.1145/383059.383071. [9] M. Neikes, "Timecop," [accessed 2026-05-27]. [Online]. Available: https://www.post-apocalyptic-crypto.org/timecop/ [10] Y. Xu, W. Cui, and M. Peinado, "Controlled-channel attacks: Deterministic side channels for untrusted operating systems," in 2015 IEEE Symposium on Security and Privacy, 2015, pp. 640–656, doi: 10.1109/SP.2015.45. [11] E. Brickell and J. Li, "Enhanced privacy ID from bilinear pairing," Cryptology ePrint Archive, Paper 2009/095, 2009. [Online]. Available: https://eprint.iacr.org/2009/095 [12] G. Connell, "Technology deep dive: Building a faster oram layer for enclaves," [accessed 2026-05-25]. [Online]. Available: https://signal.org/blog/building-faster-oram/ [13] O. Goldreich and R. Ostrovsky, "Software protection and simulation on oblivious rams," Journal of the ACM (JACM), vol. 43, no. 3, pp. 431–473, 1996, doi: 10.1145/233551.233553. [14] E. Stefanov, M. V. Dijk, E. Shi, T.-H. H. Chan, C. Fletcher, L. Ren, X. Yu, and S. Devadas, "Path oram: An extremely simple oblivious ram protocol," J. ACM, vol. 65, no. 4, Apr. 2018, doi: 10.1145/3177872. [15] P. Mishra, R. Poddar, J. Chen, A. Chiesa, and R. A. Popa, "Oblix: An efficient oblivious search index," in 2018 IEEE Symposium on Security and Privacy (SP), 2018, pp. 279–296, doi: 10.1109/SP.2018.00045. [16] A. Tinoco, S. Gao, and E. Shi, "{EnigMap}: {External-Memory} oblivious map for secure enclaves," in 32nd USENIX Security Symposium (USENIX Security 23), 2023, pp. 4033–4050. [17] N. Talur and I. Demertzis, "{SONIC}: Concurrent oblivious {RAM} & data structures for {Low-Latency} and {High-Throughput}," in 35th USENIX Security Symposium (USENIX Security 26), 2026, pp. 4561–4580. [18] A. Vadapalli, R. Henry, and I. Goldberg, "Duoram: A {Bandwidth-Efficient} distributed {ORAM} for 2-and 3-party computation," in 32nd USENIX Security Symposium (USENIX Security 23), 2023, pp. 3907–3924. [19] G. Ha, C. Jia, X. Ge, J. Yuan, H. Chen, and M. Li, "Efficient and anonymous password-hardened encryption services," Information Sciences, vol. 653, p. 119771, 2024, doi: 10.1016/j.ins.2023.119771. [20] M. Rosenberg, M. Shih, Z. Zhao, R. Wang, I. Miers, and F. Zhang, "Zipnet: Low-bandwidth anonymous broadcast from (dis) trusted
¹⁷In STAR, registration may be linked to a user's first authentication request, but this does not enable linking multiple authentication events. Similar to other anonymous rate-limiting and authentication protocols, including Scrappy [4], we consider this correlation out of scope.
execution environments," Proceedings on Privacy Enhancing Technologies, 2025, doi: 10.56553/popets-2025-0058.
Acknowledgment
The authors thank Hayato Kimura (NICT) for advice on the security analysis of STAR.
Appendix
A. Notation
The notation used throughout this work is summarized in Table 6.
B. STAR Procedure Details
-
Registration
-
The user executes the first user-side registration function as follows: . The function randomly generates an ephemeral symmetric key ck and encrypts it under the Auth Enclave's public key to produce cipher , where is asymmetric encryption.
-
The user transmits their identity information identity along with the ciphertext cipher to the service.
-
The service atomically verifies that identity and stores identity in IL.
-
The service invokes the Auth Enclave, which executes the enclave-side registration function as follows: . The function generates the encrypted user credential cipher' as follows:
a) The Auth Enclave randomly generates a unique user ID uid.
b) The Auth Enclave computes the authentication code code MAC(uid, sk).
c) The Auth Enclave binds the credential as cred (code, uid).
d) The Auth Enclave decrypts cipher to recover the symmetric key ck Unseal'('cipher, sk).
e) The Auth Enclave encrypts the provisioned data to produce cipher' ← Seal(cred, ck), where Seal is authenticated symmetric key encryption (i.e., AEAD).
-
The Auth Enclave returns cipher' to the user via the service.
-
The user executes the second user-side registration function as follows: . The function locally decrypts cipher' using ck to retrieve cred, i.e., .
2 ) Authentication
- The user executes the user-side authentication function as follows: . The function constructs the authentication payload cipher'' as follows:
a) The user queries their local clock to obtain the current time window t.
b) The user verifies that the counter respects the threshold limit: .
c) The user encrypts the authentication data using the Auth Enclave's public key: cipher'' ← Seal'((t, cnt, cred), pk).
d) The user computes the service index using the current time window, counter, and user id .
e) The user increments their local session counter: .
-
The user transmits cipher'' to the service indexed by s.
-
The service forwards cipher'' and current time to the Auth Enclave for verification.
-
The Auth Enclave executes the enclave-side authentication function as follows: . The function decrypts and validates the authentication payload as follows, using the service-provided for the time-window check:
a) The Auth Enclave decrypts the payload to extract , cnt, and cred: .
b) The Auth Enclave parses cred into (code, uid) and verifies the cryptographic integrity of the credential by checking code .
c) The Auth Enclave asserts that the counter satisfies .
d) The Auth Enclave checks equality of time-windows: .
e) Upon successful verification, the Auth Enclave generates a blind token and returns h.
- The service executes the atomic service-side authentication function as follows: . The function performs the following steps:
a) The service checks that the request is routed to the correct service index .
b) The service checks that the token has not been previously consumed ( ); otherwise, it returns .
c) The service records h in the duplicate-check list .
- Finally, the service returns authentication success to the user.
TABLE 6: Notation used in this work and its meaning
| Symbol | Meaning / Description |
|---|---|
| sk | Secret key held exclusively by the Auth Enclave |
| pk | Public key corresponding to sk |
| ck | Ephemeral symmetric key |
| MAC(·,·) | Message authentication code generation |
| Hash(···) | Hash function |
| Seal(·,·) | Authenticated symmetric key encryption (i.e., AEAD) |
| Unseal(·,·) | Authenticated symmetric decryption |
| Seal'(.·,) | Public-key encryption |
| Unseal'(.·,) | Public-key decryption |
| cnt | Counter |
| code | MAC value |
| cred | User credential |
| cipher | Ciphertext |
| h | Blind token |
| t | Current time window |
| uid | User ID |
| identity | User identity information (e.g., hardware id) |
| HLs | Set of previously seen h values by server s |
| IL | Set of previously seen identity values |
| K | Upper bound of the counter |
| s | Index of server |
| S | Number of servers |
| N | Number of registered users |
| n | User index |
C. Secret-dependent conditional branches and access-pattern changes
-
<hpke_ng::kem::dh::X25519 as hpke_ng::kem::dh::DiffieHellman>::dh This function checks whether the Diffie-Hellman output is an all-zero value. Even if the service impersonates a user and triggers this condition by using an invalid public key as the user-side ephemeral public key, this would not help the provider recover any other sensitive information. Thus, it does not constitute a meaningful leak.
-
<hpke_ng::aead::ChaCha20Poly1305 as hpke_ng::aead::SealingAead>::open This function branches on the result of the MAC check. Revealing whether MAC verification succeeds does not leak any sensitive information.
-
star_core::serv::enclave::Enclave ::issue_tokenplain This function has a conditional branch that checks whether cnt < K, whether t matches the current time window, and whether cred is valid. The results of these checks only leak information that is safe to reveal.
D. Full Security Proof
- Rate-Limitability of STAR
Proof:
In this proof, we show that the adversary cannot win the rate-limitability game with non-negligible probability. We prove this via a hybrid game showing that an authentication requires a valid credential and that the valid credential enables a limited number of authentications.
For clarity, let denote the responses returned by the oracles to the adversary, and let denote the corresponding queries submitted by the adversary. The oracle responses visible to the adversary are
for adversarially chosen oracle queries of the form
We show that none of these oracle interactions gives the adversary a non-negligible advantage in generating valid times through the following sequence of hybrid games.
- Game 1. Ciphertext-Level Manipulation: We first consider arbitrary ciphertexts constructed by the adversary, including those adaptively derived from previous oracle interactions. In particular, the adversary may construct cipher using previously obtained cipher', or construct cipher'' using previously obtained values such as ck, cred, or oracle responses.
A malformed cipher or cipher'' is rejected if public-key decryption fails and, therefore, cannot increase or . Otherwise, cipher decrypts to some ck*, and cipher'' decrypts to some tuple . Similarly, any value legitimately recovered from cipher' = Seal(cred, ck) may be reused in subsequent queries. However, any additional useful information about ck, cred, or secret key material obtained from these ciphertexts with non-negligible probability would contradict the IND-CCA security of the underlying encryption schemes.
Thus, except with negligible probability, adaptive manipulation of cipher, cipher', and cipher'' gives the adversary no advantage beyond choosing or reusing the plaintext values ck, cred, t, and cnt. We analyze manipulations of these values, together with the routing value s, in the next game.
- Game 2. Plaintext-Level Manipulation: We now consider valid ciphertexts that contain plaintexts chosen by the adversary. Since pk is public, the adversary can generate and submit a valid cipher encrypting an arbitrary key ck*. This is permitted; however, because ck* is chosen and therefore known by the adversary, doing so merely allows the adversary to complete an
additional registration. Each such registration is counted by a call to and increments N, and therefore does not help the adversary exceed the final bound of successful authentications.
Similarly, a valid cipher'' may encrypt an arbitrary tuple . However, for a fresh credential to be accepted, it must satisfy
By the EUF-CMA security of the MAC scheme, the probability that the adversary successfully generates such a fresh valid credential is negligible.
The adversary may also attempt to manipulate the time window value or counter value , for example, by submitting a time window that is different from the current one or a counter value outside the permitted range. However, any value is rejected by the range check performed by . Similarly, a value of that does not correspond to the current time window is rejected by the time-window check performed by . Thus, except with negligible probability, every accepted authentication request contains a valid registered credential, the current time window, and a counter satisfying .
Finally, the adversary may forge and redirect a request to another service to bypass the duplicate check in . In particular, even if the adversary has already authenticated with shard where , it may attempt to re-authenticate with the same at another shard for which . This attack fails because verifies that the request was routed to the shard that satisfies . As we show above, for each authentication request verifies the credential, checks and the time window , and computes from the validated values . Therefore, except with negligible probability, any forged routing value is rejected before the adversary can bypass duplicate detection.
- Game 3. Replay of Previously Used Values: The remaining strategy available to the adversary is to replay a previously accepted tuple . However, replaying the same tuple causes to derive the same blind token
Since this value has already been accepted in the past, it is recorded in HL, and therefore any subsequent requests that produce the same h are rejected by the check . Hence, the adversary cannot successfully authenticate more than once using the same tuple .
Combining the above games, for any fixed time window and credential cred, each successful authentication must use a distinct counter value satisfying . Hence, each credential can be used for at most successful authentications within a single time window.
The number of credentials available to the adversary is at most , corresponding to the number of calls to . Therefore, the total number of successful authentications within a single time window is bounded by . Thus, the probability that the adversary wins the rate-limitability game by achieving more than successful authentications is negligible. Thus, STAR satisfies rate-limitability.
2 ) Unlinkability of STAR
Proof:
We show that any PPT adversary has only a negligible advantage in guessing the challenge bit , even after making arbitrary queries to the permitted oracles. In the unlinkability game, the adversary receives , where both authentication ciphertexts are generated from the same user id uid, or , where the latter authentication ciphertext is generated from a different user state. We show that these two distributions are computationally indistinguishable.
For clarity, let T denote the responses returned by the oracles to the adversary, and let R denote the corresponding queries submitted by the adversary. The oracle responses visible to the adversary are
for adversarially chosen oracle queries of the form
We show that none of these oracle interactions gives the adversary a non-negligible advantage in distinguishing the two challenge distributions through the following sequence of hybrid games.
-
Game 1. Invalid Ciphertext: Consider malformed ciphertexts submitted to the oracles. A cipher' given to the second registration oracle is accepted only if it is a valid AEAD ciphertext under the hidden key ck associated with n. By INT-CTXT security, forging a fresh valid ciphertext is possible only with negligible probability; otherwise, the query is rejected without modifying the user state. Similarly, malformed public-key ciphertexts cipher or cipher'' are rejected if decryption fails. Hence, malformed ciphertexts reveal no information about the challenge bit except with negligible probability.
-
Game 2. Invalid Plaintext: Now consider valid ciphertexts containing adversarially chosen plaintexts. Since pk is public, the adversary can submit a valid cipher encrypting an arbitrary key ck*. However, the resulting cipher' is encrypted under ck* and cannot
be decrypted by the second registration oracle for an honest index unless . Thus, this cannot modify an honest user's state or reveal information about the challenge.
Similarly, a valid cipher'' may encrypt any , but acceptance with a fresh cred = (code, uid) requires code = MAC(uid, sk). By EUF-CMA security of the MAC, producing such a fresh credential succeeds only with negligible probability.
-
Game 3. Invalid : The adversary may submit an arbitrary time window to in an attempt to obtain additional information. We consider two cases. If , the oracle processes the query normally. Otherwise, if , the time-window check fails and the oracle returns . Thus, this check reveals only whether the supplied time window matches the current one. Since all honest users share the same current time window , this outcome is independent of the user's identity and the challenge bit. Therefore, it provides no advantage in distinguishing the challenge distributions.
-
Game 4. Replacing Random-Oracle Outputs: In this game, we replace each
with the output of a lazily sampled random function. Since uid remains hidden from the adversary and has sufficient entropy, the probability that the adversary queries the exact corresponding input is negligible. The simulation remains consistent for repeated tuples, while distinct challenge authentications have distinct tuples because cnt or uid differs. The resulting values of these tuples are therefore independent random values of equal length, up to negligible probability. For the same reason, the values from these values would appear randomly to the adversary, and thus provide no advantage in linking authentication requests.
- Game 5. Replacing Ciphertexts: In this game, we replace each challenge authentication ciphertext with an encryption of a dummy plaintext that has the same fixed length as the authentication tuple. For consistency, if an exact challenge ciphertext is submitted to , the oracle returns the corresponding randomly sampled (or ) defined in Game 4; all other oracle queries are processed normally.
By the IND-CCA security of the public-key encryption scheme, the adversary cannot distinguish encryptions of the real authentication tuples from encryptions of fixed dummy plaintexts, except with negligible probability. This means that the ciphertexts generated from different inputs do not reveal useful information to distinguish the inputs, i.e., whether and originated from the same user that generated .
- Game 6. Remaining Values: The only remaining non-random visible values are the public index and
the constant success value 1, and non-advantageous information leakage. Here, is only a handle for user state, so it does not reveal the challenge bit. After the previous replacements, and have identical distributions. Hence and are identical in the final hybrid game, and the adversary guesses with a probability of exactly , which is the same as random guessing except with negligible probability.