{"id":13809842,"url":"https://github.com/aatlasis/cve_manager","last_synced_at":"2025-05-14T10:31:12.924Z","repository":{"id":45874678,"uuid":"167146490","full_name":"aatlasis/cve_manager","owner":"aatlasis","description":"A python script that a) parses NIST NVD CVEs, b) prcoesses and exports them to CSV files, c) creates a postgres database and imports all the data in it, d) provides query capabilities for this CVEs database.","archived":false,"fork":false,"pushed_at":"2021-11-30T17:00:22.000Z","size":3655,"stargazers_count":74,"open_issues_count":7,"forks_count":32,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-08T23:10:05.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aatlasis.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-23T08:31:11.000Z","updated_at":"2024-03-12T09:34:06.000Z","dependencies_parsed_at":"2022-09-05T08:10:32.705Z","dependency_job_id":null,"html_url":"https://github.com/aatlasis/cve_manager","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aatlasis%2Fcve_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aatlasis%2Fcve_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aatlasis%2Fcve_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aatlasis%2Fcve_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aatlasis","download_url":"https://codeload.github.com/aatlasis/cve_manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213870383,"owners_count":15650179,"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":[],"created_at":"2024-08-04T02:00:37.399Z","updated_at":"2024-08-04T02:01:17.118Z","avatar_url":"https://github.com/aatlasis.png","language":"Python","readme":"# cve_manager\nA python script that:\n\n  a) parses NIST NVD CVEs, \n  b) prcoesses and exports them to CSV files, \n  c) creates a postgres database and imports all the data in it, and\n  d) provides (basic) query capabilities for this CVEs database.\n\nIt requires Python 3 (\"psycopg2\" and \"requests\" python libraries)\n\nUsage examples: \n\n- Download, parse and save in CSV files all CVEs from NIST NVD:\n  ./cve_manager.py -d -p -csv\n  \n- Create a postgresql database to host the downloaded CVEs:\n  ./cve_manager.py -u \u003cmyuser\u003e host \u003chostname or IP\u003e -db \u003cdatabase_name\u003e -ow \u003cnew_owner of database\u003e -cd\n\n- Create the tables and views at the database:\n  ./cve_manager.py -u \u003cmyuser\u003e -host \u003chostname or IP\u003e -db \u003cdatabase_name\u003e -ct\n\n- Import all data into the created database (requires the download, parse and sdtore as CSV files first, as explained above):\n  ./cve_manager.py -u \u003cmyuser\u003e -host \u003chostname or IP\u003e -db \u003cdatabase_name\u003e -idb -p\n\n- Query for a specific CVE:\n  ./cve_manager.py -u \u003cmyuser\u003e -host \u003chostname or IP\u003e -db \u003cdatabase_name\u003e -cve 2019-2434\n    \n- Truncate the contents of all tables (required if you want to repeat the import process so as to update the data): \n  ./cve_manager.py -u \u003cmyuser\u003e -host \u003chostname or IP\u003e -db \u003cdatabase_name\u003e -tr\n  \n- Delete the database (remove it completely):\n  ./cve_manager.py -u \u003cmyuser\u003e -host \u003chostname or IP\u003e -db \u003cdatabase_name\u003e -dd\n\nComplete list of supported arguments:\n\n  -h, --help            show this help message and exit\n  \n  -v, --version         show program's version number and exit\n  \n  -p, --parse           Process downloaded CVEs.\n  \n  -d, --download        Download CVEs.\n  \n  -y YEAR, --year YEAR  The year for which CVEs shall be downloaded (e.g. 2019)\n  \n  -csv, --cvs_files     Create CSVs files.\n  \n  -idb, --import_to_db  Import CVEs into a database.\n  \n  -i INPUT, --input INPUT\n                        The directory where NVD json files will been downloaded, and the one from where they will be parsed\n                        (default: nvd/)\n                        \n  -o RESULTS, --output RESULTS\n                        The directory where the csv files will be stored (default: results/)\n                        \n  -u USER, --user USER  The user to connect to the database.\n  \n  -ow OWNER, --owner OWNER\n                        The owner of the database (if different from the connected user).                     \n                      \n  -host HOST, --host HOST\n                        The host or IP of the database server.\n                        \n  -db DATABASE, --database DATABASE\n                        The name of the database.\n                        \n  -cd, --create_database\n                        Create the database\n                        \n  -dd, --drop_database  Drop the database\n  \n  -ct, --create_tables  Create the tables of the database\n  \n  -tr, --truncate_cves_tables\n                        Truncate the CVEs-related tables\n                        \n  -cve CVE, --cvs_number CVE\n                        Print info for a CVE (CVSS score and other)\n                   \nPlease check the CVE Manager pdf file for more capabilities, information, and screenshots.\n","funding_links":[],"categories":["CVEs","Python","Python (1887)"],"sub_categories":["Hashing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faatlasis%2Fcve_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faatlasis%2Fcve_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faatlasis%2Fcve_manager/lists"}