What factors impact the cost of an API or microservice penetration test

What factors impact the cost of an API or microservice penetration test?

API or microservice penetration testing is different from other application penetration testing because it lacks the context that a user interface provides. Here are the main factors that influence the effort to test an API or microservice:

Documentation

Good documentation can have a significant impact on how smoothly the test runs. The documentation must include clear steps on how to establish and maintain authentication. In addition, the documentation should consist of valid sample payloads for each API request. We highly recommend having the development team build a Postman collection or similar mechanism before scheduling an API penetration test. The collection or similar mechanism should clearly demonstrate or describe each parameter and its expected value(s).

All API penetration testing should be considered white box tests. Without documentation, the effort needed to discover how each API endpoint functions and experiment with payloads is significant. Be sure to tell us if you do not have sufficient documentation in place.

Function Count

The function count is simply a count of all the API endpoints. It should be divided into two separate metrics as follows:

  • Queries: any functions that retrieve data and are often associated with the verb GET.
  • Mutations: any functions that submit data and are often associated with the verbs POST, PUT, or DELETE.

Function Complexity

The number of parameters in a function can impact the number of permutations that are needed to test it, and therefore the total effort. For estimation purposes, we assume the average function will take five or fewer parameters. Be sure to tell us if your APIs or microservices take large numbers of parameters so we can scope enough time to test them.

Need your API tested?

Our team tests REST APIs, GraphQL endpoints, and microservice architectures every day. A short conversation about your documentation, endpoint count, and complexity is usually all we need to scope the engagement. Reach out to get started.

Schedule a Scoping Call

More Posts

Send Us A Message

Get the Debrief in Your Inbox

New findings, series updates, and usually some bad puns. Delivered when we actually have something worth saying.

No spam. Unsubscribe whenever. We’re evil, not rude.

This website uses cookies

We use cookies to personalize content, provide social media features, and analyze our traffic. We also share information about your use of our site with our analytics partners. You can change your preferences at any time. For more information, please see our Privacy Policy.