Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whitehatboy005/json2yaml-cve
JSON2YAML is a Python-based utility that simplifies the process of converting CVE (Common Vulnerabilities and Exposures) data from JSON format into well-structured YAML files. This tool allows security analysts and developers to easily manage, analyze, and integrate CVE data into their vulnerability management systems.
https://github.com/whitehatboy005/json2yaml-cve
convertor cves json json2yaml nuclei-templates python3 template
Last synced: 17 days ago
JSON representation
JSON2YAML is a Python-based utility that simplifies the process of converting CVE (Common Vulnerabilities and Exposures) data from JSON format into well-structured YAML files. This tool allows security analysts and developers to easily manage, analyze, and integrate CVE data into their vulnerability management systems.
- Host: GitHub
- URL: https://github.com/whitehatboy005/json2yaml-cve
- Owner: whitehatboy005
- License: mit
- Created: 2024-11-29T02:02:09.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2024-12-04T03:19:47.000Z (19 days ago)
- Last Synced: 2024-12-06T05:07:34.808Z (17 days ago)
- Topics: convertor, cves, json, json2yaml, nuclei-templates, python3, template
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# JSON2YAML
**JSON2YAML** is a Python-based utility that simplifies the process of converting CVE (Common Vulnerabilities and Exposures) data from JSON format into well-structured YAML files. This tool allows security analysts and developers to easily manage, analyze, and integrate CVE data into their vulnerability management systems.With **JSON2YAML**, you can seamlessly convert detailed CVE records into a readable YAML format, making it easier to work with tools that require YAML files or to maintain your own vulnerability databases.
## Features:
- **Automatic CVE Parsing:** Automatically extracts the CVE number from the provided JSON data and uses it as the filename for the YAML output.
- **Structured Output:** Converts raw CVE JSON data into a neatly formatted YAML file, retaining important information such as descriptions, CVSS scores, references, and affected software.
- **Error Handling:** Provides error messages when the required CVE data is missing or improperly formatted.
- **Easy-to-Use:** A simple, command-line based tool that converts individual CVEs or batches of CVE data quickly and efficiently.
#
## Example Input:
**Provide a JSON file with CVE details such as ID, description, CVSS score, references, and affected products.**
![Screenshot 2024-12-04 082124](https://github.com/user-attachments/assets/18e24f94-0912-4d3f-b9bc-1e9706c39b98)## JSON2YAML conversion
![Screenshot 2024-12-04 082034](https://github.com/user-attachments/assets/ac9575aa-8cbd-4422-abaa-96b84b0a1e27)## Example Output:
**A neatly formatted YAML file with structured CVE information.**
![Screenshot 2024-12-04 082205](https://github.com/user-attachments/assets/edd6b840-7cd7-4c0c-9fa2-499bf5e0efb5)#
## Installation
## Clone the Repository
```bash
git clone https://github.com/whitehatboy005/JSON2YAML-CVE
cd JSON2YAML-CVE
```
## Install Dependencies
```bash
pip install -r requirements.txt
```
## Usage:
**To convert a CVE JSON file to YAML, run the script:**
```bash
python json2yaml.py
```
- **Input the path to your JSON file when prompted.**
- **The script will automatically generate a YAML file named after the CVE ID.**## Contribution:
**Contributions are welcome! If you have any suggestions for improvements or bug fixes, feel free to submit a pull request.**## License:
This project is licensed under the terms of the [MIT license](LICENSE.md).