# Formal analysis of privacy in Direct Anonymous Attestation schemes

Ben Smyth, Mark D. Ryan, Liqun Chen

## Abstract

This article introduces a definition of privacy for Direct Anonymous Attestation schemes. The definition is expressed as an equivalence property which is suited to automated reasoning using Blanchet’s ProVerif. The practicality of the definition is demonstrated by analysing the RSA-based Direct Anonymous Attestation protocol by Brickell, Camenisch & Chen. The analysis discovers a vulnerability in the RSA-based scheme which can be exploited by a passive adversary and, under weaker assumptions, corrupt issuers and verifiers. A security fix is identified and the revised protocol is shown to satisfy our definition of privacy.

<div class="keyword">

Accountability, anonymity, applied pi calculus, Direct Anonymous Attestation, privacy, ProVerif, trusted computing, TPM, unlinkability.

</div>

# 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. These security objectives assume that a TPM’s shielded memory protects keys and TPMs are said to be compromised if this assumption does not hold (see Tarnovsky (Tarnovsky 2010) for a hardware attack that successful extracts keys from shielded memory).

Cryptographic operations, by their nature, may reveal a platform’s identity. As a consequence, the TPM has been perceived as a threat to privacy by some users, for example, see Stallman (Stallman 2002, 2010) and Anderson (Anderson 2003, 2004). In an attempt to overcome these privacy concerns, Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) have introduced Direct Anonymous Attestation (DAA), a historical account of DAA’s development is presented by Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2005).

Direct Anonymous Attestation enables a platform to authenticate in a manner that provides privacy and accountability. The concept is based upon group signatures with stronger anonymity guarantees, in particular, the identity of a signer can never be revealed, but certain signatures can be linked (as discussed below) 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 of signers* managed by an issuer. The issuer authenticates the host as a trusted platform and grants an *attestation identity credential* (occasionally abbreviated *credential*). A verifier can authenticate trusted platforms using signatures produced from such credentials.

Brickell, Chen & Li (Brickell, Chen, and Li 2008b, 2009) and Chen (L. Chen 2010a, 2011) characterise the following security properties[^1] for Direct Anonymous Attestation schemes:

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

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

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

- *User-controlled linkability.* A signer can control whether her signatures can be detected as being from the same signer.

A signer defines whether her signatures are *linkable* (that is, can be detected as being from the same signer) or *unlinkable* (that is, cannot be detected as being from the same signer) at the time of construction.

Our security properties aim to balance the privacy (anonymity and unlinkability properties) demands of users with the accountability (linkability, non-frameability and unforgeability properties) needs of issuers and verifiers. The distinction between privacy and accountability properties is reflected in our trust model: anonymity and unlinkability assume that two signers are honest, whereas, linkability, non-frameability and unforgeability assume that an issuer is honest. (The issuer must be honest for linkability, since a dishonest issuer can provide an adversary with a new credential for every signature, thereby ensuring that two signatures are never linked.) In addition, DAA schemes must be *correct*: valid signatures can be verified and, where applicable, linked.

Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) propose the first concrete instance of a Direct Anonymous Attestation scheme. Their scheme is based upon RSA and support for this scheme is mandated by the TPM specification version 1.2 (*<span class="nocase">TPM Specification version 1.2</span>* 2007), which has been defined as an ISO/IEC international standard (International Organization for Standardization 2009). Moreover, TPM version 1.2 is estimated to have been embedded in over 500 million computers (Trusted Computing Group 2011) (however, the Trusted Computer Group acknowledges that the opt-in policy – whereby, users must choose to enable the TPM – has hindered development (Trusted Computing Group 2012), moreover, Martin claims that only 5% of these TPMs have been turned on (Martin 2008, sec. 6) and we suspect significantly fewer are in active use). Furthermore, the RSA-based DAA scheme has also been included in the ISO/IEC anonymous digital signature standard (International Organization for Standardization 2011). A brief review of other DAA schemes appears in <a href="#app:other-daa-schemes" data-reference-type="ref" data-reference="app:other-daa-schemes">8</a>.

## Contribution

We formalise Direct Anonymous Attestation protocols in the applied pi calculus and present a definition of privacy as an equivalence property which is suited to automated reasoning using ProVerif (Section <a href="#sec:daa:anon" data-reference-type="ref" data-reference="sec:daa:anon">4</a>). Informally, the security 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 analysing privacy in the RSA-based DAA protocol (Section <a href="#sec:daa:RSA" data-reference-type="ref" data-reference="sec:daa:RSA">5</a>). The analysis discovers a vulnerability in the protocol which allows privacy to be violated by a passive adversary and, under weaker assumptions, corrupt issuers and verifiers. A fix is identified, and the revised RSA-based DAA protocol is shown to be secure in the symbolic model. We examine the balance between privacy and accountability offered by DAA and propose extensions to DAA (Section <a href="#sec:discussion" data-reference-type="ref" data-reference="sec:discussion">6</a>): we propose a stronger notion of privacy which is intuitively satisfied by the fixed RSA-based scheme, address an issue which can prevent linkability, and provide some practical guidelines for basenames to help resolve a flaw in unlinkability.

## Related work

In the computational model, Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) 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 simulation-based models and game-based definition is unknown (L. Chen, Morrissey, and Smart 2008a, pp158). Bernhard *et al.* (Bernhard et al. 2011) argue that the simulation-based definitions and the game-based definition are insufficient for accountability due to informal handling of identities and propose an alternative game-based security definition, moreover, Bernhard *et al.* show that the simulation-based model by Chen, Morrissey & Smart (L. Chen, Morrissey, and Smart 2009) is unsatisfiable (for all protocols there trivially exists a distinction between the ideal- and real-world). We consider a symbolic definition for privacy, based upon the game-based definition by Brickell, Chen & Li (we stress that the criticisms from Bernhard *et al.* relate to the accountability game and not the privacy game, hence, their concerns are not relevant to our work). Backes, Maffei & Unruh (Backes, Maffei, and Unruh 2008) formalise an earlier notion of privacy (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, their formalisation pre-dates the privacy definitions by Brickell, Chen & Li and considers a conceptually weaker adversary, for example, signers are only permitted one credential and signatures can only be produced after both signers have credentials. Finally, our definition is intuitively simpler, which should aid analysis and, in particular, be better suited to automated reasoning.

Our earlier work also merits comparison. The attack and fix presented in this article originally appeared in Smyth, Ryan & Chen (Smyth, Ryan, and Chen 2007). Delaune, Ryan & Smyth (Delaune, Ryan, and Smyth 2008) demonstrate a technique to extend the class of equivalences that can be checked using diff-equivalence and present a high-level description of how their technique can be used to analyse the fixed DAA scheme. In addition, Delaune, Ryan & Smyth formalise a notion of privacy for the RSA-based DAA protocol in an unpublished technical report (Delaune, Ryan, and Smyth 2007). This formalisation is subject to the issues highlighted with respect to Backes, Maffei & Unruh, moreover, signers may only output one signature, the issuer’s key is assumed to be honestly generated, and subtle properties of the underlying CL signature scheme are omitted; we overcome these limitations in this article. Furthermore, as witnessed by Backes, Maffei & Unruh, privacy can be checked using the standard class of equivalences that can be checked using diff-equivalence, rather than the extended class proposed by Delaune, Ryan & Smyth. Smyth presented a version of this article in his thesis (Smyth 2011, chap. 4), in particular, Smyth’s thesis contains a formalisation of Direct Anonymous Attestation schemes as processes in the applied pi calculus, a privacy definition (based upon the cryptographic game proposed by Brickell, Chen & Li), an analysis of the fixed RSA-based DAA protocol, and a special case of the Smyth, Ryan & Chen attack which can be exploited by passive adversaries. The formalisation of DAA schemes as processes and the privacy definition have been developed by Smyth, Ryan & Chen (Smyth, Ryan, and Chen 2011), in addition, Smyth, Ryan & Chen analyse the ECC-based DAA protocol by Brickell, Chen & Li (Brickell, Chen, and Li 2008a, 2009). This article collates Smyth, Ryan & Chen (Smyth, Ryan, and Chen 2007), Smyth (Smyth 2011, chap. 4) and, Smyth, Ryan & Chen (Smyth, Ryan, and Chen 2011). Smyth’s thesis has not been previously published, hence the analysis of the fixed RSA-based DAA protocol and a special case of the attack which allows a passive adversary to violate privacy are new. In addition, this article provides a more detailed discussion of our results, highlights the limitations of our model, notes some ambiguities in the cryptographic game by Brickell, Chen & Li, and proposes a refinement to the RSA-based DAA protocol to help balance privacy and accountability.

# Calculus of ProVerif

We adopt a dialect (Blanchet 2004; Blanchet, Abadi, and Fournet 2008) of the applied pi calculus (**Appliedpi?**; M. D. Ryan and Smyth 2011) which is suited to automated reasoning using Blanchet’s ProVerif (Blanchet and Smyth 2011). In this setting, we acknowledge that security claims do not imply the absence of real-world attacks (see (P. Y. A. Ryan and Schneider 1998; Abadi and Rogaway 2000, 2002; Warinschi 2003, 2005), for example), due to the abstract representation of cryptographic primitives. Nonetheless, we believe symbolic analysis is useful because computational security methodologies have provided limited success in the analysis of complex cryptographic protocols (Moore 1988; Meadows 2003; Koblitz and Menezes 2006, 2007). Indeed, Chen, Morrissey & Smart (L. Chen, Morrissey, and Smart 2008a, pp157) attribute flaws in the security proof of RSA-based DAA (Brickell, Camenisch, and Chen 2004) to the highly complex nature of DAA schemes and the inherent difficulties of composing correct provable security proofs.

## 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. A function symbol with arity $0$ is a constant. We write $f$ for a constructor, $g$ for a destructor, and $h$ for either a constructor or destructor. Terms are defined over names, variables, and constructors applied to other terms (Figure <a href="#fig:obs:grammar" data-reference-type="ref" data-reference="fig:obs:grammar">1</a>). A substitution, denoted $\{\textnormal{\raisebox{2pt}{\footnotesize $M$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $x$}}\}$, replaces the variable $x$ with the term $M$ and we let the letters $\sigma$ and $\tau$ range over substitutions. We write $N\sigma$ for the result of applying $\sigma$ to the free variables of $N$.

The signature $\Sigma$ is equipped with a finite set of equations of the form $M = N$ and we derive an equational theory from this set by reflexive, symmetric and transitive closure, closure under the application of constructors, closure under substitution of terms for variables, and closure under bijective renaming of names. We write $\Sigma\vdash M = N$ for an equality modulo the equational theory and $\Sigma\vdash M \not= N$ for an inequality modulo the equational theory. (We write $M=N$ and $M\not=N$ for syntactic equality and inequality, respectively.)

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, the variables of $M'$ are bound in $M'_1, \ldots, M'_l$, and variables are subject to renaming. The term evaluation $g(M_1, \ldots, M_l)$ is defined if and only if there exists a substitution $\sigma$ and a rewrite rule $g(M'_1,
\ldots, M'_l) \allowbreak\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$. In order to avoid distinguishing constructors and destructors in the definition of term evaluation, we let $\mathrm{def}_{\Sigma}(f)$ be $\{ f(x_1, \ldots, x_l) \rightarrow f(x_1,
\ldots,x_l) \}$ when $f$ is a constructor of arity $l$.

The grammar for processes appears 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\allowbreak\textnormal{else }Q$ tries to evaluate $D$; if this succeeds, then $x$ is bound to the result and $P$ is executed, otherwise, $Q$ is executed. For convenience, the statement $\textnormal{let } x=D \textnormal{ in } P \textnormal{ else }Q$ may be abbreviated as $\textnormal{let } x=D \textnormal{ in }{P}$ when $Q$ is the null process. 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$). 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 we write $\,\rightarrow_{\Sigma}^* \equiv\,$ for the union of $\rightarrow_{\Sigma}^*$ 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> and <span class="math inline"><em>σ</em></span> is such that<br />
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>
<div class="center">
<p><span class="math inline"><em>P</em> ∣ 0 ≡ <em>P</em></span><br />
<span class="math inline"><em>P</em> ∣ <em>Q</em> ≡ <em>Q</em> ∣ <em>P</em></span><br />
<span class="math inline">(<em>P</em> ∣ <em>Q</em>) ∣ <em>R</em> ≡ <em>P</em> ∣ (<em>Q</em> ∣ <em>R</em>)</span><br />
<span class="math inline"><em>ν</em> <em>a</em>.<em>ν</em> <em>b</em>.<em>P</em> ≡ <em>ν</em> <em>b</em>.<em>ν</em> <em>a</em>.<em>P</em></span><br />
<span class="math inline"><em>ν</em> <em>a</em>.(<em>P</em> ∣ <em>Q</em>) ≡ <em>P</em> ∣ <em>ν</em> <em>a</em>.<em>Q</em></span><br />
if <span class="math inline">$a \notin \textnormal{fn}(P)$</span></p>
</div>
<div class="center">
<p><span class="math inline"><em>P</em> ≡ <em>P</em></span><br />
<span class="math inline"><em>Q</em> ≡ <em>P</em> ⇒ <em>P</em> ≡ <em>Q</em></span><br />
<span class="math inline"><em>P</em> ≡ <em>Q</em>, <em>Q</em> ≡ <em>R</em> ⇒ <em>P</em> ≡ <em>R</em></span><br />
<span class="math inline"><em>P</em> ≡ <em>Q</em> ⇒ <em>P</em> ∣ <em>R</em> ≡ <em>Q</em> ∣ <em>R</em></span><br />
<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><br />
</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}$.

Given a biprocess $P$, 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,\allowbreak{}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><span class="smallcaps">(Red I/O)</span></td>
</tr>
<tr class="even">
<td style="text-align: left;"></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><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>
</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><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>
</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>
</tr>
</tbody>
</table>
<figcaption>Generalised semantics for biprocesses</figcaption>
</figure>

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

Intuitively, processes $P$ and $Q$ are said to be observationally equivalent if they can output on the same channels, no matter what context they are placed inside. Formally, 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{bn}(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 id="def:proverif:obs" class="definition">

**Definition 1** (Observational equivalence). **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 additionally define observational equivalence as a property of biprocesses.

<div class="definition">

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

</div>

#### Automated reasoning

It follows from the semantics of biprocess that if $P \xrightarrow{}Q$ for some biprocesses $P$ and $Q$, then $\textnormal{fst}(P) \xrightarrow{}\textnormal{fst}(Q)$ and $\textnormal{snd}(P)\xrightarrow{}\textnormal{snd}(Q)$. However, reductions in $\textnormal{fst}(P)$ or $\textnormal{snd}(P)$ do not imply biprocess reductions in $P$, that is, there exist biprocesses $P$ such that $\textnormal{fst}(P) \xrightarrow{}\textnormal{fst}(Q)$, but there is no such reduction $P \xrightarrow{}Q$, and symmetrically for $\textnormal{snd}(P)$. For example, consider the biprocess $P = \overline{\textnormal{diff}[a,c]}\langle n\rangle \mid a(x)$, we have $\textnormal{fst}(P) \xrightarrow{}0$, but there is no reduction $P \xrightarrow{}0$. 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$. Moreover, they propose an automated procedure for reasoning with observational equivalence of biprocesses and this procedure has been implemented in ProVerif.

## Assumptions and notation

In this article, 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 \qquad \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)$.

# DAA schemes

A Direct Anonymous Attestation scheme comprises of five algorithms (Brickell, Camenisch, and Chen 2004; Brickell, Chen, and Li 2008b, 2009), each of which will now be discussed.

#### Setup

The setup algorithm is used by the issuer to construct a DAA 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.

The algorithm assumes that the trusted platform and issuer have established a one-way authenticated channel, that is, the issuer is assured to be communicating with a host and TPM. The definition of DAA does not mandate a particular authentication mechanism (the Trusted Computing Group recommend encrypting every message sent by the issuer under the TPM’s endorsement key (*<span class="nocase">TPM Specification version 1.2</span>* 2007)).

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 (see Section <a href="#sec:discussion" data-reference-type="ref" data-reference="sec:discussion">6</a> for further discussion on linkability).

#### 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. The methodology used to build $\texttt{ROGUE}_{\texttt{tsk}}$ is not defined by DAA, see Chen & Li (L. Chen and Li 2010b) for further discussion.

#### 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}$.  
The inputs and outputs of these algorithms are explicitly summarised in Table <a href="#table:daa:in-out" data-reference-type="ref" data-reference="table:daa:in-out">[table:daa:in-out]</a>.

<div class="table*">

<table style="width:90%;">
<colgroup>
<col style="width: 13%" />
<col style="width: 38%" />
<col style="width: 38%" />
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">Algorithm</th>
<th style="text-align: left;">Input</th>
<th style="text-align: left;">Output</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Setup</td>
<td style="text-align: left;">Security parameters.</td>
<td style="text-align: left;">A DAA key pair <span class="math inline"><em>s</em><em>k</em><sub><em>I</em></sub></span> and <span class="math inline">pk(<em>s</em><em>k</em><sub><em>I</em></sub>)</span>, and any implementation-specific parameters.</td>
</tr>
<tr class="even">
<td style="text-align: left;">Join</td>
<td style="text-align: left;"><p>Trusted platform’s input: the system parameters (namely, the DAA public key and any implementation-specific parameters defined by the setup algorithm), the TPM’s internal secret <span class="math inline"><code>DAASeed</code></span> (this value is defined during manufacture <span class="citation" data-cites="TPMspec">(<em><span class="nocase">TPM Specification version 1.2</span></em> 2007)</span>), a counter value <span class="math inline"><code>cnt</code></span> selected by the host, and the TPM’s endorsement key.</p>
<p>Issuer’s input: the system parameters and the issuer’s private key <span class="math inline"><em>s</em><em>k</em><sub><em>I</em></sub></span>.</p></td>
<td style="text-align: left;"><p>Trusted platform’s output: a pair consisting of the attestation identity credential <span class="math inline"><code>cre</code></span> and secret <span class="math inline"><code>tsk</code></span>.</p>
<p>Issuer’s output: the public part of the TPM’s endorsement key.</p></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Sign</td>
<td style="text-align: left;">The system parameters, a verifier’s basename <span class="math inline"><code>bsn</code></span>, a message <span class="math inline"><em>m</em></span>, an attestation identity credential <span class="math inline"><code>cre</code></span>, and a secret <span class="math inline"><code>tsk</code></span>.</td>
<td style="text-align: left;">A signature <span class="math inline"><em>σ</em></span>.</td>
</tr>
<tr class="even">
<td style="text-align: left;">Verify</td>
<td style="text-align: left;">The system parameters, a verifier’s basename <span class="math inline"><code>bsn</code></span>, a message <span class="math inline"><em>m</em></span>, a candidate signature <span class="math inline"><em>σ</em></span> for <span class="math inline"><em>m</em></span>, and a set of secret keys <span class="math inline"><code>ROGUE</code><sub><code>tsk</code></sub></span>.</td>
<td style="text-align: left;"><span class="math inline">1</span> (<em>accept</em>) or <span class="math inline">0</span> (<em>reject</em>).</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Link</td>
<td style="text-align: left;">The system parameters, and two candidate signatures <span class="math inline"><em>σ</em></span> and <span class="math inline"><em>σ</em>′</span> for messages <span class="math inline"><em>m</em></span> and <span class="math inline"><em>m</em>′</span>.</td>
<td style="text-align: left;"><span class="math inline">−1</span> (<em>invalid signature</em>) if the verify algorithm outputs <span class="math inline">0</span> for signature <span class="math inline"><em>σ</em></span> (or <span class="math inline"><em>σ</em>′</span>) using the system parameters, basename <span class="math inline">⊥</span>, the message <span class="math inline"><em>m</em></span> (respectively <span class="math inline"><em>m</em>′</span>), and the empty set of secret keys. Otherwise, the algorithm returns <span class="math inline">1</span> (<em>linked</em>) if the signatures can be linked and <span class="math inline">0</span> (<em>not linked</em>) if the signatures cannot be linked.</td>
</tr>
</tbody>
</table>

</div>

# Security definition: privacy

Informally, the notion of privacy 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 and a situation 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 description of our privacy property.

#### Initial

The adversary constructs the DAA key pair $sk_I$ and $\mathsf{pk}(sk_I)$, and publishes the public part $\mathsf{pk}(sk_I)$ along with any additional parameters. In addition, public keys of honest TPMs are published.

#### Phase 1

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

- Join. The signer executes the join algorithm with the adversary to create $\texttt{cre}$ and $\texttt{tsk}$. (The adversary, behaving as the issuer, will typically construct $\texttt{cre}$ but not learn $\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.

We insist that sign requests to $\mathcal{A}$ (or $\mathcal{B}$) must be proceeded by at least one join request to $\mathcal{A}$ (respectively $\mathcal{B}$). Moreover, at the end of Phase 1, both signers are required to have run the join algorithm at least once.

#### 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 2

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

#### Result

The protocol satisfies privacy if the adversary cannot distinguish between the two signatures output during the challenge.  
Intuitively, our description captures anonymity because the adversary cannot distinguish between the two signatures output during the challenge. This can be observed as follows. Suppose a protocol satisfies the above description of privacy 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 description also captures unlinkability. This can be observed as follows. Suppose a protocol satisfies our description of privacy, but a randomly sampled pair of signatures from the same signer can be linked with non-negligible probability, where the signatures were defined as unlinkable by the signer. Further suppose that the signatures are on messages $m$ and $m'$. Let us consider an adversary that requests a signature $\sigma_A$ from $\mathcal{A}$ during Phase 1 using the message $m$ and basename $\texttt{bsn}= {\perp}$ (that is, signatures should be unlinkable). Furthermore, the adversary submits the message $m'$ and basename $\texttt{bsn}' = {\perp}$ during the challenge, and the signers return signatures $\sigma_1$ and $\sigma_2$. The adversary tests if $\sigma_A$ and $\sigma_1$ are linked or if $\sigma_A$ and $\sigma_2$ are linked. Exactly one test will succeed with non-negligible probability, thereby allowing the adversary to distinguish between signatures $\sigma_1$ and $\sigma_2$. We have derived a contradiction and, therefore, a protocol satisfying our description of privacy provides unlinkability. Formally proving that our security definition (Definition <a href="#def:daa:anon" data-reference-type="ref" data-reference="def:daa:anon">3</a>) captures anonymity and unlinkability is beyond the scope of this article.

#### Comparison with Brickell, Chen & Li

Our description of privacy clarifies some ambiguities in the cryptographic game proposed by Brickell, Chen & Li:

- The side condition that both signers must execute the join algorithm at least once during Phase 1 is only implicitly included in the cryptographic game by Brickell, Chen & Li with the requirement that *“*\[the adversary\]* chooses two signers’ identities *\[...\]*"* (Brickell, Chen, and Li 2009, sec. 2.2.2). We stress that their cryptographic game is unsatisfiable without this condition, in particular, privacy can never be achieved in a setting with one signer. Accordingly, we make the side condition explicit in our description.

- Sign queries with $\mathcal{A}$ or $\mathcal{B}$ are restricted to the basename ${\perp}$ in Phase 2 of the cryptographic game, more precisely, Brickell, Chen & Li state *“*\[the adversary is\]* not allowed to make Sign *\[queries\]* with $\texttt{bsn}$ if $\texttt{bsn}\not= {\perp}$ *\[...\]*"* (Brickell, Chen, and Li 2009, sec. 2.2.2). However, Chen has confirmed that this was unintentional and we only forbid sign requests with $\mathcal{A}$ or $\mathcal{B}$ from using the challenge basename.

In addition, there are some high level distinctions between our description of the privacy property and the description proposed by Brickell, Chen & Li:

1.  *No key verification.* In the original description, by Brickell, Chen & Li, a key constructed by the adversary in the Initial phase is verified, whereas, no verification of the key is performed in our description.

2.  *Static corruption of honest TPMs.* In the original description the adversary can dynamically corrupt honest TPMs, whereas, all TPMs except two are assumed to be corrupt in our description.

3.  *Indistinguishability definition.* In the original description either $\mathcal{A}$ or $\mathcal{B}$ signs the message during the Challenge and privacy is satisfied if the adversary has a negligible advantage over guessing the correct signer. By comparison, in our definition, we consider a run in which $\mathcal{A}$ signs during the challenge and a run in which $\mathcal{B}$ signs during the challenge, and privacy is satisfied if these runs are indistinguishable.

The first abstraction is trivially sound, but not complete (nonetheless, the level of abstraction in the symbolic model typically precludes attacks of this type). The second simplifying abstraction appears to be reasonable since TPMs can be simulated by the adversarial context. Indeed, this is a typical simplification in symbolic models, for example, definitions of ballot secrecy for electronic voting (Kremer and Ryan 2005; Delaune, Kremer, and Ryan 2006; Backes, Hriţcu, and Maffei 2008) and privacy for vehicular ad hoc networks (Dahl, Delaune, and Steel 2010) also fix the set of honest participants. However, it is unknown if these simplifications are sound. The third abstraction is intuitively sound, since an adversary strategy 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. A strategy $\mathcal M'$ for distinguishing $\sigma_1$ and $\sigma_2$ simply tests whether $\mathcal M(\sigma_1)=\mathcal M(\sigma_2)$.

Finally, we will overcome the following shortcoming in the privacy game: the cryptographic game does not permit the adversary to interact with TPMs during the Initial phase. As a consequence, any DAA scheme satisfying the game-based definition may exhibit the following undesirable property, namely, if a malicious issuer interacts with TPMs before constructing a key, then no security assurances are offered. We avoid this limitation by modelling dishonest TPMs as part of the adversarial context and allow the adversary to receive the public keys of honest TPMs during the Initial phase. In future work, the cryptographic game could be revised to allow the adversary to probe the challenger during the Initial phase (the accountability game exhibits the same weakness and could be similarly revised).

## Privacy as an equivalence

Informally, privacy asserts that an adversary cannot distinguish between signatures produced by two distinct signers. We formalise privacy as an observational equivalence property (Definition <a href="#def:daa:anon" data-reference-type="ref" data-reference="def:daa:anon">3</a>) using the *DAA game biprocess* ${{\sf DAA}\textrm{-}{\sf G}}$ (Figure <a href="#fig:daa:anon" data-reference-type="ref" data-reference="fig:daa:anon">4</a>) parametrised by a pair of processes $\langle \sf{Join}, \sf{Sign}\rangle$, which model a DAA scheme’s join and sign algorithms.

<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">$$\begin{gathered}
\nu\,sk_A\mathrel.\nu\,sk_B\mathrel.\big(\overline{c}\langle\mathsf{pk}(sk_A)\rangle\mid\overline{c}\langle\mathsf{pk}(sk_B)\rangle\mid c(w_{\mathsf{params     }}) \mathrel.\\
\nu\,b_A\mathrel. \nu\,b_B\mathrel.(\sf{Challenge}\mid \sf{Signer}\{\textnormal{\raisebox{2pt}{\footnotesize $b_A$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}},\textnormal{\raisebox{2pt}{\footnotesize $sk_A$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_{\mathsf{ek     }}$}}\} \mid\\
\sf{Signer}\{\textnormal{\raisebox{2pt}{\footnotesize $b_B$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}},\textnormal{\raisebox{2pt}{\footnotesize $sk_B$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_{\mathsf{ek     }}$}}\})\big)
\end{gathered}$$</span> such that <span class="math inline">$b_A,b_B,sk_A,sk_B,w_b,w_{\mathsf{ek     }}\not\in (\textnormal{fn}(\sf{Sign})\cup\textnormal{fv}(\sf{Sign})\cup\textnormal{fn}(\sf{Join})\cup\textnormal{fv}(\sf{Join}))$</span> and where</p>
<p> </p>
<div class="center">
<p><span class="math inline">$\sf{Signer}= \nu\,a_j \mathrel. \nu\,a'_j \mathrel. \nu\,a_s \mathrel. \nu\,a'_s \mathrel. (\, ({!\sf{Join}}) \mid ({!\sf{Sign}}) \mid ($</span><br />
<span class="math inline"><em>ν</em> <code>cnt</code> . <em>ν</em> <code>DAASeed</code>.</span><br />
<span class="math inline">$!\overline{a_j}\langle\mbox{$($}{w_{\mathsf{params     }},\texttt{DAASeed},\texttt{cnt},w_{\mathsf{ek     }}}\mbox{$)$}\rangle\mathrel.a'_j(x)\mathrel.$</span><br />
<span class="math inline">$\textnormal{let } x_{\mathsf{cre        }}=\pi_{1}(x) \textnormal{ in }\textnormal{let } x_{\mathsf{tsk        }}=\pi_{2}(x) \textnormal{ in }($</span><br />
<span class="math inline">$!c(y)\mathrel.\textnormal{let } y_{\mathsf{bsn        }}=\pi_{1}(y) \textnormal{ in }\textnormal{let } y_{\mathsf{msg        }}=\pi_{2}(y) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{if } y_{\mathsf{bsn        }}={\perp} \textnormal{ then }$</span><br />
<span class="math inline">$\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},y_{\mathsf{bsn        }},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\mathsf{tsk        }}}\mbox{$)$}\rangle\mathrel.$</span><br />
<span class="math inline">$a'_s(z)\mathrel.\overline{c}\langle z\rangle$</span><br />
<span class="math inline">$\textnormal{ else }$</span><br />
<span class="math inline">$\overline{a_s}\langle\mbox{$($}{w_{\mathsf{params     }},\mbox{$($}{chl^+,y_{\mathsf{bsn        }}}\mbox{$)$},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\mathsf{tsk        }}}\mbox{$)$}\rangle\mathrel.$</span><br />
<span class="math inline">$a'_s(z)\mathrel.\overline{c}\langle z\rangle$</span><br />
<span class="math inline">) | (</span><br />
<span class="math inline">$\overline{w_b}\langle\mbox{$($}{x_{\mathsf{cre        }},x_{\mathsf{tsk        }}}\mbox{$)$}\rangle$</span><br />
<span class="math inline">)</span><br />
<span class="math inline">))</span><br />
<br />
<span class="math inline">$\sf{Challenge}= \nu\,a_s\mathrel.\nu\,a'_s\mathrel{.} (\, (\sf{Sign}) \mid ($</span><br />
<span class="math inline">$b_A(x)\mathrel.\textnormal{let } x_{\mathsf{cre        }}=\pi_{1}(x) \textnormal{ in }\textnormal{let } x_{\mathsf{tsk        }}=\pi_{2}(x) \textnormal{ in }$</span><br />
<span class="math inline">$b_B(y)\mathrel.\textnormal{let } y_{\mathsf{cre        }}=\pi_{1}(y) \textnormal{ in }\textnormal{let } y_{\mathsf{tsk        }}=\pi_{2}(y) \textnormal{ in }$</span><br />
<span class="math inline">$c(z)\mathrel.\textnormal{let } z_{\mathsf{bsn        }}=\pi_{1}(z) \textnormal{ in }\textnormal{let } z_{\mathsf{msg        }}=\pi_{2}(z) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{if } z_{\mathsf{bsn        }}={\perp} \textnormal{ then }$</span><br />
<span class="math inline">$\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_{\mathsf{tsk        }},y_{\mathsf{tsk        }}]\mbox{$)$}\rangle\mathrel.$</span><br />
<span class="math inline">$a'_s(z)\mathrel.\overline{c}\langle z\rangle$</span><br />
<span class="math inline">$\textnormal{ else }$</span><br />
<span class="math inline">$\overline{a_s}\langle\mbox{$($}w_{\mathsf{params     }},\mbox{$($}{chl^-,z_{\mathsf{bsn        }}}\mbox{$)$},z_{\mathsf{msg        }},$</span><br />
<span class="math inline">$\qquad\qquad\qquad\qquad\quad\;\;\textnormal{diff}[x_{\mathsf{cre        }},y_{\mathsf{cre        }}],\textnormal{diff}[x_{\mathsf{tsk        }},y_{\mathsf{tsk        }}]\mbox{$)$}\rangle\mathrel.$</span><br />
<span class="math inline">$a'_s(z)\mathrel.\overline{c}\langle z\rangle$</span><br />
<span class="math inline">))</span></p>
</div>
<p> </p>
<p>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 privacy in DAA</figcaption>
</figure>

<div id="def:daa:anon" class="definition">

**Definition 3** (Privacy). *Given a pair of processes $\langle \sf{Join},$ $\sf{Sign}\rangle$, *privacy* is satisfied if the DAA game biprocess ${\sf DAA}\textrm{-}{\sf G}$ satisfies observational equivalence.*

</div>

Let us critique the suitability of Definition <a href="#def:daa:anon" data-reference-type="ref" data-reference="def:daa:anon">3</a> by relating the operations performed in ${\sf DAA}\textrm{-}{\sf G}$ to those performed in our description of privacy.

#### Modelling the Initial phase

Biprocess ${\sf DAA}\textrm{-}{\sf G}$ defines the TPM endorsement keys $\nu\,sk_A$ and $\nu\,sk_B$ (these keys are defined during manufacture (*<span class="nocase">TPM Specification version 1.2</span>* 2007)), outputs the public part of these keys, and inputs $w_{\mathsf{params     }}$, where $w_{\mathsf{params     }}$ captures inputting a public key $\mathsf{pk}(sk_I)$ and any additional parameters from the adversary, therefore, immediately corresponding to the *Initial* step of our description. (As observed by Rudolph (Rudolph 2007), and specified in our description and enforced by our biprocess ${\sf DAA}\textrm{-}{\sf G}$, privacy can only be expected if both signers use the same system parameters, that is, the signers do not accept distinct system parameters from the issuer.)

#### Modelling Phases 1 & 2

The processes $\sf{Signer}\{\textnormal{\raisebox{2pt}{\footnotesize $b_A$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}},\allowbreak\textnormal{\raisebox{2pt}{\footnotesize $sk_A$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_{\mathsf{ek     }}$}}\}$ and $\sf{Signer}\{\allowbreak\textnormal{\raisebox{2pt}{\footnotesize $b_B$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}},\allowbreak\textnormal{\raisebox{2pt}{\footnotesize $sk_B$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_{\mathsf{ek     }}$}}\}$, which form part of biprocess ${\sf DAA}\textrm{-}{\sf G}$, allow the adversary to initiate two signers and perform arbitrarily many join and sign requests, capturing *Phases 1 & 2* of our description (we over-approximate the capabilities of the signers and do not formally distinguish between Phases 1 & 2). Formally, we model a signer’s ability to perform join and sign requests by permitting the $\sf{Signer}$ process to instantiate the $\sf{Join}$ and $\sf{Sign}$ processes, which are expected to behave like services, that is, they can be called by, and return results to, the $\sf{Signer}$ process. 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 (in this article we consider a static counter value for simplicity, in particular, we do not model incrementing a counter) and the bound name $\texttt{DAASeed}$ represents the TPM’s internal secret (this value is defined during manufacture (*<span class="nocase">TPM Specification version 1.2</span>* 2007)). The remainder of the $\sf{Signer}$ process models a signer’s ability to execute arbitrarily many instances of the join and sign algorithms (as discussed below), and captures an aspect required by the Challenge phase.

- *Join process.* 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},sk_{M}}\mbox{$)$}\rangle$, where $\mbox{$($}{w_{\mathsf{params     }},\texttt{DAASeed},\texttt{cnt},sk_{M}}\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_{\mathsf{tsk        }}}\mbox{$)$}$ representing the attestation identity credential and TPM’s secret.

Interaction between $\sf{Sign}$ and $\sf{Signer}$ is similar.

- *Sign process.* 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_{\mathsf{tsk        }}}\mbox{$)$}\rangle$, where $\mbox{$($}w_{\mathsf{params     }},y_{\mathsf{bsn        }},y_{\mathsf{msg        }},\allowbreak x_{\mathsf{cre        }},\allowbreak x_{\mathsf{tsk        }}\mbox{$)$}$ represents the algorithm’s parameters. (We shall discuss the distinction between parameters $\mbox{$($}{w_{\mathsf{params     }},y_{\mathsf{bsn        }},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\mathsf{tsk        }}}\mbox{$)$}$ and $\mbox{$($}w_{\mathsf{params     }},\mbox{$($}chl^+,\allowbreak y_{\mathsf{bsn        }}\mbox{$)$},y_{\mathsf{msg        }},x_{\mathsf{cre        }},x_{\mathsf{tsk        }}\mbox{$)$}$ in Section <a href="#sec:limitations" data-reference-type="ref" data-reference="sec:limitations">4.1.1</a>.) 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. The side condition that a sign request must be preceded by at least one join request is enforced by the sequential description of the $\sf{Signer}$ process.

In addition, processes $\sf{Signer}\{\textnormal{\raisebox{2pt}{\footnotesize $b_A$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}},\textnormal{\raisebox{2pt}{\footnotesize $sk_A$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_{\mathsf{ek     }}$}}\}$ and $\sf{Signer}\{\textnormal{\raisebox{2pt}{\footnotesize $b_B$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_b$}},\textnormal{\raisebox{2pt}{\footnotesize $sk_B$}}/\textnormal{\raisebox{-1.5pt}{\footnotesize $w_{\mathsf{ek     }}$}}\}$ communicate their attestation identity credentials (denoted by $x_{\mathsf{cre        }}$) and TPM secrets (denoted by $x_{\mathsf{tsk        }}$) to biprocess $\sf{Challenge}$ using private channels $b_A$ and $b_B$. Moreover, the side condition that signers $\mathcal A$ and $\mathcal B$ are both required to have run the join algorithm at least once during Phase 1 is enforced by the sequential inputs on channels $b_A$ and $b_B$ in biprocess $\sf{Challenge}$.

#### Modelling the Challenge phase

Biprocess $\sf{Challenge}$ forms part of biprocess ${\sf DAA}\textrm{-}{\sf G}$ and is designed to capture the behaviour of the signers in the Challenge phase of our description. Biprocess $\sf{Challenge}$ inputs the attestation identity credentials and TPM secrets produced by the signers. Biprocess $\sf{Challenge}$ also inputs a basename and a message from the environment. The inputs (namely, $x$, $y$, and $z$) to biprocess $\sf{Challenge}$ are used to construct a signature and the biprocess uses $\textnormal{diff}[x_{\mathsf{cre        }},y_{\mathsf{cre        }}]$ and $\textnormal{diff}[x_{\mathsf{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})$.

#### Modelling the Result phase

The *Result* phase of our description is captured using observational equivalence.

### Limitations

We assume that the processes $\sf{Join}$ and $\sf{Sign}$ are initiated by input on channels $a_j$ and $a_s$ and, similarly, output results on channels $a'_j$ and $a'_s$. Intuitively, it follows that some processes not satisfying these conditions will satisfy our definition of privacy, in fact, the pair of processes $\langle 0, 0 \rangle$ will satisfy our definition. We tolerate this limitation here, and future work could consider a complete definition of the DAA properties, including: correctness, linkability, non-frameability, and unforgeability. The correctness property will exclude degenerate pairs of processes such as $\langle 0, 0 \rangle$. Similar considerations are made in the literature, for example, degenerate processes can satisfy the definition of ballot secrecy for electronic voting by Delaune, Kremer & Ryan (Delaune, Kremer, and Ryan 2009, 2010) and the definition of privacy for vehicular ad-hoc networks by Dahl, Delaune & Steel (Dahl, Delaune, and Steel 2010).

The necessity for a distinct basename $\mathit{bsn'}$ in the Challenge phase (when $\mathit{bsn'} \not= {\perp}$) is enforced by prefixing the basename $z_{\mathsf{bsn        }}$ used by biprocess $\sf{Challenge}$ with $chl^-$ and, similarly, prefixing the basenames $y_{\mathsf{bsn        }}$ used by the $\sf{Signer}$ process with $chl^+$. Capturing distinct basenames in this manner introduces an abstraction.

# Case study: RSA-based DAA

The first concrete Direct Anonymous Attestation scheme was introduced by Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) and is based on RSA. The TPM specification version 1.2 (*<span class="nocase">TPM Specification version 1.2</span>* 2007), which has been defined as an ISO/IEC international standard (International Organization for Standardization 2009), mandates support for the RSA-based scheme, and the scheme has also been included in the ISO/IEC anonymous digital signature standard (International Organization for Standardization 2011). In this section, we analyse privacy in the RSA-based protocol using our definition.

## Primitives and building blocks

Camenisch-Lysyanskaya (CL) signatures (Camenisch and Lysyanskaya 2003; Lysyanskaya 2002) form the foundations of RSA-based DAA. Unlike most signature schemes, CL signatures are particularly suited to DAA since the scheme supports signing committed values and proving knowledge of a signature is efficient.

#### Signature scheme

A CL signature is denoted $\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{prime        }},x_{\mathsf{rand      }},x_{\mathsf{msg        }})$, where $x_{\mathsf{sk        }}$ is the secret key, $x_{\mathsf{prime        }}$ is a random prime, $x_{\mathsf{rand      }}$ is a nonce, and $x_{\mathsf{msg        }}$ is a message. The prime and nonce components can be derived from a signature. Verification is standard given a signature, message and public key, namely, $\mathsf{checkclsign}(\allowbreak\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{msg        }},\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{prime        }},x_{\mathsf{rand      }},\allowbreak x_{\mathsf{msg        }})) = \mathsf{accept}$.

#### Signature scheme for committed values

Given the public part of a signing key $\mathsf{pk}(x_{\mathsf{sk        }})$, a message $x_{\mathsf{csk     }}$, and commitment factor $x_{\mathsf{cf        }}$, the corresponding commitment is $U = \mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{cf        }},x_{\mathsf{csk     }})$ and the associated signature is $\mathsf{clsign}(x_{\mathsf{sk        }},y_{\mathsf{prime        }},y_{\mathsf{rand      }},U)$, where $y_{\mathsf{prime        }}$ is a randomly chosen prime and $y_{\mathsf{rand      }}$ is a nonce. This signature can be opened to recover $\sigma = \mathsf{clopen}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{cf        }},\mathsf{clsign}(x_{\mathsf{sk        }},\allowbreak y_{\mathsf{prime        }},y_{\mathsf{rand      }},U)) = \mathsf{clsign}(x_{\mathsf{sk        }},y_{\mathsf{prime        }},y_{\mathsf{rand      }}\circ x_{\mathsf{cf        }},x_{\mathsf{csk     }})$ – that is, the signature on $x_{\mathsf{csk     }}$ – where $\circ$ is commutative and associative. (A proof should also be provided to demonstrate that $\sigma$ does not contain a covert channel – such details will be omitted from the model presented here – see Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) or Smyth (Smyth 2011, pp159) for further details.)  
We also consider commitments $\mathsf{commit}(x_{\mathsf{pub        }},x_{\mathsf{csk     }})$, where $x_{\mathsf{pub        }}$ is a public parameter and $x_{\mathsf{csk     }}$ is a message. Our ternary commitment function differs from our binary commitment function by taking a commitment factor as an additional parameter, this corresponds to the distinction made by the underlying mathematical primitives and permits signatures on committed values to be constructed.

We will adopt the notation introduced by Camenisch & Stadler (Camenisch and Stadler 1997) to describe primitives which prove knowledge of, and relations among, discrete logarithms. For instance, given values $K$, $N$, $T$ and $U$, the expression $\mathit{SPK}\{(\alpha,\beta): N = \mathsf{commit}(T,\alpha) \wedge
U = \mathsf{clcommit}(\mathsf{pk}(K),\alpha,\beta)\}(m)$ denotes a signature proof of knowledge of $\alpha,\beta$ such that $N = \mathsf{commit}(T,\alpha)$ and $U = \allowbreak\mathsf{clcommit}(\allowbreak\mathsf{pk}(K),\alpha,\beta)$, where $m$ is the message being signed. In the example, the Greek letters are used for values about which knowledge is being proved and these values are kept secret by the prover. All other values, that is, those from the Latin alphabet, are known to the verifier. The RSA-based DAA scheme uses signature proofs of knowledge to demonstrate possession of attestation identity credentials.

#### 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{prime        }},\allowbreak x_{\mathsf{rand      }},x_{\mathsf{csk     }})$ and commitment factor $x_{\mathsf{cf        }}$, an anonymous credential $\hat\sigma = \mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{cf        }},\allowbreak\sigma)$. The signature proof of knowledge $\mathit{SPK}\{(x_{\mathsf{csk     }},x_{\mathsf{cf        }}) : \mathsf{checkclsign}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{csk     }},\mathsf{clopen}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{cf        }},\hat{\sigma})) = \mathsf{accept}\}(m)$ can then be used to demonstrate that the anonymous credential $\hat\sigma$ is indeed a commitment to a signature on the message $x_{\mathsf{csk     }}$ using commitment factor $x_{\mathsf{cf        }}$.  
The application of our primitives to construct the RSA-based DAA protocol will be considered in the next section.

## Protocol description

For the purpose of studying privacy, it is sufficient to consider the join and sign algorithms. The join algorithm (Figure <a href="#fig:daa:join" data-reference-type="ref" data-reference="fig:daa:join">5</a>) is defined below, given the algorithm’s input: system parameters $\mathsf{pk}(sk_I)$, $\texttt{bsn}_I$, and $K_I$ (that is, the DAA public key, basename, and the long-term key); the TPM’s secret $\texttt{DAASeed}$; a counter value $\texttt{cnt}$; and the TPM’s endorsement key $\mathsf{pk}(sk_M)$.

<figure id="fig:daa:join">
<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;&amp;<br />
&amp;<br />
&amp;&amp;<br />
&amp;<br />
&amp;&amp;<br />
&amp;<br />
&amp;</p>
<p>   &amp;<br />
&amp;&amp;<br />
&amp;<br />
&amp;&amp;<br />
&amp;<br />
&amp;</p>
<p>  &amp;<br />
<br />
&amp;</p>
<p>  <br />
&amp;<br />
&amp;</p>
<p>  &amp;<br />
<br />
&amp;</p>
<p>   &amp;<br />
&amp;<br />
&amp;</p>
<p>  &amp;<br />
&amp;&amp;<br />
</p>
</div>
<p><br />
where <span class="math inline"><em>s</em><em>p</em><em>k</em></span> is shorthand for <span class="math inline"><em>S</em><em>P</em><em>K</em>{(<code>tsk</code>, <em>v</em>′) : <em>N</em><sub><em>I</em></sub> = commit(<em>ζ</em><sub><em>I</em></sub>, <code>tsk</code>) ∧ <em>U</em> = clcommit(pk(<em>s</em><em>k</em><sub><em>I</em></sub>), <em>v</em>′, <code>tsk</code>)}(<em>n</em><sub><em>i</em></sub>, <em>n</em><sub><em>t</em></sub>)</span></p>
</div>
<figcaption>RSA-based DAA join algorithm</figcaption>
</figure>

1.  The host computes $\zeta_I = \mathsf{hash}(\mathsf{0},\texttt{bsn}_I)$ and sends $\zeta_I$ to the TPM. The TPM computes secret $\texttt{tsk}= \mathsf{hash}(\mathsf{hash}(\texttt{DAASeed},\mathsf{hash}(K_I)),\texttt{cnt},\mathsf{0})$ and derives the commitment $N_I = \mathsf{commit}(\zeta_I,\texttt{tsk})$. The TPM also generates a blinding factor $v'$, which is used to compute the commitment $U = \mathsf{clcommit}(\mathsf{pk}(sk_I),v',\texttt{tsk})$. The trusted platform sends $U$ and $N_I$ to the issuer.

2.  The issuer generates a nonce $n_e$, encrypts the nonce with the TPM’s endorsement key $\mathsf{pk}(sk_M)$, and sends the encrypted nonce to the TPM. The TPM decrypts the ciphertext to recover $n_e$, computes $a_U = \mathsf{hash}(U,n_e)$ and sends $a_U$ to the issuer, therefore authenticating as a trusted platform. (Note that the RSA-based DAA protocol does not rely on the authentication technique recommended by the Trusted Computing Group.)

3.  The trusted platform generates a signature proof of knowledge that the messages $U$ and $N_I$ are correctly formed and sends it to the issuer. The proof includes a nonce $n_i$ generated by the issuer and a nonce $n_t$ generated by the TPM, thereby ensuring that both the issuer and the TPM contribute to the proof’s randomness.

