DEV Community

Intesar Mohammed
Intesar Mohammed

Posted on • Edited on

4 3

How to security scan your web API for vulnerabilities

About me: I write, review, and build API security tools and best practices.

The purpose of this article is to show Appsec/developers how to get started with API security scanning with an open source API. In the process you will learn what vulnerabilities will look like. And at the end of the write-up I’ll share a couple of tool recommendations for you to play with.

API is the new internet protocol kind of. It’s the gateway to all kinds of applications you’re building or integrating with example mobile, web, AI, serverless, microservices, blockchain, web3.0, etc.

APIs now dominate the internet traffic. This is evident from the recent Akamai report, that over 90% of the internet web traffic are API calls. Without your realization you and your’re organization are using APIs predominately.

APIs are also the most attacked surface. They have overtaken traditional attacked surfaces like networks, computers, etc. Which means your chances of getting a security incident/breach this quarter is more likely at the APIs layer.

Since APIs are a new paradigm. Most organizations are under prepared when it comes to API security. API security validation are hard to achieve, it’s still in it’s early stage, mostly human powered, under staff, and done not as frequent as new code is deployed. Traditional security/penetration testing staff focuses on mobile and web front ends making the matters even worst for the APIs.

Here are a few tools you can use to get started with API security.

Use this opensource API for scanning and review the vulnerability report: http://52.250.110.188:8080/v2/api-docs

Tool #1
EthicalCheck
Pros: free, point and scan solution
Cons: Only covers OWASP #2

Tool #2
Burp
Pros: free community edition, write your own tests
Cons: Learning curve

I avoided adding commercial tools since most of the tools are closed and offer a custom pricing.

If you have any questions. Feel free to reach out to me at my email and twitter
intesar.mohammed@gmail.com
https://twitter.com/shannan_

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry 🕒

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay