use cases · api security
API penetration testing for REST and GraphQL
The serious API bugs are authorization bugs: one user reading another user's record, a member calling an admin route. A scanner can't find those from a URL alone. Xalgorix takes your spec, a logged-in session and a second account, tests the API the way a pentester would, and reports only what it could prove. This page says what to give it and where it stops.
What to give the scan
Everything here is optional, and each one widens what the scan can reach. They are set under "Customize scan" when you start a scan in the web app.
Your real endpoints
Attach an OpenAPI or Swagger file, a HAR capture, a Postman collection with its environment, a Burp export or a plain list of endpoints: up to 5 files of 8 MB each. The engine starts from your actual routes, parameters and example bodies instead of guessing them. Without a spec it discovers what it can by crawling and brute-forcing paths, which finds less on an API that has no pages to crawl.
A logged-in session
Most of an API sits behind authentication. Paste the headers a logged-in client sends, a cookie or an Authorization bearer token, and the engine applies them to every request so it tests the post-login surface. Secrets are redacted from the live event stream, logs and reports.
A second account
Broken object-level authorization can only be proved with two users. Give the scan a second, distinct account and the engine tries to reach account A's objects with account B's session, then reports the request and response that show the cross-user access.
Instructions and scope
Custom instructions tell the engine where to focus and what to leave alone, for example to concentrate on one API version, skip a billing route or test isolation between organizations. If the API sits behind a WAF or an IP allowlist, the new-scan form shows the scanner's egress IP to allow.
The phases that matter most for an API
A scan runs all 22 phases of the methodology. These five do most of the work on an API.
Phase 05
Authentication and session testing
Login, MFA, session and password-reset flows, including token replay and weak JWT verification.
Phase 07
SSRF testing
Parameters that make the server fetch a URL, checked with out-of-band callbacks and cloud metadata addresses.
Phase 08
IDOR and broken access control
Object-level authorization across roles and tenants: cross-tenant reads and writes and missing ownership checks.
Phase 09
API and GraphQL testing
REST and GraphQL endpoints, including introspection, batching, query depth and broken auth on routes the documentation doesn't list.
Phase 20
Exploit verification
A separate verifier attempts a non-destructive proof of exploit for each candidate. Findings it disproves are dropped, and ones it can't reproduce are flagged for review rather than reported as confirmed.
Against the OWASP API Security Top 10
The 2023 list, risk by risk, with where the methodology has a phase for it and where it doesn't. A phase existing is not a promise that a scan finds every instance.
API1:2023
Broken Object Level Authorization
Phase 8. Needs the authenticated session and the second account; with one account the engine can't show one user reading another's data.
API2:2023
Broken Authentication
Phase 5: login, session and password-reset flows, token replay and JWT verification.
API3:2023
Broken Object Property Level Authorization
No phase is named for it. Mass assignment and over-exposed fields can surface in phases 8 and 9 when the engine has two accounts and real request bodies from a spec or HAR. Treat a clean result here as not tested, not as safe.
API4:2023
Unrestricted Resource Consumption
Phase 9 checks GraphQL batching and query depth. Scans are non-destructive and rate-capped, so nothing here is a load test or an attempt to exhaust the API.
API5:2023
Broken Function Level Authorization
Phase 8 tests access across roles. Use two accounts with different privileges, for example a member and an admin, so there is a boundary to cross.
API6:2023
Unrestricted Access to Sensitive Business Flows
Mostly a job for a person. Phase 12 exercises race conditions and business-logic boundaries, and phase 21 uses a model to propose app-specific hypotheses, but neither knows which flows your business treats as sensitive.
API7:2023
Server Side Request Forgery
Phase 7, confirmed with an out-of-band callback or a metadata read rather than a guess from an error message.
API8:2023
Security Misconfiguration
Phase 4 checks CORS and cookie settings, phase 2 looks for debug pages and default credentials, and phase 16 for exposed buckets, .git directories and leaked secrets.
API9:2023
Improper Inventory Management
Phases 1 and 3 map hosts and brute-force paths the API never advertised, and a Wildcard scan enumerates a domain's subdomains. It shows what is reachable; deciding which old versions should have been retired is yours.
API10:2023
Unsafe Consumption of APIs
Not tested from outside. How your server trusts data from third-party APIs is a code and design review question.
Risk names from the OWASP API Security Top 10 2023, checked 3 December 2026.
Where it stops
- Authenticated sessions, the second account and context files are set in the web app when you launch one scan at a time. Bulk launches and scans started through the public API or from CI don't accept them, so those test the unauthenticated surface.
- The session is a fixed set of headers. If a token expires partway through, the requests after that stop being authenticated, so use a test account whose token outlives the scan.
- The hosted scanner tests from the outside. An internal-only API needs the self-hosted engine running inside your network.
- The methodology names REST, GraphQL and WebSocket testing. It doesn't claim coverage of gRPC or other binary protocols, so don't assume it.
- It doesn't load-test. Payloads are non-destructive and request rates are capped, which also means it won't tell you how the API behaves under abuse-level traffic.
- Business-logic flaws that depend on what your product is supposed to allow still need a person who knows the product.
- Mobile app bundles (APK or AAB) can't be attached in Xalgorix Cloud. Export the traffic as a HAR or a Postman collection instead.
Questions
Do I need an OpenAPI spec to scan an API?
No. A scan needs only a target URL. A spec, HAR capture, Postman collection, Burp export or endpoint list makes it better, because an API has no pages to crawl and undocumented routes are otherwise found by brute force. If you have no spec, a HAR recorded from a browser or client session is the quickest substitute.
Can it test endpoints behind authentication?
Yes, for scans started one at a time in the web app. Paste the headers of a logged-in session, one per line, and they're sent with every request. Add a second account to test access control between users. Use dedicated test accounts and test data, never a real customer's session.
Does it cover the OWASP API Security Top 10?
Partly, and we'd rather show where. The table on this page goes through the 2023 list: some risks have a dedicated phase, some depend on what you give the scan, and two (sensitive business flows and unsafe consumption of third-party APIs) are largely outside what an outside-in scan can test.
Does it test GraphQL?
Yes. Phase 9 covers GraphQL alongside REST: whether introspection is enabled, batching, query depth and broken auth on routes the documentation doesn't list. Attaching your schema or a HAR of real queries gives it the operations to start from.
Is it safe to run against a production API?
Payloads are non-destructive and request rates are capped, but an authenticated scan does create, read and change data as the test accounts. Point the first scans at staging, use accounts and tenants made for testing, and only scan systems you own or have written permission to test.
Can I run API scans from CI?
You can start scans from a pipeline with the GitHub Action or the REST API, and fail a build on a severity threshold. Those scans don't take a session or context files, so they test what an unauthenticated client can reach. Run the authenticated, two-account scan from the web app.
Start with one API and two test accounts
Attach the spec, paste both sessions and read what comes back with the evidence. 8 credits cost $10 and never expire, or self-host the open-source engine for free.
