SBN

The Absolute Beginner’s Guide to API Security 4/4 – FireTail Blog

Nov 21, 2025 – Jeremy Snyder – An efficient Security Operations Center (SOC) investigating a potential breach‍OWASP API Security Top 10 9-10Article 4 of 4 see this article for the first in the series‍Think about how you would prepare a real-life heist. You’d spend some time preparing, right? Digital thieves do the same. They read API documentation, probe vulnerable endpoints, and inspect data being returned by overly trusting web applications. Pretty commonly, attackers look to execute exploit chains. These are also called vulnerability chaining, bug chaining, or daisy-chained attacks. In common blue team (defender) terms, this is usually called the attack path. Essentially, the idea is to use multiple exploits in a row to gain access to the most valuable parts of the infrastructure.For organizations that maintain APIs, a single vulnerability likely won’t cause a catastrophic breach. Unfortunately, more often than not, hackers will spot more than one vulnerability from the OWASP API security top 10, allowing them to leverage the chain of vulnerabilities into a breach which has a much higher impact.In our rideshare app example, a simple two step vulnerability chain allows for account takeovers, letting a determined attacker use any feature or download any data from their target’s account:(1) The first vulnerability is in the login process, specifically logins through Facebook. A faulty implementation of the Facebook login mechanism means that the rideshare app’s authentication step can be injected with the Facebook ID of an account controlled by the attacker, instead of the true Facebook ID of the legitimate user.(2) Despite passing the Facebook login step, there is still two-factor authentication (2FA) in the way of the malicious actor. Unfortunately, rate-limiting was never implemented on the endpoint checking the 2FA code, meaning, a script could try every single possible combination of the six digit verification code until the breach was successful.Independently, either of these vulnerabilities would not lead to a major breach. However, used in combination, they build a chain that allows for full account takeover. The best way to be protected from exploit chains is to understand the context of the web application: two high threat vulnerabilities, depending on their context, can in fact lead to a critical threat to your infrastructure.Let’s take a moment to learn about the last two most common categories of threats to APIs, according to OWASP.‍9. Improper Assets Management‍APIs routinely use versioning to account for the sometimes conflicting priorities of development velocity and support to legacy systems. Despite releasing v2 of your API, you may want to give a grace period to the legacy users of the API’s version 1 so that they have time to update their applications to work with the latest version.In theory this would be fine, however, in practice and given real-life time constraints, development teams will often make the decision to implement the latest security best practices on the latest version of the API, and forego updating previous versions.To at least be aware of what they’re running, many organizations will maintain an API hosts inventory. Let’s make sure we understand the distinction between an API contract and an API hosts inventory: The contract is defined by documentation often created through OpenAPI spec, and describes how to interact with a specific application or service. On the other hand, an API hosts inventory will encompass all of the API contracts that are under the scope of the team responsible for its maintenance.Properly managing new releases also falls under the scope of assets management. You should always set up distinct environments for development, test, staging, and production. Don’t use production data in pre-production environments. Aside from being a risk for additional data breaches, it exposes your internal teams to sensitive customer data, and may also violate GDPR principles.Improper assets management can be mitigated by operational controls. You should categorize your public APIs, and APIs meant for internal, private use. Ensure that APIs that can interact with personally identifiable information (PII) are tagged as such.If you have a deep understanding of data flows and the connection between services, there’s a much better chance you’ll be one step ahead of a would-be attacker’s attempts to chain vulnerabilities.‍10. Insufficient Logging & Monitoring‍There are several levels of maturity in logging & monitoring systems. Some will give you incomplete visibility over data flows, but give you the context needed to understand the activity in your APIs. Others will feel like a firehose of log data that can only be understood by diving into seemingly endless rabbit holes to go through a complete stack trace.Maintaining a good balance between the two extremes will ensure your logging & monitoring systems give you complete visibility, but also enable more actionable observability. There are multiple layers that can create logs in the software stack. At the start of a client interaction with an API, a request will generally go through an API gateway, which will create a log of the network event. Next, the event will be passed to the application layer where logging becomes a lot more dependent on developer choices. If your API is powered by AWS Lambda, you can log most data to CloudWatch, although observability may not be the best. Otherwise, you may not have any logging at the application layer. Once at the database layer, using AWS hosted services like DynamoDB, Appsync, or Relational Database Service (RDS), will make logging and storage easy, but ease of monitoring might suffer.If you’re not logging API request and response activity, you run the risk of flying blind. You won’t know how your API is being used or if it’s being exploited. In the event of a breach, you won’t know the extent of the breach. Further than that, if you’re not actually checking your logs, then really what was the point of logging in the first place?Essentially, the same API request can create logs at multiple points, but the best place, by far, is at the application logic layer.This is where FireTail can help. We maintain open-source libraries for Python, JavaScript (Node.js), GoLang, and Ruby that show you the conflicts between what your API contract states the behavior of your API should be, and the actual behavior of your API. It works by reading your OpenAPI spec file, confirming expected behavior, and giving you the option to block any unintended behavior. We also check for security rules and best practices we’ve explored in this overview of the OWASP API Top 10.Our mission is to make APIs more secure. Developing APIs is increasingly important, so adding security requirements shouldn’t be seen as sacrificing development velocity and time to market. This is why we’ve adopted this approach – we’re giving developers the “easy button” to develop APIs securely. ‍