The CVE to CPE Converter is a Python application developed to automatically generate CPE (Common Platform Enumeration) records from CVE descriptions using big language model (LLM). This project is designed to facilitate the management of security vulnerabilities by easily and quickly converting CVE information into a standardized CPE format.
- Up-to-Date CVE Data: Processes daily updated CVE data.
- CPE Conversion: Generates CPE records from CVE descriptions.
- Data Storage: Stores data in local daily JSON files.
- Ollama Integration: Utilizes Ollama for processing CVE and CPE data.
- Streamlit Application: Provides a web-based interface.
The following requirements are necessary for the proper functioning of this project:
- Python: Requires Python 3.6 or higher.
- Virtual Environment: It is recommended to create an isolated Python environment to run the project.
- Ollama: Requires the Ollama language model for processing CVE and CPE data. Version: 0.3.0
- Llama3: With 8B parameters.
Follow these steps to set up the project on your local machine:
-
Clone the Repository:
git clone https://github.com/BilgeNurBekar/CVE2CPE.git cd CVE2CPE
-
Create and Activate a Virtual Environment:
-
Windows:
python -m venv venv venv\Scripts\activate
-
Linux/MacOS:
python3 -m venv venv source venv/bin/activate
-
-
Install Required Libraries:
pip install -r requirements.txt
-
Configuration:
- Create a
.env
file and define the necessary environment variables. Request an API key from NVD - Visit: Ollama
- Create a
Run the project in different terminals:
py dailyCVE2cpe.py
streamlit run CVEvisualizaiton.py --serve localhost