Skip to content

macbuildssys/api-sec-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Security Scanner

API Security Scanner Screenshot

Overview

API Security Scanner is an advanced vulnerability assessment tool designed to identify and report security flaws in RESTful and HTTPS APIs. It supports OpenAPI analysis, JWT token auditing, CVSS 4.0 risk scoring, and full OWASP API Top 10 (2023) coverage.

Features

API Discovery & Reconnaissance

  • Finds OpenAPI/Swagger, GraphQL, and .well-known endpoints.

  • Detects exposed configs (.env, config.json, etc.).

Comprehensive Vulnerability Scanning

  • Covers SQLi, XSS, SSRF, command injection, missing authentication, weak rate limiting, and more.

  • Analyzes JWT tokens for weak/none algorithms, missing expiration, and sensitive data exposure.

CVSS 4.0 Scoring

  • Calculates base, temporal, and environmental scores.

Technology Fingerprinting

  • Detects frameworks, languages, and servers from headers and responses.

Flexible Reporting

  • Console-friendly output with rich tables & colors.

  • Supports JSON and Markdown export.

Installation

git clone https://github.com/macbuildssys/api-sec-scanner.git

cd api-sec-scanner

pip install -r requirements.txt

pip install .

Dependencies: PyJWT, PyYAML, click, aiohttp, requests, rich, pydantic

Usage

Run the scanner via the installed console command:

api-sec-scanner

# or

api-sec-scanner https://target-api.com

Options

Option Description
--output, -o Output file for report
--format, -f Report format: json
--verbose, -v Enable verbose output

Example:

api-sec-scanner https://api.example.com -f json -o report.json

Example Output

OPERATION RISK LEVEL CVSS 4.0 SCORE OWASP VULNERABILITY
GET /users HIGH 8.7 API1:2023 Broken Object Level Authorization

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

Distributed under the MIT License. See LICENSE for details.

About

A proof-of-concept vulnerability scanner for HTTPS/REST APIs. Designed to showcase automated detection techniques and serve as a flexible foundation for further research, experimentation, and community-driven improvements.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages