Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
autoswagger — Command-line tool that discovers Swagger/OpenAPI specs, enumerates endpoints, and tests for unauthenticated access, PII exposure, and leaked secrets in API responses. | Kitploit
Tools/GitHubGitHub/intruder-io/autoswagger
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersAPI Security TestingData ExfiltrationInformation GatheringWeb SecurityPenetration TestingSecret DetectionAPI Security
GitHub
2.0k1821 year agoReviewed by Kitploit
Share
intruder-io/autoswagger

autoswagger

Command-line tool that discovers Swagger/OpenAPI specs, enumerates endpoints, and tests for unauthenticated access, PII exposure, and leaked secrets in API responses.

View Repository

Autoswagger by Intruder

output

Autoswagger is a command-line tool designed to discover, parse, and test for unauthenticated endpoints using Swagger/OpenAPI documentation. It helps identify potential security issues in unprotected endpoints of APIs, such as PII leaks and common secret exposures.

Please note that this initial release of Autoswagger is by no means complete, and there are some types of specification which the tool does not currently handle. Please feel free to use it as you wish, and extend its detection capabilities or add detection regexes to cover your specific use-case!


Table of Contents

  1. Introduction
  2. Key Features
  3. Installation & Usage
  4. Discovery Phases
  5. Endpoint Testing
  6. PII Detection
  7. Output Examples
  8. Stats & Reporting
  9. Acknowledgments

Introduction

Autoswagger automates the process of finding OpenAPI/Swagger specifications, extracting API endpoints, and systematically testing them for PII exposure, secrets, and large or interesting responses. It leverages Presidio for PII recognition and regex for sensitive key/token detection.


Key Features

  • Multiple Discovery Phases
    Discovers OpenAPI specs in three ways:

    1. Direct Spec: If a full URL with a path ending in .json, .yaml, or .yml is provided, parse that file directly.
    2. Swagger UI: Parse known paths of Swagger UI (e.g. /swagger-ui.html), and extract spec from HTML or JavaScript.
    3. Direct Spec by Bruteforce: Attempt discovery using common OpenAPI schema locations (/swagger.json, /openapi.json, etc.). Only attempt this if 1. and 2. did not yield a result.
  • Parallel Endpoint Testing
    Multi-threaded concurrent testing of many endpoints, respecting a configurable rate limit (-rate).

  • Brute-Force of Parameter Values
    If -b or --brute is used, try using various data types with a few example values in an attempt to bypass parameter-specific validations.

  • Presidio PII Detection
    Check output for phone numbers, emails, addresses, and names (with context validation to reduce false positives). Also parse CSV rows and naive “key: value” lines.

  • Secrets Detection
    Leverages a set of regex patterns to detect tokens, keys, and debugging artifacts (like environment variables).

  • Command Line or JSON Output
    In default mode, displays results in a table. With -json, output a JSON structure. -product mode filters output to only show those that contain PII, secrets, or large responses.


Installation & Usage

  1. Clone or download the repository containing Autoswagger.

    git clone [email protected]:intruder-io/autoswagger.git
    
  2. Install dependencies (e.g., using Python 3.7+):

    pip install -r requirements.txt
    

    (It's recommended to use a virtual environment for this: python3 -m venv venv;source venv/bin/activate)

  3. Check installation, show help:

python3 autoswagger.py -h

Flags

FlagDescription
urlsList of base URLs or direct spec URLs.
-v, --verboseEnables verbose logging. Creates a log file under ~/.autoswagger/logs.
-riskIncludes non-GET methods (POST, PUT, PATCH, DELETE) in testing.
-allIncludes 200 and 404 endpoints in output (excludes 401/403).
-productOutputs only endpoints with PII or large responses, in JSON format.
-statsDisplays scan statistics (e.g. requests, RPS, hosts with PII).
-rate <N>Throttles requests to N requests per second. Default is 30. Use 0 to disable rate limiting.
-b, --bruteEnables brute-forcing of parameter values (multiple test combos).
-jsonOutputs results in JSON format instead of a Rich table in default mode.

Help



      /   | __  __/ /_____  ______      ______ _____ _____ ____  _____
     / /| |/ / / / __/ __ \/ ___/ | /| / / __ `/ __ `/ __ `/ _ \/ ___/
    / ___ / /_/ / /_/ /_/ (__  )| |/ |/ / /_/ / /_/ / /_/ /  __/ /
    /_/  |_\__,_/\__/\____/____/ |__/|__/_\__,_/\__, /\__, /\___/_/
                                              /____//____/
                              https://intruder.io
                          Find unauthenticated endpoints

usage: autoswagger.py [-h] [-v] [-risk] [-all] [-product] [-stats] [-rate RATE] [-b] [-json] [urls ...]

Autoswagger: Detect unauthenticated access control issues via Swagger/OpenAPI documentation.

positional arguments:
  urls           Base URL(s) or spec URL(s) of the target API(s)

options:
  -h, --help     show this help message and exit
  -v, --verbose  Enable verbose output
  -risk          Include non-GET requests in testing
  -all           Include all HTTP status codes in the results, excluding 401 and 403
  -product       Output all endpoints in JSON, flagging those that contain PII or have large responses.
  -stats         Display scan statistics. Included in JSON if -product or -json is used.
  -rate RATE     Set the rate limit in requests per second (default: 30). Use 0 to disable rate limiting.
  -b, --brute    Enable exhaustive testing of parameter values.
  -json          Output results in JSON format in default mode.

Example usage:
  python autoswagger.py https://api.example.com -v

Discovery Phases

  1. Direct Spec
    If a provided URL ends with .json/.yaml/.yml, Autoswagger directly attempts to parse the OpenAPI schema.

  2. Swagger-UI Detection

    • Tries known UI paths (e.g., /swagger-ui.html).
    • If found, parses the HTML or local JavaScript files for a swagger.json or openapi.json.
    • Can detect embedded configs like window.swashbuckleConfig.
  3. Direct Spec by Bruteforce

    • If no spec is found so far, Autoswagger attempts a list of default endpoints like /swagger.json, /openapi.json, etc.
    • Stops when a valid spec is discovered or none are found.

Endpoint Testing

  1. Collect Endpoints
    After loading a spec, Autoswagger extracts each path and method under the paths key.

  2. HTTP Methods

    • By default, tests GET only.
    • Use -risk to include other methods (POST, PUT, PATCH, DELETE).
  3. Parameter Values

    • Fill path/query parameters with defaults or values to enumerate.
    • Optionally builds request bodies from the spec’s requestBody (OpenAPI 3) or body parameters (Swagger 2).
  4. Rate Limiting & Concurrency

    • Supports threading with a cap on requests per second (-rate).
    • Each endpoint is tested in a dedicated job.
  5. Response Analysis

    • Decodes responses, checks for PII, secrets, and large content.
    • Logs relevant findings.

PII Detection

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    974
  • 2

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    895
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    713
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    472
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    422
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    390

Explore all tools

Browse our collection of tools

View all tools →