4.  The issuer verifies the proof and evaluates a policy to decide if a new credential should be granted (the policy dictates how many distinct credentials may be issued to a particular trusted platform). To proceed, the issuer generates a signature $\mathsf{clsign}(sk_I,e,v'',U)$ and sends it to the trusted platform.

5.  <span id="i" label="i"></span> The trusted platform verifies the signature and opens it to reveal the credential $\texttt{cre}= \mathsf{clsign}(sk_I,e,v' \circ v'',\texttt{tsk})$, that is, the TPM’s secret $\texttt{tsk}$ signed by the issuer.

The join algorithm outputs $\texttt{cre}$ and $\texttt{tsk}$, which can be provided as input to the sign algorithm, along with the system parameters, a basename $\texttt{bsn}$, and message $m$. The sign algorithm proceeds as follows.

6.  If $\texttt{bsn}= {\perp}$, then the host generates a nonce $\zeta$, otherwise, the host computes $\zeta = \mathsf{hash}(\mathsf{0},bsn)$. The host provides the TPM with $\zeta$. The TPM generates a nonce $w$, and computes the commitment $N_V = \mathsf{commit}(\zeta,\texttt{tsk})$ and anonymous credential $\widehat{\texttt{cre}} = \mathsf{clcommit}(\mathsf{pk}(sk_I),w,\texttt{cre})$. The trusted platform then produces a signature proof of knowledge that $\widehat{\texttt{cre}}$ is a commitment to a valid credential 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.

## Signature and equational theory

Before modelling the RSA-based DAA scheme as a process, we construct a suitable signature $\Sigma$ (defined below) to capture the cryptographic primitives used and define an equational theory to capture the relationships between these primitives. $$\begin{gathered}
   \Sigma = \{ \mathsf{accept}, \perp, \mathsf{0}, \mathsf{1}, \mathsf{F}_{\mathsf{join}}, \mathsf{F}_{\mathsf{sign}}, \mathsf{clgetnonce}, \mathsf{clgetprime},  \mathsf{hash}, \mathsf{pk},  \mathsf{commit},\\ \circ, \mathsf{dec}, \mathsf{checkclsign}, \mathsf{checkspk}, \mathsf{clcommit}, \mathsf{clopen},  \mathsf{penc}, \mathsf{spk}, \mathsf{clsign} \}
\end{gathered}$$ Functions $\mathsf{accept}$, $\perp$, $\mathsf{0}$, $\mathsf{1}$, $\mathsf{F}_{\mathsf{join}}$, $\mathsf{F}_{\mathsf{sign}}$ are constant symbols; $\mathsf{clgetnonce}$, $\mathsf{clgetprime}$, $\mathsf{hash}$, $\mathsf{pk}$ are unary functions; $\mathsf{commit}$, $\circ$, $\mathsf{dec}$ are binary functions; $\mathsf{checkclsign}$, $\mathsf{checkspk}$, $\mathsf{clcommit}$, $\mathsf{clopen}$, $\mathsf{penc}$, $\mathsf{spk}$ are ternary functions; and $\mathsf{clsign}$ is a function 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 equations associated with these functions are defined below:

<div class="center">

x xxxxxxxxxx xxxxxxxxxxx $\mathsf{dec}(x_{\mathsf{sk        }},\mathsf{penc}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{rand      }},x_{\mathsf{plain     }})) = x_{\mathsf{plain     }}$  
$\mathsf{clgetprime}(\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{prime        }},x_{\mathsf{rand      }},x_{\mathsf{msg        }})) = x_{\mathsf{prime        }}$  
$\mathsf{clgetnonce}(\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{prime        }},x_{\mathsf{rand      }},x_{\mathsf{msg        }})) = x_{\mathsf{rand      }}$  
$\mathsf{checkclsign}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{msg        }},\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{prime        }},x_{\mathsf{rand      }},x_{\mathsf{msg        }})) = \mathsf{accept}$  
$\mathsf{clopen}(x,x_{\mathsf{rand      }},\mathsf{clcommit}(x,x_{\mathsf{rand      }},x_{\mathsf{plain     }})) = x_{\mathsf{plain     }}$  
$\mathsf{clopen}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{rand      }},\mathsf{clsign}(x_{\mathsf{sk        }},y_{\mathsf{prime        }},y_{\mathsf{rand      }},\mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{rand      }},x_{\mathsf{msg        }})))$  
$\mathrel{=}\mathsf{clsign}(x_{\mathsf{sk        }},y_{\mathsf{prime        }},y_{\mathsf{rand      }}\circ x_{\mathsf{rand      }},x_{\mathsf{msg        }})$

</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 proof 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_{\mathsf{tsk        }},x_{\mathsf{cf        }}),V)) = \mathsf{accept}$  
where $V = (x_{\mathsf{\zeta_I      }},x_{\mathsf{pk        }},\mathsf{commit}(x_{\mathsf{\zeta_I      }},x_{\mathsf{tsk        }}),\mathsf{clcommit}(x_{\mathsf{pk        }},x_{\mathsf{cf        }},x_{\mathsf{tsk        }}) ,x_{\mathsf{msg        }})$  
$\mathsf{checkspk}(\mathsf{F}_{\mathsf{sign}},V,\mathsf{spk}(\mathsf{F}_{\mathsf{sign}},(x_{\mathsf{tsk        }},x_{\mathsf{cf        }}),V)) = \mathsf{accept}$  
where $V = (x_{\mathsf{\zeta      }}, \mathsf{pk}(x_{\mathsf{sk        }}), \mathsf{commit}(x_{\mathsf{\zeta      }},x_{\mathsf{tsk        }}),$  
$\mathsf{clcommit}(\mathsf{pk}(x_{\mathsf{sk        }}),x_{\mathsf{cf        }},\mathsf{clsign}(x_{\mathsf{sk        }},x_{\mathsf{prime        }},x_{\mathsf{rand      }},x_{\mathsf{tsk        }})), x_{\mathsf{msg        }})$

</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.

## Applied pi processes

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

