#  Formal analysis of anonymity in ECC-based Direct Anonymous Attestation schemes [^2] 

Ben Smyth, Mark Ryan, Liqun Chen

## Abstract

A definition of user-controlled anonymity is introduced for Direct Anonymous Attestation schemes. The definition is expressed as an equivalence property suited to automated reasoning using ProVerif and the practicality of the definition is demonstrated by examining the ECC-based Direct Anonymous Attestation protocol by Brickell, Chen & Li. We show that this scheme satisfies our definition under the assumption that the adversary obtains no advantage from re-blinding a blind signature.

Applied pi calculus, Direct Anonymous Attestation, privacy, ProVerif, trusted computing, TPM, user-controlled anonymity.

# Introduction

Trusted computing allows commodity computers to provide cryptographic assurances about their behaviour. At the core of the architecture is a hardware device called the Trusted Platform Module (TPM). The TPM uses shielded memory to store cryptographic keys, and other sensitive data, which can be used to achieve security objectives. In particular, the chip can measure and report its state, and authenticate. Cryptographic operations, by their nature, may reveal a platform’s identity and as a consequence the TPM has been perceived as threat to privacy by some users. Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) have introduced the notion of Direct Anonymous Attestation (DAA) to overcome these privacy concerns. More precisely, DAA is a remote authentication mechanism for trusted platforms which provides user-controlled anonymity and traceability. The concept is based upon group signatures with stronger anonymity guarantees; in particular, the identity of a signer can never be revealed, but signatures may be linked with the signer’s consent, and signatures produced by compromised platforms can be identified. A DAA scheme considers a set of *hosts*, *issuers*, *TPMs*, and *verifiers*; the host and TPM together form a *trusted platform* or *signer*. DAA protocols proceed as follows. A host requests membership to a group provided by an issuer. The issuer authenticates the host as a trusted platform and grants an *attestation identity credential* (occasionally abbreviated *credential*). The host can now produce signatures using the credential, thereby permitting a verifier to authenticate the host as a group member and therefore a trusted platform.

Brickell, Chen & Li (Brickell, Chen, and Li 2008b, 2009) and Chen (Chen 2010, 2011) characterise the following properties for Direct Anonymous Attestation schemes:

- *User-controlled anonymity.*

  - *Privacy.* The identity of a signer cannot be revealed from a signature.

  - *Unlinkability.* Signatures cannot be linked without the signer’s consent.

- *User-controlled traceability.*

  - *Unforgeability.* Signatures cannot be produced without a TPM.

  - *Basename linkability.* Signatures are linkable with the signer’s consent.

- *Non-frameability.* An adversary cannot produce a signature associated with an honest TPM.

- *Correctness.* Valid signatures can be verified and, where applicable, linked.

The contrasting nature of anonymity and traceability properties aims to balance the privacy demands of users and the accountability needs of administrators.

#### Contribution.

A definition of user-controlled anonymity is presented as an equivalence property which is suited to automated reasoning using ProVerif. Informally, the definition asserts that an adversary cannot distinguish between signatures produced by two distinct signers, even when the adversary controls the issuer and has observed signatures produced by each signer.

The application of the definition is demonstrated by examining user-controlled anonymity in the ECC-based DAA protocol (Brickell, Chen, and Li 2008a, 2009). Support for the ECC-based scheme is mandated by the TPM.next specification (*<span class="nocase">Draft TPM 2.0 Specification, Revision oo79</span>* 2011), which is due to replace TPM version 1.2. Moreover, the scheme has been included in the ISO/IEC anonymous digital signature standard (International Organization for Standardization 2011). Unfortunately, we could not prove any results in the general case and we, therefore, focus on proving the security of the scheme in a model where the adversary is forbidden from re-blinding a blind signature.

#### Related work.

In the computational model, Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) and Chen, Morrissey & Smart (Chen, Morrissey, and Smart 2011, 2009, 2008) introduce simulation-based models of security, and Brickell, Chen & Li (Brickell, Chen, and Li 2008b, 2009) propose a game-based security definition; the relationship between the simulation-based models and the game-based definition is unknown (Chen, Morrissey, and Smart 2008, pp158). We consider a symbolic definition, based upon the game-based definition. By comparison, Backes, Maffei & Unruh (Backes, Maffei, and Unruh 2008) formalised an earlier notion of user-controlled anonymity (informally described in (Brickell, Camenisch, and Chen 2004)) for the RSA-based DAA protocol. This formalisation is tightly coupled with their model of the RSA-based protocol and it is unclear whether other DAA schemes can be analysed or, indeed, how to analyse alternative models of the RSA-based protocol. In addition, the formalisation pre-dates the user-controlled anonymity definitions by Brickell, Chen & Li and Chen, Morrissey & Smart and considers a conceptually weaker adversary; for example, the following scenario is not considered: 1) signer $\mathcal{A}$ obtains a credential $\texttt{cre}_A$ and produces arbitrary many signatures; 2) signer $\mathcal{B}$ obtains a credential $\texttt{cre}_B$ and produces arbitrary many signatures; and 3) the adversary attempts to distinguish between two fresh signatures produced by the signers using credentials $\texttt{cre}_A$ and $\texttt{cre}_B$. Finally, our definition is intuitively simpler, which should aid analysis and, in particular, be better suited to automated reasoning.

Section <a href="#sec:daa:ECC" data-reference-type="ref" data-reference="sec:daa:ECC">5</a> to examine the ECC-based DAA protocol. Section <a href="#sec:crossIssuer" data-reference-type="ref" data-reference="sec:crossIssuer">[sec:crossIssuer]</a> discusses the possibility of a stronger user-controlled anonymity definition, which is intuitively satisfied by the fixed RSA-based scheme, and proposes a variant of the RSA-based scheme to enhance user-controlled traceability. Finally, a conclusion is presented in Section <a href="#sec:daa:summary" data-reference-type="ref" data-reference="sec:daa:summary">6</a>.

# Preliminaries: Calculus of ProVerif

We adopt a dialect (Blanchet 2004; Blanchet, Abadi, and Fournet 2008) of the applied pi calculus (**Appliedpi?**; Ryan and Smyth 2011) which is suited to automated reasoning using Blanchet’s ProVerif (Blanchet and Smyth 2011).

## Syntax and semantics

The calculus assumes an infinite set of names, an infinite set of variables and a signature $\Sigma$ consisting of a finite set of function symbols (constructors and destructors), each with an associated arity. The calculus assumes an infinite set of names, an infinite set of variables and a signature $\Sigma$ consisting of a finite set of function symbols each with an associated arity. An explicit distinction is made between constructors (termed functions in Chapter <a href="#chap:applied" data-reference-type="ref" data-reference="chap:applied">[chap:applied]</a>) and destructors within the signature. We write $f$ for a constructor, $g$ for a destructor, and $h$ for either a constructor or destructor. Terms are built by applying constructors to names, variables and other terms (Figure <a href="#fig:obs:grammar" data-reference-type="ref" data-reference="fig:obs:grammar">1</a>). As usual, the signature $\Sigma$ is equipped with an equation theory $E$.

The semantics of a destructor $g$ of arity $l$ is given by a finite set $\mathrm{def}_{\Sigma}(g)$ of rewrite rules $g(M'_1, \ldots, M'_l) \rightarrow M'$, where $M'_1,\ldots, M'_l, M'$ are terms containing only constructors and variables; moreover, the variables of $M'$ are bound in $M'_1, \ldots, M'_l$, and variables are subject to renaming. The term $g(M_1, \ldots, M_l)$ is defined iff there exists a substitution $\sigma$ and a rewrite rule $g(M'_1,
\ldots, M'_l) \rightarrow M'$ in $\mathrm{def}_{\Sigma}(g)$ such that $M_i = M'_i\sigma$ for all $i \in \{ {1}, \ldots, {l}\}$, and in this case $g(M_1, \ldots, M_l)$ is $M'\sigma$.

The grammar for terms and processes is presented in Figure <a href="#fig:obs:grammar" data-reference-type="ref" data-reference="fig:obs:grammar">1</a>. The process $\textnormal{let } x=D \textnormal{ in } P \textnormal{ else }\allowbreak Q$ tries to evaluate $D$; if this succeeds, then $x$ is bound to the result and $P$ is executed, otherwise $Q$ is executed.

The syntax does not include the conditional $\textnormal{if } M=N \textnormal{ then } P \textnormal{ else }Q$, but this can be defined as $\textnormal{let } x=\mathsf{eq}(M,N) \textnormal{ in } P \textnormal{ else }Q$, where $x$ is a fresh variable and $\mathsf{eq}$ is a binary destructor with the rewrite rule $\mathsf{eq}(x,x) \rightarrow x$. We always include this destructor in $\Sigma$. The rest of the syntax is standard (see Blanchet (Blanchet 2004; Blanchet, Abadi, and Fournet 2008) for details).

<figure id="fig:obs:grammar">
<div class="center">
<div class="tabbing">
<p>̄ ̄ ̄</p>
<p><span class="math inline"><em>M</em>, <em>N</em> : :=</span>terms<br />
<span class="math inline"><em>a</em>, <em>b</em>, <em>c</em>, …, <em>k</em>, …, <em>m</em>, <em>n</em>, …, <em>s</em></span>name<br />
<span class="math inline"><em>x</em>, <em>y</em>, <em>z</em></span>variable<br />
<span class="math inline"><em>f</em>(<em>M</em><sub>1</sub>, …, <em>M</em><sub><em>l</em></sub>)</span>constructor application<br />
<span class="math inline"><em>D</em> : :=</span>term evaluations<br />
<span class="math inline"><em>M</em></span>term<br />
<span class="math inline">eval <em>h</em>(<em>D</em><sub>1</sub>, …, <em>D</em><sub><em>l</em></sub>)</span>function evaluation<br />
<span class="math inline"><em>P</em>, <em>Q</em>, <em>R</em> : :=</span>processes<br />
<span class="math inline">0</span>null process<br />
<span class="math inline"><em>P</em> ∣ <em>Q</em></span>parallel composition<br />
<span class="math inline">!<em>P</em></span>replication<br />
<span class="math inline"><em>ν</em> <em>a</em>.<em>P</em></span>name restriction<br />
<span class="math inline"><em>M</em>(<em>x</em>).<em>P</em></span>message input<br />
<span class="math inline">$\overline{M}\langle N\rangle.P$</span>message output<br />
<span class="math inline">$\textnormal{let } x=D \textnormal{ in } P \textnormal{ else }Q$</span>term evaluation</p>
</div>
</div>
<figcaption>Syntax for terms and processes</figcaption>
</figure>

