top of page

Securing APIs: Effective Approaches to Collecting Data on API Activities

Writer: anujitoria7777
anujitoria7777
Feb 29, 2024
3 min read

API security relies heavily on data collection. This process primarily involves two key steps: API discovery and API traffics analysis. 

API Discovery : API discovery plays a crucial role in API security initiatives. Continuously discovering APIs is particularly vital as it aids in identifying rogue and zombie APIs.

API Traffic Analysis : According to the OWASP TOP 10, analyzing API traffic is essential for identifying vulnerabilities and threats. Just like in any network security effort, the security tool must access the appropriate data to effectively analyze it for potential threats.

Best Recommendation for API data collection 

According to Akamai, the top four recommendations for data collection are as follows:

  1. Start with the broadest possible vantage point

  2. Add depth to your primary API monitoring stack

  3. Sanitize your API activity data

  4. Take the first step to better API discovery and advanced threat detection 

Start with the broadest possible vantage point


Ensuring comprehensive visibility is key to building a strong API security plan. While following a standardized process for deploying APIs is important, it's even more crucial to detect any unexpected or unauthorized activity.

Rogue APIs and forgotten shadow APIs can pose serious risks to our security, which is why continuous discovery is vital.

Monitoring traffic and collecting logs have clear advantages over relying solely on host-based sensors because they cover a wider range. However, it's essential to address blind spots, especially in hybrid and multicloud environments where API traffic can flow through various locations.

To effectively manage unsanctioned API activity, it's crucial to design our API security system in a way that ensures it can discover any unauthorized API use. This means setting it up to catch any unusual or suspicious behavior, even in complex environments.

  1. Add depth to your primary API monitoring stack In our quest to gather data for monitoring and securing APIs, we draw from various sources such as packet brokers, cloud platforms, and API gateways. These sources provide a wide range of information, which is great for basic discovery of APIs. However, it's crucial to consider both the breadth and depth of the data they offer when devising a strategy for API data collection. For example, while API gateway logs are a valuable source of information, they might not always provide the level of detail needed for advanced analysis. This is because they could lack consistency in the HTTP request and response headers, and sometimes important message payloads might be missing, depending on the vendor. So, as we delve into securing our APIs, we need to balance the convenience of using various data sources with the need for accurate and comprehensive data to effectively detect and respond to security threats.

  2. Sanitize your API activity data So far,we've emphasized the importance of gathering comprehensive information about how APIs are utilized. This process is crucial for gaining a deeper understanding of their functionality and identifying any potential vulnerabilities. Think of it as laying a sturdy foundation for monitoring any abnormal activities that could indicate serious security threats within the APIs. Now, before allowing a security vendor access to analyze your API activity, it's essential to ensure they have the capability to sanitize the data locally. This means they can clean and remove any sensitive information directly within your on-premises or virtual private cloud environments before transmitting it. This precautionary step is vital for protecting your sensitive data and maintaining privacy. By demanding evidence that the security vendor can sanitize the data locally, you can have confidence in their ability to securely send detailed information to the cloud for analysis without risking privacy breaches or exposing sensitive data to unauthorized access. This approach ensures that your organization can benefit from thorough API analysis while prioritizing data security and privacy concerns.

  3. Take the first step to better API discovery and advanced threat detection  Choosing the right way to collect data for your organization's APIs can feel overwhelming at first. But it's not as complicated as it seems.


Recent Posts

See All

Comments


bottom of page