<figure id="fig:daa:rsa-process">
<div class="center">
<p>xx xx <span class="math inline">$\sf{Join}_{\sf RSA} \;\mathrel{\hat{=}}$</span><br />
<span class="math inline">$a_j(w_{\mathsf{params     }},w_{\sf DAASeed},w_{\sf cnt},w_{\mathsf{ek     }})\mathrel.\nu\,v'\mathrel.$</span><br />
<span class="math inline">$\textnormal{let } w_{\mathsf{pk        }}=\pi_{1}(w_{\mathsf{params     }}) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{let } w_{\mathsf{bsn_I        }}=\pi_{2}(w_{\mathsf{params     }}) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{let } w_{\mathsf{K        }}=\pi_{3}(w_{\mathsf{params     }}) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{let } \zeta_I=\mathsf{hash}(\mathsf{0},w_{\mathsf{bsn_I        }}) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{let } \texttt{tsk}=\mathsf{hash}(\mathsf{hash}(w_{\sf DAASeed},\mathsf{hash}(w_{\mathsf{K        }})),w_{\sf cnt},\mathsf{0}) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{let } N_I=\mathsf{commit}(\zeta_I,\texttt{tsk}) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{let } U=\mathsf{clcommit}(w_{\mathsf{pk        }},v',\texttt{tsk}) \textnormal{ in }$</span><br />
<span class="math inline">$\overline{c}\langle\mbox{$($}{N_I,U}\mbox{$)$}\rangle\mathrel.%\\
        c(x)\mathrel.\overline{c}\langle\mathsf{hash}(U,\mathsf{dec}(w_{\mathsf{ek     }},x))\rangle\mathrel . %\\
        c(y)\mathrel.\nu\,n_t\mathrel.$</span><br />
<span class="math inline">$\overline{c}\langle\mbox{$($}{n_t,\mathsf{spk}(\mathsf{F}_{\mathsf{join}},\mbox{$($}{\texttt{tsk},v'}\mbox{$)$},\mbox{$($}{\zeta_I,w_{\mathsf{pk        }},N_I,U,\mbox{$($}{n_t,y}\mbox{$)$}}\mbox{$)$})}\mbox{$)$}\rangle\mathrel.$</span><br />
<span class="math inline">$c(z)\mathrel .\textnormal{let } \texttt{cre}=\mathsf{clopen}(w_{\mathsf{pk        }},v',z) \textnormal{ in }$</span><br />
<span class="math inline">$\textnormal{if } \mathsf{checkclsign}(w_{\mathsf{pk        }},\texttt{tsk},\texttt{cre})=\mathsf{accept} \textnormal{ then }$</span><br />
<span class="math inline">$\overline{a'_j}\langle\mbox{$($}{\texttt{cre},\texttt{tsk}}\mbox{$)$}\rangle$</span><br />
<span class="math inline">$\sf{Sign}_{\sf RSA} \; \mathrel{\hat{=}}$</span><br />
<span class="math inline">$a_s(w_{\mathsf{params     }},w_{\mathsf{bsn        }},w_{\mathsf{msg        }},w_{\mathsf{cre        }},w_{\sf tsk})\mathrel.$</span><br />
<span class="math inline">$\textnormal{let } w_{\mathsf{pk        }}=\pi_{1}(w_{\mathsf{params     }}) \textnormal{ in }$</span><br />
<span class="math inline"><em>c</em>(<em>x</em>) . <em>ν</em> <em>n</em><sub><em>t</em></sub> . <em>ν</em> <em>w</em>.</span><br />
<span class="math inline">$\textnormal{if } w_{\mathsf{bsn        }}=\perp \textnormal{ then }$</span><br />
<span class="math inline">  <em>ν</em> <em>ζ</em>.</span><br />
<span class="math inline">$\quad\textnormal{let } \widehat{\texttt{cre}}=\mathsf{clcommit}(w_{\mathsf{pk        }},w,w_{\mathsf{cre        }}) \textnormal{ in }$</span><br />
<span class="math inline">$\quad\textnormal{let } N_V=\mathsf{commit}(\zeta,w_{\sf tsk}) \textnormal{ in }$</span><br />
<span class="math inline">$\quad\textnormal{let } spk=\mathsf{spk}(\mathsf{F}_{\mathsf{sign}},\mbox{$($}{w_{\sf tsk},w}\mbox{$)$},\mbox{$($}{\zeta,w_{\mathsf{pk        }},N_V,\widehat{\texttt{cre}},\mbox{$($}{n_t,x,w_{\mathsf{msg        }}}\mbox{$)$}}\mbox{$)$}) \textnormal{ in }$</span><br />
<span class="math inline">$\quad\overline{a'_s}\langle\mbox{$($}{\zeta,w_{\mathsf{pk        }},N_V,\widehat{\texttt{cre}},n_t,spk}\mbox{$)$}\rangle$</span><br />
<span class="math inline">$\textnormal{ else }$</span><br />
<span class="math inline">$\quad\textnormal{let } \zeta=\mathsf{hash}(\mathsf{0},w_{\mathsf{bsn        }}) \textnormal{ in }$</span><br />
<span class="math inline">$\quad\textnormal{let } \widehat{\texttt{cre}}=\mathsf{clcommit}(w_{\mathsf{pk        }},w,w_{\mathsf{cre        }}) \textnormal{ in }$</span><br />
<span class="math inline">$\quad\textnormal{let } N_V=\mathsf{commit}(\zeta,w_{\sf tsk}) \textnormal{ in }$</span><br />
<span class="math inline">$\quad\textnormal{let } spk=\mathsf{spk}(\mathsf{F}_{\mathsf{sign}},\mbox{$($}{w_{\sf tsk},w}\mbox{$)$},\mbox{$($}{\zeta,w_{\mathsf{pk        }},N_V,\widehat{\texttt{cre}},\mbox{$($}{n_t,x,w_{\mathsf{msg        }}}\mbox{$)$}}\mbox{$)$}) \textnormal{ in }$</span><br />
<span class="math inline">$\quad\overline{a'_s}\langle\mbox{$($}{\zeta,w_{\mathsf{pk        }},N_V,\widehat{\texttt{cre}},n_t,spk}\mbox{$)$}\rangle$</span></p>
</div>
<figcaption>Applied pi processes for RSA-based DAA</figcaption>
</figure>

The join process $\sf{Join}_{\sf RSA}$ is instantiated by inputting the join algorithm’s parameters: the RSA-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 triple containing the DAA public key $w_{\mathsf{pk        }}$, basename $w_{\mathsf{bsn_I        }}$, and long-term key $K_I$. The process constructs the terms $N_I$ and $U$ in accordance with the protocol’s description (Section <a href="#daa:rsa:desc" data-reference-type="ref" data-reference="daa:rsa:desc">5.2</a>) and outputs the values to the issuer. The process then receives a ciphertext $x$, which it decrypts, and outputs the hash of the plaintext paired with $U$. A nonce $y$ is then input and a signature proof of knowledge is produced, using $y$ as a source of randomness in the proof. Finally, the process inputs a signature $z$ on the commitment $U$ and concludes by outputting the attestation identity credential $\texttt{cre}$ and TPM’s secret $\texttt{tsk}$ on the private channel $a_j'$, that is, the $\sf{Join}_{\sf RSA}$ process returns the values $\texttt{cre}$ and $\texttt{tsk}$ to the $\sf{Signer}$ process. The sign process $\sf{Sign}_{\sf RSA}$ is instantiated by inputting the sign algorithm’s parameters: the RSA-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}$. (For simplicity, we do not capture the possibility of signing a message produced by the TPM using private data.) The process recovers the DAA public key $w_{\mathsf{pk        }}$ from the system parameters, and inputs a nonce $x$ from the verifier. The if-then-else branch models the signer’s ability to produce either 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 RSA}$ process returns the signature to the $\sf{Signer}$ process.

## Analysis: Violating privacy

The DAA game biprocess ${\sf DAA}\textrm{-}{\sf G}_{\sf RSA}$ derived from $\langle \sf{Join}_{\sf RSA}, \sf{Sign}_{\sf RSA} \rangle$ does not satisfy privacy. Informally, this can be observed by consideration of the following adversaries.

#### Passive adversary

A passive adversary can violate privacy under the following assumptions: first, the identity of a trusted platform can be observed during the join algorithm[^2]; secondly, there exists a basename which is shared between an issuer and a verifier; and, thirdly, a signer is willing to use the same basename with an issuer and verifier. By our second assumption, there exists an issuer’s basename $\texttt{bsn}_I$ and a verifier’s basename $\texttt{bsn}$ such that $\texttt{bsn}_I = \texttt{bsn}$. The attack proceeds as follows. Let us suppose that the trusted platform executes the join protocol with the issuer and subsequently runs the sign protocol with the verifier. Since the signer is willing to use the same basename with an issuer and verifier, it follows that $\zeta_I = \zeta$ and $N_I = N_V$. The commitments $N_I$ and $N_V$ are unique for a particular signer and the adversary knows the identity of the trusted platform that produced $N_I$ during the join algorithm, it follows that the signer’s identity can be revealed.

#### Corrupt issuers and verifiers

Corrupt issuers and verifiers can violate privacy under the assumption that a signer is willing to use the same basename with an issuer and verifier. This is a special case of our passive attack: an issuer and verifier conspire to use the same basename (that is, $\texttt{bsn}_I = \texttt{bsn}$) and since the issuer knows the identity of the trusted platform that produced $N_I$, the identity of the signer can be revealed.  
The linchpin of these attacks is the willingness of a signer to use the same basename with an issuer and verifier. This can be justified as follows. Firstly, this mode of operation is not explicitly forbidden by the protocol definition (Brickell, Camenisch, and Chen 2004). Secondly, this behaviour is expected when the issuer and verifier are the same entity, as demonstrated by Camenisch *et al.* (Camenisch and Lysyanskaya 2001; Camenisch and Herreweghen 2002) in the *idemix* system, for example. Finally, the signer has insufficient resources to detect the use of the same basename with an issuer and verifier.

Formally, Theorem <a href="#thm:daa:anon" data-reference-type="ref" data-reference="thm:daa:anon">1</a> demonstrates that ${\sf DAA}\textrm{-}{\sf G}_{\sf RSA}$ does not satisfy privacy. This result is witnessed using a context $C[\_]$ such that $\textnormal{fst}(\allowbreak C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}]) \xrightarrow{}^* Q$ and $Q$ can output on channel $b$, but there is no reduction $\textnormal{snd}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}]) \xrightarrow{}^* Q'$ such that $Q'$ can output on $b$, where both reductions are of the same length. Intuitively, the context behaves as follows. First, the context outputs system parameters $\mbox{$($}{\mathsf{pk}(sk_I),\texttt{bsn}, K_I}\mbox{$)$}$. Secondly, the context executes the join algorithm with both signers and binds $\mbox{$($}\mathsf{commit}(\mathsf{hash}(\mathsf{0},\texttt{bsn}),\texttt{tsk}),\mathsf{clcommit}(\mathsf{pk}(sk_I),v',\allowbreak\texttt{tsk})\mbox{$)$}$ to $x$, where $\texttt{tsk}= \mathsf{hash}(\mathsf{hash}(\texttt{DAASeed},\mathsf{hash}(K_I)),\texttt{cnt},\mathsf{0})$ and $\texttt{cnt}$, $\texttt{DAASeed}$ and $v'$ are restricted names. Thirdly, the context issues a challenge using the basename $\texttt{bsn}$ and message ${\sf msg}$, and binds $T$ to $y$, where $\pi_{3}(T) = \mathsf{commit}(\mathsf{hash}(\mathsf{0},\allowbreak\texttt{bsn}),\textnormal{diff}[\texttt{tsk},\texttt{tsk}'])$, $\texttt{tsk}' = \mathsf{hash}(\mathsf{hash}(\texttt{DAASeed}',\mathsf{hash}(K_I)),\texttt{cnt}',\mathsf{0})$, and $\texttt{cnt}'$ and $\texttt{DAASeed}'$ are restricted names. Finally, the context compares $\pi_{1}(x)$ and $\pi_{3}(y)$ to derive a distinction between $\textnormal{fst}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}])$ and $\textnormal{snd}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}])$.

<div id="thm:daa:anon" class="theorem">

**Theorem 1**. *The pair of processes $\langle \sf{Join}_{RSA}, \sf{Sign}_{RSA} \rangle$ do not satisfy privacy.*

<div class="proof">

**Proof.* Let ${\sf DAA}\textrm{-}{\sf G}_{\sf RSA}$ be the DAA game biprocess derived from $\langle \sf{Join}_{RSA}, \sf{Sign}_{RSA} \rangle$ and consider the evaluation context $C[\_]$ defined below: $$\begin{array}{l}
 \_ \mid \overline{c}\langle\mbox{$($}{\mathsf{pk}(sk_I),\texttt{bsn}, K_I}\mbox{$)$}\rangle\mathrel.\\
 c(w)\mathrel.c(x)\mathrel.\overline{c}\langle\mathsf{penc}(w,n,n_e)\rangle\mathrel.c(z_a)\mathrel.
	\textnormal{if } z_a=\mathsf{hash}(n_e,\pi_{2}(x)) \textnormal{ then }\\
 \overline{c}\langle n_i\rangle\mathrel.c(z_s)\mathrel.\overline{c}\langle\mathsf{clsign}(sk_I,e,v'',\pi_{2}(x))\rangle\mathrel.\\
 c(w')\mathrel.c(x')\mathrel.\overline{c}\langle\mathsf{penc}(w',n,n_e)\rangle\mathrel.c(z'_a)\mathrel.
	\textnormal{if } z'_a=\mathsf{hash}(n_e,\pi_{2}(x')) \textnormal{ then }\\
 \overline{c}\langle n_i\rangle\mathrel.c(z'_s)\mathrel.\overline{c}\langle\mathsf{clsign}(sk_I,e,v'',\pi_{2}(x'))\rangle\mathrel.\\
 \overline{c}\langle\mbox{$($}{\texttt{bsn},{\sf msg}}\mbox{$)$}\rangle\mathrel.\overline{c}\langle n_v\rangle\mathrel.c(y)\mathrel.
            \textnormal{if } \pi_{1}(x)=\pi_{3}(y) \textnormal{ then } \overline{b}\langle{\sf fail}\rangle \textnormal{ else }0
\end{array}$$ We have the following reductions: $$\begin{aligned}
\textnormal{fst}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}]) \xrightarrow{}^*&\ C'[\textnormal{if } M=M \textnormal{ then } \overline{b}\langle{\sf fail}\rangle \textnormal{ else }0] \\
%\] and
%\[
\textnormal{snd}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}]) \xrightarrow{}^*&\ C'[\textnormal{if } M=N \textnormal{ then } \overline{b}\langle{\sf fail}\rangle \textnormal{ else }0],
%\]
\end{aligned}$$ where $M = \mathsf{commit}(\mathsf{hash}(\mathsf{0},\texttt{bsn}),\mathsf{hash}(\mathsf{hash}(\texttt{DAASeed},\allowbreak\mathsf{hash}(K_I)),\texttt{cnt},\mathsf{0}))$ and $N = \mathsf{commit}(\mathsf{hash}(\mathsf{0},\texttt{bsn}),\allowbreak\mathsf{hash}(\mathsf{hash}(\texttt{DAASeed}',\mathsf{hash}(K_I)),\texttt{cnt}',\mathsf{0}))$. It follows that $\textnormal{fst}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}]) \not\sim \textnormal{snd}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}])$ because $\textnormal{fst}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}])$ can output on channel $b$ but $\textnormal{snd}(C[{\sf DAA}\textrm{-}{\sf G}_{\sf RSA}])$ cannot and, therefore, ${\sf DAA}\textrm{-}{\sf G}_{\sf RSA}$ does not satisfy privacy. ◻*

</div>

</div>

The context $C[\_]$ was discovered by manual reasoning and, subsequently, we found that ProVerif finds a similar context. (Analysis takes 39 seconds using ProVerif 1.86pl3 on CentOS 5.7 with 2.40GHz Intel Xeon and 4GB memory. Our ProVerif scripts are available online.) An attack in the computational model follows immediately from our result in the symbolic setting (Theorem <a href="#thm:daa:anon" data-reference-type="ref" data-reference="thm:daa:anon">1</a>), see Smyth (Smyth 2011, Appendix B) for details.

## Solution: Fixing RSA-based DAA

The protocol can be fixed by refining the definition of $\zeta$, namely, let $\langle \sf{Join}_{RSA'},\allowbreak \sf{Sign}_{RSA'} \rangle$ refine $\langle \sf{Join}_{RSA}, \sf{Sign}_{RSA} \rangle$ by redefining $\zeta$ as $\zeta = \mathsf{hash}(\mathsf{1},\texttt{bsn})$. The attacks presented are no longer possible, regardless of whether $\texttt{bsn}_I = \texttt{bsn}$. Furthermore, the revised pair of processes $\langle \sf{Join}_{RSA'}, \sf{Sign}_{RSA'} \rangle$ satisfy privacy; this can be automatically verified using ProVerif (verification takes 26 seconds using ProVerif 1.86pl3 on CentOS 5.7 with 2.40GHz Intel Xeon and 4GB memory; our ProVerif scripts are available online).

## Limitations

Our representation of cryptographic primitives and relations between primitives (Section <a href="#sec:eq" data-reference-type="ref" data-reference="sec:eq">5.3</a>) is an abstraction. For instance, we assume cryptography is perfect (i.e., the attacker is only able to perform cryptographic operations when in possession of the required keys) and do not capture the low-level mathematical details of the cryptography. Moreover, on the basis that both the host and TPM must be honest for privacy, we do not distinguish between operations performed by the host and TPM. The difficulty of capturing cryptography in the symbolic model is well known (P. Y. A. Ryan and Schneider 1998; Abadi and Rogaway 2000, 2002; Warinschi 2003, 2005) and is particularly difficult in this instance due to the complexity of DAA. Nevertheless, our analysis (Section <a href="#sec:daa:RSA:analysis" data-reference-type="ref" data-reference="sec:daa:RSA:analysis">5.5</a>) discovers an attack against the RSA-based DAA protocol, thereby demonstrating the practicalitiy of symbolic analysis. However, we acknowledge that our security results for the fixed RSA-based DAA protocol (Section <a href="#sec:daa:RSA:solution" data-reference-type="ref" data-reference="sec:daa:RSA:solution">5.6</a>) do not imply the absence of real-world attacks, due to the gulf between our symbolic representation of cryptography and the concrete implementation.

