forked from unifiedattestation/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
485 lines (462 loc) · 19.8 KB
/
Copy pathindex.html
File metadata and controls
485 lines (462 loc) · 19.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Unified Attestation</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta
name="description"
content="Unified Attestation is a free, open-source alternative to Google Play Integrity with offline verification and simple app + server integration."
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
<script>
(function () {
try {
var saved = localStorage.getItem('theme');
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
var theme = saved || (prefersDark ? 'dark' : 'light');
document.documentElement.setAttribute('data-theme', theme);
} catch (e) {}
})();
</script>
</head>
<body>
<div class="ambient"></div>
<header class="nav">
<div class="logo">
<img src="unified-attestation-logo.svg" alt="Unified Attestation logo" />
<span>Unified Attestation</span>
</div>
<nav>
<a href="#architecture">Architecture</a>
<a href="#flow">Flow</a>
<a href="#api">API</a>
<a href="#sdk">SDKs</a>
<a href="#run">Run</a>
<a href="https://github.com/unifiedAttestation" target="_blank" rel="noreferrer">Source</a>
<a href="https://github.com/unifiedAttestation/Website/wiki" target="_blank" rel="noreferrer">Wiki</a>
</nav>
<div class="nav-tools">
<button
type="button"
class="theme-toggle"
id="themeToggle"
aria-label="Toggle color theme"
title="Toggle theme"
>
<svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z" />
</svg>
<svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="4" />
<path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" />
</svg>
</button>
<a class="cta" href="#run">Get Started</a>
</div>
</header>
<main>
<section class="hero" id="top">
<div class="hero-copy">
<p class="eyebrow">Single backend · Offline verification · No device IDs</p>
<h1>
Attestation that feels
<span class="accent">boringly reliable</span>.
</h1>
<p>
Unified Attestation is a free, open-source alternative to Google Play Integrity. It delivers
short-lived integrity tokens signed by a single backend, verified offline by app servers, and
issued via a privileged Android system service. It can live alongside Play Integrity, and it’s
simple to integrate for app developers on both the app and server sides.
</p>
<p class="hero-subnote">
An initiative by <strong>Volla Systeme GmbH</strong>.
</p>
<div class="hero-actions">
<a class="primary" href="#run">Launch the stack</a>
<a class="secondary" href="#architecture">See architecture</a>
<a class="secondary" href="https://github.com/unifiedAttestation" target="_blank" rel="noreferrer">Source code</a>
</div>
<div class="hero-meta">
<div>
<span>Backend</span>
<strong>Device + App-server combined</strong>
</div>
<div>
<span>Attestation</span>
<strong>KeyMint + Standard requestHash</strong>
</div>
<div>
<span>Federation</span>
<strong>Offline trust anchors</strong>
</div>
</div>
</div>
<div class="hero-panel" aria-hidden="true">
<div class="panel-line">requestHash = SHA-256(canonicalRequest)</div>
<div class="panel-block">
<div class="panel-title">Device → Backend</div>
<pre>
POST /api/v1/device/process
{
projectId,
requestHash,
attestationChain[],
deviceMeta: {
manufacturer,
brand,
model,
device,
buildFingerprint
}
}
</pre>
</div>
<div class="panel-block">
<div class="panel-title">App Server → Backend</div>
<pre>
POST /api/v1/app/decodeToken
{
projectId,
token,
expectedRequestHash
}
</pre>
</div>
</div>
</section>
<section class="section" id="architecture">
<div class="section-head">
<h2>Architecture</h2>
<p>An alternative to Google Play Integrity that’s easy to integrate and can run in parallel.</p>
</div>
<div class="arch-diagram reveal" aria-hidden="true">
<svg viewBox="0 0 920 360" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Unified Attestation data flow diagram">
<defs>
<marker id="arrowhead" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="var(--diagram-stroke)" />
</marker>
<marker id="arrowhead-accent" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="var(--accent)" />
</marker>
<linearGradient id="flowGrad" x1="0" y1="0" x2="1" y2="0">
<stop offset="0%" stop-color="var(--accent)" stop-opacity="0" />
<stop offset="50%" stop-color="var(--accent)" stop-opacity="1" />
<stop offset="100%" stop-color="var(--accent)" stop-opacity="0" />
</linearGradient>
<radialGradient id="nodeGlow" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="var(--accent)" stop-opacity="0.18" />
<stop offset="100%" stop-color="var(--accent)" stop-opacity="0" />
</radialGradient>
<filter id="softGlow" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="3" result="blur" />
<feMerge>
<feMergeNode in="blur" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
</defs>
<!-- subtle grid background -->
<g class="diagram-grid">
<path d="M 0 60 H 920 M 0 120 H 920 M 0 180 H 920 M 0 240 H 920 M 0 300 H 920" />
<path d="M 60 0 V 360 M 180 0 V 360 M 300 0 V 360 M 460 0 V 360 M 620 0 V 360 M 780 0 V 360 M 860 0 V 360" />
</g>
<!-- glows behind nodes -->
<circle class="node-glow" cx="60" cy="170" r="70" fill="url(#nodeGlow)" />
<circle class="node-glow" cx="305" cy="170" r="78" fill="url(#nodeGlow)" />
<circle class="node-glow" cx="555" cy="170" r="78" fill="url(#nodeGlow)" />
<circle class="node-glow" cx="860" cy="170" r="70" fill="url(#nodeGlow)" />
<!-- forward flow: App -> Service -> Backend -> App Server -->
<path class="flow-line" d="M 110 170 L 245 170" marker-end="url(#arrowhead)" />
<path class="flow-line" d="M 365 170 L 495 170" marker-end="url(#arrowhead)" />
<path class="flow-line" d="M 615 170 L 810 170" marker-end="url(#arrowhead)" />
<!-- Unified Backend -> Service (signed token return, slight arc below the row) -->
<path class="flow-line return-path" d="M 495 200 Q 430 235, 365 200" marker-end="url(#arrowhead-accent)" />
<!-- return: App Server -> App, arcs up over the top -->
<path class="flow-line return-path" d="M 860 120 C 860 30, 60 30, 60 120" marker-end="url(#arrowhead-accent)" />
<!-- traveling pulses -->
<circle class="flow-pulse pulse-1" r="5" />
<circle class="flow-pulse pulse-2" r="5" />
<circle class="flow-pulse pulse-3" r="5" />
<circle class="flow-pulse pulse-back-bs" r="5" />
<circle class="flow-pulse pulse-return" r="5" />
<!-- App -->
<g class="node-group">
<rect class="node-rect" x="10" y="120" width="100" height="100" rx="20" />
<g class="node-icon" transform="translate(60 170)">
<rect x="-16" y="-22" width="32" height="44" rx="5" />
<line x1="-6" y1="14" x2="6" y2="14" />
<circle cx="0" cy="-12" r="1.5" fill="var(--accent)" />
</g>
<text class="node-label" x="60" y="250" text-anchor="middle">App</text>
<text class="node-sub" x="60" y="266" text-anchor="middle">SDK + Keymint</text>
</g>
<!-- Service (was: System Service) -->
<g class="node-group">
<rect class="node-rect" x="245" y="120" width="120" height="100" rx="20" />
<g class="node-icon" transform="translate(305 170)">
<path d="M -20 -8 L 0 -18 L 20 -8 L 0 2 z" />
<path d="M -20 4 L 0 14 L 20 4" />
<path d="M -20 -2 L 0 8 L 20 -2" opacity="0.55" />
</g>
<text class="node-label" x="305" y="250" text-anchor="middle">Service</text>
<text class="node-sub" x="305" y="266" text-anchor="middle"> AIDL</text>
</g>
<!-- Unified Backend -->
<g class="node-group">
<rect class="node-rect" x="495" y="120" width="120" height="100" rx="20" />
<g class="node-icon" transform="translate(555 170)">
<rect x="-20" y="-18" width="40" height="36" rx="5" />
<line x1="-13" y1="-8" x2="13" y2="-8" />
<line x1="-13" y1="0" x2="13" y2="0" />
<circle cx="-11" cy="10" r="1.8" fill="var(--accent)" stroke="none" />
<circle cx="-5" cy="10" r="1.8" fill="var(--accent)" stroke="none" />
</g>
<text class="node-label" x="555" y="250" text-anchor="middle">Unified Backend</text>
<text class="node-sub" x="555" y="266" text-anchor="middle">Verify + sign token</text>
</g>
<!-- App Server -->
<g class="node-group">
<rect class="node-rect" x="810" y="120" width="100" height="100" rx="20" />
<g class="node-icon" transform="translate(860 170)">
<circle cx="0" cy="0" r="20" />
<path d="M -20 0 L 20 0" />
<path d="M 0 -20 C -9 -7 -9 7 0 20 C 9 7 9 -7 0 -20" />
</g>
<text class="node-label" x="860" y="250" text-anchor="middle">App Server</text>
<text class="node-sub" x="860" y="266" text-anchor="middle">Offline verify</text>
</g>
<!-- edge labels -->
<g>
<text class="edge-label" x="177" y="158" text-anchor="middle">requestHash</text>
<text class="edge-label" x="430" y="158" text-anchor="middle">chain + challenge</text>
<text class="edge-label" x="712" y="158" text-anchor="middle">signed token</text>
<text class="edge-label return-label" x="430" y="252" text-anchor="middle">token → service</text>
<text class="edge-label return-label" x="460" y="22" text-anchor="middle">token returned to app → forwarded to server</text>
</g>
</svg>
</div>
<div class="grid">
<article class="card reveal">
<h3>Unified Backend</h3>
<p>
Acts as Device + App-server backend. Stores trust anchors, verifies chains, and signs
short-lived tokens. Federation works fully offline.
</p>
<ul>
<li>GET /api/v1/info</li>
<li>POST /api/v1/device/process</li>
<li>POST /api/v1/app/decodeToken</li>
</ul>
</article>
<article class="card reveal">
<h3>Android System Service</h3>
<p>
Privileged service that talks to KeyMint, fetches attestation chains, and sends them
to the backend. Apps only call the SDK.
</p>
<ul>
<li>Provider discovery</li>
<li>Per (app, backend) keys</li>
<li>Binder/AIDL boundary</li>
</ul>
</article>
<article class="card reveal">
<h3>SDK + Example App</h3>
<p>
Thin SDK exposes Play Integrity-style API. Example app shows canonical request hashing,
provider selection, and verdict display.
</p>
<ul>
<li>No networking</li>
<li>No cert exposure</li>
<li>Opaque token</li>
</ul>
</article>
</div>
</section>
<section class="section" id="flow">
<div class="section-head">
<h2>End-to-end flow</h2>
<p>App → SDK → Service → Backend → App server. No nonce protocol. Simple for app devs.</p>
</div>
<div class="timeline">
<div class="step reveal">
<span>1</span>
<div>
<h4>Canonical request</h4>
<p>App + server compute identical requestHash.</p>
</div>
</div>
<div class="step reveal">
<span>2</span>
<div>
<h4>Provider discovery</h4>
<p>SDK returns enabled backendIds only.</p>
</div>
</div>
<div class="step reveal">
<span>3</span>
<div>
<h4>KeyMint attestation</h4>
<p>Service sets challenge = requestHash and posts chain.</p>
</div>
</div>
<div class="step reveal">
<span>4</span>
<div>
<h4>Token issuance</h4>
<p>Backend verifies chain + policies, signs token (60s TTL).</p>
</div>
</div>
<div class="step reveal">
<span>5</span>
<div>
<h4>Offline verification</h4>
<p>App server checks signature + requestHash.</p>
</div>
</div>
</div>
</section>
<section class="section" id="api">
<div class="section-head">
<h2>Key APIs</h2>
<p>Minimal endpoints with strict role separation.</p>
</div>
<div class="api-grid">
<div class="api-block reveal">
<h4>Public</h4>
<code>GET /api/v1/info</code>
<p>Returns backendId + public keys.</p>
</div>
<div class="api-block reveal">
<h4>Device-facing</h4>
<code>POST /api/v1/device/process</code>
<p>Verifies chain + attestation challenge, mints token.</p>
</div>
<div class="api-block reveal">
<h4>App server</h4>
<code>POST /api/v1/app/decodeToken</code>
<p>Offline verification using federation trust store.</p>
</div>
<div class="api-block reveal">
<h4>OEM/Admin</h4>
<code>/api/v1/oem/*</code>
<p>Device families, builds, trust anchors.</p>
</div>
</div>
</section>
<section class="section" id="sdk">
<div class="section-head">
<h2>SDKs & Services</h2>
<p>Android SDK, system service, and server SDKs for JS/Python — free and open source.</p>
</div>
<div class="grid">
<article class="card reveal">
<h3>Android SDK</h3>
<p>Public API mirroring Play Integrity, no networking.</p>
<ul>
<li>getProviderSet(projectId)</li>
<li>requestIntegrityToken(backendId, projectId, requestHash)</li>
</ul>
</article>
<article class="card reveal">
<h3>Server SDK (JS/Python)</h3>
<p>Helper utilities for decoding tokens and trust checks.</p>
<ul>
<li>getBackendInfo()</li>
<li>decodeToken(projectId, token)</li>
</ul>
</article>
<article class="card reveal">
<h3>Example App Server</h3>
<p>TypeScript demo selecting backend and verifying tokens.</p>
<ul>
<li>Backend selection</li>
<li>RequestHash comparison</li>
</ul>
</article>
</div>
</section>
<section class="section" id="run">
<div class="section-head">
<h2>Run locally</h2>
<p>Quick commands to bootstrap the stack. Use the docker-compose file inside the Backend repo.</p>
</div>
<div class="run-grid">
<div class="run-block reveal">
<h4>Docker (prebuilt)</h4>
<pre>
git clone https://github.com/unifiedAttestation/Backend.git
cd Backend
docker-compose up
</pre>
</div>
<div class="run-block reveal">
<h4>Backend and Portal</h4>
<pre>
git clone https://github.com/unifiedAttestation/Backend.git
cd Backend
npm install
npm run dev:backend
npm run dev:portal
</pre>
</div>
<div class="run-block reveal">
<h4>Example App Server</h4>
<pre>
git clone https://github.com/unifiedAttestation/Example-App-Server.git
cd Example-App-Server
npm install
npm run dev
</pre>
</div>
</div>
</section>
</main>
<footer>
<div class="footer-grid">
<div class="footer-brand">
<div class="footer-logo">
<img src="unified-attestation-logo.svg" alt="" aria-hidden="true" />
<strong>Unified Attestation</strong>
</div>
<p>Developed by Volla. Open source.</p>
</div>
<div class="footer-col">
<h5>Product</h5>
<a href="#architecture">Architecture</a>
<a href="#flow">Flow</a>
<a href="#api">API</a>
<a href="#run">Run locally</a>
</div>
<div class="footer-col">
<h5>Resources</h5>
<a href="https://github.com/unifiedAttestation/Backend" target="_blank" rel="noreferrer">Backend</a>
<a href="https://github.com/unifiedAttestation" target="_blank" rel="noreferrer">SDK</a>
<a href="https://github.com/unifiedAttestation" target="_blank" rel="noreferrer">App Service</a>
<a href="https://github.com/unifiedAttestation/Example-App-Server" target="_blank" rel="noreferrer">Example App Server</a>
<a href="https://github.com/unifiedAttestation/Website/wiki" target="_blank" rel="noreferrer">Wiki</a>
</div>
<div class="footer-col">
<h5>Legal</h5>
<a href="https://volla.online/en/imprint/index.html" target="_blank" rel="noreferrer">Imprint</a>
<a href="https://volla.online/en/privacy/index.html" target="_blank" rel="noreferrer">Privacy</a>
<a href="https://volla.online" target="_blank" rel="noreferrer">Visit Volla</a>
</div>
</div>
<div class="footer-bottom">
<span>An initiative by <a href="https://volla.online" target="_blank" rel="noreferrer">Volla Systeme GmbH</a> · Built in Germany</span>
<a href="#top" class="back-top">Back to top ↑</a>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>