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
- 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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crx_analyzer-0.1.0a4.tar.gz.
File metadata
- Download URL: crx_analyzer-0.1.0a4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4345296c3b1133617510f26ee01245cb18781bcb7fc5c9017876d53380c1e31
|
|
| MD5 |
fedf08be9bc84c1f2b1d0ec0ec78eccb
|
|
| BLAKE2b-256 |
cf01590b80c8179373a26ee2a417e7bff91c392c121bc24cbbf9081e35e3f3ca
|
Provenance
The following attestation bundles were made for crx_analyzer-0.1.0a4.tar.gz:
Publisher:
release.yml on rileydakota/crx-analyzer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crx_analyzer-0.1.0a4.tar.gz -
Subject digest:
e4345296c3b1133617510f26ee01245cb18781bcb7fc5c9017876d53380c1e31 - Sigstore transparency entry: 162456178
- Sigstore integration time:
-
Permalink:
rileydakota/crx-analyzer@f50e5f665e2f18e95b84328f3228e7f65e766247 -
Branch / Tag:
refs/tags/v0.1.0-alpha.4 - Owner: https://github.com/rileydakota
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f50e5f665e2f18e95b84328f3228e7f65e766247 -
Trigger Event:
release
-
Statement type:
File details
Details for the file crx_analyzer-0.1.0a4-py3-none-any.whl.
File metadata
- Download URL: crx_analyzer-0.1.0a4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b139ccea455d000edbf23a62008c0ac064e6639aede1ae0960daa455ca9700e9
|
|
| MD5 |
bc97fcdaa247fc690e15649269692fd2
|
|
| BLAKE2b-256 |
82c6a4177e54738649d0979a9d0293c91e66ab22d60617d12b082e8d2b5013e3
|
Provenance
The following attestation bundles were made for crx_analyzer-0.1.0a4-py3-none-any.whl:
Publisher:
release.yml on rileydakota/crx-analyzer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crx_analyzer-0.1.0a4-py3-none-any.whl -
Subject digest:
b139ccea455d000edbf23a62008c0ac064e6639aede1ae0960daa455ca9700e9 - Sigstore transparency entry: 162456179
- Sigstore integration time:
-
Permalink:
rileydakota/crx-analyzer@f50e5f665e2f18e95b84328f3228e7f65e766247 -
Branch / Tag:
refs/tags/v0.1.0-alpha.4 - Owner: https://github.com/rileydakota
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f50e5f665e2f18e95b84328f3228e7f65e766247 -
Trigger Event:
release
-
Statement type: