Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

API Security Analyzer for OpenAPI/Swagger Specs

Đang mở
#61 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
openapi, typescript
Lĩnh vực
api, security

Hướng nghiên cứu

The issue names no repository files, tests, or entry points. Start by reviewing the OpenAPI/Swagger examples and defining the analyzer scope, supported specification versions, vulnerability taxonomy changes, and how each listed security violation will be reported; done means those decisions and acceptance checks are documented.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

This feature would introduce a specialized vulnerability type in our security taxonomy to analyze API definition files like openapi.yaml or swagger.json for security best-practice violations.

The scanner would check for common issues such as:

  • Endpoints missing security scheme definitions (e.g., no authentication).
  • Use of insecure protocols (http instead of https).
  • Lack of defined rate-limiting properties.
  • Sensitive data being passed in query parameters instead of the request body.
  • Vague or overly permissive data type definitions (e.g., type: object without defined properties).

Open question: is there an open source tool we could use to help Gemini on the analysis?

Example 1:

{
  "swagger": "2.0",
  "info": {
    "title": "Bad Swagger API",
    "version": "1.0.0"
  },
  "paths": {
    "/reports/confidential": {
      "get": {
        "summary": "Get confidential report",
        "parameters": [
          {
            "name": "apiKey",
            "in": "query",
            "description": "API Key passed in URL (insecure!)",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "Report data"
          }
        }
      }
    }
  }
}

Example 2:

openapi: 3.0.0
info:
  title: Insecure Transport API
  version: 1.0.0
servers:
  - url: http://api.example.com/v1 # <-- Insecure HTTP
paths:
  /data:
    get:
      summary: Get some data
      responses:
        '200':
          description: OK
Ngôn ngữ chính
TypeScript
Star
794
Fork
58
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gemini-cli-extensions/security

Tất cả issue của gemini-cli-extensions/security

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.