Dstack-TEE / Dstack-TEE/dstack-examples

object capability demonstration using secure VATs

Đang mở
#29 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
app-idea devtool-idea
Ngôn ngữ chính
Python
Star
27
Fork
26
Merge trung bình
1 giờ 25 phút
Pull request đã merge (30 ngày)
7

Mô tả

There's a great body of work on object capability languages as a way of managing the risk of running untrusted code modules by only exposing limited fine-grained capabilities to the untrusted code.

http://www.erights.org/

But, while the subject is untrusted code, the environment itself in which the code runs, called a "Vat", must be considered trusted.

![Image](https://github.com/user-attachments/assets/aa9514f1-556e-4f6c-bd25-4c9b00cf85a0)

This is problematic when using cross-vat distributed code, because one malicious vat can steal the "Swiss number" references (random unguessable strings, effectively symmetric keys).

This makes it hard to reconcile object capability languages with smart contracts. In smart contracts we go out of our way to run consensus protocols so that a trusted environment can be built on untrusted nodes, but we can't assume privacy and so we can't use Swiss number references.

So now, by instantiating the vat with Dstack, we might be able to close this gap and draw some more insights or better composition / better hardening as a result.

As a starting point, we might simply run existing ocap sandbox in Dstack, possibly adding a new shim for referencing objects in different Dstack instances as different vats
https://github.com/endojs/endo

A more thoughtful example probably needs to illustrate some pattern of passing serialized/hardened code, containing Swiss numbers or even private keys, between such sandboxes. Needs more thought though

chatgpt discussion:
https://chatgpt.com/share/67ff0b25-b580-8009-a13b-d5ca70cb5fb7

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.