Introduction
Threat modelling has a reputation problem. Too many diagrams, too theoretical. When AppSec teams spend three sprints producing a threat model that never makes it into a Jira epic, the exercise becomes ritual rather than engineering.
Yet every Indian retail bank runs the same flows that get compromised the same ways — not because encryption was weak, but because assumptions between systems were never written down. The handshake between the mobile app and the OTP service. The implicit trust placed on the risk engine’s decision. The mutable cooling-off flag in core banking that customer service agents can lift.
PASTA (Process for Attack Simulation and Threat Analysis) is the 7-stage, risk-centric methodology that fixes this. Unlike STRIDE alone, PASTA connects threat discovery to business impact and then to a prioritised control backlog. This walkthrough applies all seven stages to the most fraud-targeted flow in Indian retail banking: add beneficiary + transfer money.
Why Banking Teams Should Pick PASTA Over STRIDE Alone
STRIDE is a threat taxonomy — a checklist of six threat categories. It tells you what kind of threat could exist at each component. What it does not tell you is whether any of those threats actually matter to your business, your CFO’s risk register, or your SEBI CSCRF assessment.
PASTA wraps STRIDE inside a business-impact framework. The difference in outputs is significant.
| Dimension | STRIDE Alone | PASTA for BFSI |
|---|---|---|
| Starts from | Component or data flow | Business objectives & threat intelligence |
| Output | Threat list | Risk-prioritised attack scenarios with control mapping |
| Regulator fit | Partial | Aligns with SEBI CSCRF PR.4, RBI Cyber Framework Annex C, DPDP Sec 8 |
| Quantification | None | Connects to FAIR for ALE in ₹ |
| Update cadence | One-shot exercise | Iterative per major release |
The Scenario: Data Flow Diagram
Before the seven stages can begin, you need a DFD that captures all systems, trust boundaries, and data flows. For the add-beneficiary + fund-transfer flow, two trust boundaries matter: the Device Zone (the customer’s mobile handset and carrier network) and the Bank Perimeter (everything the bank controls directly).
Stage 1: Define the Business Objectives
Why does the add-beneficiary + transfer flow exist? Before cataloguing threats, PASTA demands you articulate the business rationale — because risk can only be assessed relative to the value being protected.
- Drive digital transaction volume and defend against fintech disintermediation
- Meet RBI digital adoption targets and UPI/NEFT SLA obligations
- Reduce branch and call-centre transaction load
- Operate under DPDP Act, RBI Cyber Security Framework, and SEBI CSCRF obligations
Loss-event quantification: A successful fraud event on this flow produces direct financial loss (debit from customer account), RBI Banking Ombudsman exposure, measurable customer churn in the cohort, and brand damage that suppresses digital acquisition. Annualised Loss Expectancy (ALE) can be computed per FAIR by multiplying frequency of breach events by probable magnitude of loss.
Stage 2: Define the Technical Scope
One of the most common PASTA failures in banking is a scope that stops at the primary flow and misses the supporting infrastructure. The full scope for this walkthrough includes:
- Mobile application (iOS + Android, WebView if applicable)
- API Gateway (WAF, TLS termination, rate limiting)
- Authentication service (session management, token issuance)
- OTP provider (SMS gateway, TOTP service, attempt counters)
- Fraud / risk engine (velocity rules, ML scoring, decision API)
- Core banking system (beneficiary table, cooling-off logic, ledger)
- Settlement rails (NEFT, IMPS, UPI adapter, NPCI interface)
- SIEM / audit logging (event enrichment, alerting pipelines)
- Customer support tooling — critically, this is often omitted despite having direct write access to beneficiary and cooling-off fields
Stage 3: Application Decomposition
Each step in the flow is decomposed to identify what data is written, what trust transitions occur, and which system is the authority for each state change. Nine steps cover the full beneficiary + transfer lifecycle.
| # | Step | Key Data Written | Trust Transition |
|---|---|---|---|
| 1 | Login | Session token, device fingerprint | Device Zone → API Gateway |
| 2 | Initiate Add Beneficiary | Customer ID, intent flag | App → Auth Service |
| 3 | Submit beneficiary details | Account number, IFSC, nickname | API Gateway → Core Banking |
| 4 | Step-up OTP | OTP value, attempt counter | API Gateway → OTP Service |
| 5 | Beneficiary stored (pending) | Beneficiary record + cooling-off timestamp | Core Banking write (internal) |
| 6 | Initiate transfer | Amount, beneficiary ref, channel | App → Fraud / Risk Engine |
| 7 | Risk decision | Risk score, allow/deny decision | Risk Engine → Core Banking |
| 8 | Execute transfer | Debit entry, credit entry, settlement ID | Core Banking → NPCI/NEFT |
| 9 | Notify + log | SMS/push, audit log entry | Core Banking → SIEM + Customer |
Stage 4: Threat Analysis
With the flow decomposed, PASTA requires identification of realistic threat actors — not abstract adversaries, but actors who are actually observed in Indian BFSI incident data.
| Actor | Capability | Primary Technique | Goal |
|---|---|---|---|
| Mule-network operator | Low / Mid | Credential stuffing + SIM swap | Drain low-value accounts at scale |
| Targeted social engineer | Mid | Phishing + voice impersonation | Drain high-value accounts selectively |
| Mobile-malware crew | Mid / High | Overlay / accessibility-service abuse | Session hijack at the device layer |
| Insider (maker level) | Low | Lift cooling-off / approve faster | Collude with external mule |
| Insider (admin level) | High | Direct DB or config changes | Whitelist mule beneficiaries silently |
| Nation-state APT | Very High | Supply-chain / SDK compromise | Strategic disruption or data exfiltration |
STRIDE Catalog for This Flow
Applying STRIDE to the decomposed flow yields the following threat catalog. These are the inputs that feed Stage 5 vulnerability analysis.
| Category | Threat Instance |
|---|---|
| S — Spoofing | Stolen credentials + intercepted OTP presented as legitimate customer; SMS OTP intercepted via SIM swap to complete step-up as the account holder |
| T — Tampering | IFSC or account number intercepted and modified in a compromised network path; accessibility-service malware mutates form data before submission |
| R — Repudiation | Audit logs missing device fingerprint and geo-IP — attacker claims login was from a known device; missing tamper-evident log chain |
| I — Information Disclosure | Customer support tooling exposes unmasked account numbers and beneficiary history to agents with insufficient access logging |
| D — Denial of Service | OTP quota exhausted via automated requests causing fail-open fallback; core banking API flooded to suppress fraud-engine scoring |
| E — Elevation of Privilege | Maker-level CSA lifts cooling-off period without checker approval; admin-level insider modifies beneficiary trust score directly in database |
Stage 5: Vulnerability Analysis
PASTA distinguishes between threats (what an attacker wants to do) and vulnerabilities (the weaknesses that make it possible). The following six vulnerabilities map directly to the STRIDE threats above.
- Beneficiary creation does not require a dedicated step-up. State change (adding a payee) uses the same authentication as read operations. This is the primary attack surface.
- OTP scope is overly broad. The same OTP flow — or even a recycled OTP value — is accepted for both add-beneficiary and transfer actions. Reducing OTP scope per action closes several attack paths.
- Cooling-off can be lifted by CSA/maker with insufficient checker enforcement. The cooling-off period is implemented as a database flag, not an immutable timer. CSA tooling allows modification without a second approver or SIEM alert.
- Velocity rules count rupee amounts, not behavioral patterns. Ten transfers of ₹49,000 each do not trip a ₹50,000 threshold. Sub-threshold burst behavior combined with new-payee weight is not evaluated.
- Log alerts arrive after settlement clears. The SIEM rule fires on transaction volume anomalies, but NEFT settlement completes in 18–30 minutes. By the time the alert is actioned, funds have cleared.
- Device binding is advisory, not enforced. A new device can complete the full beneficiary-plus-transfer flow if credentials and OTP are available. Device registration is a UX hint, not a control gate.
Stage 6: Attack Modelling — The Fraud Narrative
PASTA Stage 6 builds attack trees and simulates realistic attack chains. The most common fraud narrative for this flow in Indian BFSI combines credential stuffing, SIM swap, and sub-threshold velocity — all exploiting the vulnerabilities identified in Stage 5.
Stage 7: Risk & Impact Analysis
The final PASTA stage produces a risk matrix that maps each finding to likelihood, impact, an overall risk rating, and the highest-value control intervention. Risk ratings here use a 2×2 qualitative scale anchored to the loss quantification from Stage 1.
| Finding | Likelihood | Impact | Risk | Suggested Control |
|---|---|---|---|---|
| No step-up on beneficiary creation | High | High | CRITICAL | Distinct OTP + device-binding check at beneficiary create time; separate from transfer OTP |
| Cooling-off can be lifted by CSA | Medium | High | HIGH | Mandatory 4-eye approval for cooling-off modification; privileged-action SIEM alert |
| Velocity counts amount, not behavioral pattern | High | High | CRITICAL | Sub-threshold burst rule; new-payee weight multiplier; new-device × new-payee compound trigger |
| Alerts arrive post-settlement | High | Medium | HIGH | Pre-settlement scoring hold queue for new-payee + high-velocity combinations; sub-second decision latency |
| Insider maker can act alone | Low | Very High | HIGH | Maker-checker enforcement at database trigger layer, not application layer; all cooling-off changes emit SIEM events |
| Logs lack device/geo for repudiation | Medium | Medium | MEDIUM | Enrich audit log with device fingerprint, geo, ASN, and IP for every state-changing action; 180-day immutable retention per CERT-In |
“One control — step-up authentication at beneficiary creation — disrupts six of the nine attack-tree leaves with negligible UX cost. That is risk-aware design.”
Mapping PASTA to Indian Regulations
A PASTA output is not just an AppSec artefact — it is evidence. The findings and controls from Stages 5–7 map directly to clauses that SEBI, RBI, and CERT-In auditors examine. The table below shows the specific clauses and what inspectors look for.
| Regulator / Framework | Clause | What Inspectors Look For |
|---|---|---|
| SEBI CSCRF | PR.4 | Threat-model artefact per critical application, refreshed on every major release; traceability from finding to control to test evidence |
| SEBI CSCRF | DE.1 / RS.1 | Detection-rule coverage tracing back to specific threat-model scenarios; SIEM rules with named threat actor / attack pattern provenance |
| RBI Cyber Security Framework | Annex C | Secure SDLC with documented threat model reviewed by qualified security team before production deployment |
| RBI Digital Payment Security Controls | §5 | Risk-tiered authentication for state-changing actions; evidence that beneficiary creation and fund transfer have distinct, documented authentication controls |
| DPDP Act 2023 / Rules 2025 | Sec. 8 | Demonstrable risk-based controls protecting personal data processed in transaction flows; audit log retention compliant with data-principal rights |
| CERT-In Directions (Apr 2022) | §4 | Log retention minimum 180 days, tamper-evident; incident reporting within 6 hours of detection; anomaly detection capability documented |
| ISO 27001:2022 | A.8.25 / A.8.26 | Secure development lifecycle with threat modelling; security requirements documented per application; regular review against updated threat intelligence |
Why Manual PASTA Stalls
PASTA is powerful in theory and frustrating in practice when run entirely manually. Five structural blockers cause most banking AppSec programmes to abandon the methodology after one cycle:
- Authored once, never refreshed. The threat model from the initial application launch is still being submitted two years later. Threat actors have evolved; the model has not.
- Findings in slides, controls in Jira — traceability dies on first hand-off. Without a structured linkage between threat-model finding and control implementation, the connection is lost within weeks.
- No quantification — every finding is “high.” Without FAIR or an equivalent quantification layer, prioritisation is political rather than risk-based. CISO and CFO cannot have the same conversation.
- Regulator mapping is manual. Every SEBI or RBI audit re-derives the same cross-walk from threat-model findings to regulatory clauses. This is hours of work that should be automated.
- Detection rules do not trace back to threat-model leaves. The SIEM team writes rules based on vendor recommendations, not the threat model. Gaps are invisible until an attacker finds them.
Practitioner Checklist
If you are running PASTA for the first time on a banking flow, these five steps will get you from blank page to actionable backlog in a single working session:
Run PASTA Repeatedly — In One Place
DFD, Attack Tree, SEBI/RBI Mapping, and Risk-Prioritised Findings without rebuilding from scratch each release. Practitioner Toolkit provides the PASTA framework guide, STRIDE catalogue, and SEBI CSCRF/RBI/DPDP/ISO 27001 control mapping templates — ready to export for audit.
Explore Practitioner Toolkit ↗