NISM IFSCA-02B · Chapter 8
Application Security
Updated for NISM workbook (October 2026) Read alongside the official NISM workbook ↗ · Flashcards · Formula sheet
Expert reviewed Checked by a subject-matter expert on 18 Nov 2026.
Trading front ends, client portals, APIs for algorithmic trading and back-office systems are the parts of the estate attackers touch most directly. Application security builds protection into software from design to retirement, tests it before it reaches production and shields it at run time. This chapter covers the secure SDLC, the OWASP Top 10, secure coding, SAST and DAST, API and microservice security, WAF and RASP, pre-production assessment, and DevOps to DevSecOps.
1Application security and the secure SDLC
Application security is the set of practices and tools that prevent, find and fix vulnerabilities in software throughout its life. A secure software development lifecycle (SSDLC) adds security activities to every phase:
- Requirements: security and privacy requirements, abuse cases, regulatory needs.
- Design: threat modelling (for example STRIDE), secure architecture patterns, design review.
- Development: secure coding standards, approved libraries, peer code review, SAST and software composition analysis (SCA) for open-source components and secrets scanning.
- Testing: DAST, penetration testing, security regression tests.
- Deployment: hardened configuration, secrets management, sign-off that critical findings are closed.
- Operations and maintenance: monitoring, patching, WAF/RASP, vulnerability disclosure handling, and secure decommissioning.
Elements that make the SSDLC work: a policy and secure coding standard, trained developers ("security champions" in each team), tooling integrated into pipelines, defined security gates, and metrics.
Fixing a flaw is far cheaper early: a design flaw caught in threat modelling costs a fraction of the same flaw found after release.
Remember
- Security in every phase, not a test at the end.
- SAST and SCA in development; DAST and pen testing before release.
2OWASP Top 10
The OWASP Top 10 is a widely used awareness list of the most critical web application security risks. Broken access control has ranked first in recent editions (users acting outside their permissions, such as changing an account ID in the URL to see another client's statement, an insecure direct object reference). Other recurring categories: injection (SQL, OS command and similar, where untrusted input is executed as code; cross-site scripting is now grouped here), cryptographic failures (sensitive data unencrypted or weakly encrypted), insecure design, security misconfiguration (default accounts, verbose errors, open cloud storage), vulnerable and outdated components (software supply chain failures), identification and authentication failures, software and data integrity failures (unsigned updates, insecure deserialisation), and security logging and monitoring failures. Server-side request forgery (SSRF), where the server is tricked into making requests to internal resources, was a separate category in 2021.
Example A portal URL reads /statement?client=10452. Changing it to 10453 shows another investor's holdings. The server must check that the logged-in user is authorised for that client ID on every request.Exam trap The defence against SQL injection is parameterised queries (prepared statements), not just escaping characters or hiding error messages.
Remember
- Broken access control tops the list.
- Injection → parameterised queries and input validation.
3Secure coding principles
Principles: validate all input (allow-lists, type and length checks) on the server side; encode output for its context to prevent XSS; use parameterised queries; enforce authorisation on every request server-side; fail securely and show generic error messages; never hard-code secrets; use vetted cryptographic libraries rather than writing your own; apply least privilege to application accounts; manage sessions securely (random IDs, timeouts, secure cookie flags); log security events without logging sensitive data.
These are enforced through a published secure coding standard (for example aligned to OWASP ASVS or CERT standards), peer code review with security checklists, automated checks in the pipeline, and regular developer training.
Remember
- Validate input, encode output, parameterise queries, authorise every request.
- Standards + review + tools + training.
4SAST and DAST
- SAST (static application security testing) analyses source code, bytecode or binaries without running the application. It is "white-box", finds issues early (even in the developer's IDE), points to the exact line of code, but can produce many false positives and cannot see runtime or configuration issues.
- DAST (dynamic application security testing) tests the running application from outside, like an attacker, sending crafted requests. It is "black-box", language-independent, finds runtime and configuration flaws, but runs later and cannot point to the code line.
- IAST combines both using agents inside the running app; SCA identifies vulnerable open-source components and licence issues.
Exam trap SAST needs source or binaries and no running app; DAST needs a running app and no source.
Remember
- SAST = inside, early, code line, more false positives.
- DAST = outside, running app, runtime flaws.
5Securing APIs and microservices
APIs expose business logic directly, so their main risks (the OWASP API Security Top 10, 2023) start with broken object level authorisation (BOLA), followed by broken authentication, excessive data exposure at property level, unrestricted resource consumption and broken function-level authorisation. Controls:
- An API gateway for central authentication (OAuth 2.0 tokens, mutual TLS), authorisation, rate limiting and throttling, input validation and logging.
- Object- and function-level authorisation checks in every endpoint.
- Return only needed fields; validate against schemas.
- A complete API inventory (including old versions and "shadow" APIs) and restricting connectivity to an allow-list of authorised entities, as IFSCA's frontier-AI advisory and MII guidelines require.
- For microservices: mutual TLS between services (often via a service mesh), short-lived tokens, secrets management, container image scanning and least privilege for each service.
Remember
- BOLA is the top API risk.
- Gateway, rate limits, inventory, allow-listing.
6Runtime protection: WAF, virtual patching and RASP
A web application firewall (WAF) inspects HTTP traffic in front of the application and blocks common attacks (injection, XSS, bad bots). Virtual patching is a WAF or IPS rule that blocks exploitation of a known vulnerability until the code can be fixed; it buys time but is not a permanent fix. Runtime application self-protection (RASP) is embedded in the application runtime and can see how input is actually used, blocking attacks with more context and fewer false positives.
Remember
- WAF outside, RASP inside.
- Virtual patching is temporary; fix the code.
7Assessment before production
Every new application and major change should pass a security assessment before go-live: confirmation that SAST, SCA and DAST findings of high or critical severity are fixed or formally accepted, a penetration test for internet-facing and critical systems, configuration review, and sign-off by security. IFSCA's MII guidelines require VAPT before commissioning new systems and before production releases, and mitigation of OWASP API Top 10 risks before deploying APIs.
Exam trap "We will test it after launch" leaves real clients exposed to the flaws. Pre-production assessment is the gate.
Remember
- No critical open findings at go-live without formal risk acceptance.
8DevOps, DevSecOps and shared ownership
DevOps joins development and operations to deliver software faster and more reliably through collaboration, automation, continuous integration and continuous delivery (CI/CD), infrastructure as code, small frequent releases and fast feedback from monitoring.
DevSecOps evolved because security reviews at the end could not keep up with daily releases. It shifts security left and automates it inside the pipeline: SAST, SCA and secrets scanning on each commit, infrastructure-as-code and container scanning, DAST in staging, signed builds and artifacts, policy-as-code gates and runtime monitoring.
Shared ownership means developers own the security of their code, operations own secure configuration and monitoring, and the security team provides standards, tools, coaching and assurance rather than acting as a late gatekeeper. Security champions in each squad, shared metrics (such as time to fix critical findings) and blameless post-incident reviews reinforce accountability.
Remember
- DevSecOps = security automated in CI/CD, shifted left.
- Everyone owns security; the security team enables.
Original summary written by Integrato Digital to complement the official NISM workbook (October 2026 version). Read the workbook for the full text: get it free from NISM ↗.