I am concerned that a chrome extension is providing users with different code than that in its open-source repo. The extension is MetaMask, a cryptocurrency wallet that was recently found to be injecting unique identifiers into every website a user visits, despite saying they weren't. I've now heard that MetaMask can also act as a DNS resolver, which is a lot of power for a deceitful app.
What's the best way for me to download this Chrome extension from the web store and compare it's hash to the build of the open-source code? Are there any existing Chrome extensions or websites where you can do this easier, i.e. compare the github repo directly to what's on the chrome web store?
When the page loads, click on the CRX icon in the extensions bar in Chrome and select “View source.” 4. You should be able to see the selected extension's source code in the Chrome window.
To view the Chrome Developer Tools for a pop-up, right-click the extension icon to the right of the browser address bar, and select Inspect Element. (In earlier versions of Chrome, this was done by selecting Inspect pop-up.)
It's important to make sure that the extensions you install come from official repositories, such as the Chrome Web Store or the Firefox Browser Add-Ons portal. It gives you some degree of certainty that the software you're installing is legitimate and safe, so be a bit warier of extensions that you find elsewhere.
Yes, it can. Extensions asks for permission(s) just before you install them. Permission like tabs, read and change all your data.., etc.
Disclaimer: This guide assumes the usage of Chrome and a UNIX-style operating system.
chrome://extensions/
and activate Developer mode in the top right corner.Locate your chrome profiles' extension folder
find ~ -type d -iname <extension_id>
(fill in the extensions ID)
The results of find
will show a folder with the extensions (most likely compressed) source-code.
git clone [email protected]:MetaMask/metamask-extension.git
)Run diff
recursively on the two folders. folder1 could be the shipped source-code and folder2 your self-built source-code.
diff -r folder1/ folder2/
diff
will give you the exact differences in code/files/etc. this can be a lot and will manually have to be checked, to find out what the real differences are...
P.S. I am very interested in the results and will run the comparison myself later...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With