Strobes Intel AI

Strobes Intel AI · Actions GPT

FastAPI

  • GET /api/vulnerabilities/{cve_id}Get Cve By Id
  • POST /api/vulnerabilitiesFilter Cves
Schéma original API
{
  "openapi": "3.0.2",
  "info": {
    "title": "FastAPI",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://intel.strobes.co"
    }
  ],
  "paths": {
    "/api/vulnerabilities/{cve_id}": {
      "get": {
        "summary": "Get Cve By Id",
        "operationId": "get_cve_by_id_api_vulnerabilities__cve_id__get",
        "parameters": [
          {
            "required": true,
            "schema": {
              "title": "Cve Id",
              "type": "string"
            },
            "name": "cve_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cves"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/vulnerabilities": {
      "post": {
        "summary": "Filter Cves",
        "operationId": "filter_cves_api_vulnerabilities_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CVEFilterInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListCves"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Advisory": {
        "title": "Advisory",
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "allOf": [
              {
                "$ref": "#/components/schemas/Description"
              }
            ],
            "default": {}
          },
          "cvss_v2": {
            "title": "Cvss V2",
            "type": "number"
          },
          "cvss_v3": {
            "title": "Cvss V3",
            "type": "number"
          },
          "cvss_v2_vector": {
            "title": "Cvss V2 Vector",
            "type": "string"
          },
          "cvss_v3_vector": {
            "title": "Cvss V3 Vector",
            "type": "string"
          },
          "cpe": {
            "title": "Cpe",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "remediation": {
            "title": "Remediation",
            "type": "string"
          },
          "impact": {
            "title": "Impact",
            "type": "string"
          },
          "exploitability_score_v2": {
            "title": "Exploitability Score V2",
            "type": "number"
          },
          "impact_score_v2": {
            "title": "Impact Score V2",
            "type": "number"
          },
          "exploitability_score_v3": {
            "title": "Exploitability Score V3",
            "type": "number"
          },
          "impact_score_v3": {
            "title": "Impact Score V3",
            "type": "number"
          },
          "references": {
            "title": "References",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "default": []
          },
          "assigner": {
            "title": "Assigner",
            "type": "string"
          }
        }
      },
      "AttackSurfaceTool": {
        "title": "AttackSurfaceTool",
        "required": [
          "_id",
          "tool",
          "input"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "title": " Id",
            "type": "string",
            "aliases": "hash"
          },
          "tool": {
            "title": "Tool",
            "type": "string"
          },
          "input": {
            "title": "Input",
            "type": "string"
          },
          "output": {
            "title": "Output",
            "type": "string",
            "default": ""
          },
          "status": {
            "title": "Status",
            "type": "string",
            "default": "NO_DATA"
          },
          "successfull_scans": {
            "title": "Successfull Scans",
            "type": "integer",
            "default": 0
          },
          "s3_file_path": {
            "title": "S3 File Path",
            "type": "string",
            "default": ""
          },
          "error_logs": {
            "title": "Error Logs",
            "type": "string",
            "default": ""
          },
          "last_scanned": {
            "title": "Last Scanned",
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Document Mapping class.\n\nFields:\n\n- `id` - MongoDB document ObjectID \"_id\" field.\nMapped to the PydanticObjectId class\n\nInherited from:\n\n- Pydantic BaseModel\n- [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)"
      },
      "CAPEC": {
        "title": "CAPEC",
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          }
        }
      },
      "CVEFilterInput": {
        "title": "CVEFilterInput",
        "type": "object",
        "properties": {
          "operator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Operator"
              }
            ],
            "default": "and"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sort"
              }
            ],
            "default": "desc"
          },
          "skip": {
            "title": "Skip",
            "type": "integer",
            "default": 0
          },
          "limit": {
            "title": "Limit",
            "type": "integer",
            "default": 5
          },
          "query": {
            "title": "Query",
            "type": "object",
            "default": {},
            "properties": {
              "exploit_available": {
                "type": "object",
                "properties": {
                  "eq": {
                    "type": "boolean"
                  }
                }
              },
              "is_zeroday": {
                "type": "object",
                "properties": {
                  "eq": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        }
      },
      "CWE": {
        "title": "CWE",
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          }
        }
      },
      "Cves": {
        "title": "Cves",
        "required": [
          "_id"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "title": " Id",
            "type": "string",
            "aliases": "cve"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "advisories": {
            "title": "Advisories",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Advisory"
            },
            "default": []
          },
          "cvss_v2": {
            "title": "Cvss V2",
            "type": "number"
          },
          "cvss_v3": {
            "title": "Cvss V3",
            "type": "number"
          },
          "cvss_v2_vector": {
            "title": "Cvss V2 Vector",
            "type": "string"
          },
          "cvss_v3_vector": {
            "title": "Cvss V3 Vector",
            "type": "string"
          },
          "predicted_cvss_v2": {
            "title": "Predicted Cvss V2",
            "type": "number"
          },
          "predicted_cvss_v3": {
            "title": "Predicted Cvss V3",
            "type": "number"
          },
          "exploits": {
            "title": "Exploits",
            "allOf": [
              {
                "$ref": "#/components/schemas/Exploits"
              }
            ],
            "default": {
              "exploit_available": false,
              "references": []
            }
          },
          "zeroday": {
            "title": "Zeroday",
            "allOf": [
              {
                "$ref": "#/components/schemas/Zeroday"
              }
            ],
            "default": {
              "is_zeroday": false,
              "references": []
            }
          },
          "patches": {
            "title": "Patches",
            "allOf": [
              {
                "$ref": "#/components/schemas/Patches"
              }
            ],
            "default": {
              "patch_available": false,
              "references": []
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "taxonomy": {
            "title": "Taxonomy",
            "allOf": [
              {
                "$ref": "#/components/schemas/Taxonomy"
              }
            ],
            "default": {
              "cwe": [],
              "predicted_cwe": [],
              "owasp_2021": [],
              "owasp_2007": [],
              "owasp_2004": [],
              "nist": [],
              "capec": [],
              "wasc": []
            }
          },
          "twitter": {
            "title": "Twitter",
            "allOf": [
              {
                "$ref": "#/components/schemas/Twitter"
              }
            ],
            "default": {
              "trending_now": false,
              "tweet_count": 0
            }
          },
          "seen_wild": {
            "title": "Seen Wild",
            "type": "boolean",
            "default": false
          },
          "priority_score": {
            "title": "Priority Score",
            "type": "integer",
            "default": 0
          },
          "published": {
            "title": "Published",
            "type": "string",
            "format": "date-time",
            "default": "2023-11-11T07:35:23.926828"
          },
          "last_modified": {
            "title": "Last Modified",
            "type": "string",
            "format": "date-time",
            "default": "2023-11-11T07:35:23.926836"
          },
          "trend": {
            "title": "Trend",
            "type": "integer",
            "default": 2
          },
          "likes": {
            "title": "Likes",
            "type": "integer",
            "default": 0
          },
          "dislikes": {
            "title": "Dislikes",
            "type": "integer",
            "default": 0
          },
          "cisa_due_date": {
            "title": "Cisa Due Date",
            "type": "string"
          },
          "epss_score": {
            "title": "Epss Score",
            "type": "number"
          }
        },
        "description": "Document Mapping class.\n\nFields:\n\n- `id` - MongoDB document ObjectID \"_id\" field.\nMapped to the PydanticObjectId class\n\nInherited from:\n\n- Pydantic BaseModel\n- [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)"
      },
      "Description": {
        "title": "Description",
        "type": "object",
        "properties": {
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "published": {
            "title": "Published",
            "type": "string"
          },
          "last_modified": {
            "title": "Last Modified",
            "type": "string"
          }
        }
      },
      "Exploits": {
        "title": "Exploits",
        "type": "object",
        "properties": {
          "exploit_available": {
            "title": "Exploit Available",
            "type": "boolean",
            "default": false
          },
          "references": {
            "title": "References",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "default": []
          }
        },
        "description": "Embedded model for exploits"
      },
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "ListCves": {
        "title": "ListCves",
        "type": "object",
        "properties": {
          "total_count": {
            "title": "Total Count",
            "type": "integer",
            "default": 0
          },
          "cves": {
            "title": "Cves",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cves"
            },
            "default": []
          },
          "has_next": {
            "title": "Has Next",
            "type": "boolean",
            "default": false
          }
        }
      },
      "ListMSRCKBSupercedence": {
        "title": "ListMSRCKBSupercedence",
        "type": "object",
        "properties": {
          "total_count": {
            "title": "Total Count",
            "type": "integer",
            "default": 0
          },
          "msrc_kbs": {
            "title": "Msrc Kbs",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MSRCKBSupercedence"
            },
            "default": []
          },
          "has_next": {
            "title": "Has Next",
            "type": "boolean",
            "default": false
          }
        }
      },
      "ListThreatActors": {
        "title": "ListThreatActors",
        "type": "object",
        "properties": {
          "total_count": {
            "title": "Total Count",
            "type": "integer",
            "default": 0
          },
          "threat_actors": {
            "title": "Threat Actors",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThreatActor"
            },
            "default": []
          },
          "has_next": {
            "title": "Has Next",
            "type": "boolean",
            "default": false
          }
        }
      },
      "ListVulnerableProducts": {
        "title": "ListVulnerableProducts",
        "type": "object",
        "properties": {
          "total_count": {
            "title": "Total Count",
            "type": "integer",
            "default": 0
          },
          "products": {
            "title": "Products",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VulnerableProduct"
            },
            "default": []
          },
          "has_next": {
            "title": "Has Next",
            "type": "boolean",
            "default": false
          }
        }
      },
      "MSRCKBSupercedence": {
        "title": "MSRCKBSupercedence",
        "required": [
          "_id",
          "product",
          "build_number"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "title": " Id",
            "type": "string",
            "aliases": "hash"
          },
          "product": {
            "title": "Product",
            "type": "string"
          },
          "build_number": {
            "title": "Build Number",
            "type": "string"
          },
          "supercedence": {
            "title": "Supercedence",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cves": {
            "title": "Cves",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cvrf": {
            "title": "Cvrf",
            "type": "string",
            "default": "-"
          }
        },
        "description": "Document Mapping class.\n\nFields:\n\n- `id` - MongoDB document ObjectID \"_id\" field.\nMapped to the PydanticObjectId class\n\nInherited from:\n\n- Pydantic BaseModel\n- [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)"
      },
      "NIST": {
        "title": "NIST",
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          }
        }
      },
      "OWASP": {
        "title": "OWASP",
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          }
        }
      },
      "Operator": {
        "title": "Operator",
        "enum": [
          "or",
          "and"
        ],
        "type": "string",
        "description": "An enumeration."
      },
      "Patches": {
        "title": "Patches",
        "type": "object",
        "properties": {
          "patch_available": {
            "title": "Patch Available",
            "type": "boolean",
            "default": false
          },
          "references": {
            "title": "References",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "default": []
          }
        },
        "description": "Embedded model for patches"
      },
      "Reference": {
        "title": "Reference",
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "source": {
            "title": "Source",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string",
            "default": "MISC"
          },
          "url": {
            "title": "Url",
            "type": "string",
            "deafult": ""
          }
        },
        "description": "Embedded model for reference"
      },
      "Sort": {
        "title": "Sort",
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string",
        "description": "An enumeration."
      },
      "Subdomain": {
        "title": "Subdomain",
        "required": [
          "_id",
          "subdomain"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "title": " Id",
            "type": "string",
            "aliases": "domain"
          },
          "subdomain": {
            "title": "Subdomain",
            "type": "string"
          }
        },
        "description": "Document Mapping class.\n\nFields:\n\n- `id` - MongoDB document ObjectID \"_id\" field.\nMapped to the PydanticObjectId class\n\nInherited from:\n\n- Pydantic BaseModel\n- [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)"
      },
      "SubscribeInput": {
        "title": "SubscribeInput",
        "required": [
          "email",
          "first_name",
          "last_name"
        ],
        "type": "object",
        "properties": {
          "email": {
            "title": "Email",
            "maxLength": 254,
            "type": "string"
          },
          "first_name": {
            "title": "First Name",
            "maxLength": 254,
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "maxLength": 254,
            "type": "string"
          },
          "age": {
            "title": "Age",
            "exclusiveMaximum": 100,
            "exclusiveMinimum": 15,
            "type": "integer",
            "default": 18
          }
        }
      },
      "Taxonomy": {
        "title": "Taxonomy",
        "type": "object",
        "properties": {
          "cwe": {
            "title": "Cwe",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CWE"
            },
            "default": []
          },
          "predicted_cwe": {
            "title": "Predicted Cwe",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CWE"
            },
            "default": []
          },
          "owasp_2021": {
            "title": "Owasp 2021",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OWASP"
            },
            "default": []
          },
          "owasp_2007": {
            "title": "Owasp 2007",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OWASP"
            },
            "default": []
          },
          "owasp_2004": {
            "title": "Owasp 2004",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OWASP"
            },
            "default": []
          },
          "nist": {
            "title": "Nist",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NIST"
            },
            "default": []
          },
          "capec": {
            "title": "Capec",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CAPEC"
            },
            "default": []
          },
          "wasc": {
            "title": "Wasc",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WASC"
            },
            "default": []
          }
        }
      },
      "ThreatActor": {
        "title": "ThreatActor",
        "required": [
          "_id",
          "description"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "title": " Id",
            "type": "string",
            "aliases": "name"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "default": ""
          },
          "aliases": {
            "title": "Aliases",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cves_exploited": {
            "title": "Cves Exploited",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "state_sponsor": {
            "title": "State Sponsor",
            "type": "string",
            "default": ""
          },
          "suspected_victims": {
            "title": "Suspected Victims",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "target_category": {
            "title": "Target Category",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "type_of_incident": {
            "title": "Type Of Incident",
            "type": "string",
            "default": ""
          },
          "references": {
            "title": "References",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "default": []
          }
        },
        "description": "Document Mapping class.\n\nFields:\n\n- `id` - MongoDB document ObjectID \"_id\" field.\nMapped to the PydanticObjectId class\n\nInherited from:\n\n- Pydantic BaseModel\n- [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)"
      },
      "Twitter": {
        "title": "Twitter",
        "type": "object",
        "properties": {
          "trending_now": {
            "title": "Trending Now",
            "type": "boolean",
            "default": false
          },
          "last_trending_at": {
            "title": "Last Trending At",
            "type": "string"
          },
          "tweet_count": {
            "title": "Tweet Count",
            "type": "integer",
            "default": 0
          }
        }
      },
      "UserReview": {
        "title": "UserReview",
        "required": [
          "host",
          "cve"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "title": " Id",
            "type": "string",
            "examples": [
              "5eb7cf5a86d9755df3a6c593",
              "5eb7cfb05e32e07750a1756a"
            ]
          },
          "host": {
            "title": "Host",
            "type": "string"
          },
          "cve": {
            "title": "Cve",
            "type": "string"
          },
          "like": {
            "title": "Like",
            "type": "boolean",
            "default": false
          },
          "dislike": {
            "title": "Dislike",
            "type": "boolean",
            "default": false
          }
        },
        "description": "Document Mapping class.\n\nFields:\n\n- `id` - MongoDB document ObjectID \"_id\" field.\nMapped to the PydanticObjectId class\n\nInherited from:\n\n- Pydantic BaseModel\n- [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)"
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      },
      "Version": {
        "title": "Version",
        "required": [
          "cve_id"
        ],
        "type": "object",
        "properties": {
          "cve_id": {
            "title": "Cve Id",
            "type": "string"
          },
          "affected_version_range": {
            "title": "Affected Version Range",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "fixed_version": {
            "title": "Fixed Version",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          }
        }
      },
      "VulnerableProduct": {
        "title": "VulnerableProduct",
        "required": [
          "_id",
          "name",
          "ecosystem",
          "type"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "title": " Id",
            "type": "string",
            "aliases": "hash"
          },
          "product_id": {
            "title": "Product Id",
            "type": "string"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "ecosystem": {
            "title": "Ecosystem",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "ecosystem_details": {
            "title": "Ecosystem Details",
            "type": "string",
            "default": "-"
          },
          "cpe": {
            "title": "Cpe",
            "type": "string"
          },
          "product_family": {
            "title": "Product Family",
            "type": "string"
          },
          "affected": {
            "title": "Affected",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Version"
            },
            "default": []
          }
        },
        "description": "Document Mapping class.\n\nFields:\n\n- `id` - MongoDB document ObjectID \"_id\" field.\nMapped to the PydanticObjectId class\n\nInherited from:\n\n- Pydantic BaseModel\n- [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)"
      },
      "WASC": {
        "title": "WASC",
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          }
        }
      },
      "Zeroday": {
        "title": "Zeroday",
        "type": "object",
        "properties": {
          "is_zeroday": {
            "title": "Is Zeroday",
            "type": "boolean",
            "default": false
          },
          "references": {
            "title": "References",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "default": []
          }
        },
        "description": "Embedded model for zeroday"
      }
    }
  }
}