API Security in the Age of Digital Banking: How Indian Enterprises Can Protect Their Interfaces

  • Home
  • API Security in the Age of Digital Banking: How Indian Enterprises Can Protect Their Interfaces
API Security in the Age of Digital Banking: How Indian Enterprises Can Protect Their Interfaces

India’s digital economy has exploded. UPI crossed 18 billion transactions in a single month in 2024. Open banking mandates are expanding under RBI guidelines, and enterprise back-ends are wiring up to payment gateways, GST portals, ONDC, and third-party SaaS platforms through a web of APIs. The attack surface has kept pace. API-related security incidents are now the fastest-growing category in application security, and Indian enterprises — from fintech to manufacturing to healthcare — are increasingly in the crosshairs.

This post looks at why API security has become a board-level conversation in India, what the most common attack patterns look like in practice, and what a structured defence programme should contain.

Why APIs Are the New Perimeter

Ten years ago, a firm’s security perimeter was relatively well-defined: a firewall at the edge, a DMZ for public-facing servers, and an internal network that was broadly trusted. That model has collapsed. Modern enterprise architecture exposes dozens — sometimes hundreds — of API endpoints to partners, mobile apps, customers, and cloud services. Each endpoint is a potential entry point.

The problem is compounded by how APIs are built and deployed today:

  • Shadow APIs: Development teams frequently deploy APIs outside the formal change-management process. A microservice shipped by a development squad may quietly reach production without the security team ever seeing it.
  • Zombie APIs: Deprecated API versions — v1, v2 — remain reachable long after v3 ships because load-balancer configs are never cleaned up. Attackers actively probe for these legacy endpoints because they often lack the security controls applied to current versions.
  • Over-permissive endpoints: Object-level authorisation failures (OWASP API Security Top 10’s number-one risk — BOLA) allow an authenticated user to retrieve or modify records belonging to other users simply by manipulating an ID in the request path.
  • Excessive data exposure: APIs frequently return full object representations and leave filtering to the client. A mobile app may display four fields while the underlying JSON payload contains twenty — including fields an attacker can harvest at scale.

These are not hypothetical. Indian financial institutions have experienced real incidents where attackers iterated through account numbers in REST calls to harvest balances and PII. CERT-In advisories have documented API abuse patterns across banking and e-commerce sectors in recent years.

The Indian Regulatory Context

India’s regulatory environment is tightening around data and incident disclosure in ways that directly affect API security posture.

DPDP Act, 2023

The Digital Personal Data Protection Act requires data fiduciaries to implement “reasonable security safeguards” and report personal data breaches to the Data Protection Board within prescribed timelines. APIs that expose personal data — names, phone numbers, financial details, health records — must be included in the scope of any Data Protection Impact Assessment. A breach that originates through an API endpoint carrying personal data is a notifiable event under DPDP. Organisations that cannot quickly trace the data lineage of an incident will struggle to comply with mandatory notification timelines. Importantly, having robust API security controls in place supports compliance with DPDP requirements — it does not guarantee it, but it provides strong evidence that reasonable safeguards were in place.

CERT-In Directions

CERT-In’s 2022 directions mandate reporting of cyber incidents within six hours of detection. API breaches — particularly those affecting authentication infrastructure, data pipelines, or financial services — fall squarely within the reportable incident categories. The six-hour window is tight. Without automated detection and a pre-built response playbook, most security teams will miss it. Organisations that have tested this scenario in a tabletop exercise are far better positioned than those relying on manual triage.

RBI Guidelines on IT Risk

RBI’s Master Direction on IT governance for regulated entities explicitly calls out the need to secure interfaces between systems. Open banking participants — banks, payment aggregators, fintechs — are expected to implement API gateway controls, OAuth 2.0-based authorisation, and continuous monitoring as part of their baseline security posture.

OWASP API Security Top 10: What to Watch in India

The OWASP API Security Top 10 (2023 edition) provides the clearest framework for understanding API risk. These are the entries most relevant to Indian enterprises right now:

BOLA — Broken Object-Level Authorisation

An authenticated user can access another user’s data by changing an object identifier in the API call. In a lending or UPI-adjacent context, this could mean account takeover or large-scale PII exposure. The fix is to enforce object ownership checks server-side on every request, not only at the session authentication layer.

Broken Authentication

Weak token management, missing expiry on JWT tokens, and refresh token reuse vulnerabilities are common in India’s mobile-first applications, which frequently implement custom authentication flows rather than vetted OAuth 2.0 / OIDC libraries. Short-lived access tokens with refresh token rotation are the minimum viable control.

Broken Function-Level Authorisation

Administrative or privileged API functions accessible to low-privilege users due to missing role checks. Attackers enumerate endpoint patterns and attempt access to admin functions. Every endpoint must have a role-enforcement assertion before any business logic executes.

Unrestricted Resource Consumption

APIs without rate limiting or query complexity limits are vulnerable to resource exhaustion and credential-stuffing at scale. A single attacker running automated scripts can hammer a login API thousands of times per minute. Per-user and per-IP rate limits at the API gateway — combined with step-up authentication on repeated failure — are the practical controls here.

Mass Assignment

Binding client-supplied JSON properties directly to internal model objects allows attackers to set fields they should not control — for instance, elevating their own privilege level in a user update call. Explicit allowlists of settable properties for every endpoint prevent this class of attack.

A Structured API Security Programme: Eight Practical Steps

Organisations that want to move from reactive incident response to proactive API security need a programme, not a point tool. Here is a practical framework adapted for the Indian enterprise context:

Step 1 — Build and Maintain an API Inventory

You cannot protect what you do not know exists. Crawl your API gateways, service meshes, and load-balancer configurations. Classify each endpoint by data sensitivity — does it process financial data, personal data, authentication credentials? Review the inventory every quarter and after every significant deployment. Shadow APIs discovered during a breach audit are always embarrassing; discovering them proactively is not.

Step 2 — Mandate OpenAPI Specifications

Every internal and external API should have a machine-readable specification in OpenAPI/Swagger format. These specs enable automated schema validation, documentation generation, and security testing. Make it a gate in your CI/CD pipeline: a merge request that changes API behaviour without updating the spec does not ship.

Step 3 — Centralise Through an API Gateway

A centralised API gateway is the enforcement point for authentication, rate limiting, IP allowlisting, and TLS termination. It also provides centralised logging — critical for CERT-In compliance. Backend services should not be directly internet-reachable; all external API traffic should route through the gateway. FortiGate’s application control and FortiWeb provide this layer for organisations already in the Fortinet ecosystem.

Step 4 — Implement mTLS for Service-to-Service APIs

Internal microservice communication often relies only on bearer tokens that can be stolen and replayed. Mutual TLS — where both client and server present certificates — is the appropriate control for high-sensitivity internal APIs, particularly those handling payment processing or identity data.

Step 5 — Run Automated API Security Testing in CI/CD

DAST tools capable of consuming OpenAPI specs to generate and fire security tests should run in your CI/CD pipeline against a staging environment. Test for BOLA, mass assignment, and authentication bypass as part of every release cycle. Annual penetration testing alone is not sufficient given the pace of API deployment in modern development teams.

Step 6 — Monitor API Traffic Continuously

Production API monitoring goes beyond infrastructure uptime. Look for sudden spikes in 4xx errors (enumeration attacks), unusual geographic distribution in API calls, abnormal response payload sizes (data harvesting), and credential reuse across accounts (stuffing campaigns). Correlating API gateway logs with your SIEM to catch multi-stage attacks that look normal at the API layer but reveal a pattern across time is where real detection capability lives.

Step 7 — Practice Incident Response for API Breaches

Run a tabletop scenario: an attacker has been iterating through customer IDs for 48 hours before detection. What data was accessed? Who must be notified? What is the CERT-In reporting timeline? How do you revoke compromised tokens without a broader service outage? Running this before the incident occurs is what makes the six-hour CERT-In window achievable in practice.

Step 8 — Third-Party API Risk Management

Many Indian enterprises consume third-party APIs — payment gateways, logistics platforms, GST filing services. Each is an implicit extension of your attack surface. Maintain a registry of third-party APIs, review their security attestations annually, and ensure that any outbound API call carrying personal data is covered by a data processing agreement aligned with DPDP requirements.

PrahiX Ora: Unified SecOps Visibility for API Threats

Detecting and responding to API security incidents at the speed CERT-In demands requires tooling that connects events across your environment into coherent attack stories. PrahiX Ora is a unified SecOps platform built by PrahiX Tech Pvt Ltd; PJ Networks is its primary field deployment and operations partner, operating the platform for enterprise clients across sectors in India.

