- Create a service or tool to scan commonly used DevOps tools (e.g., GitLab, Nexus, Azure DevOps, Puppet) for security vulnerabilities, leveraging resources like the National Vulnerability Database (NVD) and CVE databases.
- Go
- Python
- GitHub, Nexus, Azure DevOps, REST APIs, NVD API, Webhooks, Docker.
- Integrate automated CVE scanning in the pipeline for each DevOps tool.
- Generate reports on vulnerabilities and suggest patches.
- Integrate with existing CI/CD pipelines.
A tool that automatically scans all repositories for known vulnerabilities, alerts teams, and ensures secure deployment practices.
Clone the repository and build the project:
git clone https://pmgitlab0301.bsp.pg.internal/infra/devops/cve-scanner.git
cd cve-scanner
go build -o cve-scannerRun the scanner to check for vulnerabilities in a specific package:
./cve-scanner --package nginx --version 1.21.6| Option | Description |
|---|---|
--package |
Specify the package name |
--version |
Specify the software version |
--export json |
Export results as a JSON file |
--export csv |
Export results as a CSV file |
The CVE Scanner fetches data from the National Vulnerability Database (NVD).
Example API request:
curl "https://services.nvd.nist.gov/rest/json/cves/2.0?keyword=nginx"cve-scanner/
│── scripts/ # CLI entry point
│── internal/ # Core logic
│── config/ # Configuration files
│── tests/ # Unit tests
│── go.mod # Go module dependencies- Fork the repository
- Create a feature branch
- Submit a merge request (MR)
See Contribution Guide for details.
This project is licensed under the MIT License.
For issues or feature requests, open a ticket on GitLab Issues.