The sets of free and bound names, respectively variables, in process $P$ are denoted by $\textnormal{fn}(P)$ and $\textnormal{bn}(P)$, respectively $\textnormal{fv}(P)$ and $\textnormal{bv}(P)$. We also write $\textnormal{fn}(M)$ and $\textnormal{fv}(M)$ for the sets of names and variables in term $M$. A process $P$ is closed if it has no free variables. A context $C$ is a process with a hole and we obtain $C[P]$ as the result of filling $C$’s hole with $P$. An evaluation context is a context whose hole is not in the scope of a replication, an input, an output, or a term evaluation.

The operational semantics are defined by reduction ($\rightarrow_\Sigma$) in association with the auxiliary rules for term evaluation ($\mathop{\Downarrow}_{\Sigma}$) and structural equivalence ($\equiv$), the structural equivalence rules are standard and we omit them for brevity (see Blanchet (Blanchet 2004; Blanchet, Abadi, and Fournet 2008) for details). Both $\equiv$ and $\rightarrow_\Sigma$ are defined only on closed processes. We write $\rightarrow_{\Sigma}^*$ for the reflexive and transitive closure of $\rightarrow_{\Sigma}$, and $\,\rightarrow_{\Sigma}^* \equiv\,$ for its union with $\equiv$; we occasionally abbreviate $\rightarrow_{\Sigma}$ as $\rightarrow$ and $\mathop{\Downarrow}_{\Sigma}$ as $\mathop{\Downarrow}$.

<figure id="fig:reduction">
<div class="center">
<p><span class="math inline"><em>M</em>⇓<em>M</em></span><br />
<span class="math inline">eval <em>h</em>(<em>D</em><sub>1</sub>, …, <em>D</em><sub><em>n</em></sub>)⇓<em>N</em><em>σ</em></span><br />
if <span class="math inline"><em>h</em>(<em>N</em><sub>1</sub>, …, <em>N</em><sub><em>n</em></sub>) → <em>N</em> ∈ def<sub><em>Σ</em></sub>(<em>h</em>)</span>,<br />
and <span class="math inline"><em>σ</em></span> is such that for all <span class="math inline"><em>i</em></span>, <span class="math inline"><em>D</em><sub><em>i</em></sub>⇓<em>M</em><sub><em>i</em></sub></span> and <span class="math inline"><em>Σ</em> ⊢ <em>M</em><sub><em>i</em></sub> = <em>N</em><sub><em>i</em></sub><em>σ</em></span></p>
</div>
<p><br />
</p>
<table>
<tbody>
<tr class="odd">
<td style="text-align: left;"><span class="math inline">$\overline{N}\langle M\rangle.Q \mid N'(x).P \;\rightarrow\; Q \mid
P\{\textnormal{\raisebox{2pt}{\footnotesize $M$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $x$}}\}$</span></td>
<td style="text-align: right;"><span class="smallcaps">(Red I/O)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;">if <span class="math inline"><em>Σ</em> ⊢ <em>N</em> = <em>N</em>′</span></td>
<td style="text-align: right;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="math inline">$\textnormal{let } x=D \textnormal{ in } P \textnormal{ else }Q \rightarrow P\{\textnormal{\raisebox{2pt}{\footnotesize $M$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $x$}}\}$</span></td>
<td style="text-align: right;"><span class="smallcaps">(Red Fun 1)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;">if <span class="math inline"><em>D</em>⇓<em>M</em></span></td>
<td style="text-align: right;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="math inline">$\textnormal{let } x=D \textnormal{ in } P \textnormal{ else }Q \rightarrow Q$</span></td>
<td style="text-align: right;"><span class="smallcaps">(Red Fun 2)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;">if there is no <span class="math inline"><em>M</em></span> such that <span class="math inline"><em>D</em>⇓<em>M</em></span></td>
<td style="text-align: right;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="math inline">!<em>P</em> → <em>P</em> ∣ !<em>P</em></span></td>
<td style="text-align: right;"><span class="smallcaps">(Red Repl)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="math inline"><em>P</em> → <em>Q</em> ⇒ <em>P</em> ∣ <em>R</em> → <em>Q</em> ∣ <em>R</em></span></td>
<td style="text-align: right;"><span class="smallcaps">(Red Par)</span></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="math inline"><em>P</em> → <em>Q</em> ⇒ <em>ν</em> <em>a</em>.<em>P</em> → <em>ν</em> <em>a</em>.<em>Q</em></span></td>
<td style="text-align: right;"><span class="smallcaps">(Red Res)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"><span class="math inline"><em>P</em>′ ≡ <em>P</em>, <em>P</em> → <em>Q</em>, <em>Q</em> ≡ <em>Q</em>′ ⇒ <em>P</em>′ → <em>Q</em>′</span></td>
<td style="text-align: right;"><span class="smallcaps">(Red <span class="math inline">≡</span>)</span></td>
</tr>
</tbody>
</table>
<figcaption>Semantics for terms and processes</figcaption>
</figure>

#### Biprocesses.

The calculus provides a notation for modelling pairs of processes that have the same structure and differ only by the terms and term evaluations that they contain. We call such a pair of processes a *biprocess*. The grammar for the calculus with biprocesses is a simple extension of Figure <a href="#fig:obs:grammar" data-reference-type="ref" data-reference="fig:obs:grammar">1</a>, with additional cases so that $\textnormal{diff}[M,M']$ is a term and $\textnormal{diff}[D,D']$ is a term evaluation. The semantics for biprocesses include the rules in Figure <a href="#fig:reduction" data-reference-type="ref" data-reference="fig:reduction">2</a>, except for <span class="smallcaps">(Red I/O)</span>, <span class="smallcaps">(Red Fun 1)</span>, and <span class="smallcaps">(Red Fun 2)</span> which are revised in Figure <a href="#fig:reduction2" data-reference-type="ref" data-reference="fig:reduction2">3</a>. We also extend the definition of contexts to permit the use of $\textrm{diff}$, and sometimes refer to contexts without $\textrm{diff}$ as plain contexts.

We define processes $\textnormal{fst}(P)$ and $\textnormal{snd}(P)$, as follows: $\textnormal{fst}(P)$ is obtained by replacing all occurrences of $\textnormal{diff}[M,M']$ with $M$ and $\textnormal{diff}[D,D']$ with $D$ in $P$; and, similarly, $\textnormal{snd}(P)$ is obtained by replacing $\textnormal{diff}[M,M']$ with $M'$ and $\textnormal{diff}[D,D']$ with $D'$ in $P$. We define $\textnormal{fst}(D)$, $\textnormal{fst}(M)$, $\textnormal{snd}(D)$, and $\textnormal{snd}(M)$ similarly.

<figure id="fig:reduction2">
<table>
<tbody>
<tr class="odd">
<td style="text-align: left;"><span class="math inline">$\overline{N}\langle M\rangle.Q \mid N'(x).P \;\rightarrow\; Q \mid
P\{\textnormal{\raisebox{2pt}{\footnotesize $M$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $x$}}\}$</span></td>
<td style="text-align: right;"><span class="smallcaps">(Red I/O)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"></td>
<td style="text-align: right;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="math inline">$\textnormal{let } x=D \textnormal{ in } P \textnormal{ else }Q \rightarrow P\{\textnormal{\raisebox{2pt}{\footnotesize $\textnormal{diff}[M_1,M_2]$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $x$}}\}$</span></td>
<td style="text-align: right;"><span class="smallcaps">(Red Fun 1)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;">if <span class="math inline">$\textnormal{fst}(D) \mathop{\Downarrow}M_1$</span> and <span class="math inline">$\textnormal{snd}(D) \mathop{\Downarrow}M_2$</span></td>
<td style="text-align: right;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;"><span class="math inline">$\textnormal{let } x=D \textnormal{ in } P \textnormal{ else }Q \rightarrow Q$</span></td>
<td style="text-align: right;"><span class="smallcaps">(Red Fun 2)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;">if there is no <span class="math inline"><em>M</em><sub>1</sub></span> such that <span class="math inline">$\textnormal{fst}(D) \mathop{\Downarrow}M_1$</span> and</td>
<td style="text-align: right;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">there is no <span class="math inline"><em>M</em><sub>2</sub></span> such that <span class="math inline">$\textnormal{snd}(D) \mathop{\Downarrow}M_2$</span></td>
<td style="text-align: right;"></td>
</tr>
</tbody>
</table>
<figcaption>Generalised semantics for biprocesses</figcaption>
</figure>

#### Assumptions and notation.

In this paper, all signatures are tacitly assumed to include the constant $\varnothing$, unary destructors $\mathsf{fst}$ and $\mathsf{snd}$, and the binary constructor $\mathsf{pair}$.

Furthermore, for all variables $x$ and $y$ we assume the rewrite rules $\mathsf{fst}(\mathsf{pair}(x, y)) \rightarrow x$ and $\mathsf{snd}(\mathsf{pair}(x, y)) \rightarrow y$.

For convenience, $\mathsf{pair}(M_1, \mathsf{pair}(\dots, \allowbreak\mathsf{pair}(M_n, \varnothing)))$ is occasionally abbreviated as $\mbox{$($}M_1,\dots,\allowbreak M_n \mbox{$)$}$ and $\mathsf{fst}(\mathsf{snd}^{i-1}(M))$ is denoted $\pi_{i}(M)$.

## Observational equivalence

We write $P \downarrow_M$ when $P$ can send a message on $M$, that is, when $P \equiv C[\overline{M'}\langle N\rangle.R]$ for some evaluation context $C[\_]$ such that $\textnormal{fn}(C)\cap\textnormal{fn}(M) = \emptyset$ and $\Sigma \vdash M = M'$. The definition of observational equivalence (Blanchet 2004; Blanchet, Abadi, and Fournet 2008) follows.

<div class="definition">

<span id="def:proverif:obs" label="def:proverif:obs"></span> *Observational equivalence* $\sim$ is the largest symmetric relation $\mathcal{R}$ between closed processes such that $P \mathrel{\mathcal{R}} Q$ implies:

1.  if $P \downarrow_M$, then $Q\downarrow_M$;

2.  if $P \rightarrow P'$, then $Q \rightarrow Q'$ and $P' \mathrel{\mathcal{R}} Q'$ for some $Q'$;

3.  $C[P]\mathrel{\mathcal{R}}C[Q]$ for all evaluation contexts $C[\_]$.

</div>

We define observational equivalence as a property of biprocesses.

<div class="definition">

The closed biprocess $P$ *satisfies observational equivalence* if $\textnormal{fst}(P)\allowbreak\sim\textnormal{snd}(P)$.

</div>

Blanchet, Abadi & Fournet (Blanchet 2004; Blanchet, Abadi, and Fournet 2008) have shown that a biprocess $P$ satisfies observational equivalence when reductions in $\textnormal{fst}(P)$ or $\textnormal{snd}(P)$ imply reductions in $P$; this proof technique is formalised using the notion of *uniformity*.

<div class="definition">

A biprocess $P$ is *uniform* if for all processes $Q_1$ such that $\textnormal{fst}(P) \xrightarrow{}Q_1$, then $P \xrightarrow{}Q$ for some biprocess $Q$, where $\textnormal{fst}(Q) \equiv Q_1$, and symmetrically for $\textnormal{snd}(P) \xrightarrow{}Q_2$.

</div>

<div class="definition">

<span id="def:proverif:strong-uniformity" label="def:proverif:strong-uniformity"></span> A closed biprocess $P$ *satisfies strong uniformity* if for all plain evaluation contexts $C$ and biprocesses $Q$ such that $C[P]\allowbreak \xrightarrow{}^*\equiv Q$, then $Q$ is uniform.

</div>

<div class="theorem">

<span id="theorem:Bruno" label="theorem:Bruno"></span> Given a closed biprocess $P$, if $P$ satisfies strong uniformity, then $P$ satisfies observational equivalence.

</div>

Furthermore, for all variables $x$ and $y$ we assume the rewrite rules $\mathsf{fst}(\mathsf{pair}(x, y)) \rightarrow x$ and $\mathsf{snd}(\mathsf{pair}(x, y)) \rightarrow y$.

For convenience, $\mathsf{pair}(M_1, \mathsf{pair}(\dots, \allowbreak\mathsf{pair}(M_n, \varnothing)))$ is occasionally abbreviated as $\mbox{$($}M_1,\dots,\allowbreak M_n \mbox{$)$}$ and $\mathsf{fst}(\mathsf{snd}^{i-1}(M))$ is denoted $\pi_{i}(M)$.

# Formalising DAA protocols

A Direct Anonymous Attestation scheme allows remote authentication of trusted platforms, and comprises of five algorithms, each of which will now be discussed.

<div class="description">

Setup. The setup algorithm is primarily used by the issuer to construct a public key pair $sk_I$ and $\mathsf{pk}(sk_I)$, the public part $\mathsf{pk}(sk_I)$ is published. In addition, the setup algorithm may define implementation specific parameters.

Join. The join algorithm is run between a trusted platform and an issuer for the purpose of obtaining group membership.

On successful completion of the join algorithm, the issuer grants the trusted platform with an attestation identity credential $\texttt{cre}$ based upon a secret $\texttt{tsk}$ known only by the TPM.

Sign. The sign algorithm is executed by a trusted platform to produce a signature $\sigma$, based upon an attestation identity credential $\texttt{cre}$ and secret $\texttt{tsk}$, which asserts group membership and therefore trusted platform status. In addition to $\texttt{cre}$ and $\texttt{tsk}$, the algorithm takes as input a message $m$ and a basename $\texttt{bsn}$. The basename is used to control linkability between signatures: if $\texttt{bsn}= {\perp}$, then signatures should be unlinkable; otherwise, signatures produced by the same signer and based upon the same basename can be linked.

Verify. The verification algorithm is used by a verifier to check the validity of a signature. The algorithm takes as input a set of secret keys $\texttt{ROGUE}_{\texttt{tsk}}$, which are known to have been successfully extracted from compromised TPMs, allowing the identification of rogue platforms.

Link. The link algorithm is used by a verifier to check if two valid signatures are linked, that is, signed using the same basename $\texttt{bsn}$ and secret $\texttt{tsk}$.

</div>

## Applied pi process specification

This paper considers user-controlled anonymity, which is dependent on a trusted platform’s behaviour, that is, the join and sign algorithms. Formally, these algorithms are modelled by a pair of processes $\langle \sf{Join}, \sf{Sign}\rangle$.

The signer (or trusted platform) is able to execute arbitrarily many instances of the join and sign algorithms to become a member of a group and, subsequently, produce signatures as a group member. This behaviour is captured by the $\sf{Signer}$ process modelled below. The join and sign algorithms are modelled by the processes $\sf{Join}$ and $\sf{Sign}$, which are expected to behave like services, that is, they can be called by, and return results to, the $\sf{Signer}$ process. The communication between the $\sf{Signer}$ and $\sf{Join}$/$\sf{Sign}$ processes is achieved using private communication over channels $a_j$, $a'_j$, $a_s$, and $a'_s$. In essence, the private channel communication models the internal bus used by computer systems for communication between the host and TPM.

<figure>
<p><span class="math display">$$\begin{array}{lcl}
    \sf{Signer}
     &amp;=&amp; \nu\,a_j.\nu\,a'_j.\nu\,a_s.\nu\,a'_s\mathrel{.} (\,( {!\sf{Join}} ) \mid ({!\sf{Sign}} ) \mid (\nu\,\texttt{cnt}.\nu\,\texttt{DAASeed}.\nu\,sk_{M}.\overline{c}\langle\mathsf{pk}(sk_M)\rangle.\\
%      &amp;&amp; \qquad \textrm{\sout{$\new{\DAASeed}.\new{\cnt}.$}}\\
      &amp;&amp; \qquad!c(w_{\mathsf{params     }}).\overline{a_j}\langle\mbox{$($}{w_{\mathsf{params     }},\texttt{DAASeed},\texttt{cnt},sk_{M}}\mbox{$)$}\rangle.a'_j(x).\\
      &amp;&amp; \qquad \textnormal{let } x_{\mathsf{cre        }}=\pi_{1}(x) \textnormal{ in }\textnormal{let } x_{\texttt{tsk}}=\pi_{2}(x) \textnormal{ in }(\\
      &amp;&amp; \qquad\qquad!c(y).\textnormal{let } y_{\mathsf{bsn        }}=\pi_{1}(y) \textnormal{ in }\textnormal{let } y_{\mathsf{msg        }}=\pi_{2}(y) \textnormal{ in }\\
      &amp;&amp; \qquad\qquad\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},y_{\mathsf{bsn        }},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\texttt{tsk}}}\mbox{$)$}\rangle.a'_s(z).\overline{c}\langle z\rangle\\
%      &amp;&amp; \qquad\qquad\textrm{\sout{$\Ifthen{\ybsn}{\perp}$}}\\  
%      &amp;&amp; \qquad\qquad\qquad\textrm{\sout{$\new{\bsn}.\Out[a_s]{\tuple{\wparams,\bsn,\ymsg,\xcre,\xtsk}}.\In[a'_s]{z}.\Out{z}$}}\\
%      &amp;&amp; \qquad\qquad\textrm{\sout{$\Else$}}\\
%      &amp;&amp; \qquad\qquad\qquad\textrm{\sout{$\Out[a_s]{\tuple{\wparams,\ybsn,\ymsg,\xcre,\xtsk}}.\In[a'_s]{z}.\Out{z}$}}\\
      &amp;&amp; \qquad)\\
      &amp;&amp; ))
\end{array}$$</span></p>
</figure>

The process $\sf{Signer}$ instantiates arbitrarily many instances of the $\sf{Join}$ and $\sf{Sign}$ processes. The restricted channel names $a_j$ and $a'_j$ are introduced to ensure private communication between the $\sf{Signer}$ and $\sf{Join}$ processes; similarly, names $a_s$ and $a'_s$ ensure private communication between the $\sf{Signer}$ and $\sf{Sign}$ processes. The bound name $\texttt{cnt}$ is a counter value selected by the host. The bound name $\texttt{DAASeed}$ represents the TPM’s internal secret and $sk_{M}$ represents the TPM’s endorsement key (these values are defined during manufacture (*<span class="nocase">TPM Specification version 1.2</span>* 2007)). The public part of the endorsement key is published by the $\sf{Signer}$ process. The remainder of the $\sf{Signer}$ process models a signer’s ability to execute arbitrarily many instances of the join and sign algorithms. The $\sf{Signer}$ process must first input system parameters $w_{\mathsf{params     }}$, provided by the issuer. The $\sf{Join}$ process is assumed to act like a service and listens for input on channel $a_j$. It follows that the $\sf{Signer}$ process can invoke the service by message output $\overline{a_j}\langle\mbox{$($}{w_{\mathsf{params     }},\texttt{DAASeed},\texttt{cnt},w_{\mathsf{ek     }}}\mbox{$)$}\rangle$, where $\mbox{$($}{w_{\mathsf{params     }},\texttt{DAASeed},\texttt{cnt},w_{\mathsf{ek     }}}\mbox{$)$}$ models the join algorithm’s parameters. The $\sf{Join}$ process is assumed to output results on channel $a'_j$, and this response can be received by the $\sf{Signer}$ process using message input $a'_j(x)$; the result is bound to the variable $x$, and is expected to consist of a pair $\mbox{$($}{x_{\mathsf{cre        }},x_{\texttt{tsk}}}\mbox{$)$}$ representing the attestation identity credential and TPM’s secret. The interaction between the $\sf{Sign}$ and $\sf{Signer}$ processes is similar. The $\sf{Signer}$ process first inputs a variable $y$ which is expected to be a pair representing the verifier’s basename $y_{\mathsf{bsn        }}$ and a message $y_{\mathsf{msg        }}$. The invocation of the sign algorithm by the signer is modelled by the message output $\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},y_{\mathsf{bsn        }},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\texttt{tsk}}}\mbox{$)$}\rangle$, where $\mbox{$($}{w_{\mathsf{params     }},y_{\mathsf{bsn        }},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\texttt{tsk}}}\mbox{$)$}$ represents the algorithm’s parameters. The sign algorithm is expected to output a signature which can be sent to a verifier, in the $\sf{Signer}$ process this signature is received from the $\sf{Sign}$ process by message input $a'_s(z)$ and the variable $z$, representing the signature, is immediately output.

# Security definition: User-controlled anonymity

Informally, the notion of user-controlled anonymity asserts that given two honest signers $\mathcal{A}$ and $\mathcal{B}$, an adversary cannot distinguish between a situation in which $\mathcal{A}$ signs a message, from another one in which $\mathcal{B}$ signs a message. Based upon the game-based definition by Brickell, Chen & Li (Brickell, Chen, and Li 2008b, 2009) we present the following security definition.

#### Initial:

The adversary constructs the key pair $sk_I$ and $\mathsf{pk}(sk_I)$, and publishes the public part $\mathsf{pk}(sk_I)$. The adversary also publishes any additional parameters.

#### Phase 1:

The adversary makes the following requests to signers $\mathcal{A}$ and $\mathcal{B}$:

- Join. The signer executes the join algorithm to create $\texttt{cre}$ and $\texttt{tsk}$. The adversary, as the issuer, learns $\texttt{cre}$ but typically not $\texttt{tsk}$.

- Sign. The adversary submits a basename $\texttt{bsn}$ and a message $m$. The signer runs the sign algorithm and returns the signature to the adversary.

At the end of Phase 1, both signers are required to have run the join algorithm at least once.

#### Phase 2 (Challenge):

The adversary submits a message $m'$ and a basename $\texttt{bsn}'$ to the signers, with the restriction that the basename has not been previously used if $\texttt{bsn}' \not= {\perp}$. Each signer produces a signature on the message and returns the signature to the adversary.

#### Phase 3:

The adversary continues to probe the signers with join and sign requests, but is explicitly forbidden to use the basename $\texttt{bsn}'$ used in Phase 2 if $\texttt{bsn}' \not= {\perp}$.

#### Result:

The protocol satisfies user-controlled anonymity if the adversary cannot distinguish between the two signatures output during the challenge.  
Intuitively, our definition captures privacy because the adversary cannot distinguish between the two signatures output during the challenge; formally, this can be witnessed as follows: suppose a protocol satisfies user-controlled anonymity but the identity of a signer can be revealed from a signature, it follows immediately that the adversary can test which challenge signature belongs to $\mathcal{A}$, therefore, allowing the signatures to be distinguished and hence deriving a contradiction. Moreover, our definition also captures unlinkability. This can be witnessed as follows. Suppose a protocol satisfies user-controlled anonymity but signatures can be linked without the signer’s consent. It follows from our security definition that no adversary can distinguish between two signatures output during the challenge. Let us now consider an adversary that requests a signature $\sigma_A$ from $\mathcal{A}$ during Phase 1 using basename $\texttt{bsn}= {\perp}$ (that is, the signer does not consent to linkability) and an arbitrary message $m$. The adversary submits an arbitrary message $m'$ and basename $\texttt{bsn}' = {\perp}$ during the challenge, and the signers return signatures $\sigma_1$ and $\sigma_2$. Since signatures can be linked without the signer’s consent, the adversary is able to test if $\sigma_A$ and $\sigma_1$ are linked, or whether $\sigma_A$ and $\sigma_2$ are linked; exactly one test will succeed allowing the adversary to distinguish between signatures $\sigma_1$ and $\sigma_2$. We have derived a contradiction and therefore a protocol satisfying our definition of user-controlled anonymity provides unlinkability.

Formally, our definition of user-controlled anonymity can be modelled as an observational equivalence property (Definition <a href="#def:daa:anon" data-reference-type="ref" data-reference="def:daa:anon">[def:daa:anon]</a>) using the *DAA game biprocess* ${{\sf DAA}\textrm{-}{\sf G}}$ presented in Figure <a href="#fig:daa:anon" data-reference-type="ref" data-reference="fig:daa:anon">4</a>.

The $\sf{Challenge}$ process, which forms part of the process ${\sf DAA}\textrm{-}{\sf G}$, is designed to capture the behaviour of the signers in Phase 2. This is achieved by outputting the attestation identity credential $x_{\mathsf{cre        }}$ and TPM’s secret $x_{\texttt{tsk}}$, produced by the signers in Phase 1, on the private channels $b_A$ and $b_B$ in $\sf{Signer^+}$, and inputting these values in the $\sf{Challenge}$ process. The $\sf{Challenge}$ process proceeds by producing a signature in the standard manner, but uses $\textnormal{diff}[x_{\mathsf{cre        }},y_{\mathsf{cre        }}]$ and $\textnormal{diff}[x_{\texttt{tsk}},y_{\mathsf{tsk        }}]$ to ensure that the signature is produced by $\mathcal{A}$ in $\textnormal{fst}({\sf DAA}\textrm{-}{\sf G})$ and $\mathcal{B}$ in $\textnormal{snd}({\sf DAA}\textrm{-}{\sf G})$. Finally, the necessity for a distinct basename in Phase 2 (when $\texttt{bsn}\not= {\perp}$) is enforced by prefixing the basename used by $\sf{Challenge}$ with $chl^-$ and, similarly, prefixing the basenames used by $\sf{Signer^+}$ with $chl^+$. Our definition of user-controlled anonymity (Definition <a href="#def:daa:anon" data-reference-type="ref" data-reference="def:daa:anon">[def:daa:anon]</a>) follows naturally.

<figure id="fig:daa:anon">
<p>Given a pair of processes <span class="math inline">$\langle \sf{Join}, \sf{Sign}\rangle$</span>, the <em>DAA game biprocess</em> <span class="math inline">${\sf DAA}\textrm{-}{\sf G}$</span> is defined as <span class="math display">$$\nu\,b_A. \nu\,b_B . c(w_{\mathsf{params     }}) \mathrel.(\sf{Challenge}\mid
     \sf{Signer^+}\{\textnormal{\raisebox{2pt}{\footnotesize $b_A$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}}\} \mathrel | \sf{Signer^+}\{\textnormal{\raisebox{2pt}{\footnotesize $b_B$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}}\})$$</span> such that <span class="math inline">$b_A,b_B \not\in (\textnormal{fn}(\sf{Sign})\cup\textnormal{fv}(\sf{Sign})\cup\textnormal{fn}(\sf{Join})\cup\textnormal{fv}(\sf{Join}))$</span> and where <span class="math display">$$\begin{array}{lcl}
    \sf{Signer^+}
     &amp;=&amp; \nu\,a_j . \nu\,a'_j . \nu\,a_s . \nu\,a'_s . (\, ({!\sf{Join}}) \mid ({!\sf{Sign}}) \mid (\nu\,\texttt{cnt}.\nu\,\texttt{DAASeed}.\nu\,sk_{M}.\overline{c}\langle\mathsf{pk}(sk_M)\rangle.\\
      &amp;&amp; \quad!\overline{a_j}\langle\mbox{$($}{w_{\mathsf{params     }},\texttt{DAASeed},\texttt{cnt},sk_{M}}\mbox{$)$}\rangle.a'_j(x).\\
      &amp;&amp; \quad\textnormal{let } x_{\mathsf{cre        }}=\pi_{1}(x) \textnormal{ in }\textnormal{let } x_{\texttt{tsk}}=\pi_{2}(x) \textnormal{ in }(\\
      &amp;&amp; \quad\quad!c(y).\textnormal{let } y_{\mathsf{bsn        }}=\pi_{1}(y) \textnormal{ in }\textnormal{let } y_{\mathsf{msg        }}=\pi_{2}(y) \textnormal{ in }\\
      &amp;&amp; \quad\quad\textnormal{if } y_{\mathsf{bsn        }}=\perp \textnormal{ then }\\
%      &amp;&amp; \quad\quad\quad\textrm{\sout{$\new{\bsn}.$}}\Out[a_s]{\tuple{\wparams,\textrm{\sout{$\bsn$}} \ybsn,\ymsg,\xcre,\xtsk}}.\In[a'_s]{z}.\Out{z}\\
      &amp;&amp; \quad\quad\quad\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},y_{\mathsf{bsn        }},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\texttt{tsk}}}\mbox{$)$}\rangle.a'_s(z).\overline{c}\langle z\rangle\\
      &amp;&amp; \quad\quad\textnormal{ else }\\
      &amp;&amp; \quad\quad\quad\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},\mbox{$($}{chl^+,y_{\mathsf{bsn        }}}\mbox{$)$},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\texttt{tsk}}}\mbox{$)$}\rangle.a'_s(z).\overline{c}\langle z\rangle\\
      &amp;&amp; \quad)\mathrel{|}(\\
      &amp;&amp; \quad\quad \overline{w_b}\langle\mbox{$($}{x_{\mathsf{cre        }},x_{\texttt{tsk}}}\mbox{$)$}\rangle\\
      &amp;&amp; \quad)\\
      &amp;&amp; ))\\
