@cloakapi/conformance 0.0.0-stage → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +9 -0
- package/README.md +128 -2
- package/THIRD-PARTY-NOTICES.md +9 -0
- package/TRADEMARKS.md +23 -0
- package/badge/attestation.js +47 -0
- package/badge/badge.html +40 -0
- package/badge/make-variants.mjs +40 -0
- package/badge/verified-by-cloakapi-dark.svg +16 -0
- package/badge/verified-by-cloakapi-light.svg +16 -0
- package/badge/verified-by-cloakapi.svg +43 -0
- package/bin/cloakapi-conformance.js +150 -0
- package/fixtures/chain-broken.json +74 -0
- package/fixtures/chain-pass.json +74 -0
- package/fixtures/countersigned-forged.json +52 -0
- package/fixtures/countersigned-pass.json +52 -0
- package/fixtures/engine-hashes-unpublished.json +8 -0
- package/fixtures/engine-hashes.json +10 -0
- package/fixtures/jwks.json +13 -0
- package/fixtures/receipt-bad-token-hash.json +36 -0
- package/fixtures/receipt-future-engine.json +36 -0
- package/fixtures/receipt-no-egress-claim.json +35 -0
- package/fixtures/receipt-pass.json +36 -0
- package/fixtures/receipt-raw-pii.json +36 -0
- package/fixtures/receipt-spoofed-hash.json +36 -0
- package/fixtures/receipt-stale-engine.json +36 -0
- package/fixtures/receipt-tampered.json +36 -0
- package/package.json +56 -4
- package/src/checks.js +570 -0
- package/src/index.js +120 -0
- package/vendor/cloakapi-verify.d.ts +121 -0
- package/vendor/cloakapi-verify.js +1350 -0
- package/vendor/strict-json.js +143 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* cloakapi-conformance — CLI.
|
|
4
|
+
*
|
|
5
|
+
* Point it at the RECEIPTS your deployed CloakAPI integration produced and it
|
|
6
|
+
* proves, with clear pass/fail, that they are cryptographically valid, run a
|
|
7
|
+
* current declared engine metadata, and signed client-side tokenisation claims.
|
|
8
|
+
* It is honest about what it cannot prove (CloakAPI is a blind relay).
|
|
9
|
+
*
|
|
10
|
+
* cloakapi-conformance --receipts ./session.json
|
|
11
|
+
* cloakapi-conformance --receipts ./session.json --api-base https://api.cloakapi.io
|
|
12
|
+
* cloakapi-conformance --receipts ./cs-result.json --jwks ./jwks.json
|
|
13
|
+
* cloakapi-conformance --receipts ./r.json --engine-hashes ./engine-hashes.json # offline floor
|
|
14
|
+
* cloakapi-conformance --receipts ./r.json --floor 1.4.0 --allowlist aaa...,bbb...
|
|
15
|
+
* cloakapi-conformance --receipts ./r.json --json # machine-readable
|
|
16
|
+
*
|
|
17
|
+
* Exit code: 0 = CONFORMANT, 1 = NON-CONFORMANT, 2 = INCONCLUSIVE, 3 = usage error.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { readFileSync } from 'node:fs';
|
|
21
|
+
import { runConformance, fetchEngineHashes, STATUS } from '../src/index.js';
|
|
22
|
+
|
|
23
|
+
function parseArgs(argv) {
|
|
24
|
+
const out = { json: false, offline: false };
|
|
25
|
+
for (let i = 2; i < argv.length; i++) {
|
|
26
|
+
const a = argv[i];
|
|
27
|
+
const next = () => argv[++i];
|
|
28
|
+
switch (a) {
|
|
29
|
+
case '--receipts': case '-r': out.receipts = next(); break;
|
|
30
|
+
case '--jwks': out.jwks = next(); break;
|
|
31
|
+
case '--engine-hashes': out.engineHashes = next(); break;
|
|
32
|
+
case '--api-base': out.apiBase = next(); break;
|
|
33
|
+
case '--floor': out.floor = next(); break;
|
|
34
|
+
case '--allowlist': out.allowlist = next(); break;
|
|
35
|
+
case '--json': out.json = true; break;
|
|
36
|
+
case '--offline': out.offline = true; break;
|
|
37
|
+
case '--help': case '-h': out.help = true; break;
|
|
38
|
+
default:
|
|
39
|
+
if (!out.receipts && !a.startsWith('-')) out.receipts = a;
|
|
40
|
+
else { out.error = `Unknown argument: ${a}`; }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return out;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const HELP = `cloakapi-conformance — SELF-ATTESTED check that a CloakAPI integration's receipts behave correctly.
|
|
47
|
+
|
|
48
|
+
You run this on receipts YOUR OWN integration produced. It is a rigorous
|
|
49
|
+
self-attestation, not a third-party audit or certification. For the strongest
|
|
50
|
+
result, point it at gateway-countersigned receipts and pass --jwks so issuer
|
|
51
|
+
identity is cryptographically anchored to CloakAPI (not merely self-asserted).
|
|
52
|
+
|
|
53
|
+
USAGE
|
|
54
|
+
cloakapi-conformance --receipts <file.json> [options]
|
|
55
|
+
|
|
56
|
+
OPTIONS
|
|
57
|
+
-r, --receipts <file> Receipts to check: a v3 envelope, a countersigned result,
|
|
58
|
+
or a JSON array (chain). REQUIRED.
|
|
59
|
+
--api-base <url> Gateway base for the published engine floor
|
|
60
|
+
(default https://api.cloakapi.io; skipped with --offline).
|
|
61
|
+
--engine-hashes <f> Use a local /engine/hashes JSON instead of fetching.
|
|
62
|
+
--floor <semver> Explicit ruleset floor override (e.g. 1.4.0).
|
|
63
|
+
--allowlist <h,h> Explicit comma-separated engine-hash allowlist override.
|
|
64
|
+
--jwks <file> Gateway JWKS to also verify a gateway countersignature.
|
|
65
|
+
--offline Do not touch the network (floor from --engine-hashes/--floor).
|
|
66
|
+
--json Machine-readable JSON report.
|
|
67
|
+
-h, --help This help.
|
|
68
|
+
|
|
69
|
+
EXIT 0 CONFORMANT · 1 NON-CONFORMANT · 2 INCONCLUSIVE · 3 usage error`;
|
|
70
|
+
|
|
71
|
+
const C = process.stdout.isTTY
|
|
72
|
+
? { g: (s) => `\x1b[32m${s}\x1b[0m`, r: (s) => `\x1b[31m${s}\x1b[0m`, y: (s) => `\x1b[33m${s}\x1b[0m`, b: (s) => `\x1b[1m${s}\x1b[0m`, d: (s) => `\x1b[2m${s}\x1b[0m` }
|
|
73
|
+
: { g: (s) => s, r: (s) => s, y: (s) => s, b: (s) => s, d: (s) => s };
|
|
74
|
+
|
|
75
|
+
function mark(status) {
|
|
76
|
+
if (status === STATUS.PASS) return C.g('PASS');
|
|
77
|
+
if (status === STATUS.FAIL) return C.r('FAIL');
|
|
78
|
+
// ⛔ SAK 198 — `not-run` must NOT print as UNKNOWN. UNKNOWN says «we could
|
|
79
|
+
// not tell»; NOT-RUN says «the receipt told us it did not run». Printing
|
|
80
|
+
// the second as the first at the one layer an operator actually reads is
|
|
81
|
+
// the same partial-fix class as N9gi (inner status fixed, visible text
|
|
82
|
+
// left lying) — and it would undo sak 198 here.
|
|
83
|
+
if (status === STATUS.NOT_RUN) return C.d('NOT-RUN');
|
|
84
|
+
return C.y('UNKNOWN');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
async function main() {
|
|
88
|
+
const args = parseArgs(process.argv);
|
|
89
|
+
if (args.help) { console.log(HELP); process.exit(0); }
|
|
90
|
+
if (args.error) { console.error(args.error + '\n\n' + HELP); process.exit(3); }
|
|
91
|
+
if (!args.receipts) { console.error('error: --receipts <file> is required.\n\n' + HELP); process.exit(3); }
|
|
92
|
+
|
|
93
|
+
let receipts;
|
|
94
|
+
try {
|
|
95
|
+
receipts = JSON.parse(readFileSync(args.receipts, 'utf8'));
|
|
96
|
+
} catch (e) {
|
|
97
|
+
console.error(`error: could not read/parse ${args.receipts}: ${e.message}`);
|
|
98
|
+
process.exit(3);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
let engineHashes = null;
|
|
102
|
+
if (args.engineHashes) {
|
|
103
|
+
try { engineHashes = JSON.parse(readFileSync(args.engineHashes, 'utf8')); }
|
|
104
|
+
catch (e) { console.error(`error: could not read ${args.engineHashes}: ${e.message}`); process.exit(3); }
|
|
105
|
+
} else if (!args.offline && !args.floor) {
|
|
106
|
+
engineHashes = await fetchEngineHashes(args.apiBase || 'https://api.cloakapi.io');
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const jwksJson = args.jwks ? readFileSync(args.jwks, 'utf8') : null;
|
|
110
|
+
const allowlistOverride = args.allowlist ? args.allowlist.split(',').map((s) => s.trim()).filter(Boolean) : null;
|
|
111
|
+
|
|
112
|
+
const report = await runConformance(receipts, {
|
|
113
|
+
engineHashes,
|
|
114
|
+
jwksJson,
|
|
115
|
+
floorOverride: args.floor || null,
|
|
116
|
+
allowlistOverride,
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
if (args.json) {
|
|
120
|
+
console.log(JSON.stringify(report, null, 2));
|
|
121
|
+
process.exit(report.conformant ? 0 : report.counts.fail > 0 ? 1 : 2);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
console.log('');
|
|
125
|
+
console.log(C.b(' CloakAPI conformance report') + C.d(' (SELF-ATTESTED — you ran this on your own receipts)'));
|
|
126
|
+
console.log(C.d(' ' + report.generatedAt));
|
|
127
|
+
if (report.selfAttested) {
|
|
128
|
+
console.log(C.y(' Issuer identity is self-asserted (no gateway countersignature verified). Run with --jwks on a countersigned result to anchor it to CloakAPI.'));
|
|
129
|
+
} else {
|
|
130
|
+
console.log(C.g(' Issuer identity is gateway-anchored (countersignature verified against the published JWKS).'));
|
|
131
|
+
}
|
|
132
|
+
console.log('');
|
|
133
|
+
for (const c of report.checks) {
|
|
134
|
+
console.log(` [${mark(c.status)}] ${C.b(c.title)}`);
|
|
135
|
+
console.log(C.d(' ' + c.detail));
|
|
136
|
+
}
|
|
137
|
+
console.log('');
|
|
138
|
+
const verdictColor = report.conformant ? C.g : report.counts.fail > 0 ? C.r : C.y;
|
|
139
|
+
console.log(' ' + verdictColor(C.b(`VERDICT: ${report.verdict}`)) + C.d(` (pass ${report.counts.pass} · fail ${report.counts.fail} · unknown ${report.counts.unknown})`));
|
|
140
|
+
console.log('');
|
|
141
|
+
console.log(C.d(' ' + report.disclaimer));
|
|
142
|
+
console.log('');
|
|
143
|
+
console.log(C.b(' What this run cannot prove (CloakAPI is a blind relay):'));
|
|
144
|
+
for (const l of report.limitations) console.log(C.d(' • ' + l));
|
|
145
|
+
console.log('');
|
|
146
|
+
|
|
147
|
+
process.exit(report.conformant ? 0 : report.counts.fail > 0 ? 1 : 2);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
main().catch((e) => { console.error('conformance error:', e && e.message ? e.message : e); process.exit(3); });
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"v": "v3",
|
|
4
|
+
"alg": "ecdsa-p256-sha256",
|
|
5
|
+
"kid": "conformance-device",
|
|
6
|
+
"iss": "third-party-integration",
|
|
7
|
+
"sub": "conformance-subject",
|
|
8
|
+
"iat": 1751990000,
|
|
9
|
+
"jti": "conf-chain-0",
|
|
10
|
+
"chain": {
|
|
11
|
+
"chain_id": "conformance-chain",
|
|
12
|
+
"seq": 0,
|
|
13
|
+
"prev_hash": null
|
|
14
|
+
},
|
|
15
|
+
"claims": {
|
|
16
|
+
"v3-attestation": {
|
|
17
|
+
"tier": "beacon-anchored",
|
|
18
|
+
"no_raw_pii_egress": true,
|
|
19
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
20
|
+
"detector_categories": [
|
|
21
|
+
"EMAIL",
|
|
22
|
+
"PHONE"
|
|
23
|
+
],
|
|
24
|
+
"engine_ruleset_version": "1.4.0",
|
|
25
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
26
|
+
"genuine_engine": true,
|
|
27
|
+
"privacy_tier": "balanced",
|
|
28
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
29
|
+
"anchoring": {
|
|
30
|
+
"inclusion_state": "anchored"
|
|
31
|
+
},
|
|
32
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
33
|
+
"client_destination": "chatgpt.com"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sig": "EliDPedqTawUwcTXjMGC2alcePYwnDO4UgpwAGqd9Btur7ClMl8v4YHUG5rPhzI_Cu9vtARrqmftn5nAKeYr4A"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"v": "v3",
|
|
40
|
+
"alg": "ecdsa-p256-sha256",
|
|
41
|
+
"kid": "conformance-device",
|
|
42
|
+
"iss": "third-party-integration",
|
|
43
|
+
"sub": "conformance-subject",
|
|
44
|
+
"iat": 1751990001,
|
|
45
|
+
"jti": "conf-chain-1",
|
|
46
|
+
"chain": {
|
|
47
|
+
"chain_id": "conformance-chain",
|
|
48
|
+
"seq": 1,
|
|
49
|
+
"prev_hash": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
50
|
+
},
|
|
51
|
+
"claims": {
|
|
52
|
+
"v3-attestation": {
|
|
53
|
+
"tier": "beacon-anchored",
|
|
54
|
+
"no_raw_pii_egress": true,
|
|
55
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
56
|
+
"detector_categories": [
|
|
57
|
+
"EMAIL",
|
|
58
|
+
"PHONE"
|
|
59
|
+
],
|
|
60
|
+
"engine_ruleset_version": "1.4.0",
|
|
61
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
62
|
+
"genuine_engine": true,
|
|
63
|
+
"privacy_tier": "balanced",
|
|
64
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
65
|
+
"anchoring": {
|
|
66
|
+
"inclusion_state": "anchored"
|
|
67
|
+
},
|
|
68
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
69
|
+
"client_destination": "chatgpt.com"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"sig": "NaD02_feW8aFJ1cdgmUNv2U4nsrZSuLVsAkMCk3Oy1p0f_uMiKL0svDUgNLnoaF7hcAwR49s6C2q7ilvaOBzLw"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"v": "v3",
|
|
4
|
+
"alg": "ecdsa-p256-sha256",
|
|
5
|
+
"kid": "conformance-device",
|
|
6
|
+
"iss": "third-party-integration",
|
|
7
|
+
"sub": "conformance-subject",
|
|
8
|
+
"iat": 1751990000,
|
|
9
|
+
"jti": "conf-chain-0",
|
|
10
|
+
"chain": {
|
|
11
|
+
"chain_id": "conformance-chain",
|
|
12
|
+
"seq": 0,
|
|
13
|
+
"prev_hash": null
|
|
14
|
+
},
|
|
15
|
+
"claims": {
|
|
16
|
+
"v3-attestation": {
|
|
17
|
+
"tier": "beacon-anchored",
|
|
18
|
+
"no_raw_pii_egress": true,
|
|
19
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
20
|
+
"detector_categories": [
|
|
21
|
+
"EMAIL",
|
|
22
|
+
"PHONE"
|
|
23
|
+
],
|
|
24
|
+
"engine_ruleset_version": "1.4.0",
|
|
25
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
26
|
+
"genuine_engine": true,
|
|
27
|
+
"privacy_tier": "balanced",
|
|
28
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
29
|
+
"anchoring": {
|
|
30
|
+
"inclusion_state": "anchored"
|
|
31
|
+
},
|
|
32
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
33
|
+
"client_destination": "chatgpt.com"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sig": "EliDPedqTawUwcTXjMGC2alcePYwnDO4UgpwAGqd9Btur7ClMl8v4YHUG5rPhzI_Cu9vtARrqmftn5nAKeYr4A"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"v": "v3",
|
|
40
|
+
"alg": "ecdsa-p256-sha256",
|
|
41
|
+
"kid": "conformance-device",
|
|
42
|
+
"iss": "third-party-integration",
|
|
43
|
+
"sub": "conformance-subject",
|
|
44
|
+
"iat": 1751990001,
|
|
45
|
+
"jti": "conf-chain-1",
|
|
46
|
+
"chain": {
|
|
47
|
+
"chain_id": "conformance-chain",
|
|
48
|
+
"seq": 1,
|
|
49
|
+
"prev_hash": "76facde05fb004b721fd6cddd6b7bbf7a73a7964ed52b4df891615c73d3b3d3c"
|
|
50
|
+
},
|
|
51
|
+
"claims": {
|
|
52
|
+
"v3-attestation": {
|
|
53
|
+
"tier": "beacon-anchored",
|
|
54
|
+
"no_raw_pii_egress": true,
|
|
55
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
56
|
+
"detector_categories": [
|
|
57
|
+
"EMAIL",
|
|
58
|
+
"PHONE"
|
|
59
|
+
],
|
|
60
|
+
"engine_ruleset_version": "1.4.0",
|
|
61
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
62
|
+
"genuine_engine": true,
|
|
63
|
+
"privacy_tier": "balanced",
|
|
64
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
65
|
+
"anchoring": {
|
|
66
|
+
"inclusion_state": "anchored"
|
|
67
|
+
},
|
|
68
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
69
|
+
"client_destination": "chatgpt.com"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"sig": "enE0Nsipx4XTk3x4D7i0AYIolB8PFcsYOfW7GzoZCmvYVdLakml7cvEwa8xvwN60lTdgPyoi6-b7sOTA9jWvOA"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"receipt": {
|
|
3
|
+
"v": "v3",
|
|
4
|
+
"alg": "ecdsa-p256-sha256",
|
|
5
|
+
"kid": "conformance-device",
|
|
6
|
+
"iss": "third-party-integration",
|
|
7
|
+
"sub": "conformance-subject",
|
|
8
|
+
"iat": 1751990000,
|
|
9
|
+
"jti": "conf-pass-0001",
|
|
10
|
+
"chain": {
|
|
11
|
+
"chain_id": "conformance-chain",
|
|
12
|
+
"seq": 0,
|
|
13
|
+
"prev_hash": null
|
|
14
|
+
},
|
|
15
|
+
"claims": {
|
|
16
|
+
"v3-attestation": {
|
|
17
|
+
"tier": "beacon-anchored",
|
|
18
|
+
"no_raw_pii_egress": true,
|
|
19
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
20
|
+
"detector_categories": [
|
|
21
|
+
"EMAIL",
|
|
22
|
+
"PHONE"
|
|
23
|
+
],
|
|
24
|
+
"engine_ruleset_version": "1.4.0",
|
|
25
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
26
|
+
"genuine_engine": true,
|
|
27
|
+
"privacy_tier": "balanced",
|
|
28
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
29
|
+
"anchoring": {
|
|
30
|
+
"inclusion_state": "anchored"
|
|
31
|
+
},
|
|
32
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
33
|
+
"client_destination": "chatgpt.com"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sig": "35hDaIvZDfA_Aa7CtNIQ1obzFUCLdo4nTRJW_3jddPamDx8NUo-nNVqTGIxc-UTLlG-hXgbQEXBdt110Yq1MfA"
|
|
37
|
+
},
|
|
38
|
+
"countersignature": {
|
|
39
|
+
"v": "v3-countersign",
|
|
40
|
+
"kid": "gw-2026-07",
|
|
41
|
+
"receipt_hash": "fad644244f9345cefda3d3473cae2b74af3f0b9e1d168b003cee18407a1cc839",
|
|
42
|
+
"timestamp": "2026-07-12T00:00:00Z",
|
|
43
|
+
"signed_fields": [
|
|
44
|
+
"v",
|
|
45
|
+
"kid",
|
|
46
|
+
"receipt_hash",
|
|
47
|
+
"timestamp"
|
|
48
|
+
],
|
|
49
|
+
"signature": "JCof2wVXioB_aJ8AD2u7ZaPiClntf5TWS-t_tRZkM9GgDpc3zGdg5EVytcTq9Sutnq_yxgqVh13meTyaQ4Bynw"
|
|
50
|
+
},
|
|
51
|
+
"receipt_hash": "fad644244f9345cefda3d3473cae2b74af3f0b9e1d168b003cee18407a1cc839"
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"receipt": {
|
|
3
|
+
"v": "v3",
|
|
4
|
+
"alg": "ecdsa-p256-sha256",
|
|
5
|
+
"kid": "conformance-device",
|
|
6
|
+
"iss": "third-party-integration",
|
|
7
|
+
"sub": "conformance-subject",
|
|
8
|
+
"iat": 1751990000,
|
|
9
|
+
"jti": "conf-pass-0001",
|
|
10
|
+
"chain": {
|
|
11
|
+
"chain_id": "conformance-chain",
|
|
12
|
+
"seq": 0,
|
|
13
|
+
"prev_hash": null
|
|
14
|
+
},
|
|
15
|
+
"claims": {
|
|
16
|
+
"v3-attestation": {
|
|
17
|
+
"tier": "beacon-anchored",
|
|
18
|
+
"no_raw_pii_egress": true,
|
|
19
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
20
|
+
"detector_categories": [
|
|
21
|
+
"EMAIL",
|
|
22
|
+
"PHONE"
|
|
23
|
+
],
|
|
24
|
+
"engine_ruleset_version": "1.4.0",
|
|
25
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
26
|
+
"genuine_engine": true,
|
|
27
|
+
"privacy_tier": "balanced",
|
|
28
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
29
|
+
"anchoring": {
|
|
30
|
+
"inclusion_state": "anchored"
|
|
31
|
+
},
|
|
32
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
33
|
+
"client_destination": "chatgpt.com"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sig": "35hDaIvZDfA_Aa7CtNIQ1obzFUCLdo4nTRJW_3jddPamDx8NUo-nNVqTGIxc-UTLlG-hXgbQEXBdt110Yq1MfA"
|
|
37
|
+
},
|
|
38
|
+
"countersignature": {
|
|
39
|
+
"v": "v3-countersign",
|
|
40
|
+
"kid": "gw-2026-07",
|
|
41
|
+
"receipt_hash": "fad644244f9345cefda3d3473cae2b74af3f0b9e1d168b003cee18407a1cc839",
|
|
42
|
+
"timestamp": "2026-07-12T00:00:00Z",
|
|
43
|
+
"signed_fields": [
|
|
44
|
+
"v",
|
|
45
|
+
"kid",
|
|
46
|
+
"receipt_hash",
|
|
47
|
+
"timestamp"
|
|
48
|
+
],
|
|
49
|
+
"signature": "hWUymIZI745t7iy3jdWBbweTrHD1iPiNiNx1lqWh6D6mc_Fmalx_jttPLpawiaIRN_6Ocv3qv-IdV08FohvhRg"
|
|
50
|
+
},
|
|
51
|
+
"receipt_hash": "fad644244f9345cefda3d3473cae2b74af3f0b9e1d168b003cee18407a1cc839"
|
|
52
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"algorithm": "sha256",
|
|
3
|
+
"engine_binary_hashes": [
|
|
4
|
+
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
5
|
+
],
|
|
6
|
+
"ruleset_version": "1.4.0",
|
|
7
|
+
"published": true,
|
|
8
|
+
"updated_at": "2026-07-12T00:00:00Z",
|
|
9
|
+
"note": "Match your loaded engine WASM sha-256 against engine_binary_hashes to attest genuine_engine=true."
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": "v3",
|
|
3
|
+
"alg": "ecdsa-p256-sha256",
|
|
4
|
+
"kid": "conformance-device",
|
|
5
|
+
"iss": "third-party-integration",
|
|
6
|
+
"sub": "conformance-subject",
|
|
7
|
+
"iat": 1751990000,
|
|
8
|
+
"jti": "conf-badtok-0001",
|
|
9
|
+
"chain": {
|
|
10
|
+
"chain_id": "conformance-chain",
|
|
11
|
+
"seq": 0,
|
|
12
|
+
"prev_hash": null
|
|
13
|
+
},
|
|
14
|
+
"claims": {
|
|
15
|
+
"v3-attestation": {
|
|
16
|
+
"tier": "beacon-anchored",
|
|
17
|
+
"no_raw_pii_egress": true,
|
|
18
|
+
"tokenised_body_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
19
|
+
"detector_categories": [
|
|
20
|
+
"EMAIL",
|
|
21
|
+
"PHONE"
|
|
22
|
+
],
|
|
23
|
+
"engine_ruleset_version": "1.4.0",
|
|
24
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
25
|
+
"genuine_engine": true,
|
|
26
|
+
"privacy_tier": "balanced",
|
|
27
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
28
|
+
"anchoring": {
|
|
29
|
+
"inclusion_state": "anchored"
|
|
30
|
+
},
|
|
31
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
32
|
+
"client_destination": "chatgpt.com"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sig": "XyXj7qkwdGCQBAUO2Mk0KdfmN4Ry4XF68epif-NAl7-xXdAB13qgiL8mnrHrIaBctZVtMFjickCakVjP1DQKDg"
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": "v3",
|
|
3
|
+
"alg": "ecdsa-p256-sha256",
|
|
4
|
+
"kid": "conformance-device",
|
|
5
|
+
"iss": "third-party-integration",
|
|
6
|
+
"sub": "conformance-subject",
|
|
7
|
+
"iat": 1751990000,
|
|
8
|
+
"jti": "conf-future-0001",
|
|
9
|
+
"chain": {
|
|
10
|
+
"chain_id": "conformance-chain",
|
|
11
|
+
"seq": 0,
|
|
12
|
+
"prev_hash": null
|
|
13
|
+
},
|
|
14
|
+
"claims": {
|
|
15
|
+
"v3-attestation": {
|
|
16
|
+
"tier": "beacon-anchored",
|
|
17
|
+
"no_raw_pii_egress": true,
|
|
18
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
19
|
+
"detector_categories": [
|
|
20
|
+
"EMAIL",
|
|
21
|
+
"PHONE"
|
|
22
|
+
],
|
|
23
|
+
"engine_ruleset_version": "9.9.9",
|
|
24
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
25
|
+
"genuine_engine": true,
|
|
26
|
+
"privacy_tier": "balanced",
|
|
27
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
28
|
+
"anchoring": {
|
|
29
|
+
"inclusion_state": "anchored"
|
|
30
|
+
},
|
|
31
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
32
|
+
"client_destination": "chatgpt.com"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sig": "j0bwy1ACu5mOzfyvvaQESWeVDvuQQnnNsEAzQWwnp58RSyZhiBrp9yTGUAu6hqe4_kOquzMhc6Yc3e_iw9RBJA"
|
|
36
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": "v3",
|
|
3
|
+
"alg": "ecdsa-p256-sha256",
|
|
4
|
+
"kid": "conformance-device",
|
|
5
|
+
"iss": "third-party-integration",
|
|
6
|
+
"sub": "conformance-subject",
|
|
7
|
+
"iat": 1751990000,
|
|
8
|
+
"jti": "conf-noclaim-0001",
|
|
9
|
+
"chain": {
|
|
10
|
+
"chain_id": "conformance-chain",
|
|
11
|
+
"seq": 0,
|
|
12
|
+
"prev_hash": null
|
|
13
|
+
},
|
|
14
|
+
"claims": {
|
|
15
|
+
"v3-attestation": {
|
|
16
|
+
"tier": "beacon-anchored",
|
|
17
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
18
|
+
"detector_categories": [
|
|
19
|
+
"EMAIL",
|
|
20
|
+
"PHONE"
|
|
21
|
+
],
|
|
22
|
+
"engine_ruleset_version": "1.4.0",
|
|
23
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
24
|
+
"genuine_engine": true,
|
|
25
|
+
"privacy_tier": "balanced",
|
|
26
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
27
|
+
"anchoring": {
|
|
28
|
+
"inclusion_state": "anchored"
|
|
29
|
+
},
|
|
30
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
31
|
+
"client_destination": "chatgpt.com"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"sig": "F-BC-hBlWfQX01yTbjPNKuQKfr4Pu2E9JirMozTKXkjOmyU86JKyTKFnv3spdZFxvfDtFNk0jfb_l10kKQBAhg"
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": "v3",
|
|
3
|
+
"alg": "ecdsa-p256-sha256",
|
|
4
|
+
"kid": "conformance-device",
|
|
5
|
+
"iss": "third-party-integration",
|
|
6
|
+
"sub": "conformance-subject",
|
|
7
|
+
"iat": 1751990000,
|
|
8
|
+
"jti": "conf-pass-0001",
|
|
9
|
+
"chain": {
|
|
10
|
+
"chain_id": "conformance-chain",
|
|
11
|
+
"seq": 0,
|
|
12
|
+
"prev_hash": null
|
|
13
|
+
},
|
|
14
|
+
"claims": {
|
|
15
|
+
"v3-attestation": {
|
|
16
|
+
"tier": "beacon-anchored",
|
|
17
|
+
"no_raw_pii_egress": true,
|
|
18
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
19
|
+
"detector_categories": [
|
|
20
|
+
"EMAIL",
|
|
21
|
+
"PHONE"
|
|
22
|
+
],
|
|
23
|
+
"engine_ruleset_version": "1.4.0",
|
|
24
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
25
|
+
"genuine_engine": true,
|
|
26
|
+
"privacy_tier": "balanced",
|
|
27
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
28
|
+
"anchoring": {
|
|
29
|
+
"inclusion_state": "anchored"
|
|
30
|
+
},
|
|
31
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
32
|
+
"client_destination": "chatgpt.com"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sig": "35hDaIvZDfA_Aa7CtNIQ1obzFUCLdo4nTRJW_3jddPamDx8NUo-nNVqTGIxc-UTLlG-hXgbQEXBdt110Yq1MfA"
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": "v3",
|
|
3
|
+
"alg": "ecdsa-p256-sha256",
|
|
4
|
+
"kid": "conformance-device",
|
|
5
|
+
"iss": "third-party-integration",
|
|
6
|
+
"sub": "conformance-subject",
|
|
7
|
+
"iat": 1751990000,
|
|
8
|
+
"jti": "conf-rawpii-0001",
|
|
9
|
+
"chain": {
|
|
10
|
+
"chain_id": "conformance-chain",
|
|
11
|
+
"seq": 0,
|
|
12
|
+
"prev_hash": null
|
|
13
|
+
},
|
|
14
|
+
"claims": {
|
|
15
|
+
"v3-attestation": {
|
|
16
|
+
"tier": "beacon-anchored",
|
|
17
|
+
"no_raw_pii_egress": false,
|
|
18
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
19
|
+
"detector_categories": [
|
|
20
|
+
"EMAIL",
|
|
21
|
+
"PHONE"
|
|
22
|
+
],
|
|
23
|
+
"engine_ruleset_version": "1.4.0",
|
|
24
|
+
"engine_binary_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
25
|
+
"genuine_engine": true,
|
|
26
|
+
"privacy_tier": "balanced",
|
|
27
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
28
|
+
"anchoring": {
|
|
29
|
+
"inclusion_state": "anchored"
|
|
30
|
+
},
|
|
31
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
32
|
+
"client_destination": "chatgpt.com"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sig": "eRZ9e0EIueTG960dlYsts20TZssOln7oY2PmKpzsvMeF5Y_B4MQJKZb7gYNf-oxtSSqj7_906QMrFGDs8uamWg"
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": "v3",
|
|
3
|
+
"alg": "ecdsa-p256-sha256",
|
|
4
|
+
"kid": "conformance-device",
|
|
5
|
+
"iss": "third-party-integration",
|
|
6
|
+
"sub": "conformance-subject",
|
|
7
|
+
"iat": 1751990000,
|
|
8
|
+
"jti": "conf-spoof-0001",
|
|
9
|
+
"chain": {
|
|
10
|
+
"chain_id": "conformance-chain",
|
|
11
|
+
"seq": 0,
|
|
12
|
+
"prev_hash": null
|
|
13
|
+
},
|
|
14
|
+
"claims": {
|
|
15
|
+
"v3-attestation": {
|
|
16
|
+
"tier": "beacon-anchored",
|
|
17
|
+
"no_raw_pii_egress": true,
|
|
18
|
+
"tokenised_body_hash": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
19
|
+
"detector_categories": [
|
|
20
|
+
"EMAIL",
|
|
21
|
+
"PHONE"
|
|
22
|
+
],
|
|
23
|
+
"engine_ruleset_version": "1.4.0",
|
|
24
|
+
"engine_binary_hash": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
25
|
+
"genuine_engine": true,
|
|
26
|
+
"privacy_tier": "balanced",
|
|
27
|
+
"token_binding_hmac": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
28
|
+
"anchoring": {
|
|
29
|
+
"inclusion_state": "anchored"
|
|
30
|
+
},
|
|
31
|
+
"attester_public_key": "047b4e0f0a6f5f6ec8438fbd83726acf5d65c8af9afa7d98c914d62fc888150fd35a805aa77faa732614a2545f8f1e41e2805735220683e59aaf86bcd462666cd0",
|
|
32
|
+
"client_destination": "chatgpt.com"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sig": "REVQ5h9npqnF4updAahbJN-uiYuAgFYdQyWvQg6oXZ9x57eomW3Tp-N0Gsx-XtMRhb5Eetdf-3f6yHdc0Dhi3w"
|
|
36
|
+
}
|