Package typosquatting is a type of software supply chain attack where the attacker tries to mimic the name of an existing package
This is Typosquatting detection tool (part of Supply Chain Security) for Python (PyPi) packages is designed to prevent this attack.
This tool checks typos for the PyPi list of popular packages.
Follow these steps to get started with Typosquatting Checker:
-
Install the necessary libraries using the following command:
pip3 install -r requirements.txt
-
Start 'typoschecker' for test a requirements_test.txt file:
python3 typoschecker.py test_requirements/requirements_test.txtIf any potential typosquatting packages are detected, the tool will provide suggestions for possible correct package names.
Results:
The package coloramma may be affected by Typosquatting. Maybe you mean the package 'colorama'. The package fake_useragent may be affected by Typosquatting. Maybe you mean the package 'fake-useragent'. -
Update the PyPi list of popular packages:
python3 typoschecker.py --update -
Get help on usage:
python3 typoschecker.py --help