How ChkApi performs API security detection
masterChkApi follows a multi-step automated workflow to discover and test API endpoints:
- Asset Discovery: It extracts automatically loaded JS files (from current, CDN, or other domains) and static HTML addresses to map the target's attack surface.
- JS & Webpack Parsing: It uses regex to find JS addresses within page source and extracts specific chunk paths from Webpack-bundled files.
- Base URL Identification: It identifies microservice entry points (Base URLs) by analyzing URL paths in automatically loaded assets.
- API Extraction & Fuzzing: It extracts API paths from JS files using regex and supplements them using built-in API dictionaries via fuzzing.
- Swagger Parsing: It supports various Swagger versions to extract precise request methods, parameter names, and types.
- Parameter Intelligence: It performs "parameter intelligence" by analyzing response bodies to find keys, values associated with
param/parameterkeys, or missing parameters mentioned in error messages. - Testing Modes: It tests endpoints using three request types:
GET,POST DATA, andPOST JSON. It performs both parameterless requests (to find structure) and parameterized requests (to find vulnerabilities). - Bypass Testing: For endpoints returning 301, 302, 401, 404, or empty responses, it applies over ten different bypass techniques to attempt to force a valid response.