-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add the 'eth_phishing_detection' logic to the connect accounts flow #8920
feat: add the 'eth_phishing_detection' logic to the connect accounts flow #8920
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
…_detection-to-AccountConnect
app/core/SDKConnect/Connection/EventListenersHandlers/handleClientsReady.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8920 +/- ##
==========================================
- Coverage 43.27% 43.22% -0.06%
==========================================
Files 1271 1271
Lines 30916 30957 +41
Branches 3092 3097 +5
==========================================
+ Hits 13378 13380 +2
- Misses 16765 16805 +40
+ Partials 773 772 -1 ☔ View full report in Codecov by Sentry. |
Bitrise✅✅✅ Commit hash: 905fa4f Note
|
…_detection-to-AccountConnect
WalletConnect example: Screen.Recording.2024-03-18.at.19.04.07.movMetaMask SDK Example: Screen.Recording.2024-03-18.at.19.04.56.movVerified that:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small change to have consistent use of useCallback
Quality Gate passedIssues Measures |
Looking good for QA. |
Description
Add the 'eth_phishing_detection' logic to the connect accounts flow
eth_phishing_detection is a utility for detecting phishing domains targeting Web3 users.
For checking why a given domain was blocked, there is a third-party search tool maintained by ChainPatrol.
Now when user connects to a dapp via SDK that's url is blacklisted in our eth_phishing_detection list, MetaMask mobile app should show a warning to the user before selecting to connect or not. This will allow MetaMask to warn the user while letting user to decide what to do next.
Screenshots
WC
Screen.Recording.2024-03-14.at.9.29.37.mov
MM_SDK
Screen.Recording.2024-03-13.at.16.38.49.mov
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist