API Security in the Age of Microservices: What Indian Enterprises Must Secure Now

  • Home
  • API Security in the Age of Microservices: What Indian Enterprises Must Secure Now
API Security in the Age of Microservices: What Indian Enterprises Must Secure Now

API breaches have quietly become one of the most expensive threat vectors in enterprise IT — yet most Indian organisations still treat their application programming interfaces as a secondary concern. That is changing, fast. The 2024-2025 wave of credential-stuffing attacks, shadow-API discoveries, and BFLA (Broken Function Level Authorisation) exploits hitting BFSI, e-commerce, and manufacturing sectors is forcing CISOs to rethink the perimeter. This guide breaks down the API threat landscape, explains why legacy controls fall short, and offers a practical checklist your team can act on this quarter.

Why APIs Have Become the Preferred Attack Surface

Enterprises that have embraced microservices, cloud-native applications, and mobile-first strategies now expose hundreds — sometimes thousands — of API endpoints. Each endpoint is a potential entry point. Unlike traditional web vulnerabilities that target web pages, API attacks target business logic: enumerate users, extract bulk data, escalate privileges, or bypass payment controls — all without triggering a WAF signature.

According to Gartner, APIs have overtaken web applications as the number-one attack vector for enterprise data breaches. India’s rapid digital payments ecosystem, heavy microservices adoption in banking and fintech, and the growing SaaS-first posture of mid-market enterprises make this warning especially relevant here.

The OWASP API Security Top 10 in Practice

OWASP’s API Security Top 10 (2023 edition) maps neatly to real-world incidents. The three we see exploited most often in Indian enterprise environments:

  • API1 — Broken Object Level Authorisation (BOLA): An attacker changes a customer ID in a request URL (GET /invoices/10042 → GET /invoices/10043) and retrieves another customer’s data. We have seen this pattern in logistics portals and insurance APIs. No elevated privilege needed — just iteration.
  • API3 — Broken Object Property Level Authorisation: Mass-assignment vulnerabilities where an API returns more fields than the UI displays. A threat actor can harvest hidden fields (PAN numbers, internal flags) that the developer never intended to expose.
  • API6 — Unrestricted Access to Sensitive Business Flows: Attackers abuse legitimate business logic — gift-card redemption, OTP resend, bulk export — at machine speed. Rate-limiting and bot detection at the API gateway are the only viable defences.

Shadow APIs: The Risk Your Inventory Doesn’t Know About

Shadow APIs are endpoints that were created, forgotten, or never formally registered — legacy versions (/v1/, /beta/), internal developer test endpoints exposed to the internet, third-party integrations left running after a vendor switch, or microservices that grew organically without ever being catalogued.

A comprehensive API security programme starts with discovery: you cannot protect what you do not know exists. Runtime traffic analysis — watching what actually flows over your network rather than trusting what a developer documented — is the only reliable way to build a complete API inventory.

Authentication and Authorisation Gaps

JWT (JSON Web Token) misconfigurations remain common: weak signing algorithms (the infamous alg:none attack), long-lived tokens with no refresh cycle, and tokens that are never revoked on logout. OAuth 2.0 implementation errors — redirect-URI mismatches, client-secret exposure in mobile apps — account for a significant share of API account-takeover incidents.

Zero Trust Network Access (ZTNA) principles apply here too: every API call should be authenticated, authorised, and logged — regardless of whether it originates inside or outside the corporate network. Implicit trust in internal service-to-service calls is where lateral movement begins.

Regulatory Pressure: DPDP Act and CERT-In’s API Posture Requirements

India’s Digital Personal Data Protection (DPDP) Act 2023 places explicit obligations on data fiduciaries: purpose limitation, data minimisation, and security safeguards proportionate to the risk. APIs that over-return personal data — returning a full user object when the caller only needs a display name — create DPDP exposure that no privacy notice can fix.

CERT-In’s 2022 directions require mandatory reporting of personal data breaches, API-related compromises, and unauthorised access to IT infrastructure within six hours of detection. That six-hour clock does not allow manual investigation. Automated detection, correlation, and alerting — specifically tuned to API traffic anomalies — is now a compliance requirement, not a nice-to-have.

Organisations that rely solely on perimeter firewalls or legacy WAFs will struggle to meet both the detection and the reporting timelines. A purpose-built API security layer integrated with your SIEM and SOAR is the architecture that makes compliance achievable.

API Security Architecture: What a Modern Stack Looks Like

1. API Gateway with Policy Enforcement

Centralise all inbound and outbound API traffic through a gateway. Enforce authentication (OAuth 2.0, mTLS for service-to-service), rate limiting, payload size limits, and schema validation at the gateway — before requests reach application logic. FortiGate’s application-layer inspection complements gateway-level controls by catching anomalous traffic patterns in encrypted flows.

2. Runtime API Discovery and Inventory

Passive traffic mirroring gives you a continuous, authoritative list of active endpoints — including shadow APIs. Any endpoint that appears in traffic but is absent from your API catalogue should trigger an alert. This is the foundation of API posture management.

3. Anomaly Detection Tuned to API Behaviour

Traditional signature-based detection misses BOLA and business-logic attacks because the individual requests look legitimate. Behavioural baselines — normal call rates per user, expected parameter ranges, typical request sequences — let you surface enumeration, credential-stuffing, and scraping in near-real time.

4. Secrets Management

API keys, client secrets, and service-account tokens must live in a secrets vault (HashiCorp Vault, AWS Secrets Manager, or equivalent) — not in source code, environment files, or CI/CD pipelines. Automated secret-scanning in your development pipeline catches leaks before they reach production.

5. Continuous Testing in CI/CD

