Skip to content

API Breaker

Automated API security testing for REST, GraphQL, and WebSocket APIs.

What It Does

Discovers API endpoints, reconstructs schemas from responses, and tests for object-level authorization flaws (BOLA/IDOR), function-level authorization bypass (BFLA), mass assignment, JWT attacks, rate limiting bypass, and business logic vulnerabilities. Covers OpenAPI, GraphQL introspection, and WebSocket message analysis.

Scripts

ScriptDescription
api_discoveryEndpoint discovery — OpenAPI specs, JS source extraction, common path brute force
schema_builderSchema reconstruction from response shapes, type inference, and parameter mapping
auth_analyzerAuthentication analysis — token formats, expiry, refresh flows, misconfigurations
authz_testerAuthorization testing — BOLA/IDOR across object IDs, BFLA across roles
mass_assignmentMass assignment probing — hidden params, nested object injection
rate_limiterRate limit testing — threshold detection, bypass via headers and IP rotation
graphql_testerGraphQL introspection, query depth attacks, batching, field suggestion leaks
websocket_testerWebSocket handshake analysis, message tampering, CSWSH testing
jwt_testerJWT attacks — alg=none, key confusion, kid injection, weak HMAC secrets
api_reportStructured API security report with endpoint-risk mapping

When to Use

Use when the target exposes REST, GraphQL, SOAP, or WebSocket APIs. Run api_discovery first, then feed endpoints into schema_builder, followed by targeted testers.

Usage

RedTeamScript(skill="api-breaker", script="jwt_tester", args="--token eyJhbGciOi... --output jwt.json")

Released under the MIT License.