You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/cca-veraison/_index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
-
title: Introduction to CCA Attestation with Veraison
2
+
title: Get Started with CCA Attestation and Veraison
3
3
4
4
minutes_to_complete: 30
5
5
6
6
7
-
who_is_this_for: This learning path is aimed at developers who wish to understand attestation in the context of confidential computing, using Arm’s Confidential Computing Architecture (CCA). It will provide you with some practical, hands-on experience with the data formats and workflows associated with attestation, which will help to provide you with a joined-up understanding of the many separate documents and specifications that exist on this topic.
7
+
who_is_this_for: This Learning Path is for developers who would like to learn about attestation in confidential computing, using Arm’s Confidential Computing Architecture (CCA).
8
8
9
9
learning_objectives:
10
-
- Describe the importance of attestation for confidential computing
11
-
- Understand what a CCA attestation token is, and describe its format
12
-
- Inspect the contents of a CCA attestation token using command-line tools
13
-
- Use an attestation verification service to evaluate a CCA attestation token
14
-
- Understand the purpose of the open source Veraison project
10
+
- Describe the importance of attestation for confidential computing.
11
+
- Understand what a CCA attestation token is, and describe its format.
12
+
- Inspect the contents of a CCA attestation token using command-line tools.
13
+
- Use an attestation verification service to evaluate a CCA attestation token.
14
+
- Understand the purpose of the Open source Veraison project.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/cca-veraison/_next-steps.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
next_step_guidance: Now that you have gained some hands-on experience with the data formats and workflows associated with attestation for confidential computing, you may wish to explore some additional resources and specifications, which go into greater detail on some of the individual aspects.
2
+
next_step_guidance: Now that you have gained some hands-on experience with the data formats and workflows associated with attestation for confidential computing, you can explore some additional resources and specifications, which go into greater detail on some of the individual aspects.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/cca-veraison/_review.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,17 +15,17 @@ review:
15
15
question: >
16
16
A secure boundary is sufficient for confidential computing.
17
17
answers:
18
-
- "True"
19
-
- "False"
18
+
- "True."
19
+
- "False."
20
20
correct_answer: 2
21
21
explanation: >
22
22
A secure boundary is necessary for confidential computing, but it is not sufficient. There must also be a way to establish trust with the target compute environment that the boundary is protecting (the TEE). Trust needs to be built by a process that is both explicit and transparent. This process is known as attestation.
23
23
- questions:
24
24
question: >
25
25
The CCA attestation token is divided at the top level into two sub-tokens.
26
26
answers:
27
-
- "True"
28
-
- "False"
27
+
- "True."
28
+
- "False."
29
29
correct_answer: 1
30
30
explanation: >
31
31
The CCA attestation token is divided at the top-level into the platform token and the realm token.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/cca-veraison/attestation-token.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
2
title: Download and inspect the attestation token
3
-
weight: 4
3
+
weight: 5
4
4
5
5
### FIXED, DO NOT MODIFY
6
6
layout: learningpathall
7
7
---
8
8
9
-
In this section, you will obtain an example CCA attestation token.
9
+
In this section, you will obtain an example CCA attestation token. To set up the tools that you need for attestation, you need to install the Go language on your system.
10
10
11
11
## Install Go
12
12
13
-
In order to run the tools used for attestation, start by installing the Go language on your system. First, you will remove any existing Go installation. After that, you obtain the install files and
13
+
First, start by removing any existing Go installation. Next, obtain the install files and run the following command:
tar -C /usr/local -xzf go1.23.3.linux-$(dpkg --print-architecture).tar.gz
20
20
```
21
21
22
-
Export the installation path and add it to your $PATH environment variable.
22
+
Export the installation path and add it to your `$PATH environment` variable.
23
23
24
24
```bash
25
25
export PATH=$PATH:/usr/local/go/bin
26
26
```
27
-
Verify the installation by checking that the command outputs the installed version.
27
+
Verify the installation by running the following command to check the version of the installation:
28
28
29
29
```bash
30
30
go version
31
31
```
32
32
33
33
## Install Git
34
34
35
-
Verify that `git` is installed using the command below. It should output the version available on your computer.
35
+
Verify that `git` is installed by using the command below. It should produce an output that lists the version available on your computer:
36
36
37
37
```bash
38
38
git --version
39
39
```
40
40
41
41
## Install jq
42
-
The jq utility, is a popular command-line tool that can be used to parse and manipulate JSON data. You can install it using your local package manager, for instance:
42
+
43
+
The jq utility is a popular command-line tool that you can use to parse and manipulate JSON data.
44
+
45
+
To install it, you can use your local package manager, for instance:
43
46
44
47
```bash
45
48
sudo apt install jq
46
49
```
47
50
48
51
## Download the Example CCA Attestation Token
49
52
50
-
Using your preferred web browser, navigate to the [token in the TrustedFirmware-M tools repository](https://github.com/TrustedFirmware-M/tf-m-tools/blob/main/iat-verifier/tests/data/cca_example_token.cbor)
53
+
Using your preferred web browser, navigate to the [token in the TrustedFirmware-M tools repository](https://github.com/TrustedFirmware-M/tf-m-tools/blob/main/iat-verifier/tests/data/cca_example_token.cbor).
51
54
52
-
Use GitHub’s download button, located on the right of the upper toolbar, to download the token as a *raw* (binary) file.
55
+
Use GitHub’s download button, located on the right of the upper toolbar, to download the token as a `raw`binary file.
53
56
54
57

55
58
56
-
Place this file in the `$HOME` folder, while keeping the file name the same. The rest of this learning path will use the notation `$HOME/cca_example_token.cbor` as the file path.
59
+
Place this file in the `$HOME` folder, while retaining the file name. The rest of this Learning Path uses the notation `$HOME/cca_example_token.cbor` as the file path.
57
60
58
61
{{% notice Note %}}
59
-
You will notice that the filename extension on the example token is `.cbor`, which also denotes the format of the data. CBOR is the Concise Binary Object Representation. You are likely to already be familiar with JSON (the JavaScript Object Notation). JSON provides a standard way to convey nested structures of key-value pairs. CBOR is conceptually the same as JSON. The difference is that CBOR is a binary format, rather than a text-based format like JSON. CBOR is designed for compactness and ease of machine-readability, but at the expense of human-readability. You can learn more about CBOR [here](https://cbor.io/).
62
+
You will notice that the filename extension on the example token is `.cbor`, which also denotes the format of the data. CBOR is an acronym for Concise Binary Object Representation. You might already be familiar with JSON (the JavaScript Object Notation). JSON provides a standard way of conveying the nested structures of key-value pairs. CBOR is conceptually the same as JSON. The difference is that CBOR is a binary format, rather than a text-based format like JSON. CBOR is designed for compactness and machine-readability, but at the expense of human-readability. You can learn more about CBOR [here](https://cbor.io/).
60
63
{{% /notice %}}
61
64
62
65
## Build the EVCLI Tool
63
66
64
-
Now that you have downloaded the example CCA attestation token, the next step is to look inside the token and learn about the data that it contains. Because the token is a binary file, you will need to use a tool to parse the file and display its contents. The tool that you will use is a command-line tool called `evcli` (which is short for the EVidence Command Line Interface – remember that attestation tokens are used to convey evidence about realms and the platforms on which they are hosted).
67
+
Now that you have downloaded the example CCA attestation token, the next step is to look inside the token and learn about the data that it contains. As the token is a binary file, you will need to use a tool to parse the file and display its contents. The tool that you will use is a command-line tool called `evcli`. Evcli is an acronym for EVidence Command Line Interface, linking with the idea that attestation tokens are used to convey evidence about realms and the platforms on which they are hosted.
65
68
66
-
The `evcli` tool is part of the Veraison open-source project, which was covered in the previous section.
69
+
The `evcli` tool is part of the Veraison Open-Source project, which was covered in the previous section.
67
70
68
71
Clone the source code using git as follows:
69
72
@@ -137,12 +140,12 @@ The contents of the token are displayed as JSON. Check that the output matches t
137
140
}
138
141
```
139
142
140
-
It is not important to understand every detail of the attestation token right now, but here are some of the most important highlights:
143
+
It is not important to understand every detail of the attestation token, but here are some of the highlights:
141
144
142
-
- The CCA attestation token is a variant of a more general-purpose attestation data format known as the Entity Attestation Token (EAT). The EAT specification has been established to create more alignment across the industry with respect to attestation data, so that common tools and libraries can be used to process it.
145
+
- The CCA attestation token is a variant of a more general-purpose attestation data format known as the Entity Attestation Token (EAT). The EAT specification has been established to create better alignment across the industry with respect to attestation data, so that common tools and libraries can be used to process it.
143
146
- Specific variants of the EAT format are known as profiles, so this token is adopting the Arm CCA profile of the EAT specification.
144
147
- The CCA attestation token is divided at the top level into two sub-tokens. These are known individually as the platform token and the realm token.
145
-
- The platform token contains the evidence about the Arm CCA platform on which the realm is running, which includes details about the state of the hardware and firmware that compose the platform. You can think of the platform as being like a single server or self-contained computing device. A single platform could host many realms, which could be executing as virtual machines or containers. Therefore, many realms might produce the same platform token.
148
+
- The platform token contains the evidence about the Arm CCA platform on which the realm is running, which includes details about the state of the hardware and firmware that compose the platform. You can think of the platform as a single server or self-contained computing device. A single platform can host many realms, which can be executing as virtual machines or containers. Therefore, many realms might produce the same platform token.
146
149
- The realm token contains the evidence about the realm itself, which is running on the platform. It is the more dynamic part of the token. It includes information about the realm’s initial memory contents and boot state.
147
150
- The top-level data items in each sub-token are known as claims. A claim is an individual evidence fragment that describes a specific property of the system.
148
151
- The claims of the platform token are labelled with the prefix `cca-platform-*`
All confidential computing architectures provide attestation as a means of building trust. This learning path will help you to understand the common concepts in attestation, while also guiding you through code examples that focuses on how attestation is performed with CCA. This section contains an overview of the topic, building a common understanding before diving into the practical part.
10
-
11
8
## Overview
12
-
Confidential computing is about protecting data in use. This protection comes from the creation of a security boundary around the computation being performed. This security boundary creates what is normally called a Trusted Execution Environment (TEE). The data and code that executes within the TEE is protected from the outside world. Different technologies exist for creating this secure boundary. In the case of Arm CCA, the secure boundary is provided by the Realm Management Extensions (RME), which are part of the Arm Architecture v9 for A-profile CPUs.
9
+
Confidential computing is about protecting data in use. This protection comes from the creation of a security boundary around the computation being performed. This security boundary creates what is called a Trusted Execution Environment (TEE). The data and code that executes within the TEE is protected from the outside world. Different technologies exist for creating this secure boundary. In the case of Arm CCA, the Realm Management Extension (RME), which is part of the Armv9 Architecture for A-profile CPUs, provides the secure boundary.
13
10
14
-
A secure boundary is necessary for confidential computing, but it is not sufficient. There must also be a way to establish trust with the target compute environment that the boundary is protecting (the TEE). Trusting the environment implicitly does not meet the strict definition of confidential computing. Instead, trust needs to be built by a process that is both explicit and transparent. This process is known as attestation. The role of attestation is described in the figure below.
11
+
A secure boundary is necessary for confidential computing, but it is not sufficient alone. There must also be a way to establish trust with the TEE, the target compute environment, that the boundary is protecting. Trusting the environment implicitly does not meet the strict definition of confidential computing. Instead, trust needs to be built by a process that is both explicit and transparent. This process is known as attestation. The role of attestation is described in the Figure 1.
15
12
16
-

