Skip to main content

Add your description here

Project description

crx-analyzer

crx-analyzer is a Python tool for analyzing browser extensions through a risk management lens. It is designed to help you understand the risks associated with a browser extension and enable you to make informed decisions about whether to use it. In addition, it can also be used to aid analysts in hunting for potentially malicious extensions.

crx-analyzer was inspired by the crxcavator tool and uses some of the same risk scoring techniques, but is focused on providing a local, open source implementation that won't have the risk of being taken down/no longer hosted.

The tool works by downloading the zipped extension file (crx) from the respective browser's extension store and then extracting the files to a temporary directory. It parses the manifest.json file to get the extension's permissions and then uses basic pattern matching to extract URLs that are referenced in the extension's code.

crx-analyzer can be used by an analyst and supports a "pretty" output mode to accommodate this. crx-analyzer also supports a "json" output mode that allows for flexible usage in other tools or even in a CI/CD pipeline.

Installation

crx-analyzer is available on pypi, and can be installed using pip. Python 3.10 or higher is required.

pip install crx-analyzer

Usage

crx-analyzer --id eaijffijbobmnonfhilihbejadplhddo --browser chrome --output pretty

Development

Setup

  1. Install uv using one of these methods:
brew install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
winget install --id=astral-sh.uv  -e
pipx install uv
  1. setup pre-commit hooks
uv run pre-commit install

Developement tasks

Run tests

uv run pytest

Linters and styling

uv run ruff check .
uv run black
uv run isort

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crx_analyzer-0.1.0a8.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crx_analyzer-0.1.0a8-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file crx_analyzer-0.1.0a8.tar.gz.

File metadata

  • Download URL: crx_analyzer-0.1.0a8.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for crx_analyzer-0.1.0a8.tar.gz
Algorithm Hash digest
SHA256 d01103c8d739483e07a5dd19ab4fe01ac181d5f36e0a7f49e7903cb92399c13e
MD5 92396bbad9ecf41446a1539b4f645a4f
BLAKE2b-256 8f559649ad83006d61f9f72243c6157e8b298f0d9bc2156bf4d9ae6d9320a79b

See more details on using hashes here.

Provenance

The following attestation bundles were made for crx_analyzer-0.1.0a8.tar.gz:

Publisher: release.yml on rileydakota/crx-analyzer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crx_analyzer-0.1.0a8-py3-none-any.whl.

File metadata

  • Download URL: crx_analyzer-0.1.0a8-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for crx_analyzer-0.1.0a8-py3-none-any.whl
Algorithm Hash digest
SHA256 49529aaef0faa175b684eed9084c9c54f60c7ba2629074c33223246aef95e233
MD5 b2a016a5706b429780886bb80f2ddeb8
BLAKE2b-256 31d9e9329f742c9ad467193652ce5c4e34bf8e2ccbba21a31093f440f7179a41

See more details on using hashes here.

Provenance

The following attestation bundles were made for crx_analyzer-0.1.0a8-py3-none-any.whl:

Publisher: release.yml on rileydakota/crx-analyzer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page