5 ms·
> Your carrier can upload and run arbitrary code without your consent or knowledge. Well, arbitrary sandboxed code. I agree that by today‘s standards, the API
by lxgr 5y ago
> Your carrier can upload and run arbitrary code without your consent or knowledge.
Well, arbitrary sandboxed code.
I agree that by today‘s standards, the APIs that code has access to seem excessive and are well worth trimming down, but some of them are vital to the network‘s internal operations (like OTA updating the list of preferred roaming partners), while others enable new use cases (like M-Pesa mobile payments).
For example, multi-IMSI SIM cards are, in my opinion, an ingenious solution enabling entirely new products and bringing much needed competition to an industry that had been pretty stagnant (international roaming). That would not possible without the SIM application toolkit.
- voltagex_ 5y agoCan a hobbyist mess around with this at all? Edit: yes, but I wonder how much trouble you'd get in putting this into a real phone? https://www.aliexpress.com/item/32900944064.html?spm=a2g0o.detail.1000023.2.14021441rqonZm https://www.aliexpress.com/item/32900944064.html?spm=a2g0o.d...
- lxgr 5y agoProbably none at all – such a SIM wouldn't have the required keys to even connect to any real network. SIM cards are just Java Cards, after all – the secret sauce is the proprietary software running on them (the ones you've linked seem to come with an implementation of that pre-loaded) and of course the keys they hold. Nobody keeps you from implementing all the SIM specifications in an open-source Java Card application, and I would in fact be very intrigued to see it happening ;) As far as I know, experimental/hobbyist GSM networks, like the ones running at some conferences, are still using proprietary SIM cards, and an open source implementation would be very interesting to study.
- myself248 5y agoTFA has links to the tools used. You'll find Osmocom.org an invaluable resource. I've put test SIMs in plenty of real phones, before tossing them into an RF chamber to talk to the network simulator. The real network doesn't seem to care.
- lxgr 5y agoIt makes sense that they don't: If you're using an unregistered/test MCC/MNC id as part of the IMSI, they would just consider your phone a roaming guest that they can't provide services to. Even if you'd be using an actual IMSI (not recommended – this seems like a legally more gray area), you would just fail authentication with that provider's AuC and the network would not let you register in what would be the GSM equivalent to a device trying to connect to a Wi-Fi with the wrong password.
- JoshTriplett 5y ago> some of them are vital to the network‘s internal operations (like OTA updating the list of preferred roaming partners) That should be the phone's job, not the SIM card. > while others enable new use cases (like M-Pesa mobile payments) That should be the phone's job, not the SIM card.
- jimktrains2 5y agoFor mobile payment, the SIM acts as a means to sign messages in a way that is difficult to spoof, as you cannot directly access the cryptographic key on it. This existed and worked long before secure elements or TPUs were on the scene.
- jedimastert 5y agoThat requires phone manufacturers to consistently send out updates in concert with many many phone carriers, including new ones no one has never heard of. I do not trust a single carrier to do that
- lxgr 5y agoTrue – not even Apple gets this right, being otherwise pretty good about timely software updates. My MVNO started being recognized incorrectly as being part of another network years ago, and apparently their engineers have been unable to reach anyone within Apple about the matter and get theem to apply what should be a trivial fix in their IMSI mapping table.
- username190 5y agoApple has never been good in this department, according to the folks I've talked to within mobile carriers. Even Google, a nearly $2T company, operates an MVNO ("Google Fi") that does not work properly on the iPhone, because Apple has not added Fi's GID to the correct list. Jailbroken users can (in theory) add Fi's GID to T-Mobile's "carrier bundle," and things like Wi-Fi calling, 5G connectivity, etc will work instantly.
- JohnFen 5y ago> Well, arbitrary sandboxed code. But a sandbox that has access to very sensitive data.
- lxgr 5y agoMuch of that data is already available to the provider (the only entity able to install new SIM applications) anyway: Cell location, incoming and outgoing calls, your IMEI... They already know all of that! There are some notable exceptions, like the ability to initiate voice calls possibly without any user interaction, and I'm all in favor of removing those from the specifications. I'm not sure whether modern devices actually implement these. The only remaining concern then is weak authentication key security, i.e. allowing unauthorized third parties to control SIM (and by extension phone) behavior, potentially without the operator's knowledge. This seems like a very similar concern to weak phone network signalling stack security (like being able to intercept SMS via SS7), which is an ongoing problem too.