13
+

17
14
18
15
19
16
At the heart of the CCA attestation process is a small, self-contained packet of data known as a CCA attestation token. CCA attestation tokens are produced by realms. They contain evidence about the booted state of the realm. They also contain evidence about the state of the CCA host platform on which the realm is running, including details about the hardware and firmware. You will learn more about this evidence later in the learning path.
20
17
21
-
CCA attestation tokens have two very important properties. The first is that they are cryptographically signed using a private key that is strongly protected by the platform where the realm is running. The second is that they can be evaluated remotely using an attestation verification service. The verification service acts as a trust authority. It can verify the token’s cryptographic signature, which ensures that the evidence is authentic. It can also compare the evidence against the expectations of a trustworthy platform. These two properties combine to allow a user of the realm to decide whether the realm will provide an adequate trusted environment for confidential computing.
22
-
23
-
## Veraison
24
-
25
-
The tools and services that you will use in this learning path come from an open-source project called [Veraison](https://github.com/veraison). Veraison (pronounced “ver-ayy-sjon”) is a project that was founded within Arm but has since been donated to the [Confidential Computing Consortium](https://confidentialcomputing.io/) as an ongoing community project with a growing number of contributors from other organizations. Veraison focuses on the verification aspect of attestation. It provides reusable tools and components that can be used to construct verification services or libraries.
18
+
CCA attestation tokens have two very important properties:
26
19
27
-
Confidential computing is a new and fast-growing industry. There are many stakeholders including hardware manufacturers, firmware vendors, service providers, application developers, end users and regulators. Attestation is an end-to-end process that has the potential to impact all of them. Good alignment and interoperability are essential. The Veraison project is being developed in parallel with several standardization efforts across various industry bodies. Veraison demonstrates the effectiveness of these standards in practice, facilitates their ongoing development within open communities, and makes it possible to build functioning software from them.
20
+
* Firstly, they are cryptographically-signed using a private key that is strongly protected by the platform where the realm is running.
21
+
* Secondly, they can be evaluated remotely using an attestation verification service.
28
22
29
-
In this learning path, you will use some of the command-line tools that Veraison provides. You will also make use of an attestation verifier service that is built entirely from Veraison components.
23
+
The verification service acts as a trust authority. It can verify the token’s cryptographic signature, which ensures that the evidence is authentic. It can also compare the evidence against the expectations of a trustworthy platform. In combination, these two properties allow a user of the realm to decide whether the realm will provide an adequate trusted environment for confidential computing.
30
24
31
-
Now that you have some background, move on to the next section where you will download a file that contains an example of a CCA attestation token. You will then use command-line tools to inspect the contents of the token, and you will see how to use an attestation verifier service to verify and evaluate the token.
0 commit comments