# The Haunted House of APIs - A Portal to the Beyond with Allison Averill

Published: 2024-10-30
Duration: 1479s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/5f759115-f05e-4a23-8f3f-fe4ec439ad08/stream.mp3

## Key Takeaways
- Don't Over-Trust Third-Party APIs: Developers often trust vendor APIs more than user input. A compromised data feed can open your app to attacks like SQL injection, so validate and sanitize what comes in.
- LLM Output Is a Wild Card: LLMs are non-deterministic, so the same prompt can yield very different responses. Validate and sanitize their output before it feeds other parts of your app, especially anything that executes code.
- Visibility Comes First: Keep an inventory of every third-party API and where it connects. Averill says people are often shocked by how many Traceable discovers that security teams may not have seen.
- Monitor to Size the Blast Radius: Watching inputs and outputs of third-party APIs lets you check whether a vendor's breach has reached your app or touched sensitive data, even when your own controls are configured properly.
- Automate Security to Keep Speed: Instead of spreadsheets developers must keep current, tools can discover APIs, monitor their security posture and alert on sensitive data flows or broken authentication. People still have to fix the issues.

**Haunted House of APIs: Allison Averill on the security risks of connecting generative AI services to applications and how to protect them.**

———

## The Haunted House of API's

Today, we are releasing another episode for Cybersecurity Awareness month, in our series 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.

### **A Portal to the Beyond: Securing Gen AI and other Third-Party APIs in Your Applications**

Today’s episode is titled A Portal to the Beyond: Securing Gen AI and other Third-Party APIs in Your Applications, with [Allison Averill](https://www.linkedin.com/in/allisonaverill/). Developers are building exciting new features with Gen AI, often leveraging 3rd party APIs. Doing this isn’t new, but are these integrations secure? These APIs open a portal to the beyond – and introduce supply chain risk to your applications. [Allison](https://www.linkedin.com/in/allisonaverill/) is a Generative AI and product management expert at [Traceable](https://www.traceable.ai/), and she will explore the risks lurking in generative AI and other 3rd party APIs, sharing best practices for securing these integrations, so you can ensure they don’t become the stuff of security horror stories.

1. How are application developers leveraging 3rd party APIs today, and how is the landscape changing?
1. How do third-party APIs introduce risks to applications and what are some common mistakes organizations make when integrating with third party APIs?
1. How are generative AI APIs different from other third party APIs? What unique risks do they introduce?
1. Have you encountered any 'nightmare' scenarios where an insecure third-party API caused a security incident?
1. What best practices should organizations follow to ensure secure integrations?
1. How can organizations balance the need for innovation with the necessity of maintaining strict security controls when working with external partners?

Sponsors

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

Links

- [https://www.traceable.ai/](https://www.traceable.ai/)
- [https://www.linkedin.com/in/allisonaverill/](https://www.linkedin.com/in/allisonaverill/)

 

  

Timestamps

00:00 – Intro

03:10 – How Apps Use Third-Party APIs

05:34 – API Risks and Common Mistakes

09:48 – Unique Risks of Gen AI APIs

14:19 – Third-Party API Nightmare Scenarios

17:08 – API Security Best Practices

20:52 – Balancing Innovation and Security

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 Allison Averill: [https://www.codestory.co/episodes/the-haunted-house-of-apis-a-portal-to-the-beyond-with-allison-averill/](https://www.codestory.co/episodes/the-haunted-house-of-apis-a-portal-to-the-beyond-with-allison-averill/)

  
  

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
- 3:10 — How Apps Use Third-Party APIs
- 5:34 — API Risks and Common Mistakes
- 9:48 — Unique Risks of Gen AI APIs
- 14:19 — Third-Party API Nightmare Scenarios
- 17:08 — API Security Best Practices
- 20:52 — Balancing Innovation and Security

## Frequently Asked Questions
- **Q:** How do third-party APIs introduce security risk into applications? — **A:** Allison Averill points to unsafe consumption of APIs, where a compromised third-party data stream can expose your app to attacks such as SQL injection. She warns that "Developers tend to trust third-party APIs more than they would trust user input" [07:03], so data from them should be validated and sanitized.
- **Q:** How are generative AI APIs different from other third-party APIs? — **A:** Averill describes them as a subcategory of third-party APIs, so the same risks apply, but large language models are non-deterministic. In her words, you can "prompt a model with the same prompt twice and get two totally different responses." [11:46]
- **Q:** What is prompt injection and why does it matter for apps that use LLMs? — **A:** Averill explains that prompt injection means crafting a "really clever prompt to get the model to potentially reveal something it's not supposed" [12:40] to, or to act against its instructions. The risk grows when an app feeds that output into other components, for example if malicious code goes undetected before it executes.
- **Q:** What can the 2018 Facebook breach teach developers about third-party API risk? — **A:** Averill says an insecure first-party API configuration at Facebook meant that "it potentially exposed the access tokens of up to 50 million Facebook users." [15:37] Because other apps used Facebook sign-in, she advises knowing where such APIs are used and monitoring for unusual logins, though she doesn't know how many real breaches resulted.
- **Q:** How can teams move fast and still secure their API integrations? — **A:** Averill says the key is automation rather than manually maintained lists of integrations. As she put it, "We now have tools that can go and automatically discover all of your APIs" [22:27], and those tools can also monitor security posture and send alerts.
