Giter Club home page Giter Club logo

cisa-kev-api's Introduction

CISA KEV Vulnerability API

This project fetches Known Exploited Vulnerabilities (KEV) data from the CISA website and serves it through a FastAPI application. The data is stored in an SQLite database.

Project Structure

The project consists of two main Python scripts:

build_db.py - This script retrieves the KEV data from the CISA website and populates the SQLite database. app.py - This script runs the FastAPI application, providing endpoints to fetch specific vulnerabilities by their CVE ID or search vulnerabilities by name.

Getting Started

Clone the repository:

git clone <repository_url>
cd <repository_directory>

Install the required Python libraries:

pip install fastapi uvicorn requests sqlite3

Fetch the KEV data and populate the database:

python fetch_kev_data.py

Start the app

uvicorn main:app --reload

You can now interact with the API at http://localhost:8000.

API Endpoints

GET /vulnerability/{cve_id} - Returns the vulnerability with the given CVE ID.

GET /search/{query} - Returns a list of vulnerabilities matching the given query string.

Replace <repository_url> and <repository_directory> with the appropriate URL and directory name for your project.

cisa-kev-api's People

Contributors

lazarofraga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.