# Balancing privacy and accountability

Balancing the privacy demands of users and the accountability needs of issuers and verifiers is a fundamental objective of Direct Anonymous Attestation schemes, in particular, DAA schemes permit signatures to be linked, without revealing the identity of the signer. The degrees of linkability are identified below, with reference to an application domain in which an honest issuer offers membership to a single group of signers and several verifiers offer multiple services.

- *Single-service linkability.* A verifier offering a single service is able to link transactions made by a given signer.

- *Cross-service linkability.* A verifier offering multiple services is able to link transactions made by a given signer over multiple services, when the services share the same basename.

- *Cross-verifier linkability.* Multiple verifiers offering services are able to link transactions made by a given signer across all the verifiers, when the services share the same basename.

In this section, we reflect upon the notions of linkability for Direct Anonymous Attestation schemes and extend the degree of privacy available in such schemes.

##  Linkability between an issuer’s groups

Let us identify an issuer by its long-term key $K_I$, and recall that the game-based security definition by Brickell, Chen & Li (Brickell, Chen, and Li 2008b, 2009) assumes that an issuer controls a single group of signers, where the group of signers is identified by a public key $\mathsf{pk}(sk_I)$. In this section, we generalise to the situation in which an issuer may issue credentials to several groups of signers, where each group of signers is associated with a different key $\mathsf{pk}(sk_I)$. In this situation, one can ask the following question:

- Can a verifier link two signatures constructed using distinct DAA public keys $\mathsf{pk}(sk_I)$ and $\mathsf{pk}(sk'_I)$, each belonging to the same issuer? We call this *linkability between an issuer’s groups*.

The RSA-based scheme permits linkability between an issuer’s groups, when the signatures share the same basename. This can be observed as follows: given the issuer’s long-term key $K_I$ and the basename $\texttt{bsn}$ such that $\texttt{bsn}\not= {\perp}$, the TPM’s secret $\texttt{tsk}= \mathsf{hash}(\mathsf{hash}(\texttt{DAASeed},\allowbreak\mathsf{hash}(K_I)),\texttt{cnt},\mathsf{0})$ and signatures produced using $\texttt{tsk}$ will include $N_V = \mathsf{commit}(\zeta,\texttt{tsk})$, where $\zeta =
\mathsf{hash}(\mathsf{1},\texttt{bsn})$. (In the computational setting, linkability between an issuer’s groups assumes that the groups’ public keys share the same modulus $\Gamma$ and order $\rho$, see (Brickell, Camenisch, and Chen 2004, sec. 4.3) for definitions of $\Gamma$ and $\rho$.) We can modify the RSA-based scheme to prevent linkability between an issuer’s groups by defining $\zeta = \mathsf{hash}(\mathsf{1},\texttt{bsn},\mathsf{pk}(sk_I))$, rather than $\zeta = \mathsf{hash}(\mathsf{1},\texttt{bsn})$. Intuitively, linkability between an issuer’s groups strengthens accountability and weakens privacy, hence, the original RSA-based scheme provides stronger accountability, whereas our modification provides stronger privacy.

## Practical guidelines for basenames

Basenames are particularly sensitive for DAA because they enable linkability and the ability to uniquely identify a set of services for which a basename can be used is a prerequisite of user-controlled linkability. However, no methodology for basename construction has been defined and this may lead to a security vulnerability. For example, a signer may inadvertently permit signatures to be linked, simply by using the same basename for multiple signatures; we argue that this scenario is likely because signers have insufficient resources to maintain a history of all basenames. We overcome this problem with the presentation of guidelines for the construction of basenames. First, basenames should be constructed from service-specific data such as the following:

- Service information, for example, issuer’s public key, verifier’s public key, service URL, and terms and conditions of service.

- Basename validity date, for example, start and expiry dates.

- DAA signing mode, for example, Attestation Identity Key (AIK) signing, Platform Configuration Register (PCR) signing, and external input signing.

Secondly, given a basename constructed in this manner, a signer can evaluate whether the basename is suitable for use with a particular service. It follows immediately that our construction helps *inform* a signer that signatures can be linked.

# Further work and conclusion

Direct Anonymous Attestation is a relatively new concept and its properties merit further study, in particular, correctness, linkability, non-frameability and unforgeability 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, anonymity, correctness, linkability, non-frameability, unforgeability, and unlinkability) 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 privacy 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 accountability 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.

For privacy it is necessary to ensure a distinct basename is used during the Challenge. Since the applied pi calculus does not record state, this is achieved by an abstraction. Accordingly, we believe the definition is necessary, but may not be sufficient. This limitation could be overcome by introducing a stateful variant of the applied pi calculus, indeed, Arapinis, Ritter & Ryan (Arapinis, Ritter, and Ryan 2011) make some progress in this direction. A further limitation of our privacy definition is the restriction to settings with one issuer, indeed, this corresponds to the cryptographic game. Extending the definition to multiple issuers remains as future work.

#### Conclusion

This article presents a definition of privacy for Direct Anonymous Attestation protocols. The definition is expressed as an equivalence property which is suited to automated reasoning and the practicality of the approach is demonstrated

by evaluating the RSA-based Direct Anonymous Attestation protocol. The RSA-based scheme is particularly significant because support is mandated by the TPM specification version 1.2, which has been implemented and deployed in over 500 million computers (although the number of TPMs in active use is estimated to be significantly smaller). The analysis discovers a vulnerability which can be exploited by a passive adversary and, under weaker assumptions, by corrupt issuers and verifiers. A security fix is identified and the revised protocol is shown to satisfy our definition of privacy. The fix only affects the host’s part of the protocol and, therefore, no hardware changes to the TPM are required. Furthermore, the fix has influenced the design of subsequent DAA schemes, for example, (Brickell, Chen, and Li 2008a, 2009).

# 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 David Bernhard for his discussion with regards Section <a href="#sec:discussion" data-reference-type="ref" data-reference="sec:discussion">6</a> and the anonymous reviewers who provided constructive criticism. This research was funded by the ERC projects *CRYSP* (259639) and *ProSecure* (258865). Smyth’s work was partly conducted at: the School of Computer Science, University of Birmingham, UK; Loria, CNRS & INRIA Nancy Grand Est, France; and INRIA Paris-Rocquencourt, France

# A brief review of DAA schemes

The first concrete Direct Anonymous Attestation scheme was introduced by Brickell, Camenisch & Chen (Brickell, Camenisch, and Chen 2004) and is based upon RSA. However, RSA-based cryptography requires larger keys than equivalent ECC-based schemes. Moreover, the RSA-based DAA protocol is reliant on the strong RSA and decisional Diffie-Hellman assumptions, and some users are uncomfortable with the strong RSA assumption. This motivated the work of Brickell, Chen & Li (Brickell, Chen, and Li 2008a, 2009) who provide the first ECC-based DAA protocol using symmetric pairing. This scheme is more efficient and, therefore, better suited to devices with limited resources, such as the TPM. Furthermore, the ECC-based protocol is reliant on the LRSW (Lysyanskaya et al. 2000) and decisional Bilinear Diffie-Hellman assumptions, which some users may prefer. Chen, Morrissey & Smart (L. Chen, Morrissey, and Smart 2008a, 2008b) extended the scheme based upon symmetric pairing to an asymmetric setting to improve efficiency. However, Li discovered a vulnerability in the asymmetric scheme which violates basename linkability and Chen & Li propose a fix (L. Chen and Li 2010a); a further attack has been identified by Chen, Morrissey & Smart (L. Chen, Morrissey, and Smart 2009) which, in theory, violates unforgeability. In addition, Chen, Morrissey & Smart (L. Chen, Morrissey, and Smart 2011) have found theoretical accountability attacks against the symmetric pairing based scheme (Brickell, Chen, and Li 2008a, 2009) and the original RSA-based scheme (Brickell, Camenisch, and Chen 2004). The Chen, Morrissey & Smart (L. Chen, Morrissey, and Smart 2009, 2011) attacks allow a malicious host to extract the TPM’s secret $\texttt{tsk}$, if the protocol is implemented in hardware without *stage control mechanisms*; the host can then forge signatures. However, since the TPM provides stage control protection, there is no practical threat in the current setting; but, these attacks are of practical interest because they identify settings in which DAA protocols cannot be deployed (for example, in other trusted computing settings which do not use the TPM). We remark that the analysis of unforgeability in the RSA-based scheme by Backes, Maffei & Unruh (Backes, Maffei, and Unruh 2008) could not identify the Chen, Morrissey & Smart attack because they consider a setting where the host and TPM are both honest. Chen, Morrissey & Smart (L. Chen, Morrissey, and Smart 2009, 2011) also propose a new asymmetric scheme and Chen, Page & Smart (L. Chen, Page, and Smart 2010) propose an optimisation, moreover, Chen (L. Chen 2010b) provides a further optimisation to the Chen, Page & Smart scheme. Brickell, Chen & Li (Brickell, Chen, and Li 2011) have shown that an adversary can forge signatures in the variant by Chen and propose a fix. We are aware of six further ECC-based DAA protocols: Chen & Feng (X. Chen and Feng 2008), Brickell & Li (Brickell and Li 2009b, 2009a), Chen (L. Chen 2010a, 2011), Brickell & Li (Brickell and Li 2010), Bernhard *et al.* (Bernhard et al. 2011), and Bernhard, Fuchsbauer & Ghadafi (Bernhard, Fuchsbauer, and Ghadafi 2012).

# References

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

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

Abadi, Martı́n, and Phillip Rogaway. 2000. “<span class="nocase">Reconciling Two Views of Cryptography (The Computational Soundness of Formal Encryption)</span>.” In *IFIP TCS’00: 1st International Conference on Theoretical Computer Science*, 1872:3–22. LNCS. Springer.

</div>

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

———. 2002. “<span class="nocase">Reconciling Two Views of Cryptography (The Computational Soundness of Formal Encryption)</span>.” *Journal of Cryptology* 15 (2): 103–27.

</div>

<div id="ref-Anderson03:TrustedComputing" class="csl-entry">

Anderson, Ross J. 2003. “<span class="nocase">Cryptography and Competition Policy - Issues with ‘Trusted Computing’</span>.” In *PODC’03: 22nd ACM Symposium on Principles of Distributed Computing*, 3–10. ACM Press.

</div>

<div id="ref-Anderson04:TrustedComputing" class="csl-entry">

———. 2004. “<span class="nocase">Cryptography and Competition Policy - Issues with ‘Trusted Computing’</span>.” In *Economics of Information Security*, edited by L. Jean Camp and Stephen Lewis, 12:35–52. Advances in Information Security. Springer.

</div>

<div id="ref-ArapinisCSF11:Stateful-Applied-Pi" class="csl-entry">

Arapinis, Myrto, Eike Ritter, and Mark Ryan. 2011. “<span class="nocase">StatVerif: Verification of Stateful Processes</span>.” In *CSF’11: 24th IEEE Computer Security Foundations Symposium*, 33–47. IEEE Computer Society.

</div>

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

Backes, Michael, Cătălin Hriţcu, and Matteo Maffei. 2008. “<span class="nocase">Automated Verification of Remote Electronic Voting Protocols in the Applied Pi-calculus</span>.” In *CSF’08: 21st IEEE Computer Security Foundations Symposium*, 195–209. IEEE Computer Society.

</div>

<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-Bernhard12:DAA" class="csl-entry">

Bernhard, D., G. Fuchsbauer, and E. Ghadafi. 2012. “<span class="nocase">Efficient Signatures of Knowledge and DAA in the Standard Model</span>.” Cryptology ePrint Archive, Report 2012/475.

</div>

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

Bernhard, D., G. Fuchsbauer, E. Ghadafi, N. P. Smart, and B. Warinschi. 2011. “Anonymous Attestation with User-Controlled Linkability.” Cryptology ePrint Archive, Report 2011/658.

