Skip to content
All projects

Security testing of a self-service portal and the SIM card replacement process

Project write-up

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
Taking over a number through a SIM card replacement (SIM swap) lets criminals intercept SMS codes for online banking.
Approach
We test SIM and eSIM replacement processes end to end: authentication, access recovery, changes to contact details, notification channels.
Goal
Open critical and high vulnerabilities: 0 before release; Average time to fix a high vulnerability: ≤ 14 days.

Client context

Telecommunications is an industry with a very high transaction volume and a fast pace of offer changes. Testing and automation decide whether a new offer reaches the market on time. The client is a mobile operator with a self-service portal and app that let customers, among other things, order a duplicate SIM card and activate an eSIM.

Challenge

Taking over a number through a SIM card replacement (SIM swap) lets criminals intercept SMS codes for online banking. The operator wants to verify the resilience of its self-service processes.

Requirements and constraints

  • The Polish Electronic Communications Law regulates, among other things, the confidentiality of communications, number portability, protection of traffic data and information obligations toward subscribers. Changes to BSS/OSS systems must preserve these processes without interruption. (source)
  • NIS2, i.e. Directive (EU) 2022/2555, and the amendment to the Polish National Cybersecurity System Act (KSC) require essential and important entities to implement cybersecurity risk management measures, supply chain security and incident reporting within short deadlines (early warning within 24 hours). Management is personally liable, so documenting decisions is part of the product. (source)
  • The GDPR, i.e. Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, data processing agreements and, for high-risk processing, a data protection impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, every deliverable accompanied by documentation that 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 run the tests in gray-box mode. We plug SAST, dependency analysis (SCA) and DAST into the pipeline so that subsequent releases do not introduce 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 SIM and eSIM replacement processes end to end: authentication, access recovery, changes to contact details, notification channels. Scenarios include social engineering against the process (without contacting real agents) and bypasses of application logic.

Key elements of the solution:

  • A threat model for SIM swap
  • Logic tests of self-service processes
  • Recommendations: delays, notifications, risk signals for banks
  • Retest after fixes

Team and roles

RoleCountResponsibility
Security architect1threat model, security requirements, design reviews
Pentester (OSCP/OSWE)2manual testing, exploitation, remediation recommendations
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Threat model and rules of engagement1–1threat model, scope, authorizations
2. Reconnaissance and automated testing2–3attack surface map
3. Manual testing and business logic4–6list of vulnerabilities with CVSS
4. Report and remediation workshop7–7technical and management report
5. Retest and plugging scans into CI8–8confirmation of fixes, security gates

Technology stack

Burp Suite, MobSF, Frida, OWASP ZAP.

Risks and how we mitigate them

RiskHow we mitigate it
Disruption of production during security testingrules of engagement, test windows, disabling destructive tests on production, an emergency channel
Auditor or regulator findings after deploymentcompliance involved from the analysis phase, evidence collected along the way, a review before acceptance

Measurable goals and KPIs

The values below are targets that we set with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Open critical and high vulnerabilities0 before releasevulnerability register
Average time to fix a high vulnerability≤ 14 daysvulnerability register

Lessons learned and good practices

The SIM replacement process is a security problem not only for the operator but also for the banks of its customers. A notification to the old channel and an activation delay are simple and effective controls. A retest is part of the service, not an add-on, because without it a report is only a wish list.

Why B2B.net

We combine two models: we provide individual engineers and whole teams (time and materials, team leasing), and when the 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 successor is in place within 5 business days.

Acceptance criteria

Each phase ends with formal acceptance against criteria agreed at the start. In this implementation, acceptance covers: threat model, scope, authorizations; attack surface map; list of vulnerabilities with CVSS; technical and management report; confirmation of fixes, security gates. Final acceptance requires a KPI measurement report against the baseline, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with a cost and risk assessment for each.

Next step

Want to see how such an implementation would look 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 talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: Telecommunications