Why Should You Keep Your API Key Secure? (2024)

Shona Hossell

Jul 12, 2022 10:02:42 AM

Why Should You Keep Your API Key Secure? (1)

Attacks against APIs are increasing and API key protection is central to minimizing your business risks. In this article we’ll look at what your exposures are and what you should do about it.

API Attacks Are On The Rise

Stolen or accidentally exposed API keys and secrets can easily be exploited by threat actors and used to access sensitive information, impersonate your mobile app or make API calls on its behalf. With Salt Security reporting a 681% increase in API attacks during 2021 and Corsha estimating that poor API security will cost organisations up to $75B per year, this is a growing problem with significant financial risks for mobile businesses.

Exposed API keys can be used both to exploit vulnerabilities or bugs in the coding of the API itself and through API abuse (where the API is accessed or used in a way that was not intended). Example attacks includeaccount takeover, automated account creation, data scraping or DDoS attacks.

A recent security review by BeVigil found that many apps using the RazorPay API payment gateway were exposing API keys. This was down to poor coding practice and a lack of security awareness by the app developers rather than a flaw in the RazorPay API.

While code hardening and obfuscation techniques can add an additional layer of protection against the theft of API keys, readily available tools, such as mobSF, enable attackers to take published apps, download and reverse engineer them to extract the API keys and secrets for malicious purposes.

A MitM attack can be carried out using tools like mitmproxy and Charles Proxy to intercept the API traffic between your mobile app and the backend server and steal API keys or other secrets.

The thing to recognise is that if an API key becomes available to a bad actor then all the protection you have built into your mobile app will be useless as the attacker will use a script to bypass your app and trick the server into thinking it is communicating with a genuine instance of your mobile app.

Protecting against this attack vector requires your APIs to be shielded and you can read more about this in a more detailed four part series which starts here.

The Risks For Your Business

Mobile apps with APIs that access fintech or healthcare records are particularly at risk from transaction skimming, exposure of sensitive user information or unauthorised access to customer accounts or patient records. Research by Alissa Knight found security issues with many healthcare apps and APIs that use the FHIR standard. Many of the mobile healthcare apps tested had hardcoded API keys and tokens which could be used to access EHR APIs. With confidential patient data at risk, the financial and reputational costs for mobile healthcare companies can be significant.

Run-time protection is needed to protect the mobile app and its environment from tampering at the same time as ensuring that your APIs are properly shielded. Using a service such as Approov Mobile App Protection allows you to verify your app’s authenticity and integrity at run-time, ensuring that API keys cannot be misused at scale and that only the official version of your mobile app operating in an untampered environment can access your back-end API. Bots, scripts, fake and tampered apps are all blocked at source.

Further tips on storing your API keys can be found hereand more in-depth coverage of API key security here.

Why Should You Keep Your API Key Secure? (2)

Shona Hossell

Why Should You Keep Your API Key Secure? (2024)
Top Articles
So Many Branches: The Outlander Characters Family Tree
10 Anime Couples That Happened Overnight
Encore Atlanta Cheer Competition
Exclusive: Baby Alien Fan Bus Leaked - Get the Inside Scoop! - Nick Lachey
Bleak Faith: Forsaken – im Test (PS5)
How Much Does Dr Pol Charge To Deliver A Calf
Stadium Seats Near Me
Atvs For Sale By Owner Craigslist
Terraria Enchanting
Crossed Eyes (Strabismus): Symptoms, Causes, and Diagnosis
Student Rating Of Teaching Umn
zopiclon | Apotheek.nl
My.doculivery.com/Crowncork
Bahsid Mclean Uncensored Photo
I Touch and Day Spa II
Billionaire Ken Griffin Doesn’t Like His Portrayal In GameStop Movie ‘Dumb Money,’ So He’s Throwing A Tantrum: Report
Ess.compass Associate Login
Conan Exiles: Nahrung und Trinken finden und herstellen
Axe Throwing Milford Nh
Fort Mccoy Fire Map
Theater X Orange Heights Florida
Yonkers Results For Tonight
Dark Entreaty Ffxiv
Does Hunter Schafer Have A Dick
Tokyo Spa Memphis Reviews
From This Corner - Chief Glen Brock: A Shawnee Thinker
Lacey Costco Gas Price
Shiny Flower Belinda
Planned re-opening of Interchange welcomed - but questions still remain
Kiddie Jungle Parma
Grand Teton Pellet Stove Control Board
Khatrimmaza
Steven Batash Md Pc Photos
Rocketpult Infinite Fuel
Movies123.Pick
Omnistorm Necro Diablo 4
拿到绿卡后一亩三分地
Natashas Bedroom - Slave Commands
20+ Best Things To Do In Oceanside California
3496 W Little League Dr San Bernardino Ca 92407
Skip The Games Grand Rapids Mi
World Social Protection Report 2024-26: Universal social protection for climate action and a just transition
10 Rarest and Most Valuable Milk Glass Pieces: Value Guide
Sam's Club Gas Price Sioux City
Euro area international trade in goods surplus €21.2 bn
Dolce Luna Italian Restaurant & Pizzeria
Washington Craigslist Housing
Understanding & Applying Carroll's Pyramid of Corporate Social Responsibility
Greg Steube Height
Poster & 1600 Autocollants créatifs | Activité facile et ludique | Poppik Stickers
Ark Silica Pearls Gfi
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 5582

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.