API Security Testing
We test your REST, GraphQL and gRPC APIs the way an attacker does, one object, one role and one business flow at a time, and show you the fix.
- 1–3 weeks Typical duration
- 30 days Retest round included
- CVSS v3.1 + CWE Every finding scored
- Same day Critical findings reported
An API security test is a penetration test of the interfaces your applications talk through: the REST, GraphQL or gRPC endpoints behind your web app, mobile app, partner integrations and internal services. An engineer sends the requests an attacker would send, with the accounts an attacker could get, and records what the API gives back that it should not.
APIs fail differently from web pages. There is no screen to hide a field behind, every identifier can be changed, and every response is machine-readable. Most serious API bugs are not injection. They are authorisation decisions the server never made.
You get findings tied to an endpoint and a request, each with a working proof of concept, a CVSS score, a CWE reference and a fix for your framework. We then retest the fixes.
How this differs from a web app VAPT and from a DAST scan
A web application VAPT tests what a user sees: pages, forms, sessions, scripts, and browser-side bugs such as cross-site scripting. It reaches the API only through the paths the front end uses. If the web app never sends a role field, the web app test never finds the mass assignment above. An API test starts from the API's own contract and tests every endpoint, method and field, including the ones no client uses yet.
A DAST scan is useful and we run one. It fuzzes documented parameters for injection and known misconfigurations quickly. But it does not know which user owns which object, so it cannot find authorisation bugs, which fill three of the top five entries in the OWASP API Top 10. It only sees endpoints and fields it is told about. And it cannot tell whether a business flow is being abused.
Who it is for
-
Fintech and lending platforms
Whose loan, KYC and repayment APIs serve a mobile app, a web app and a partner at once.
-
UPI and payment integrations
Behind a partner bank or payment aggregator that must show security testing before go-live.
-
SaaS companies with a public API
Where a bug in one tenant's authorisation is a bug in every tenant's.
-
Mobile app backends
Where the app is only one client and anyone who reads the traffic can reach the API.
-
Healthtech and insurtech platforms
That move health, policy and claims records between providers and insurers.
What we test
-
Broken object level authorisation (API1)
Can user A read, change or delete user B's record by changing an ID? We test every object type.
-
Broken authentication (API2)
Token lifetime and revocation, OTP and password flows, API keys, brute-force limits, and tokens reused across clients.
-
Broken object property level authorisation (API3)
Responses that carry fields the client should never see, and requests that can set fields it should never write (mass assignment).
-
Unrestricted resource consumption (API4)
Missing or bypassable rate limits, unbounded pagination, expensive queries and uploads with no size cap.
-
Broken function level authorisation (API5)
Can a normal user call an admin, operations or partner endpoint? We try every function from the wrong role.
-
Unrestricted access to sensitive business flows (API6)
Signups, referrals, coupons, loan applications and payouts run as a script, out of order, or too often.
-
Server-side request forgery (API7)
Any parameter that takes a URL or file location, pointed at your internal network or cloud metadata service.
-
Security misconfiguration (API8)
CORS, verbose errors, debug endpoints, TLS, stray HTTP methods, and default credentials on supporting services.
-
Improper inventory management (API9)
Old versions still deployed, staging hosts on the internet, and undocumented endpoints found in JavaScript, mobile binaries and traffic.
-
Unsafe consumption of APIs (API10)
How your code treats data coming back from credit bureaus, KYC providers, payment gateways and SMS vendors.
Example finding
A fictional example written for this page, not from a client engagement. It shows the format and level of detail of one entry in our report.
A borrower can grant themselves operations-admin rights by updating their own profile
The profile update endpoint binds the whole request body onto the user model and saves it. The OpenAPI file documents name, phone and address as writable, but the model also holds role and kyc_status, and nothing stops a request from setting them. A borrower who adds role becomes an operations admin, with access to every borrower's loan, KYC document and repayment history.
PATCH /api/v1/users/me HTTP/1.1
Authorization: Bearer <borrower token>
Content-Type: application/json
{"name": "A. Borrower", "role": "ops_admin", "kyc_status": "verified"}
HTTP/1.1 200 OK
{"id": 48213, "name": "A. Borrower", "role": "ops_admin", "kyc_status": "verified", ...}
Fix: Never bind a request body straight onto a database model. Define the writable fields for this endpoint explicitly (name, phone, address) and copy only those, so that role and kyc_status can only change through the admin and KYC flows that check who is calling. Add a regression test that sends role in a self-update and expects it to be ignored.
How an engagement runs
-
Scope and threat model
Before sending a request, we agree what the API protects and who could attack it.
-
Endpoint discovery and inventory
We build a complete list of endpoints from your OpenAPI or Postman files, then add what the documents miss.
-
Authentication and token testing
We test how a caller proves who they are: OAuth2 flows and redirects, JWT signature and claim handling.
-
Authorisation across objects, properties and functions
The longest step.
-
Input handling, injection and SSRF
Every parameter is tested for SQL, NoSQL, command and template injection.
-
Business flows, rate limits and resource use
We run your signup, referral, application, payout and OTP flows as an attacker would.
-
Reporting, readout and retest
You get a report with every confirmed finding tied to an endpoint and a request, its CWE reference.
What You Get
- Executive summary for leadership: overall risk, the findings that matter most, and what to fix first
- Endpoint inventory and attack surface map, including undocumented and legacy endpoints we found
- Detailed findings, each tied to an endpoint and a request, with CWE reference, CVSS v3.1 score, impact and a working proof of concept
- Fix guidance with code examples for your framework and your API gateway
- OWASP API Security Top 10 (2023) coverage matrix showing what was tested and what was found for each category
- Mapping of findings to RBI, SEBI CSCRF or DPDPA Rule 6 safeguards where you need it for an audit or a partner review
- Readout call with your engineering team
- Retest of every finding and an updated report showing the status of each
- Recommendations for API security checks in CI and at the gateway, so the same bug class is caught before release
Frequently asked
How much does API penetration testing cost in India?
It depends on the number of endpoints, the number of roles and tenants, the API types in scope and how much of the API handles money or personal data. We quote a fixed price after a free 30-minute scoping call.
How long does an API security test take?
One to three weeks for most APIs, depending on the number of endpoints and roles. We agree the timeline in the proposal, and we report any critical finding the same day we confirm it, without waiting for the final report.
What do you need from us to start?
API documentation, ideally an OpenAPI file or a Postman collection; test accounts at two privilege levels at least, so we can test across users and across roles; and a non-production environment that mirrors production. If you have no documentation, a developer walkthrough and a traffic capture are enough and we build the inventory ourselves.
How is this different from a web application VAPT?
A web application VAPT tests what a browser user sees and reaches the API only through the paths the front end uses. An API test starts from the API's own contract and tests every endpoint, method and field, including those no client uses yet, and with every role. Most serious API bugs are authorisation gaps that a web app test never exercises. If you have both a web app and an API, the two tests cover different ground.
Do you test GraphQL and gRPC APIs?
Yes. For GraphQL we test introspection exposure, batching and aliasing used to bypass rate limits, deeply nested and costly queries, and field-level authorisation across resolvers. For gRPC we work from your protobuf definitions and test the same authorisation, input and resource-use issues over the binary protocol. WebSocket, webhook and server-sent event endpoints are in scope where they carry personal data or trigger actions.
Does API security testing meet RBI and SEBI requirements?
It covers one part of them. RBI's Digital Payment Security Controls Directions of 31 July 2026 require commercial banks, small finance banks, payments banks and card-issuing NBFCs to include penetration testing in security testing of their digital payment applications, at least yearly, and to follow standards like OWASP. SEBI's CSCRF requires application security testing for software in critical systems to include API security and API discovery, and its audits must be done by a CERT-In empanelled auditor unless it says otherwise. We are not CERT-In empanelled. Your auditor or compliance team decides what evidence they need; our report maps findings to the requirement you name.
Is API testing required under the DPDP Act?
Not by name. Section 8(5) of the DPDP Act requires reasonable security safeguards to prevent a personal data breach, and Rule 6 of the DPDP Rules, 2025 sets the minimum from 13 May 2027: encryption or masking, access control, and logs and monitoring among them. APIs are where personal data leaves your system, so an API test is direct evidence of whether those safeguards hold at the boundary.
How often should we test our APIs?
At least once a year, and before any release that adds endpoints, changes authentication or authorisation, or adds a new partner or tenant integration. RBI-regulated entities in scope of the 2026 digital payment security directions must run penetration testing at least yearly and after major changes. Between tests, authorisation checks in your CI pipeline and at the API gateway catch regressions.
Ready to get started?
Book a free 30-minute call to scope your engagement — no commitment.
Get an API Security Assessment