</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. “<span class="nocase">ProVerif 1.86pl3: Automatic Cryptographic Protocol Verifier, User Manual and Tutorial</span>.” <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-Chen04:DAA-in-context" class="csl-entry">

———. 2005. “<span class="nocase">The DAA scheme in context</span>.” In *Trusted Computing*, edited by Chris Mitchell, 6:143–74. Professional Applications of Computing Series. The Institute of Engineering; Technology.

</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-Chen11:ECC-DAA-assymmetric-further-optimised-attack" class="csl-entry">

———. 2011. “<span class="nocase">A (Corrected) DAA Scheme Using Batch Proof and Verification</span>.” In *INTRUST’11: 3rd International Conference on Trusted Systems*, 7222:304–37. LNCS. Springer.

</div>

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

Brickell, Ernie, and Jiangtao Li. 2009a. “<span class="nocase">Enhanced Privacy ID from Bilinear Pairing</span>.” Cryptology ePrint Archive, Report 2009/095.

</div>

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

———. 2009b. “<span class="nocase">Enhanced Privacy ID: A Remote Anonymous Attestation Scheme for Hardware Devices</span>.” *Intel Technology Journal Security* 13 (2): 96–111.

</div>

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

———. 2010. “A Pairing-Based DAA Scheme Further Reducing TPM Resources.” In *TRUST’10: 3rd International Conference on Trust and Trustworthy Computing*, 6101:181–95. LNCS. Springer.

</div>

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

Camenisch, Jan, and Els Van Herreweghen. 2002. “<span class="nocase">Design and Implementation of the *idemix* Anonymous Credential System</span>.” In *CCS’02: 9th ACM Conference on Computer and Communications Security*, 21–30. ACM Press.

</div>

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

Camenisch, Jan, and Anna Lysyanskaya. 2001. “<span class="nocase">An Efficient System for Non-transferable Anonymous Credentials with Optional Anonymity Revocation</span>.” In *EUROCRYPT’01: 20th International Conference on the Theory and Applications of Cryptographic Techniques*, 2045:93–118. LNCS. Springer.

</div>

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

———. 2003. “<span class="nocase">A Signature Scheme with Efficient Protocols</span>.” In *SCN’02: 3rd Conference on Security in Communication Networks*, 2576:268–89. 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-Cesena10" class="csl-entry">

Cesena, Emanuele. 2010. “<span class="nocase">Trace Zero Varieties in Pairing-based Cryptography</span>.” PhD thesis, Department of Mathematics, Universitá degli Studi Roma Tre.

</div>

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

Cesena, Emanuele, Hans Löhr, Gianluca Ramunno, Ahmad-Reza Sadeghi, and Davide Vernizzi. 2010. “<span class="nocase">Anonymous Authentication with TLS and DAA</span>.” In *TRUST’10: 3rd International Conference on Trust and Trustworthy Computing*, 6101:47–62. LNCS. Springer.

</div>

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

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

</div>

<div id="ref-Chen10:ECC-DAA-assymmetric-further-optimised" class="csl-entry">

———. 2010b. “<span class="nocase">A DAA Scheme Using Batch Proof and Verification</span>.” In *TRUST’10: 3rd International Conference on Trust and Trustworthy Computing*, 6101:166–80. LNCS. Springer.

</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-Chen10" class="csl-entry">

Chen, Liqun, and Jiangtao Li. 2010a. “<span class="nocase">A note on the Chen-Morrissey-Smart DAA scheme</span>.” *Information Processing Letters* 110 (12-13): 485–88.

</div>

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

———. 2010b. “<span class="nocase">Revocation of Direct Anonymous Attestation</span>.” In *INTRUST’10: 2nd International Conference on Trusted Systems*, 6802:128–47. LNCS. Springer.

</div>

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

Chen, Liqun, Paul Morrissey, and Nigel P. Smart. 2008a. “<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-Chen08:ECC-DAA-assymmetric" class="csl-entry">

———. 2008b. “<span class="nocase">Pairings in Trusted Computing</span>.” In *Pairing’08: 2nd International Conference on Pairing-Based Cryptography*, 5209:1–17. 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-Chen10:ECC-DAA-assymmetric-optimised" class="csl-entry">

Chen, Liqun, Dan Page, and Nigel P. Smart. 2010. “<span class="nocase">On the Design and Implementation of an Efficient DAA Scheme</span>.” In *CARDIS’10: 8th Internation Conference on Smart Card Research and Advanced Application*, 6035:223–37. LNCS. Springer.

</div>

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

Chen, Xiaofeng, and Dengguo Feng. 2008. “<span class="nocase">Direct Anonymous Attestation for Next Generation TPM</span>.” *Journal of Computers* 3 (12): 43–50.

</div>

<div id="ref-Delaune10:Vanets" class="csl-entry">

Dahl, Morten, Stéphanie Delaune, and Graham Steel. 2010. “<span class="nocase">Formal Analysis of Privacy for Vehicular Mix-Zones</span>.” In *ESORICS’10: 15th European Symposium on Research in Computer Security*, 6345:55–70. LNCS. Springer.

</div>

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

Delaune, Stéphanie, Steve Kremer, and Mark Ryan. 2006. “<span class="nocase">Coercion-Resistance and Receipt-Freeness in Electronic Voting</span>.” In *CSFW’06: 19th Computer Security Foundations Workshop*, 28–42. IEEE Computer Society.

</div>

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

Delaune, Stéphanie, Steve Kremer, and Mark D. Ryan. 2009. “<span class="nocase">Verifying privacy-type properties of electronic voting protocols</span>.” *Journal of Computer Security* 17 (4): 435–87. <https://doi.org/10.3233/JCS-2009-0340>.

</div>

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

———. 2010. “<span class="nocase">Verifying Privacy-Type Properties of Electronic Voting Protocols: A Taster</span>.” In *<span class="nocase">Towards Trustworthy Elections: New Directions in Electronic Voting</span>*, edited by David Chaum, Markus Jakobsson, Ronald L. Rivest, and Peter Y. A. Ryan, 6000:289–309. LNCS. Springer.

</div>

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

Delaune, Stéphanie, Mark D. Ryan, and Ben Smyth. 2007. “Automatic Verification of Privacy Properties in the Applied Pi-Calculus.” CSR-07-12. School of Computer Science, University of Birmingham; <ftp://ftp.cs.bham.ac.uk/pub/tech-reports/2007/CSR-07-12.pdf>.

</div>

<div id="ref-Smyth08:Obs" class="csl-entry">

———. 2008. “Automatic Verification of Privacy Properties in the Applied Pi-Calculus.” In *IFIPTM’08: 2nd Joint iTrust and PST Conferences on Privacy, Trust Management and Security*, 263:263–78. International Federation for Information Processing (IFIP). Springer.

</div>

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

International Organization for Standardization. 2009. *<span class="nocase">ISO/IEC 11889: Information technology – Trusted Platform Module</span>*.

</div>

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

———. 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-Koblitz06" class="csl-entry">

Koblitz, Neal, and Alfred Menezes. 2006. “<span class="nocase">Another Look at “Provable Security". II</span>.” In *INDOCRYPT’06: 7th International Conference on Cryptology*, 4329:148–75. LNCS. Springer.

</div>

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

———. 2007. “<span class="nocase">Another Look at “Provable Security"</span>.” *Journal of Cryptology* 20 (1): 3–37.

</div>

<div id="ref-KR05:vote-privacy" class="csl-entry">

Kremer, Steve, and Mark D. Ryan. 2005. “<span class="nocase">Analysis of an Electronic Voting Protocol in the Applied Pi Calculus</span>.” In *ESOP’05: 14th European Symposium on Programming*, 3444:186–200. LNCS. Springer.

</div>

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

Lysyanskaya, Anna. 2002. “<span class="nocase">Signature Schemes and Applications to Cryptographic Protocol Design</span>.” PhD thesis, Department of Electrical Engineering; Computer Science, Massachusetts Institute of Technology.

</div>

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

Lysyanskaya, Anna, Ronald L. Rivest, Amit Sahai, and Stefan Wolf. 2000. “Pseudonym Systems.” In *SAC’99: 6th International Workshop on Selected Areas in Cryptography*, 1758:184–99. LNCS. Springer.

</div>

<div id="ref-Martin08:TPM" class="csl-entry">

Martin, Andrew. 2008. “<span class="nocase">The ten-page introduction to Trusted Computing</span>.” CS-RR-08-11. University of Oxford.

</div>

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

Meadows, Catherine. 2003. “<span class="nocase">Formal Methods for Cryptographic Protocol Analysis: Emerging Issues and Trends</span>.” *Selected Areas in Communications* 21 (1): 44–54.

</div>

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

Moore, Judy H. 1988. “<span class="nocase">Protocol Failures in Cryptosystems</span>.” In *Proceedings of the IEEE*, 76:594–602. IEEE Computer Society.

</div>

<div id="ref-Rudolph07:DAAFlaw" class="csl-entry">

Rudolph, Carsten. 2007. “<span class="nocase">Covert Identity Information in Direct Anonymous Attestation (DAA)</span>.” In *SEC’07: 22nd International Information Security Conference*, 232:443–48. International Federation for Information Processing (IFIP). Springer.

</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-RyanSchneider98" class="csl-entry">

Ryan, Peter Y. A., and Steve A. Schneider. 1998. “<span class="nocase">An Attack on a Recursive Authentication Protocol. A Cautionary Tale</span>.” *Information Processing Letters* 65 (1): 7–10.

</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-Smyth11:DAA" class="csl-entry">

———. 2011. “<span class="nocase">Formal analysis of anonymity in ECC-based Direct Anonymous Attestation schemes</span>.” In *FAST’11: 8th International Workshop on Formal Aspects of Security and Trust*, 7140:245–62. LNCS. Springer.

</div>

<div id="ref-Stallman02:TrustedComputing" class="csl-entry">

Stallman, Richard. 2002. “Can You Trust Your Computer?” Free Software Foundation.

</div>

<div id="ref-Stallman10:Essays" class="csl-entry">

———. 2010. “Can You Trust Your Computer?” In *Free Software, Free Society*, 2nd ed. GNU Press.

</div>

<div id="ref-Tarnovsky10:TPM-extract-key" class="csl-entry">

Tarnovsky, Christopher. 2010. “<span class="nocase">Deconstructing a ‘Secure’ Processor</span>.” In *Black Hat DC 2010*.

</div>

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

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

</div>

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

Trusted Computing Group. 2011. “<span class="nocase">Do You Know? A Few Notes on Trusted Computing Out in the World</span>.” <http://www.trustedcomputinggroup.org/community/2011/03/do_you_know_a_few_notes_on_trusted_computing_out_in_the_world>.

</div>

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

———. 2012. “<span class="nocase">The Case for Turning on Trusted Platform Modules</span>.” <http://www.trustedcomputinggroup.org/resources/the_case_for_turning_on_trusted_platform_modules>.

</div>

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

Warinschi, Bogdan. 2003. “<span class="nocase">A Computational Analysis of the Needham-Schr<span class="nocase">ö</span>eder-(Lowe) Protocol</span>.” In *CSFW’03: 16th IEEE Computer Security Foundations Workshop*, 248–62. IEEE Computer Society.

</div>

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

———. 2005. “<span class="nocase">A computational analysis of the Needham-Schroeder-(Lowe) protocol</span>.” *Journal of Computer Security* 13 (3): 565–91.

</div>

</div>

[^1]: The necessity for non-frameability was highlighted by Backes, Maffei & Unruh (Backes, Maffei, and Unruh 2008) and formalised by Chen (L. Chen 2010a, 2011), the remaining properties were formalised by Brickell, Chen & Li (Brickell, Chen, and Li 2008b, 2009).

[^2]: The RSA-based DAA protocol (Brickell, Camenisch, and Chen 2004) does not specify how the issuer learns a trusted platform’s public endorsement key during an execution of the join algorithm. However, it seems reasonable to assume that the public key would be sent as plaintext. By contrast, Cesena *et al.* (Cesena et al. 2010; Cesena 2010) define an extension of RSA-based DAA which uses TLS to hide the affiliation between groups and trusted platforms, this variant would thwart a passive adversary, but not corrupt issuers and verifiers.
