Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikong/threat_hunt_api

Simple REST API for threat hunting data using Flask
https://github.com/mikong/threat_hunt_api

Last synced: about 1 month ago
JSON representation

Simple REST API for threat hunting data using Flask

Awesome Lists containing this project

README

        

# Threat Hunt API

## API

```
/api/tenants
/api/technologies
/api/assets
/api/hunts
```

## Database Schema

```
tenants
- id: uuid
- name: varchar

technologies
- id: uuid
- name: varchar
- versions: json

assets
- id: uuid
- mac_address: varchar
- host: varchar
- timestamp: numeric
- tenant_id: uuid
- running_tech: json

hunts
- id: uuid
- name: varchar
- description: text
- tenant_id: uuid
- asset_ids: uuid[]
```

## Project Setup

```bash
python3.12 -m venv .venv
source .venv/bin/activate
pip install Flask==2.3.3
pip install "connexion[swagger-ui]==2.14.2"
```