Loading the pipeline diagram…
The client encrypts and signs the model, the key broker service holds the master key, and the server verifies everything before it gets that key and decrypts. Press play or click any box.
Loading the pipeline diagram…
Each row is a case from tests/test_security.py. Click one to see where the server or KBS refuses it.
| Attack | Stopped at | Error |
|---|---|---|
| Read file | FormatError | |
| Verify signature | SignatureError | |
| Verify signature | SignatureError | |
| Verify local policy | PolicyError | |
| KBS remote policy | 401 | |
| KBS remote policy | 403 | |
| Fine-grained decryption | GCM tag | |
| Fine-grained decryption | Hash check |
Where each secret lives across the three machines.
| Secret | Client | KBS | Server |
|---|---|---|---|
master.key | Creates it | Stores it | Sealed per request, memory only |
sign_key.pem | Only copy | – | – |
verify_key.pem | Creates it | Registered | Trusted copy |
| DEKs, one per tensor | Generated, then wrapped | – | Unwrapped in memory |
| Requester token | – | Stores its hash | server.token |
Drawn from the client/, kbs/ and server/ code in cryptotensors.zip.