New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
The Haunted House of APIs - The Witch’s Brew with Jayesh Ahire
Oct 22, 2024 20:54

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

Bonus
0:00 / 20:54

About this episode

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. In this series, we are building awareness around API’s, their security risks – and what you can do about it. 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, an expert in API testing and OWASP, 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 Top 10, and why are they so dangerous?
  2. Why is API security testing crucial for detecting these vulnerabilities early, and how does it differ from traditional security testing?
  3. Can you share an example of how an overlooked API vulnerability led to a significant security breach?
  4. How can organizations create an effective API testing framework that addresses these vulnerabilities?
  5. What tools or methods do you recommend for continuously testing APIs and ensuring they remain secure as they evolve?

Sponsors

Links

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/



Current Sponsors:

Checkout our Substack

Checkout our Stacklist!

Checkout our Patreon!

Hosted by Noah Labhart.



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

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Featured Guest

Latest Season of the Podcast is Sponsored By

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.

Frequently Asked Questions

What are the most common OWASP API security vulnerabilities?

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].

How is API security testing different from traditional SAST and DAST?

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].

How can an old or retired API lead to a data breach?

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.

How do you build an effective API security testing framework?

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.

What API security testing tools should an early-stage company use?

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.

Media List 5000, Podcasts, Fall 2026