Shift-left API security means running DAST (dynamic application security testing) scans and OWASP API Top 10 checks in every pull request. Issues caught before deployment are far cheaper than post-breach remediation.

PrahiX Ora: Unified SecOps Visibility Across API and Infrastructure Threats

API security incidents rarely stay isolated. An attacker who exfiltrates data through a BOLA flaw will also leave traces in DNS logs, firewall sessions, and authentication events — context that only surfaces when you correlate across sources. This is where the platform we deploy and operate for clients — PrahiX Ora, built by PrahiX Tech Pvt Ltd — becomes operationally critical.

SIEM: Ora ingests logs from API gateways, FortiGate firewalls, cloud-native services, and endpoint agents into a unified correlation engine. Detection rules mapped to MITRE ATT&CK (including the API Abuse sub-techniques) automatically build graph-based attack storylines — so an analyst sees a complete attack chain rather than isolated log entries. Tiered retention (hot, cold, and archive) supports CERT-In’s direction on 180-day in-country log retention, which is particularly relevant for organisations with India-resident API traffic.

NMS: For multi-vendor enterprises where API gateways sit alongside on-premises FortiGate clusters, cloud load balancers, and diverse switching fabric, fragmented NOC visibility is a real problem. Ora’s Network Management System uses LLDP/CDP topology discovery and network path tracing to build a unified observability layer. ML-based anomaly detection flags unexpected east-west traffic patterns — a useful signal when a compromised internal service begins making unusual API calls.

Video Surveillance (VMS): For manufacturing, retail, and multi-site enterprises, Ora’s video surveillance (VMS) module — supporting ONVIF, Hikvision, and Dahua camera estates — brings physical and network security under a single operations view. When a physical security event (tailgating, after-hours access) correlates with an API anomaly in the same time window, your SOC sees the full picture rather than two unrelated alerts in separate consoles.

SOAR: CERT-In’s six-hour incident reporting window makes manual response untenable for most security teams. Ora’s Security Orchestration, Automation and Response module ships with pre-built connectors and automated response actions — including pushing IP blocklists and geographic restrictions directly to FortiGate. When an API enumeration attack is detected, the SOAR playbook can isolate the source, preserve evidence, and generate a draft CERT-In incident report in minutes, not hours. That is what makes the six-hour deadline realistic rather than aspirational.

If your SOC is currently running separate tools for each of these functions, ask us how consolidating onto Ora has changed mean-time-to-detect for our existing clients.

A Practical API Security Checklist for Indian Enterprises

Use this checklist to assess your current posture and prioritise remediation:

  • Inventory: Do you have a complete, continuously updated API inventory — including internal service-to-service APIs?
  • Authentication: Are all external APIs protected by OAuth 2.0 or mTLS? Are JWT tokens short-lived and properly revoked?
  • Authorisation: Have you tested for BOLA and BFLA — not just in pen tests but in automated scans on every release?
  • Rate limiting: Are rate limits enforced at the gateway for sensitive endpoints (OTP, login, export)?
  • Data minimisation: Do your APIs return only the fields the caller requires, or do they over-return PII?
  • Logging: Are API request/response headers (not just status codes) logged, retained for 180 days, and stored in India?
  • Anomaly detection: Are you baselining normal API behaviour and alerting on deviation — not just matching known-bad signatures?
  • Secrets management: Are API keys and client secrets stored in a vault, rotated on schedule, and scanned for in your codebase?
  • Incident response: Does your IR playbook cover API-specific scenarios, and can you produce a CERT-In report within six hours?
  • Third-party APIs: Do you assess the security posture of APIs you consume — not just the ones you expose?

Common Mistakes and How to Avoid Them

Relying on the WAF as Your Only API Control

Web Application Firewalls are valuable, but they were designed for HTTP/HTML threats — not for the business-logic attacks that dominate the OWASP API Top 10. A WAF will not catch an authenticated user enumerating records one ID at a time. Complement your WAF with API-specific behavioural controls.

Treating Internal APIs as Trusted by Default

The assumption that internal service-to-service calls are safe is exactly the trust model that lateral movement exploits. Zero Trust means authenticating every call, every time — including the API call from your notification service to your user service.

Skipping API Security in Vendor Assessments

Third-party integrations often introduce API risk you have not assessed. Any vendor with API access to your environment is an extension of your attack surface. Include API security questions in your vendor risk assessment process.

How PJ Networks Helps Secure Your API Estate

PJ Networks combines 24/7 NOC/SOC operations with hands-on Fortinet/FortiGate expertise to deliver managed security that covers both network-layer and application-layer threats. For API security specifically, our approach layers:

  • FortiGate NGFW with deep application inspection and IPS signatures tuned to API abuse patterns
  • FortiMail for securing API-triggered email flows (transactional emails, notifications) that are increasingly used as a lateral channel
  • ZTNA deployment ensuring that only authenticated, authorised users and devices reach API endpoints — regardless of network location
  • PrahiX Ora deployment for SIEM-driven anomaly detection, automated SOAR response, and CERT-In-compliant log retention

If your organisation is preparing for a DPDP Act compliance audit, planning a microservices migration, or has recently experienced an API-related incident or near-miss, we would be glad to run an API Security Posture Assessment. Contact PJ Networks to schedule a no-obligation conversation with our security architects.

“The organisations that get API security right treat it as an operational discipline — continuous discovery, continuous testing, continuous monitoring — not a one-time penetration test.”

The API threat surface will only grow as India’s digital economy deepens. The enterprises that invest in structured API security programmes today will be materially better positioned — both in terms of breach resilience and DPDP/CERT-In compliance — than those that wait for an incident to force the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *