{"id":18429518,"url":"https://github.com/bilgenurbekar/cve2cpe","last_synced_at":"2025-04-14T23:35:11.480Z","repository":{"id":252664932,"uuid":"841055763","full_name":"BilgeNurBekar/CVE2CPE","owner":"BilgeNurBekar","description":"This is a study that creates CPEs using LLM from CVE records.","archived":false,"fork":false,"pushed_at":"2024-08-11T16:03:52.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T11:39:41.161Z","etag":null,"topics":["langchain-python","llama3","nvdlib","ollama","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BilgeNurBekar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T14:07:16.000Z","updated_at":"2024-08-24T18:37:19.000Z","dependencies_parsed_at":"2024-08-11T17:09:14.312Z","dependency_job_id":null,"html_url":"https://github.com/BilgeNurBekar/CVE2CPE","commit_stats":null,"previous_names":["bilgenurbekar/cve2cpe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BilgeNurBekar%2FCVE2CPE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BilgeNurBekar%2FCVE2CPE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BilgeNurBekar%2FCVE2CPE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BilgeNurBekar%2FCVE2CPE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BilgeNurBekar","download_url":"https://codeload.github.com/BilgeNurBekar/CVE2CPE/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248980592,"owners_count":21193134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["langchain-python","llama3","nvdlib","ollama","python"],"created_at":"2024-11-06T05:17:29.478Z","updated_at":"2025-04-14T23:35:11.454Z","avatar_url":"https://github.com/BilgeNurBekar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVE to CPE Converter\n\n## Description\n\nThe 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.\n\n## Features\n\n- **Up-to-Date CVE Data**: Processes daily updated CVE data.\n- **CPE Conversion**: Generates CPE records from CVE descriptions.\n- **Data Storage**: Stores data in local daily JSON files.\n- **Ollama Integration**: Utilizes Ollama for processing CVE and CPE data.\n- **Streamlit Application**: Provides a web-based interface.\n\n## Project Flow Chart\n\n![Project Flow Chart](./flow.png)\n\n\n## Requirements\n\nThe following requirements are necessary for the proper functioning of this project:\n\n### Python and Virtual Environment\n\n1. **Python**: Requires Python 3.6 or higher.\n2. **Virtual Environment**: It is recommended to create an isolated Python environment to run the project.\n\n### Language Model Usage\n\n- **Ollama**: Requires the Ollama language model for processing CVE and CPE data. Version: 0.3.0\n- **Llama3**: With 8B parameters.\n\n### Installation\n\nFollow these steps to set up the project on your local machine:\n\n1. **Clone the Repository**:\n\n    ```bash\n    git clone https://github.com/BilgeNurBekar/CVE2CPE.git\n    cd CVE2CPE\n    ```\n\n2. **Create and Activate a Virtual Environment**:\n\n    - **Windows**:\n\n        ```bash\n        python -m venv venv\n        venv\\Scripts\\activate\n        ```\n\n    - **Linux/MacOS**:\n\n        ```bash\n        python3 -m venv venv\n        source venv/bin/activate\n        ```\n\n3. **Install Required Libraries**:\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. **Configuration**:\n\n    - Create a `.env` file and define the necessary environment variables. [Request an API key from NVD](https://nvd.nist.gov/developers/request-an-api-key)\n    - Visit: [Ollama](https://ollama.com/)\n\n## Usage\n\n### Running the Project\n\nRun the project in different terminals:\n\n\n```bash\npy dailyCVE2cpe.py \n```\n\n```bash\nstreamlit run CVEvisualizaiton.py --serve localhost \n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilgenurbekar%2Fcve2cpe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilgenurbekar%2Fcve2cpe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilgenurbekar%2Fcve2cpe/lists"}