The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.
In brief
- Problem
- The new API enlarges the attack surface: OAuth2 authorization with eIDAS certificates, customer consents, call limits.
- Approach
- We test in gray-box mode following the OWASP API Security Top 10, with particular emphasis on broken object level authorization (BOLA), consent scope and token handling.
- Goal
- Open critical and high vulnerabilities: 0 before release; Mean time to remediate a high-severity vulnerability: ≤ 14 days.
Client context
In banking, the cost of a production defect is measured not only in complaints but also in customer trust and supervisory findings. Since January 17, 2025, DORA has applied, moving the conversation about IT quality from the IT department to the board. The client is a retail bank that provides a PSD2 interface for third-party providers (TPPs) and is extending it with paid premium API services for partners.
Challenge
The new API enlarges the attack surface: OAuth2 authorization with eIDAS certificates, customer consents, call limits. The bank needs an independent test before opening the API to partners, and evidence for internal audit.
Requirements and constraints
- PSD2 and the RTS on strong customer authentication (SCA) require strong customer authentication, secure interfaces for third-party providers (TPPs) and transaction monitoring for fraud. Every change to a payment path requires tests of SCA exemptions and of API availability compliance. (source)
- DORA, the Digital Operational Resilience Act (Regulation (EU) 2022/2554), requires ICT risk management, a register of contracts with ICT providers, classification and reporting of major incidents, and regular testing of operational resilience. For the project this means every new component needs an owner, a dependency map and a resilience test scenario, and the provider (including us) goes into the register of information on contractual arrangements. (source)
- GDPR, Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, processing agreements and, for high-risk processing, an impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
- Recommendation D of the KNF (Polish Financial Supervision Authority) sets out the supervisor's expectations for managing information technology and the security of the ICT environment in banks: separation of environments, change control, access management and business continuity. Every change in the system must go through a test and acceptance path that can be shown to an auditor. (source)
- Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, every deliverable handed over with documentation the client's team can take over.
Approach and architecture
We start with a threat model (STRIDE) and an attack surface map, agree on rules of engagement and test windows, and then test in gray-box mode. We plug SAST, dependency analysis (SCA) and DAST into the pipeline so that later releases do not reintroduce known classes of bugs. The report has two layers: a technical one for the team and a management one with a risk assessment.
We test in gray-box mode following the OWASP API Security Top 10, with particular emphasis on broken object level authorization (BOLA), consent scope and token handling. We design abuse scenarios with the product team: what a malicious TPP with a valid certificate can do, and what a customer with a hijacked session can do.
Key elements of the solution:
- Threat model for the consent and token flow
- Tests in a sandbox environment with synthetic accounts
- Verification of mTLS and certificate validation
- SAST/DAST gates in the pipeline once testing is complete
Team and roles
| Role | Count | Responsibility |
|---|---|---|
| Security architect | 1 | threat model, security requirements, design reviews |
| Pentester (OSCP/OSWE) | 2 | manual testing, exploitation, remediation recommendations |
| Test analyst (ISTQB) | 1 | designing and executing cases, reporting defects |
| Product owner and domain experts (client side) | as needed | priorities, business decisions, acceptance |
Phased schedule
| Phase | Weeks | Deliverable |
|---|---|---|
| 1. Threat model and rules of engagement | 1–1 | threat model, scope, approvals |
| 2. Reconnaissance and automated testing | 2–3 | attack surface map |
| 3. Manual testing and business logic | 4–6 | list of vulnerabilities with CVSS |
| 4. Report and remediation workshop | 7–7 | technical and management report |
| 5. Retest and scans added to CI | 8–8 | fix confirmation, security gates |
Technology stack
Burp Suite Professional, OWASP ZAP, Postman, custom Python scripts, Semgrep, Trivy.
Risks and how we mitigate them
| Risk | How we mitigate it |
|---|---|
| Disruption of production during security testing | rules of engagement, test windows, no destructive tests on production, emergency channel |
| No test data free of personal data | synthetic data generator and masking that preserves referential integrity; no copying production into test |
| Auditor or supervisor findings after deployment | compliance function involved from the analysis phase, evidence collected along the way, review before acceptance |
| Scope creep during the project | backlog with MoSCoW priorities, every change goes through the committee with an assessment of the schedule impact |
Measurable goals and KPIs
The values below are targets that we set with the client after a baseline measurement in the first phase.
| KPI | Target | How it is measured |
|---|---|---|
| Open critical and high vulnerabilities | 0 before release | vulnerability register |
| Mean time to remediate a high-severity vulnerability | ≤ 14 days | vulnerability register |
Lessons learned and good practices
In financial APIs the most dangerous flaws are object authorization errors: scanners do not see them, while a tester with a model of the domain finds them in an hour. A retest after the fixes is what an auditor actually looks for. The retest is part of the service, not an add-on. Without it, a report is just a wish list.
Why B2B.net
We combine two models: we provide individual engineers and whole teams (time and materials, team leasing), and when a client prefers to hand over responsibility for the outcome, we work at a fixed price for a defined scope. We have access to a large network of engineers in six cities, SAP Center of Expertise competencies and experience with ISO 27001, DORA and NIS2 requirements. If someone leaves the team, a replacement is in place within 5 business days.
Next step
Want to see what such an implementation would look like in your organization? Book a 30-minute call. We will prepare a plan for the first six weeks and a team composition tailored to your system.
What would this look like for you?
Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.
Let's talkB2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.