# The Haunted House of APIs - The Witch’s Brew with Jayesh Ahire

Published: 2024-10-22
Duration: 1254s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/e7b19cc4-a491-44ba-83b8-90ad53e419c1/stream.mp3

## Key Takeaways
- Three Buckets of API Risk: Jayesh groups OWASP API risks into access control (such as BOLA and broken function level authorization), data privacy (excessive data exposure) and inventory management (knowing which APIs you have).
- Retire Old API Versions: A major Australian telecom shipped a newer, better-secured API but left the old public one accessible. An attacker used it to get sensitive data, including passport details, on millions of users.
- Context Beats Black-Box Testing: SAST reads code without context, and traditional DAST attacks from outside, which brings false positives. API security testing aims to replicate business logic abuse across APIs and third parties.
- Gate Every Development Stage: Build security into API design, use SAST while developing, secure infrastructure-as-code at deployment, and run continuous automated tests on staging so issues are fixed before production.
- Match Tools to Maturity: Early-stage teams can start with developer security awareness, a SAST tool like SonarQube and a DAST tool like ZAP. Mature organizations also need API inventory, posture management, design standards and contextual testing.

**API testing: Jayesh Ahire on probing interfaces for OWASP Top 10 weaknesses and adding security checks to development workflows.**

———

## The Haunted House of API's

### The Witch’s Brew: Stirring Up OWASP Vulnerabilities and API Testing

Today, we are kicking off an amazing series for Cybersecurity Awareness month, entitled the Haunted House of API’s, sponsored by our friends at [Traceable AI](https://www.traceable.ai/). In this series, we are building awareness around API’s, their security risks – and what you can do about it. [Traceable AI](https://www.traceable.ai/) is building One Platform to secure every API, so you can discover, protect, and test all your API's with contextual API security, enabling organizations to minimize risk and maximize the value API's bring to their customers.

In today’s episode, we will be talking with [Jayesh Ahire](https://www.linkedin.com/in/jayesh-ahire/), an expert in API testing and [OWASP](https://owasp.org/), will guide us through the "brew" of common vulnerabilities that haunt API ecosystems, focusing on the OWASP Top 10 for APIs. He’ll share how organizations can use API security testing to spot and neutralize these vulnerabilities before they become major exploits. By emphasizing proactive security measures, Jayesh will offer insights into creating a strong API testing framework that keeps malicious actors at bay.

Discussion questions:

1. What are some of the most common vulnerabilities in APIs that align with the [OWASP](https://owasp.org/) Top 10, and why are they so dangerous?
1. Why is API security testing crucial for detecting these vulnerabilities early, and how does it differ from traditional security testing?
1. Can you share an example of how an overlooked API vulnerability led to a significant security breach?
1. How can organizations create an effective API testing framework that addresses these vulnerabilities?
1. What tools or methods do you recommend for continuously testing APIs and ensuring they remain secure as they evolve?

Sponsors

- [Traceable](https://www.traceable.ai/)

Links

- [https://www.traceable.ai/](https://www.traceable.ai/)
- [https://www.linkedin.com/in/jayesh-ahire/](https://www.linkedin.com/in/jayesh-ahire/)
- [https://owasp.org/](https://owasp.org/)

  

Timestamps

00:00 – Intro

02:22 – Common OWASP API Vulnerabilities

05:48 – Why API Security Testing Matters

09:17 – Breaches From Overlooked Vulnerabilities

12:18 – Building an API Testing Framework

16:01 – Tools for Continuous API Testing

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Jayesh Ahire: [https://www.codestory.co/episodes/the-haunted-house-of-apis-the-witchs-brew-with-jayesh-ahire/](https://www.codestory.co/episodes/the-haunted-house-of-apis-the-witchs-brew-with-jayesh-ahire/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 2:22 — Common OWASP API Vulnerabilities
- 5:48 — Why API Security Testing Matters
- 9:17 — Breaches From Overlooked Vulnerabilities
- 12:18 — Building an API Testing Framework
- 16:01 — Tools for Continuous API Testing

## Frequently Asked Questions
- **Q:** What are the most common OWASP API security vulnerabilities? — **A:** Jayesh Ahire groups them into access control, data privacy and inventory management, and calls access control the most prominent and most exploited in recent years. Describing that category, he said "sometimes you just left the door open and that door can be exploited by attackers" [03:12].
- **Q:** How is API security testing different from traditional SAST and DAST? — **A:** Jayesh explains that SAST looks only at code without context, while DAST has traditionally been an outside, black-box attack that can produce false positives. API testing has to cover interactions between APIs and third parties, and as he put it, "It needs way more insight into the business logic of the application." [07:52].
- **Q:** How can an old or retired API lead to a data breach? — **A:** Jayesh described an Australian telecom that released a more secure API version but never retired the old public one, which an attacker then exploited to access data on millions of users. He pointed to inventory management, citing the "older version of the API, which was accessible even after it was supposed to be" [10:46] retired.
- **Q:** How do you build an effective API security testing framework? — **A:** Jayesh recommends making testing native to the development life cycle, with security gates at design, development and deployment, plus continuous automated testing on staging. He warns that security is "always an afterthought, and to address that problem, make sure that when you design your APIs" [14:03] you consider security practices.
- **Q:** What API security testing tools should an early-stage company use? — **A:** Jayesh suggests helping developers understand security, then starting with a SAST tool and a DAST tool, while noting DAST can produce false positives. His advice is to begin with "something lightweight open source like SonarQube, ZAP. But as you mature, keep looking for better tools" [19:48], such as Traceable, where he runs product management.
