Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
docs: add guideline about fetching remote code (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc authored Nov 16, 2023
1 parent fcd8b42 commit 06ee7ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,11 @@ export const onKeyringRequest: OnKeyringRequestHandler = async ({
};
```

### Don't fetch remote code from inside your Snap

Your Snap should be self-contained and not fetch code from external sources.
Otherwise a compromised server could use this mechanism to inject malicious
code into your Snap.

[eth-phishing-detect]: https://github.com/MetaMask/eth-phishing-detect
[async-flow]: ./architecture.md#asynchronous-transaction-flow

0 comments on commit 06ee7ad

Please sign in to comment.