This is a package for reporting and analysing data sent to the servers of chrome extensions using the MITM Proxy.
- A compatible operating system (Windows, macOS, Linux)
- Google Chrome browser installed
- Access to a terminal/command prompt
-
Download Mitmproxy
- Visit the official Mitmproxy website and follow the installation guidelines for your operating system.
-
Install Mitmproxy Certificate
- Start Mitmproxy or Mitmweb by running the
mitmwebcommand in the terminal. - Create a new Chrome profile:
- Open Chrome.
- At the top-right, click on the Profile icon (a circle with your account picture) and select Add.
- In the pop-up window, choose Continue without an account.
- Enter a name.
- Click Done.
- For more detailed instructions, refer to the official Chrome help page.
- Open Chrome and navigate to
chrome://version/. - Take note of the
Executable PathandProfile Path. These paths may be useful for setting up the proxy.
- Start Mitmproxy or Mitmweb by running the
-
Configure Chrome with Mitmproxy MacOS
-
Run the following command to start Chrome with the Mitmproxy proxy:
open -a "Google Chrome" --args --proxy-server="http://localhost:8080" -
If this doesn’t work, try:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="http://localhost:8080"
Windows
- Open the terminal and navigate to the Chrome executable. For Windows 11, the typical path is:
C:\Program Files\Google\Chrome\Application\chrome.exe - Run the following command to start Chrome with the Mitmproxy proxy server:
Replace
.\chrome.exe --proxy-server="localhost:8080" --user-data-dir="C:\Users\<YourUsername>\AppData\Local\Google\Chrome\User Data\Profile<ProfileNumber>"<YourUsername>and<ProfileNumber>with appropriate values.
-
-
Download and Install the Certificate
- Visit
mitm.itin the Chrome instance configured above. - Download the Mitmproxy certificate.
- Install the certificate by:
- Navigating to Chrome's settings:
Settings → Privacy and Security → Security. - Selecting Manage Certificates and importing the downloaded certificate into the Trusted Root Certification Authorities.
- Navigating to Chrome's settings:
- Follow the prompts to complete the installation.
- Visit
-
Verify Certificate Installation
- Open Chrome and navigate to:
Settings → Privacy and Security → Security → Manage Certificates. - Under Trusted Root Certification Authorities, confirm the Mitmproxy certificate is listed.
- Open Chrome and navigate to:
-
Install the extension_audit package
- pip install the package
pip install extension_audit
- run the program by specifying the extension name to be used
For example:
extension_audit <extention_name>extension_audit maxai
This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.