A CLI tool to assess vulnerabilities in project dependencies
Project description
SecuDeps - Dependency Vulnerability Assessment Tool
SecuDeps assesses the severity of vulnerabilities in your roject dependencies by consulting the OSS Index database. It fetches vulnerability data, assesses the severity, and generates a comprehensive report.
Features
- Dependency Vulnerability Assessment: Evaluates vulnerabilities based on package names and versions using the OSS Index API.
- Multithreaded API Requests: Speeds up the assessment process by parallelizing API requests.
- Detailed Reports: Generates a CSV report with detailed information on each vulnerability, including CVE IDs, descriptions, and CVSS scores.
- Improved Error Handling: Gracefully handles errors and exceptions during API requests and data processing.
- User-Friendly Output: Provides clear and concise output, indicating whether vulnerabilities were found or not.
Requirements
- Python 3.x
requestslibrarypandaslibrary
Installation
-
Clone the repository:
git clone https://gitlab.com/saber.bks/secudeps.git cd secudeps
-
Create and activate a virtual environment (optional but recommended):
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install the required libraries:
pip install -r requirements.txt
Usage
-
Add your project dependencies to the appropriate file (
requirements.txtfor Python,package.jsonfor Node.js, etc.). -
Run the vulnerability assessor:
secudeps path\to\your\dependencies\file
-
Check the generated
vulnerability_report.csvfor the assessment results.
Example requirements.txt
Add some dummy dependencies for demonstration purposes:
requests==2.25.1
flask==2.0.1
django==3.2.5
numpy==1.21.0
Example package.json
{
"dependencies": {
"express": "4.17.1",
"lodash": "4.17.21"
}
}
Output Format
The generated vulnerability_report.csv will have columns such as:
id: The unique identifier of the vulnerability.title: The title of the vulnerability.description: A detailed description of the vulnerability.cvssScore: The CVSS score indicating the severity of the vulnerability.cve: The list of associated CVE IDs.package_name: The name of the package.version: The version of the package.
Contributing
If you would like to contribute to this project, please fork the repository and submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.1.0] - 2024-06-19
### Added
- Initial release of SecuDeps.
- Added CLI functionality with Click.
- Enhanced support for multiple ecosystems including Python and Node.js.
- Added dependency vulnerability assessment.
- Multithreaded API requests for faster
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 secudeps-0.1.0.tar.gz.
File metadata
- Download URL: secudeps-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35d73e83ef2906d8d285c5c75f10b7338080a2a30e783c68e6e884c4b0b3376
|
|
| MD5 |
ecd0abacb26a9df6843ab9cfa73b0673
|
|
| BLAKE2b-256 |
73a7614f607491716bb9a2ffb63ce3b94151d815df9241155a1a890fda39ec7d
|
File details
Details for the file secudeps-0.1.0-py3-none-any.whl.
File metadata
- Download URL: secudeps-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
687e629293af3f71f998e38ca7c62e2d2ea6d8e532aa446697b5c9ef68a0f967
|
|
| MD5 |
c0a2936d57d856e9c1fd796e00a75744
|
|
| BLAKE2b-256 |
82aa99b24f0cf633a321a0e401616eac8ca95e8b508abfc0d66e34f2c3f044d2
|