%\end{array}
%\]
%
%\[
%\begin{array}{lcl}
    \sf{Challenge}
   &amp;=&amp; \nu\,a_s.\nu\,a'_s\mathrel{.} (\, (\sf{Sign}) \mid (\\
    &amp;&amp; \quad b_A(x).\textnormal{let } x_{\mathsf{cre        }}=\pi_{1}(x) \textnormal{ in }\textnormal{let } x_{\texttt{tsk}}=\pi_{2}(x) \textnormal{ in }\\
    &amp;&amp; \quad b_B(y).\textnormal{let } y_{\mathsf{cre        }}=\pi_{1}(y) \textnormal{ in }\textnormal{let } y_{\mathsf{tsk        }}=\pi_{2}(y) \textnormal{ in }\\
    &amp;&amp; \quad c(z).\textnormal{let } z_{\mathsf{bsn        }}=\pi_{1}(z) \textnormal{ in }\textnormal{let } z_{\mathsf{msg        }}=\pi_{2}(z) \textnormal{ in }\\
    &amp;&amp; \quad\textnormal{if } z_{\mathsf{bsn        }}=\perp \textnormal{ then }\\
    &amp;&amp; \quad\quad\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},z_{\mathsf{bsn        }},z_{\mathsf{msg        }},\textnormal{diff}[x_{\mathsf{cre        }},y_{\mathsf{cre        }}],\textnormal{diff}[x_{\texttt{tsk}},y_{\mathsf{tsk        }}]}\mbox{$)$}\rangle.a'_s(z).\overline{c}\langle z\rangle\\
%    &amp;&amp; \quad\quad\textrm{\sout{$\new{\bsn}.$}}\Out[a_s]{\tuple{\wparams,\textrm{\sout{$\bsn$}} \zbsn,\zmsg,\diff{\xcre}{\ycre},\diff{\xtsk}{\ytsk}}}.\In[a'_s]{z}.\Out{z}\\
    &amp;&amp; \quad\textnormal{ else }\\
    &amp;&amp; \quad\quad\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},\mbox{$($}{chl^-,z_{\mathsf{bsn        }}}\mbox{$)$},z_{\mathsf{msg        }},\textnormal{diff}[x_{\mathsf{cre        }},y_{\mathsf{cre        }}],\textnormal{diff}[x_{\texttt{tsk}},y_{\mathsf{tsk        }}]}\mbox{$)$}\rangle.a'_s(z).\overline{c}\langle z\rangle\\
    &amp;&amp; ))
\end{array}$$</span> for some constants <span class="math inline"><em>c</em><em>h</em><em>l</em><sup>+</sup></span>, <span class="math inline"><em>c</em><em>h</em><em>l</em><sup>−</sup></span>.</p>
<figcaption>Biprocess modelling user-controlled anonymity in DAA</figcaption>
</figure>

<div class="definition">

<span id="def:daa:anon" label="def:daa:anon"></span> Given a pair of processes $\langle \sf{Join},$ $\sf{Sign}\rangle$, *user-controlled anonymity* is satisfied if the DAA game biprocess ${\sf DAA}\textrm{-}{\sf G}$ satisfies observational equivalence.

</div>

#### Comparison with the game-based definition.

In the game-based definition by Brickell, Chen & Li (Brickell, Chen, and Li 2008b, 2009) either $\mathcal{A}$ or $\mathcal{B}$ signs the message during Phase 2 and user-controlled anonymity is satisfied if the adversary has a negligible advantage over guessing the correct signer. By comparison, in our definition, both $\mathcal{A}$ and $\mathcal{B}$ sign the message during Phase 2 and user-controlled anonymity is satisfied if these signatures are indistinguishable. Intuitively, an adversary that can detect whether a signature belongs to $\mathcal{A}$ or $\mathcal{B}$ can be transformed into a strategy that distinguishes the signatures of $\mathcal{A}$ and $\mathcal{B}$. More precisely, let $\mathcal{M}$ be an adversary that, given a signature $\sigma$, returns the identity $id=\mathcal M(\sigma)$ of the signer. Then a strategy $\mathcal M'$ for distinguishing $\sigma_1$ and $\sigma_2$ simply tests whether $\mathcal M(\sigma_1)=\mathcal M(\sigma_2)$.

# Case study: ECC-based DAA

The ECC-based DAA protocol was introduced by Brickell, Chen & Li (Brickell, Chen, and Li 2008a, 2009) to overcome efficiency issues with the RSA-based DAA protocol.

## Primitives and building blocks

We first recall the details of Camenisch-Lysyanskaya (CL) signatures (Camenisch and Lysyanskaya 2004), which form the foundations of the ECC-based DAA protocol.

#### Randomised signature scheme.

A CL signature is denoted $\mathsf{clsign}(\allowbreak x_{\mathsf{sk        }},\allowbreak x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$, where $x_{\mathsf{sk        }}$ is the secret key, $x_{\mathsf{nonce      }}$ is a nonce, and $x_{\mathsf{msg        }}$ is a message. The random component $\mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{nonce      }})$ can be derived from a signature $\mathsf{clsign}(\allowbreak x_{\mathsf{sk        }},\allowbreak x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$. Verification is standard given a signature, message, and public key, that is, $\mathsf{checkclsign}(\mathsf{pk}(x_{\mathsf{sk        }}),\allowbreak x_{\mathsf{msg        }},\allowbreak\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow \mathsf{accept}$. The scheme allows randomisation of signatures, and we denote the randomisation of the signature $\sigma = \mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$ as $\mathsf{clrand}(y_{\mathsf{nonce      }},\sigma)$ for some random nonce $y_{\mathsf{nonce      }}$ such that $\mathsf{clrand}(y_{\mathsf{nonce      }},\sigma) \rightarrow \mathsf{clsign}(x_{\mathsf{sk        }},\mathsf{mul}(x_{\mathsf{nonce      }},y_{\mathsf{nonce      }}),x_{\mathsf{msg        }})$.

#### Signature scheme for committed values.

Given the public part of a signing key $\mathsf{pk}(x_{\mathsf{sk        }})$ and a message $x_{\mathsf{csk     }}$, the corresponding commitment is $U = \mathsf{clcommit}(\allowbreak\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{csk     }})$ and the associated signature is $\mathsf{clsigncommit}(\allowbreak x_{\mathsf{sk        }},x_{\mathsf{nonce      }},U) \rightarrow \mathsf{clsign}(\allowbreak x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{csk     }})$, where $x_{\mathsf{nonce      }}$ is a nonce. To maintain security of the signature scheme, knowledge of $x_{\mathsf{csk     }}$ must be demonstrated.

#### Tractability of DDH problem.

The DDH problem is tractable for cyclic groups with symmetric pairing, that is, given a pairing $e: G_1 \mathrel\times G_1 \rightarrow G_2$ and integers $g,g^a,g^b,g^c\in G_1$, the distribution $\{(g,g^a,g^b,g^{a b})\}$ is distinguishable from $\{(g,g^a,g^b,g^c)\}$, where $G_1$ and $G_2$ are groups of prime order. This is due to the *bilinear* property of the pairing function: for all integers $g,h\in G_1$ and integers $a,b\in\mathbb{Z}$ we have $e(g^a,h^b) = e(g,h)^{a b}$. It follows immediately that $\{(g,g^a,g^b,g^{a b})\}$ is distinguishable from $\{(g,g^a,g^b,g^c)\}$ because $e(g,g^c) = e(g^a,g^b)$ iff $c = a b$. Moreover, we have $\{(g,h,g^a,h^a)\}$ is distinguishable from $\{(g,h,g^a,h^b)\}$ because $e(g^a,h) = e(g,h^b)$ iff $a=b$. Finally, $e(g,a^{rx+rmxy}) = e(g,a)^{rx+rmxy} = e(g^x,a^r) \cdot e(g^m,a^{rxy})$ and hence, by reference to the cryptographic description of CL-signatures, the commitment $M = g^m$ can be linked to the randomised signature $(a',b',c') = (a^r,a^{ry},a^{rx+rmxy})$ when the secret key $x$ is known. We explicitly include the following properties in our symbolic model.

- $\mathsf{clcommit}(x_{\mathsf{base        }},x_{\mathsf{msg        }})$ is related to $\mathsf{clcommit}(x_{\mathsf{base        }}',x_{\mathsf{msg        }})$, when $x_{\mathsf{base        }}$ and $x_{\mathsf{base        }}'$ are known.

- $\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$ is related to $\mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{msg        }})$, when $x_{\mathsf{sk        }}$ is known.

We shall also use a commitment function $\mathsf{commit}$ in which the DDH problem is intractable, that is, $\mathsf{commit}(x_{\mathsf{base        }},x_{\mathsf{msg        }})$ and $\mathsf{commit}(x_{\mathsf{base        }}',x_{\mathsf{msg        }})$ are indistinguishable when $x_{\mathsf{base        }}\not= x_{\mathsf{base        }}'$.

#### Proving knowledge of a signature.

The signature scheme for committed values can be used to build an anonymous credential system. Given a signature $\sigma = \mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},\allowbreak x_{\mathsf{csk     }})$, random nonce $y_{\mathsf{nonce      }}$ and blinding factor $y_{\mathsf{blind      }}$, the anonymous credential $\hat\sigma = \mathsf{clblind}(\allowbreak y_{\mathsf{blind      }},\mathsf{clrand}(y_{\mathsf{nonce      }},\sigma))$. (We remark that the random component $\mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{nonce      }})$ can be recovered from both the signature $\sigma$ and the blind signature $\mathsf{clblind}(y_{\mathsf{blind      }},\sigma)$, hence the two signatures can be linked; it follows that blinding is insufficient to derive an anonymous credential.)

A zero-knowledge proof of knowledge can then be used to demonstrate that the anonymous credential $\hat\sigma$ is indeed a blinded signature on message $x_{\mathsf{csk     }}$ using blinding factor $x_{\mathsf{blind      }}$. We will adopt the notation introduced by Camenisch & Stadler (Camenisch and Stadler 1997) to describe signatures of knowledge. For instance, $\mathit{SPK}\{(\alpha): F = \mathsf{clcommit}(\mathsf{pk}(sk_I),\alpha)\}(m)$ denotes a *“*S*ignature *P*roof of *K*nowledge of $\alpha$ such that $F = \mathsf{commit}(\mathsf{pk}(sk_I),\alpha)$ holds, where $m$ is the message being signed."* In the example, the Greek letters in parentheses are used for values about which knowledge is being proved and these values are kept secret by the prover.  

## Protocol description

For the purpose of studying user-controlled anonymity, it is sufficient to consider the join and sign algorithms. The join algorithm (Figure <a href="#fig:daa:joinE" data-reference-type="ref" data-reference="fig:daa:joinE">5</a>) is defined below, given the algorithm’s input: system parameter $K_I$ and $\mathsf{pk}(sk_I)$ (that is, the issuer’s long- and short-term public keys), the TPM’s secret $\texttt{DAASeed}$, a counter value $\texttt{cnt}$, and the TPM’s endorsement key pair $sk_{M}$ and $\mathsf{pk}(sk_M)$. We remark that the issuer’s basename $\texttt{bsn}_I$ is not provided as input (unlike the RSA-based DAA protocol) in the standard mode of operation.

<figure id="fig:daa:joinE">
<p> </p>
<div class="center">
<p><br />
</p>
<div class="tabularx">
<p><span> c@<span>width 1pt</span>&gt; X@<span>width 1pt</span>c</span> &amp;&amp;<br />
<br />
&amp;&amp;<br />
&amp;<br />
&amp;&amp;<br />
&amp;<br />
&amp;</p>
<p>   &amp;<br />
&amp;&amp;<br />
&amp;<br />
&amp;</p>
<p>  &amp;<br />
&amp;&amp;<br />
&amp;</p>
<p>   &amp;<br />
&amp;<br />
&amp;</p>
<p>  &amp;<br />
&amp;&amp;<br />
</p>
</div>
</div>
<figcaption>ECC-based DAA join algorithm</figcaption>
</figure>

1.  The TPM computes the secret $\texttt{tsk}= \mathsf{hash}(\texttt{DAASeed},K_I)$, derives the commitment $F = \mathsf{clcommit}(\mathsf{pk}(sk_I),\texttt{tsk})$ and sends $F$ to the issuer.

2.  The issuer generates a nonce $n_i$ and sends it to the trusted platform.

3.  The trusted platform generates a signature proof of knowledge $\mathit{SPK}\{(\texttt{tsk}): F = \mathsf{clcommit}(\mathsf{pk}(sk_I),\texttt{tsk}) \}(n_i)$ that the message $F$ is correctly formed. The host sends the proof to the issuer.

4.  The issuer verifies the proof and generates a credential $\texttt{cre}= \mathsf{clsign}(sk_I,r,F)$. The signature $\texttt{cre}$ is sent to the trusted platform and the platform verifies the signature.

At the end of the algorithm, the credential $\texttt{cre}$ can be public (in particular, it is known by the host and the issuer), but only the TPM knows the corresponding secret $\texttt{tsk}$. The credential $\texttt{cre}$ and secret $\texttt{tsk}$ can be provided as input to the sign algorithm, along with a basename $\texttt{bsn}$ and message $m$. The sign algorithm proceeds as follows.

5.  If $\texttt{bsn}= {\perp}$, then the host generates a nonce $\zeta$; otherwise, the host computes $\zeta = \mathsf{hash}(\mathsf{1},\texttt{bsn})$. The host provides the TPM with $\zeta$. The TPM computes the commitment $N_V = \mathsf{commit}(\zeta,\texttt{tsk})$. The host generates a random nonce $r'$ and blinding factor $\hat r$, which are used to compute the anonymous credential $\widehat{\texttt{cre}} = \mathsf{clblind}(\hat r,\mathsf{clrand}(r',\allowbreak\texttt{cre}))$. The trusted platform then produces a signature proof of knowledge that $\widehat{\texttt{cre}}$ is a valid blinded credential on message $\texttt{tsk}$ using blinding factor $\hat r$, and that $N_V$ is correctly formed.

The sign algorithm outputs the signature proof of knowledge which is sent to the verifier. Intuitively, if a verifier is presented with such a proof, then the verifier is convinced that it is communicating with a trusted platform.

We remark that our attack against the RSA-based DAA scheme (Smyth, Ryan, and Chen 2007) (see also (Smyth 2011, sec. 4.4.5)) cannot be launched in the ECC setting, because it is not possible to select a public key $\mathsf{pk}(sk_I)$ and basename $\texttt{bsn}$ such that the commitments $F = \mathsf{clcommit}(\mathsf{pk}(sk_I),\texttt{tsk})$ and $N_V = \mathsf{commit}(\mathsf{hash}(\mathsf{1},\texttt{bsn}),\texttt{tsk})$ can be linked; this is due to the constraints placed upon the public key, the pre-image resistance of hash functions, and properties of the respective commitment functions.

## Signature and equational theory

We construct a signature $\Sigma$ to capture the cryptographic primitives used by the scheme and define rewrite rules to capture the relationship between these primitives. Let $\Sigma = \{\mathsf{accept},$ $\perp,$ $\mathsf{1},$ $\mathsf{F}_{\mathsf{join}},$ $\mathsf{F}_{\mathsf{sign}},$ $\mathsf{clgetnonce},$ $\mathsf{hash},$ $\mathsf{pk},$ $\mathsf{clblind},$ $\mathsf{clcommit},$ $\mathsf{commit},$ $\mathsf{clrand},$ $\mathsf{mul},$ $\mathsf{checkclsign},$ $\mathsf{checkspk},$ $\mathsf{clsign},$ $\mathsf{clsigncommit},$ $\mathsf{linksigcomm},$ $\mathsf{spk},$ $\mathsf{clbsign},$ $\mathsf{linkcomm}\}$. Functions $\mathsf{accept}$, $\perp$, $\mathsf{1}$, $\mathsf{F}_{\mathsf{join}}$, $\mathsf{F}_{\mathsf{sign}}$ are constants; $\mathsf{clgetnonce}$, $\mathsf{hash}$, $\mathsf{pk}$ are unary functions; $\mathsf{clblind}$, $\mathsf{clcommit}$, $\mathsf{commit}$, $\mathsf{clrand}$, $\mathsf{mul}$ are binary functions; $\mathsf{checkclsign}$, $\mathsf{checkspk}$, $\mathsf{clsign}$, $\mathsf{clsigncommit}$, $\mathsf{linksigcomm}$, $\mathsf{spk}$ are ternary functions; and $\mathsf{clbsign}$, $\mathsf{linkcomm}$ are functions of arity four. We occasionally write $\mathsf{hash}(x_{\mathsf{plain,1}},\dots,x_{\mathsf{plain,n}})$ to denote $\mathsf{hash}(\mbox{$($}{x_{\mathsf{plain,1}},\dots,x_{\mathsf{plain,n}}}\mbox{$)$})$. The rewrite rules associated with the destructors in $\Sigma$ are defined below.

<div class="center">

x xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xx $\mathsf{clsigncommit}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},\mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{msg        }})) \rightarrow \mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$  
$\mathsf{clrand}(y_{\mathsf{nonce      }},\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow \mathsf{clsign}(x_{\mathsf{sk        }},\mathsf{mul}(x_{\mathsf{nonce      }},y_{\mathsf{nonce      }}),x_{\mathsf{msg        }})$  
$\mathsf{clrand}(y_{\mathsf{nonce      }},\mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }}))$  
$\rightarrow \mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},\mathsf{mul}(x_{\mathsf{nonce      }},y_{\mathsf{nonce      }}),x_{\mathsf{msg        }})$  
$\mathsf{clblind}(y_{\mathsf{blind      }},\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow \mathsf{clbsign}(y_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$  
$\mathsf{clblind}(y_{\mathsf{blind      }},\mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }}))$  
$\rightarrow \mathsf{clbsign}(\mathsf{mul}(x_{\mathsf{blind      }},y_{\mathsf{blind      }}),x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$  
$\mathsf{clgetnonce}(\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow \mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{nonce      }})$  
$\mathsf{clgetnonce}(\mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow \mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{nonce      }})$  
$\mathsf{checkclsign}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{msg        }},\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow \mathsf{accept}$

</div>

A signature proof of knowledge is encoded in the form $\mathsf{spk}(F,U,V)$, where $F$ is a constant declaring the particular proof in use, $U$ denotes the witness (or private component) of a signature of knowledge, and $V$ defines the public parameters and message being signed. The function $\mathsf{checkspk}$ is used to verify a signature and we define the following equations.

<div class="center">

x xx $\mathsf{checkspk}(\mathsf{F}_{\mathsf{join}},V,\mathsf{spk}(\mathsf{F}_{\mathsf{join}},x_{\texttt{tsk}},V)) \rightarrow \mathsf{accept}$  
where $V = \mbox{$($}{y_{\mathsf{pk        }},\mathsf{clcommit}(y_{\mathsf{pk        }},x_{\texttt{tsk}}),y_{\mathsf{msg        }}}\mbox{$)$}$  
$\mathsf{checkspk}(\mathsf{F}_{\mathsf{sign}},V,\mathsf{spk}(\mathsf{F}_{\mathsf{sign}},\mbox{$($}{x_{\texttt{tsk}},x_{\mathsf{blind      }}}\mbox{$)$},V)) \rightarrow \mathsf{accept}$  
where $V = \mbox{$($}{y_{\mathsf{\zeta      }}, \mathsf{pk}(z_{\mathsf{sk        }}), \mathsf{commit}(y_{\mathsf{\zeta      }},x_{\texttt{tsk}}),\mathsf{clbsign}(x_{\mathsf{blind      }},z_{\mathsf{sk        }},z_{\mathsf{nonce      }},x_{\texttt{tsk}}), y_{\mathsf{msg        }}}\mbox{$)$}$

</div>

The first equation is used to verify the signature proof of knowledge produced by the trusted platform during the join algorithm and the second is used by a trusted platform during the sign algorithm to assert group membership. Finally, the tractability of the DDH problem for cyclic groups with symmetric pairing requires the following equations.

<div class="center">

x xx $\mathsf{linkcomm}(x_{\mathsf{base        }},x_{\mathsf{base        }}',\mathsf{clcommit}(x_{\mathsf{base        }},z_{\mathsf{msg        }}),\mathsf{clcommit}(x_{\mathsf{base        }}',z_{\mathsf{msg        }})) \rightarrow \mathsf{accept}$  
$\mathsf{linksigcomm}(x_{\mathsf{sk        }},\mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),z_{\mathsf{msg        }}),\mathsf{clsign}(x_{\mathsf{sk        }},z_{\mathsf{nonce      }},z_{\mathsf{msg        }})) \rightarrow \mathsf{accept}$

</div>

## Model in applied pi

The ECC-based join and sign algorithms are modelled by the pair of processes $\langle \sf{Join}_{\sf ECC}, \sf{Sign}_{\sf ECC} \rangle$ presented in Figure <a href="#def:daa:ecc-process" data-reference-type="ref" data-reference="def:daa:ecc-process">6</a>, in which we abbreviate $c(x).\textnormal{let } x_1=\pi_{1}(x) \textnormal{ in }\dots\ \textnormal{let } x_n=\pi_{n}(x) \textnormal{ in }P$ as $c(x_1,\dots,x_n).P$.

<figure id="def:daa:ecc-process">
<p><span class="math display">$$\begin{array}{lcl}
\sf{Join}_{\sf ECC} &amp; \hat{=} &amp; a_j(w_{\mathsf{params     }},w_{\sf DAASeed},w_{\sf cnt},w_{\mathsf{ek}})\mathrel.\\
        &amp;&amp; \textnormal{let } w_{\mathsf{K        }}=\pi_{1}(w_{\mathsf{params     }}) \textnormal{ in } \textnormal{let } w_{\mathsf{pk        }}=\pi_{2}(w_{\mathsf{params     }}) \textnormal{ in }\\
        &amp;&amp; \textnormal{let } \texttt{tsk}=\mathsf{hash}(w_{\sf DAASeed},w_{\mathsf{K        }}) \textnormal{ in }\\
        &amp;&amp; \textnormal{let } F=\mathsf{clcommit}(w_{\mathsf{pk        }},\texttt{tsk}) \textnormal{ in } \\
        &amp;&amp; \overline{c}\langle F\rangle\mathrel.\\
        &amp;&amp; c(x)\mathrel.\\
        &amp;&amp; \overline{c}\langle\mathsf{spk}(\mathsf{F}_{\mathsf{join}},\texttt{tsk},\mbox{$($}{w_{\mathsf{K        }},F,x}\mbox{$)$})\rangle\mathrel.\\
        &amp;&amp; c(y_{\mathsf{cre        }})\mathrel.\\
        &amp;&amp; \textnormal{if } \mathsf{checkclsign}(w_{\mathsf{pk        }},\texttt{tsk},y_{\mathsf{cre        }})=\mathsf{accept} \textnormal{ then }\\
        &amp;&amp; \overline{a'_j}\langle\mbox{$($}{y_{\mathsf{cre        }},\texttt{tsk}}\mbox{$)$}\rangle\\[1em]
%
\sf{Sign}_{\sf ECC} &amp; \hat{=} &amp; a_s(w_{\mathsf{params     }},w_{\mathsf{bsn        }},w_{\mathsf{msg        }},w_{\mathsf{cre        }},w_{\sf tsk})\mathrel.
         \textnormal{let } w_{\mathsf{pk        }}=\pi_{2}(w_{\mathsf{params     }}) \textnormal{ in }\\
        &amp;&amp; \nu\,r'\mathrel.\nu\,\hat r\mathrel.\nu\,n_t\mathrel.c(x)\mathrel.\\
        &amp;&amp; \textnormal{if } w_{\mathsf{bsn        }}=\perp \textnormal{ then }\\
        &amp;&amp; \qquad\nu\,\zeta\mathrel.\\
        &amp;&amp;\qquad\textnormal{let } \widehat{\texttt{cre}}=\mathsf{clblind}(\hat r,\mathsf{clrand}(r',w_{\mathsf{cre        }})) \textnormal{ in }\\
        &amp;&amp;\qquad\textnormal{let } N_V=\mathsf{commit}(\zeta,w_{\sf tsk}) \textnormal{ in }\\
        &amp;&amp;\qquad\textnormal{let } spk=\mathsf{spk}(\mathsf{F}_{\mathsf{sign}},\mbox{$($}{w_{\sf tsk},\hat r}\mbox{$)$},\mbox{$($}{\zeta,w_{\mathsf{pk        }},N_V,\widehat{\texttt{cre}},\mbox{$($}{n_t,x,w_{\mathsf{msg        }}}\mbox{$)$}}\mbox{$)$}) \textnormal{ in }\\
        &amp;&amp;\qquad\overline{a'_s}\langle\mbox{$($}{\zeta,N_V,\widehat{\texttt{cre}},n_t,spk}\mbox{$)$}\rangle\\
        &amp;&amp; \textnormal{ else }\\
        &amp;&amp; \qquad\textnormal{let } \zeta=\mathsf{hash}(\mathsf{1},w_{\mathsf{bsn        }}) \textnormal{ in }\\
        &amp;&amp;\qquad\textnormal{let } \widehat{\texttt{cre}}=\mathsf{clblind}(\hat r,\mathsf{clrand}(r',w_{\mathsf{cre        }})) \textnormal{ in }\\
        &amp;&amp;\qquad\textnormal{let } N_V=\mathsf{commit}(\zeta,w_{\sf tsk}) \textnormal{ in }\\
        &amp;&amp;\qquad\textnormal{let } spk=\mathsf{spk}(\mathsf{F}_{\mathsf{sign}},\mbox{$($}{w_{\sf tsk},\hat r}\mbox{$)$},\mbox{$($}{\zeta,w_{\mathsf{pk        }},N_V,\widehat{\texttt{cre}},\mbox{$($}{n_t,x,w_{\mathsf{msg        }}}\mbox{$)$}}\mbox{$)$}) \textnormal{ in }\\
        &amp;&amp;\qquad\overline{a'_s}\langle\mbox{$($}{\zeta,N_V,\widehat{\texttt{cre}},n_t,spk}\mbox{$)$}\rangle \\

\end{array}$$</span></p>
<figcaption>Applied pi process specification for the ECC-based DAA protocol</figcaption>
</figure>

The join process $\sf{Join}_{\sf ECC}$ is instantiated by inputting the join algorithm’s parameters: the ECC-based DAA system parameters $w_{\mathsf{params     }}$, the TPM’s internal secret $w_{\sf DAASeed}$, the counter value $w_{\sf cnt}$ chosen by the host, and the TPM’s endorsement key $w_{\mathsf{ek}}$. The system parameters $w_{\mathsf{params     }}$ are expected to be a pair containing the issuer’s long-term public key $K_I$ and short-term public key $\mathsf{pk}(sk_I)$. The process constructs the terms $\texttt{tsk}$ and $F$ in accordance with the protocol’s description (Section <a href="#daa:ecc:desc" data-reference-type="ref" data-reference="daa:ecc:desc">5.2</a>), and outputs $F$ to the issuer. A nonce $x$ is then input and a signature proof of knowledge is produced. Finally, the process inputs a signature $y_{\mathsf{cre        }}$ on the secret $\texttt{tsk}$ and concludes by outputting the attestation identity credential $y_{\mathsf{cre        }}$ and TPM’s secret $\texttt{tsk}$ on the private channel $a_j'$, that is, the $\sf{Join}_{\sf ECC}$ process returns the values $y_{\mathsf{cre        }}$ and $\texttt{tsk}$ to the $\sf{Signer^+}$ process.

The sign process $\sf{Sign}_{\sf ECC}$ is instantiated by inputting the sign algorithm’s parameters: the ECC-based DAA system parameters $w_{\mathsf{params     }}$, the verifier’s basename $w_{\mathsf{bsn        }}$, the message $w_{\mathsf{msg        }}$ to be signed, the attestation identity credential $w_{\mathsf{cre        }}$, and the TPM’s secret $w_{\sf tsk}$. The process inputs a nonce $x$ from the verifier. The if-then-else branch models the signer’s ability to produce linkable or unlinkable signatures, based upon the parameter $w_{\mathsf{bsn        }}$; in particular, the if-branch produces an unlinkable signature, whereas the else-branch produces a linkable signature. The process concludes by outputting a signature on the private channel $a_s'$; that is, the $\sf{Sign}_{\sf ECC}$ process returns the signature to the $\sf{Signer^+}$ process.

## Analysis: User-controlled anonymity

The DAA game biprocess derived from $\langle \sf{Join}_{\sf ECC}, \sf{Sign}_{\sf ECC} \rangle$ can be automatically analysed using ProVerif; unfortunately, however, ProVerif cannot prove equivalence in the general case. Accordingly, rather than prove that the specification $\langle \sf{Join}_{\sf ECC}, \sf{Sign}_{\sf ECC} \rangle$ satisfies user-controlled anonymity, we attempt to prove security in a setting where the adversary is forbidden from re-blinding a blind signature, this is an under-approximation and introduces the assumption that the adversary obtains no advantage from re-blinding a blind signature. This under-approximation can be achieved by removing the rewrite rule $\mathsf{clblind}(y_{\mathsf{blind      }},\mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow \mathsf{clbsign}(\mathsf{mul}(x_{\mathsf{blind      }},y_{\mathsf{blind      }}),x_{\mathsf{sk        }},\allowbreak x_{\mathsf{nonce      }},x_{\mathsf{msg        }})$.

In addition, we make two over-approximations of attacker knowledge. First, we replace the rewrite rules associated with $\mathsf{clgetnonce}$ with the following rules.

<div class="center">

x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xx $\mathsf{clgetnonce}(\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow x_{\mathsf{nonce      }}$  
$\mathsf{clgetnonce}(\mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \rightarrow x_{\mathsf{nonce      }}$

</div>

Secondly, we modify the rewrite rule $\mathsf{clrand}(y_{\mathsf{nonce      }},\mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }}))\allowbreak \rightarrow \mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},\mathsf{mul}(x_{\mathsf{nonce      }},y_{\mathsf{nonce      }}),x_{\mathsf{msg        }})$ to use pairing rather than the function $\mathsf{mul}$, that is, we use the following rule. $$\begin{gathered}
	\mathsf{clrand}(y_{\mathsf{nonce      }},\mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},x_{\mathsf{nonce      }},x_{\mathsf{msg        }})) \\\rightarrow \mathsf{clbsign}(x_{\mathsf{blind      }},x_{\mathsf{sk        }},\mbox{$($}{x_{\mathsf{nonce      }},y_{\mathsf{nonce      }}}\mbox{$)$},x_{\mathsf{msg        }})
\end{gathered}$$ Although, in general, the revised rewrite rules for $\mathsf{clgetnonce}$ are not equivalent to the original rules, they intuitively overapproximate attacker knowledge in our setting. The specification $\langle \sf{Join}_{\sf ECC}, 
\sf{Sign}_{\sf ECC} \rangle$ does not restrict any signing keys and thus public keys can be freely constructed by application of the function symbol $\mathsf{pk}$. If the environment has knowledge of a signature $\mathsf{clsign}(K,R,M)$, then the environment can recover the nonce $R$ and construct the commitment $\mathsf{clcommit}(\mathsf{pk}(K),R)$, that is, we have an over-approximation (the reasoning is similar for blind signatures). Moreover, given the modified rewrite rules for $\mathsf{clgetnonce}$, the revised rewrite rule for $\mathsf{clrand}$ is also an over-approximation; in particular, witness that the environment can recover $\mbox{$($}{R,R'}\mbox{$)$}$ from an arbitrary blind signature $\mathsf{clbsign}(R'',K,\mbox{$($}{R,R'}\mbox{$)$},M)$ and trivially construct $\mathsf{clcommit}(\mathsf{pk}(K),\mathsf{mul}(R,R'))$.

Over-approximations are standard practise during verification (indeed, ProVerif introduces over-approximations) and if ProVerif concludes that a process satisfies observational equivalence with over-approximations of the attacker’s knowledge, then one may conclude that the process satisfies observational equivalence without approximations. Under-approximations are more problematic, however: they introduce assumptions. Thus, our analysis is valid only on the assumption introduced by our under-approximation, namely, that the attacker obtains no advantage from re-blinding a blind signature.

In our revised model, ProVerif is able to automatically verify *user-controlled anonymity*. The ProVerif scripts associated with our analysis are available online: <http://www.bensmyth.com/publications/11-anonymity-in-DAA/>.

# Further work and conclusion

Direct Anonymous Attestation is a relatively new concept and its properties merit further study. In particular, user-controlled traceability, non-frameability, and correctness have received limited attention. Extending this work to include a complete definition of DAA properties would be an interesting direction for the future. Moreover, establishing a unified definition which includes all properties (that is, correctness, non-frameability, user-controlled anonymity and user-controlled traceability) would be of interest to reduce the verification workload. As a starting point, this could be achieved by developing the formalisation of join and sign algorithms, modelled by $\langle \sf{Join}, \sf{Sign}\rangle$, to distinguish between operations performed by the host and those performed by the TPM. This distinction is not necessary for our definition of user-controlled anonymity because this property can only be achieved if both the host and TPM are trusted. By contrast, a corrupt host – even in collaboration with a corrupt TPM (where the TPM is known to be rogue) – should not be able to violate traceability properties and therefore an alternative model of $\langle \sf{Join}, \sf{Sign}\rangle$ would be required such that the actions performed by the host and TPM are distinguished.

Unfortunately, we are unable to derive any conclusions about user-controlled anonymity in the ECC-based DAA scheme in the general setting; however, using an approximation of our rewrite rules, we show that the scheme satisfies our definition under the assumption that the adversary obtains no advantage from re-blinding a blind signature. In addition, two over-approximations were required. Future work could develop theory for the sound abstraction between sets of rewrite rules, thereby providing more confidence in our over-approximations; indeed, Backes, Maffei & Unruh (Backes, Maffei, and Unruh 2008) make some progress in this direction.

#### Conclusion.

This paper presents a definition of user-controlled anonymity for Direct Anonymous Attestation protocols. The definition is expressed as an equivalence property suitable for automated reasoning. The practicality of the approach is demonstrated

by examining the ECC-based Direct Anonymous Attestation protocol. The ECC-based scheme is particularly significant because support is mandated by the TPM.next specification which is due to replace TPM version 1.2 and, moreover, the protocol has been included in the ISO/IEC anonymous digital signature standard. Our analysis demonstrates the absence of attacks in a model where we restrict the adversary from re-blinding a blind signature.

# Acknowledgements

We are particularly grateful to Tom Chothia and Andy Gordon for their careful reading of an earlier version of this work and their constructive feedback. We are also grateful to the anonymous reviewers who provided constructive criticism. This research was conducted as part of the EPSRC projects *UbiVal* (EP/D076625/2) and *Verifying Interoperability Requirements in Pervasive Systems* (EP/F033540/1), and as part of the ProSecure project which is funded by the European Research Council under the European Union’s Seventh Framework Programme (FP7/2007-2013) / ERC grant agreement number 258865.

# References

<div id="refs" class="references csl-bib-body hanging-indent" entry-spacing="0">

<div id="ref-Backes08:ZKP-DAA" class="csl-entry">

Backes, Michael, Matteo Maffei, and Dominique Unruh. 2008. “<span class="nocase">Zero-Knowledge in the Applied Pi-calculus and Automated Verification of the Direct Anonymous Attestation Protocol</span>.” In *S&p’08: 29th IEEE Symposium on Security and Privacy*, 202–15. IEEE Computer Society.

</div>

<div id="ref-Blanchet04" class="csl-entry">

Blanchet, Bruno. 2004. “<span class="nocase">Automatic Proof of Strong Secrecy for Security Protocols</span>.” In *S&p’04: 25th IEEE Symposium on Security and Privacy*, 86–100. IEEE Computer Society.

</div>

<div id="ref-BlanchetJLAP07" class="csl-entry">

Blanchet, Bruno, Martı́n Abadi, and Cédric Fournet. 2008. “<span class="nocase">Automated verification of selected equivalences for security protocols</span>.” *Journal of Logic and Algebraic Programming* 75 (1): 3–51.

</div>

<div id="ref-Smyth10:ProVerifManual" class="csl-entry">

Blanchet, Bruno, and Ben Smyth. 2011. “ProVerif: Automatic Cryptographic Protocol Verifier User Manual & Tutorial.” <http://www.proverif.ens.fr/>.

</div>

<div id="ref-Chen04:RSA-DAA" class="csl-entry">

Brickell, Ernie, Jan Camenisch, and Liqun Chen. 2004. “Direct Anonymous Attestation.” In *CCS’04: 11th ACM Conference on Computer and Communications Security*, 132–45. ACM Press.

</div>

<div id="ref-Chen08:ECC-DAA" class="csl-entry">

Brickell, Ernie, Liqun Chen, and Jiangtao Li. 2008a. “<span class="nocase">A New Direct Anonymous Attestation Scheme from Bilinear Maps</span>.” In *Trust’08: 1st International Conference on Trusted Computing and Trust in Information Technologies*, 4968:166–78. LNCS.

</div>

<div id="ref-Chen08:DAA-security-preprint" class="csl-entry">

———. 2008b. “<span class="nocase">Simplified Security Notions of Direct Anonymous Attestation and a Concrete Scheme from Pairings</span>.” Cryptology ePrint Archive, Report 2008/104.

</div>

<div id="ref-Chen09:DAA-security" class="csl-entry">

———. 2009. “<span class="nocase">Simplified security notions of Direct Anonymous Attestation and a concrete scheme from pairings</span>.” *International Journal of Information Security* 8 (5): 315–30.

</div>

<div id="ref-CL04" class="csl-entry">

Camenisch, Jan, and Anna Lysyanskaya. 2004. “<span class="nocase">Signature Schemes and Anonymous Credentials from Bilinear Maps</span>.” In *CRYPTO’04: 24th International Cryptology Conference*, 3152:56–72. LNCS. Springer.

</div>

<div id="ref-CamSta97" class="csl-entry">

Camenisch, Jan, and Markus Stadler. 1997. “<span class="nocase">Efficient Group Signature Schemes for Large Groups</span>.” In *CRYPTO’97: 17th International Cryptology Conference*, 1294:410–24. LNCS. Springer.

</div>

<div id="ref-Chen10:DAA-security-non-frameability-eprint" class="csl-entry">

Chen, Liqun. 2010. “A DAA Scheme Requiring Less TPM Resources.” Cryptology ePrint Archive, Report 2010/008.

</div>

<div id="ref-Chen09:DAA-security-non-frameability" class="csl-entry">

———. 2011. “A DAA Scheme Requiring Less TPM Resources.” In *INSCRYPT’09: 5th International Conference on Information Security and Cryptology*, 6151:350–65. LNCS. Springer.

</div>

<div id="ref-Chen08:ECC-DAA-assymmetric-proof" class="csl-entry">

Chen, Liqun, Paul Morrissey, and Nigel P. Smart. 2008. “<span class="nocase">On Proofs of Security for DAA Schemes</span>.” In *ProvSec’08: 2nd International Conference on Provable Security*, 5324:156–75. LNCS. Springer.

</div>

<div id="ref-Chen09" class="csl-entry">

———. 2009. “<span class="nocase">DAA: Fixing the pairing based protocols</span>.” Cryptology ePrint Archive, Report 2009/198.

</div>

<div id="ref-Chen10b" class="csl-entry">

———. 2011. “<span class="nocase">DAA: Fixing the pairing based protocols</span>.” Unpublished draft.

</div>

<div id="ref-TPMspec2" class="csl-entry">

*<span class="nocase">Draft TPM 2.0 Specification, Revision oo79</span>*. 2011. Trusted Computing Group; Unpublished draft.

</div>

<div id="ref-ISO20008" class="csl-entry">

International Organization for Standardization. 2011. *<span class="nocase">ISO/IEC WD 20008-2 (Working Draft) Information technology – Security techniques – Anonymous digital signature – Part 2: Mechanisms using a group public key</span>*.

</div>

<div id="ref-SmythPi10" class="csl-entry">

Ryan, Mark D., and Ben Smyth. 2011. “<span class="nocase">Applied pi calculus</span>.” In *<span class="nocase">Formal Models and Techniques for Analyzing Security Protocols</span>*, edited by Véronique Cortier and Steve Kremer. IOS Press.

</div>

<div id="ref-Smyth10:thesis" class="csl-entry">

Smyth, Ben. 2011. “<span class="nocase">Formal verification of cryptographic protocols with automated reasoning</span>.” PhD thesis, School of Computer Science, University of Birmingham.

</div>

<div id="ref-Smyth07:DAA" class="csl-entry">

Smyth, Ben, Mark D. Ryan, and Liqun Chen. 2007. “<span class="nocase">Direct Anonymous Attestation (DAA): Ensuring privacy with corrupt administrators</span>.” In *ESAS’07: 4th European Workshop on Security and Privacy in Ad Hoc and Sensor Networks*, 4572:218–31. LNCS. Springer.

</div>

<div id="ref-TPMspec" class="csl-entry">

*<span class="nocase">TPM Specification version 1.2</span>*. 2007. Trusted Computing Group.

</div>

</div>

[^1]: Ben Smyth’s work was partly done at Loria, CNRS & INRIA Nancy Grand Est, France and the School of Computer Science, University of Birmingham, UK.

[^2]: Ben Smyth’s work was partly done at Loria, CNRS & INRIA Nancy Grand Est, France and the School of Computer Science, University of Birmingham, UK.
