Maven vulnerability scanner using OSS Index
Project description
Maven Component Scanner
Vulnerability scanner for Maven components using the OSS Index (Sonatype) API.
🚀 Description
mvn-scan is a command-line interface (CLI) tool designed to analyze Maven project dependencies and detect known vulnerabilities (CVEs) using the OSS Index API by Sonatype.
It is built to help identify security risks in both direct and transitive dependencies, generating clear and detailed HTML reports.
🔍 Features
-
Dependency analysis from:
.txtfiles.xmlfiles (pom.xml).warfiles
-
Vulnerability detection (CVEs)
-
Identification of direct and transitive dependencies
-
HTML report generation
-
Integration with OSS Index (Sonatype)
-
Persistent API token configuration
📦 Installation
pip install mvn-scan
⚙️ Usage
mvn-scan -txt <file.txt> [-out <output.html>]
mvn-scan -xml <file.xml> [-out <output.html>]
mvn-scan -war <file.war> [-out <output.html>]
🔑 API Key Configuration
This tool requires an API Key from OSS Index (Sonatype).
Save API Key (recommended)
mvn-scan --set-api-token YOUR_API_KEY
This will store the configuration in:
~/.mvnScan/config.json
Use with API Key directly
mvn-scan -txt deps.txt --api-key YOUR_API_KEY
🧪 Examples
mvn-scan -txt deps.txt
mvn-scan -xml pom.xml -out report.html
mvn-scan -war file.war --api-key YOUR_API_KEY
📄 Report
The scanner generates an HTML report that includes:
- Detected vulnerabilities
- Associated CVEs
- Severity level
- Affected components
- Direct and transitive dependencies
🛠️ Requirements
- Python >= 3.8
- OSS Index API Key (required)
🌐 API Used
This project uses the OSS Index (Sonatype) API to query component vulnerabilities.
More information: https://ossindex.sonatype.org/
👨💻 Author
Edwin Geinner Castro Sepulveda
GitHub: https://github.com/HeinerSepulveda
📜 License
This project is licensed under the MIT License.
See the LICENSE file for more details.
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 mvn_scan-1.8.tar.gz.
File metadata
- Download URL: mvn_scan-1.8.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7d7332ef36a980eec6236a9c4a9485406df0a53b365e5be0887a3c55d1a8372
|
|
| MD5 |
46a451c753992322dbc63ea54be2c49a
|
|
| BLAKE2b-256 |
fcdabd4b488e53830e68ed149c99694a7497fea2b738658daa2bd64763faaa46
|
File details
Details for the file mvn_scan-1.8-py3-none-any.whl.
File metadata
- Download URL: mvn_scan-1.8-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e1ab01ca846a113c21e2340c8e93de5bb7b55df692e46832b3c26c85c85e6a3
|
|
| MD5 |
aa548e2e5e23bc3be2807f4ab26c91a5
|
|
| BLAKE2b-256 |
952ac7b8931de80ca1edb2f47ddec7ffa6cb701df6c72a2226db614763b8bf28
|