How intruder-io/autoswagger works
Autoswagger is a command-line security scanner that finds API specifications, tests documented endpoints for unauthenticated access, analyzes responses for sensitive or unusually large data, and reports findings. Its runtime is implemented in the single core file autoswagger.py, so the graph separates meaningful responsibilities within that file rather than implying a multi-package architecture. The README documents the full capability set; sampled source confirms endpoint dispatch and spec-fetch behavior, but not every internal call relationship.
Main entry points: autoswagger.py Scan coordinator
Components 16
Spec discovery
- Scan coordinator
autoswagger.py - Direct spec fetch
autoswagger.py - Swagger UI discovery
autoswagger.py - Spec path probing
autoswagger.py
Endpoint testing
- Endpoint planning
autoswagger.py - Parameter generation
autoswagger.py - Concurrent endpoint tests
autoswagger.py - Rate limiting
autoswagger.py
Analysis and reporting
- Response analysis
autoswagger.py - Presidio analyzer
- Secret detection
autoswagger.py - Large response checks
autoswagger.py - Findings and stats
autoswagger.py - Table or JSON output
autoswagger.py
Other components
- CLI user
- Target API
Connections 20
- CLI user → Scan coordinator: provides URLs
README.md - Scan coordinator → Direct spec fetch: tries direct spec
README.md - Scan coordinator → Swagger UI discovery: tries UI discovery
README.md - Scan coordinator → Spec path probing: falls back to probing
README.md - Direct spec fetch → Target API: fetches specification
autoswagger.py - Swagger UI discovery → Target API: fetches UI and assets
autoswagger.py - Spec path probing → Target API: probes spec paths
README.md - Scan coordinator → Endpoint planning: passes loaded spec
autoswagger.py - Endpoint planning → Parameter generation: builds test inputs
README.md - Endpoint planning → Concurrent endpoint tests: dispatches endpoint jobs
autoswagger.py - Concurrent endpoint tests → Target API: sends requests
README.md - Concurrent endpoint tests → Rate limiting: throttles requests
README.md - Concurrent endpoint tests → Response analysis: analyzes responses
README.md - Response analysis → Presidio analyzer: checks for PII
README.md - Response analysis → Secret detection: checks secrets
README.md - Response analysis → Large response checks: flags large content
README.md - Response analysis → Findings and stats: records findings
README.md - Scan coordinator → Findings and stats: aggregates scan results
autoswagger.py - Findings and stats → Table or JSON output: formats findings
README.md - CLI user → Scan coordinator: sets scan options
README.md