@SheHacksPurple
Top Ten Security Tips
for APIs
Tanya Janca
CEO & Founder We Hack Purple
Advisor @ Bright Security
@SheHacksPurple
• APIs rule the web, but they are being
attacked
• Top Ten API Security Best Practices
• Resources
• PDF of this talk’s 10 tips
• Free Mini Course
What are we going to talk about today?
Photo by Dex Ezekiel on Unsplash
@SheHacksPurple
Tanya Janca
About Me
• Technical Advisor at Bright Security
• CEO & Founder @ We Hack Purple
• AKA @SheHacksPurple
• Author: Alice and Bob Learn Application Security
• Advisor: Nord VPN, Cloud Defense, Aiya
• 25 years in tech, Sec + Dev
• Blogger, Podcaster, Streamer, Builder, Breaker
• Nerd at Large
@SheHacksPurple
Let’s do this!
@SheHacksPurple
So… I lied.
There aren’t ten.
I’m going to give
you way more
than just ten.
Sorry/not sorry.
@SheHacksPurple
APIs still need just as much security attention as
web applications; not having a front end does not
make them invisible to attackers.
The Problem
Web apps are the #1 cause of data breach, and
most web apps are now just a bunch of APIs with a
GUI in front.
@SheHacksPurple
#1 Create a complete inventory of all APIs
Photo by Petrebels on Unsplash
@SheHacksPurple
#2 All external APIs are connected to via an API
gateway
Photo by Laila Gebhard on Unsplash
@SheHacksPurple
Throttling and
Resource Quotas
Photo by Donald Giannatti on Unsplash
@SheHacksPurple
Logging, monitoring and alerting
The same as for Web Apps!
@SheHacksPurple
Block all unused HTTP
methods/verbs
Photo by Dima Pechurin on Unsplash
@SheHacksPurple
Use a service mesh for communication management
@SheHacksPurple
Enforce Them. Photo by Markus Winkler on Unsplash
@SheHacksPurple
Strict
Linting
Photo by Wes Hicks on Unsplash
@SheHacksPurple
Avoid verbose
error messages
Photo by Markus Spiske on Unsplash
@SheHacksPurple
Decommission old or
unused versions of
APIs.
@SheHacksPurple
All the same secure
coding practices you
normally do; input
validation using
approved lists,
parameterized queries,
bounds checking, etc.
@SheHacksPurple
What did we learn today?
APIs need just
as much
attention as
web apps!
Best practices
are doable!
Secure SDLCs
produce secure
software
@SheHacksPurple
@SheHacksPurple
Resources
newsletter.
wehackpurple.com/
api-security
@SheHacksPurple
Free PDF of This Talk!
newsletter.
wehackpurple.com/
api-security
@SheHacksPurple
Free API Security
Mini Course!
https://academy.
wehackpurple.com/
courses/api-security-
mini-course
@SheHacksPurple
I have a podcast!!!!!
We Hack Purple Podcast, season 2,
offers short security lessons and best
practices! Watch it on YouTube or
subscribe on any podcast platform.
youtube.com/WeHackPurple
@SheHacksPurple
Awesome Books!
• The DevOps Handbook
• The Phoenix Project
• Accelerate
• The Unicorn Project
• Alice and Bob Learn Application Security
@SheHacksPurple
Join the community!!!!!
Community.WeHackPurple.com
The We Hack Purple
Community is FREE!
Meet like-minded people and nerd out!
@SheHacksPurple
#CyberMentoringMonday
Every Monday!
@SheHacksPurple
Resources: ME!!!!
Twitter: @SheHacksPurple
https://SheHacksPurple.ca/blog
https://YouTube.com/SheHacksPurple
https://NewsLetter.SheHacksPurple.ca
@SheHacksPurple
THANK YOU
Tanya Janca
Advisor @ Bright
We Hack Purple

2022 APIsecure_Top Ten Security Tips for APIs

Editor's Notes

  • #2 Thanks for joining us this afternoon, X I’m Rieve, RSD, Western Half of NA I’m joined by Who else is joining us from your side and what are their roles?
  • #3 APIs are being attacked by bots all the time, being abused all over the internet. Even without a front end, APIs are still a big target for malicious actors. How do we fight this? In this talk we will cover all the best practices for making your APIs tough and safe! 
  • #6 Current state of affairs: a review for most, but I want to make sure we a real on the same page
  • #15 My mandatory cat meme