ossatrisk
ossatrisk surfaces widely-used open source packages with hidden risks, like abandoned maintenance, unpatched CVEs, or a single-maintainer bus factor.
Only packages with high impact and broad usage are flagged.
The goal isn’t to blame anyone, but to get a clear picture of the ecosystem and act constructively, through contributions, forks where necessary, and fixes that help everyone relying on the code.
- PHP and JavaScript/npm ecosystems supported. More ecosystems planned.
- Datasets are updated daily.
CLI usage
You can install ossatrisk via PyPI:
pip install ossatrisk
Scan your project
# Scan the current directory for risky packages
ossatrisk scan --ecosystem php # reads composer.json
ossatrisk scan --ecosystem js # reads package.json
Options:
--ecosystem(required) – supportsphpandjs.--format– output format;text(default) orjson. Usejsonfor machine-readable output.
Package Risk Assessment Algorithm
This project evaluates the risk level of software packages based on several key factors, helping developers identify dependencies that may pose potential stability or security issues.
1. Package Selection
- We fetch popular packages from public package registries (e.g., Packagist, PyPI, npm).
- From these, we filter packages that have not had a release in the last 12 months, as older packages are generally more likely to have maintenance or security issues. Only these packages are considered for risk scoring.
2. Risk Scoring Algorithm
For each selected package, a risk score is computed where higher scores indicate higher risk. The algorithm considers multiple factors:
| Factor | Description | Weight / Logic |
|---|---|---|
| Recency | Time since the latest release | Older releases are riskier. The risk increases exponentially with age. If the package has very few open issues, recency is weighted less. If the package has many open issues, recency is slightly increased. |
| Known Vulnerabilities | Number of publicly reported security vulnerabilities (CVEs, advisories) | Each vulnerability significantly increases the risk. |
| Maintainers | Number of maintainers contributing to the package | Packages with few maintainers are considered riskier. Risk decreases as the number of maintainers increases. |
| Popularity | Downloads or usage metrics | Highly used packages have larger potential impact if issues arise. Risk is scaled logarithmically with download counts or usage statistics. |
| Open Issues | Number of unresolved issues in the package repository | More open issues indicate potential instability or lack of maintenance. |
3. Risk Score Calculation
The final risk score is calculated as:
risk_score = recency_risk * vulnerability_risk * maintainer_risk * popularity_risk * issues_risk
This approach ensures that packages which are older, have known vulnerabilities, few maintainers, widely used, and many unresolved issues receive higher scores, flagging them as higher-risk dependencies.
Contributing
Contributions welcome - especially:
- Improving the scoring logic
- Improving the project structure
- Adding new ecosystems
Stargazers over time
License
MIT
Metadata
Release files for ossatrisk 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ossatrisk-0.5.1.tar.gz | 3.3 MB | Without provenance | Details for ossatrisk-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ossatrisk-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for ossatrisk-0.5.1-py3-none-any.whl |
Total release size: 3.3 MB
Release files / ossatrisk-0.5.1.tar.gz
| Download URL | ossatrisk-0.5.1.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b79018e5545fd60d2c35107416adbe3c989c5d4967077b411c147f3d42cad6ca
|
|
BLAKE2b-256 checksum How to use checksums |
864f5fd2138490a6912f60a3e516e874cfebda39a49dcceb50f0d48d22296e7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / ossatrisk-0.5.1-py3-none-any.whl
| Download URL | ossatrisk-0.5.1-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d77f8a9879bff7a7bdf92250370ef55ebe42f4215e3d5f0fec13df115ae6aa99
|
|
BLAKE2b-256 checksum How to use checksums |
d527e29078d528fc8f503a52571d39af2afaa323c87a58510dd17a835d133ec4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Security for ossatrisk 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.