In brief
SIM swap is the takeover of a customer's number by getting the operator to issue a new SIM card or eSIM profile to a fraudster, after which the bank's SMS codes go to them. Operators protect customers with several layers: strong verification in every channel where a SIM can be replaced, a check of Poland's PESEL reservation register, a notice to the existing contact details, a short post-swap restriction period, and a signal to banks that the SIM was recently replaced. Each layer needs testing, social engineering included.
How the attack works
A typical attack has four steps:
- Reconnaissance. The fraudster obtains the victim's data: name, PESEL (Polish national ID number), phone number, sometimes online banking credentials from an earlier breach or phishing.
- SIM replacement. The fraudster asks the operator for a duplicate SIM or a new eSIM profile, in a retail store, at the call center or in the app, posing as the customer.
- Code interception. The victim's phone loses service, and the new SIM receives the SMS codes for logging in and authorizing transfers.
- Cashing out. The fraudster logs in to online banking, changes the contact details and orders transfers before the victim realizes their phone is not working.
The attack can be stopped at every step. The operator is responsible for step two and can help with step three, the bank for step four. Related fraud against companies, where the fraudster poses as a supplier, is described in the "changed bank account" scam.
Attack paths and controls
| SIM replacement channel | What the attack looks like | Control |
|---|---|---|
| Retail store | a forged ID card, help from a dishonest salesperson | ID document check, PESEL reservation register check, a record of who issued the card, analysis of swaps per point of sale |
| Call center | social engineering: time pressure, "I lost my phone abroad" | verification questions beyond easily bought data, no swap based on the call alone, a callback to the number in the contract |
| App and portal | a hijacked customer account, bypassing process logic | re-authentication before the swap, notification on other channels, delayed activation of the new profile |
| eSIM on a new device | activation code sent to a compromised email address | code delivered only to the logged-in app, confirmation on the current device, a one-time code with a short expiry |
| Number porting | a porting request to another operator using the victim's data | identity verification by the new provider, notifying the customer before porting |
On the legal side, Article 297 of Poland's Electronic Communications Law matters: before issuing a copy or duplicate SIM card, including its digital equivalent, the provider checks whether the subscriber's PESEL is reserved in the register and refuses to issue the card if it is. Customers can reserve their PESEL free of charge in the mObywatel app, on the gov.pl portal or at any municipal office, so operators should tell them about it. The check has to work in every channel, including the eSIM process described in eSIM in operator systems.
Controls after the swap
Even good verification sometimes fails, so further layers work after the swap:
- Notice on the old channels. An SMS to the current SIM before it is deactivated and an email to the address in the contract: "A SIM replacement was requested. If this wasn't you, call us."
- Restriction period. For a while after the swap, the operator can block selected operations: number porting, changing the email address in the customer account, issuing another eSIM profile.
- A fast reporting path. A customer who lost service for no reason must be able to block the new SIM quickly, without a long call center queue.
- A log. Every swap is recorded: channel, employee or app session, verification method, PESEL register check result. Without it you cannot investigate a case or find a pattern.
A signal for banks
A bank cannot see that a SIM was replaced unless the operator tells it. That is what the SIM Swap API from the CAMARA project is for: the bank asks whether the number changed its SIM in the last few hours and, if it did, does not send an SMS code or requires additional verification. How an operator builds such an API is covered in CAMARA network APIs.
NIST authentication guidelines (SP 800-63B) treat codes sent over the telephone network as a restricted method and recommend that verifiers consider risk indicators such as a SIM change, a device swap or number porting before using them. For a bank, this is an argument to use the operator's signal and, in the longer run, to move to methods that resist number takeover.
How to test the SIM replacement process
A security test of SIM replacement covers the process, not just the app:
- A threat model for each channel: who can request a swap, what data they verify with, which steps can be skipped.
- Logic tests in the app and portal: can an eSIM be ordered without re-authentication, can an email change and a SIM swap happen in one session, do limits hold under parallel requests.
- Review of call center scripts and a social engineering test agreed with the operator, on test accounts.
- Notification checks: do they arrive, in what order, can the fraudster switch them off before the swap.
- PESEL register check: does the process refuse for a reserved number, and what does it do when the register does not respond. Article 297 of the Electronic Communications Law covers both cases: if the reservation register is unavailable the provider refuses, and after another failure lasting over 15 minutes it may, after a retry, refuse or issue the card following a careful identity check that it documents.
- Retest after fixes and automated logic tests added to the pipeline.
This is how the tests were structured in the self-service portal and SIM replacement process case study: a threat model, tests of self-service process logic, recommendations (delays, notifications, risk signals for banks) and a retest. B2Bnetwork engineers run this kind of security testing with a technical and a management report.
Detection and cooperation
Poland's act on combating abuse in electronic communications requires telecom operators to take proportionate organizational and technical measures to prevent abuse (Article 3(3)). In practice, the operator monitors patterns: many swaps at one point of sale, a SIM swap followed right away by a porting request, several failed verification attempts at the call center before a successful swap. An alert goes to the fraud team, which can hold the swap and contact the customer through another channel.
Questions and answers
How can customers protect themselves from SIM swap?
Reserve their PESEL, because the operator must then refuse to issue a duplicate SIM, set a customer service password or PIN with the operator, and use a mobile app or a hardware key in online banking instead of SMS codes. A sudden loss of service for no reason is a signal to contact the operator and the bank right away.
Is eSIM safer than a physical SIM card?
Not inherently. eSIM removes the physical card but moves the risk into the process of issuing a profile to a new device: the activation code, email, the app. If that process has weak verification, taking over a number is even easier, because no store visit is needed. That is why the same controls must cover eSIM.
Who is liable for losses after a SIM swap: the operator or the bank?
It depends on the circumstances and the findings in a given case: whether the operator followed its SIM issuing procedures, whether the bank authenticated the transactions properly, whether the customer took due care. For IT teams one thing matters: a log of every SIM swap and every authentication, without which none of this can be established.
How often should the SIM replacement process be tested?
After every change to the process, the app or the call center scripts, and periodically, for example once a year in full scope. Automated logic tests (re-authentication, limits, notifications) are worth running with every app release.
Sources
- Ustawa z dnia 12 lipca 2024 r. Prawo komunikacji elektronicznej (Electronic Communications Law, in Polish), ISAP
- Ustawa z dnia 28 lipca 2023 r. o zwalczaniu nadużyć w komunikacji elektronicznej (Act on Combating Abuse in Electronic Communications, in Polish), ISAP
- Zastrzeż numer PESEL w aplikacji mObywatel (PESEL reservation in the mObywatel app, in Polish), Ministry of Digital Affairs
- NIST SP 800-63B-4: Authentication and Authenticator Management
- CAMARA SIM Swap API, repository