-
Notifications
You must be signed in to change notification settings - Fork 619
Add ecosystem wallet security documentation #4911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d0feb50
Add ecosystem wallet security documentation
ianthirdweb f0448f9
Fix sidebar
ianthirdweb c804110
Update security page formatting
ianthirdweb a4dcf77
lint
joaquim-verges 706ab02
fix merge
joaquim-verges d13b9a2
remove dead link
joaquim-verges 6427c2e
Update apps/portal/src/app/connect/ecosystems/security/page.mdx
joaquim-verges 8b51913
Update apps/portal/src/app/connect/ecosystems/security/page.mdx
joaquim-verges 3cc610e
Update apps/portal/src/app/connect/ecosystems/security/page.mdx
joaquim-verges 36c4063
Update apps/portal/src/app/connect/ecosystems/security/page.mdx
joaquim-verges d75ec78
Update apps/portal/src/app/connect/ecosystems/security/page.mdx
joaquim-verges 11be173
Update apps/portal/src/app/connect/ecosystems/security/page.mdx
joaquim-verges File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| import { DocImage, Callout, createMetadata } from "@doc"; | ||
|
|
||
| export const metadata = createMetadata({ | ||
| image: { | ||
| title: "Ecosystem Wallet Security", | ||
| icon: "wallets", | ||
| }, | ||
| title: "Ecosystem Wallet Security", | ||
| description: | ||
| "Learn how thirdweb protects your user's private keys across an ecosystem using nitro Enclaves", | ||
| }); | ||
|
|
||
| # Ecosystem Wallet Security | ||
|
|
||
| ## **Wallet Creation** | ||
|
|
||
| When a user signs into an application using their email or social logins for the first time, a wallet is generated within a secure enclave on the server after verifying the user's legitimacy. The enclave provides a trusted execution environment, ensuring the wallet creation process is isolated and protected from external interference. | ||
|
|
||
| - The wallet and its corresponding private key are generated entirely within the enclave, never leaving its secure confines. | ||
| - User authentication data is verified within the enclave, ensuring that only legitimate, authenticated users can initiate wallet creation. | ||
|
|
||
| ## **Security Measures** | ||
|
|
||
| - The enclave's cryptographic properties ensure that even the server operators cannot access the contents or operations within the enclave. | ||
| - The enclave provides a verifiable hash of the image of the code that is being run on the device, allowing anyone to verify the contents of the code for malicious intent. | ||
| - The wallet's private key never exists in an unencrypted form outside of the enclave. | ||
| - All sensitive operations, such as transaction signing, occur within the enclave, further protecting the wallet's security. | ||
joaquim-verges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Wallet Usage | ||
|
|
||
| ### General Usage | ||
|
|
||
| - When users interact with their wallet via the the enclave, all communications are encrypted and only the legitimate user can access their wallet. | ||
| - All traffic is encrypted with TLS and HSTS. Services are run in private VPCs on AWS and accessible only from a single entry point via our Cloudflare DNS. | ||
| - Applications can [link multiple authentication methods](/link-multiple-profiles) to the same enclave. Any of these methods can be used to authenticate into the users wallet. | ||
joaquim-verges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Ecosystem Usage | ||
|
|
||
| - Ecosystem wallets are controlled by the ecosystem owner. | ||
| - We replaced the SSS model tricky with Encalves because a malicious developer could reverse engineer and extract the private key from the client and exploit users who might’ve assets from other developers within the ecosystem. | ||
joaquim-verges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - With enclave and partner policies, this is mitigated. Ecosystem owners are able to place restrictions on what individual partners are able to do. Moreover, since the private key is never re-constructed on the client, the ecosystem partner must submit the request to the enclave which would be able to verify the request and block requests that are out of scope or denied by the ecosystem owner. | ||
joaquim-verges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # **Recoverability** | ||
|
|
||
| 1. Users can export their private key at any time. | ||
| 2. Thirdweb wallets support three categories of authentication: socials, custom authentication, and email / phone authentication. | ||
| If a user ever loses access to their authentication method: 1. For socials and email / phone authentication, users can utilize the recovery flow of their providers to regain access to their account. 2. In the case of custom authentication, the developer managing their authentication flow will be able to re-instate the users account upon successful verification. 3. The application providers do not have direct access to user accounts or private keys, as these remain secured within the enclave. The enclave's design ensures that only verified user requests can trigger wallet operations. | ||
| 3. Users are able to link their authentication methods which will provide them multiple ways to access their account if they ever lose access to any one of their authentication method. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.