SIEM — correlating API events at scale: API gateways, WAFs, identity providers, and application logs all generate events in isolation. Ora’s SIEM ingests these from multiple sources simultaneously, applying correlation rules mapped to MITRE ATT&CK — including techniques directly relevant to API abuse such as Credential Access via Brute Force and large-scale data collection. When an enumeration attack crosses a detection threshold, Ora’s graph-based attack storyline reconstruction connects authentication events, resource-access patterns, and lateral movement into a single visual timeline, compressing the analyst’s triage time significantly. For Indian enterprises, CERT-In’s direction on 180-day in-country log retention is addressed through tiered hot/cold/archive storage — recent events remain instantly queryable while older data is retained cost-efficiently on-shore.

NMS — full-stack observability under one pane: In environments where API traffic traverses multiple network layers — load balancers, API gateways, container clusters, and SD-WAN links — fragmented NOC tools produce fragmented visibility. Ora’s NMS provides unified observability across firewalls, switches, access points, and WAN/SD-WAN links, with LLDP/CDP topology discovery and network path tracing. ML-based anomaly detection flags unusual traffic patterns at the network layer that could signal an API abuse campaign before application-layer alerts fire — a particular advantage in multi-vendor estates where no single vendor’s native tool sees the full picture.

Video Surveillance (VMS) — physical and digital security converged: For manufacturing, retail, and multi-site enterprises, physical and network security incidents frequently co-occur. Ora’s video surveillance (VMS) pillar manages ONVIF/Hikvision/Dahua cameras with video analytics, giving operations teams a single platform for physical access events and network security events. A server-room intrusion that precedes a credential theft attempt appears in the same operational view as the network anomaly — context that standalone tools would never surface together.

SOAR — making CERT-In’s six-hour window realistic: The six-hour incident reporting window CERT-In mandates is not achievable through manual workflows when a complex API breach has occurred across multiple systems. Ora’s SOAR pillar provides playbook automation with pre-built connectors and automated response actions — including pushing updated blocklists directly to FortiGate firewalls. When an API enumeration attack is confirmed, a SOAR playbook can automatically block offending IP ranges at the FortiGate level, collect and package evidence artefacts, and draft the incident notification — completing the mechanical work within minutes so analysts focus on review and judgment rather than assembly. That is what makes six hours realistic.

If your security operations team is currently working across disconnected tools — a siloed SIEM, manual NOC dashboards, no SOAR automation — Ora’s convergence across these four pillars is worth exploring as a consolidated foundation. Talk to PJ Networks about an Ora deployment assessment for your environment.

Checklist: API Security Review for Indian Enterprises

  • Complete API inventory documented and reviewed quarterly
  • All external APIs require authentication — no unauthenticated endpoints for sensitive data
  • Object-level authorisation enforced server-side on every data-access endpoint
  • Rate limiting configured on all authentication and data-retrieval endpoints
  • API gateway centralises logging; logs retained for 180 days in-country
  • OpenAPI specifications in source control for all production APIs
  • Automated API DAST testing runs in CI/CD pipeline
  • SIEM correlation rules cover API abuse patterns: credential stuffing, enumeration, data harvesting
  • Incident response playbook tested for API breach scenario, including CERT-In 6-hour notification
  • Third-party API registry maintained; DPAs in place under DPDP for APIs processing personal data
  • Deprecated API versions decommissioned or explicitly blocked at the gateway/WAF
  • mTLS implemented for high-sensitivity internal service-to-service APIs

How PJ Networks Can Help

API security sits at the intersection of application development, network security, and compliance — and most enterprise security teams are stretched across all three simultaneously. PJ Networks’ managed security practice brings FortiGate and Fortinet expertise, 24/7 NOC/SOC operations, and ZTNA architecture experience to bear on this problem space directly.

Our engagements typically combine API gateway hardening through FortiGate policy configuration, continuous SIEM-based monitoring through the PrahiX Ora platform, and a CERT-In-aligned incident response capability that means a 3 a.m. API breach does not depend on a single on-call analyst. We work with Indian enterprises across BFSI, manufacturing, healthcare, and logistics to build security programmes that keep pace with the digital expansion India’s economy demands.

If your organisation is expanding its API surface — through open banking, ONDC integration, or SaaS adoption — and you want an independent assessment of your current API security posture, get in touch with PJ Networks.

PJ Networks Managed Security Services: FortiGate NGFW management, 24/7 NOC/SOC, ZTNA deployment, FortiMail, SD-WAN, MSSP — India-focused, enterprise-grade. pjnetworks.com

Leave a Reply

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