News for hackers. Stuff that matters.
Re:Ask HN: Why are SIM cards still a thing? by JoachimSchipper on Sunday October 30, 2016 @06:18AM (#12829001)
The SIM card is a smart card, i.e. a secure piece of hardware, that protects the telephone network from the subscriber - most importantly, it ensures that the network has someone to bill.

In most western countries, SIMs do little else; however, they are full application platforms, allowing stuff like Kenya's mobile payment network https://en.wikipedia.org/wiki/M-Pesa.

For what it's worth, you really don't want to have every network provider negotiate with Samsung for the particular access policy of that network. "Not compatible with your telephone" indeed!

Re:Ask HN: Why are SIM cards still a thing? by userbinator on Sunday October 30, 2016 @10:43AM (#12830054)
The SIM card is a smart card

If you have a credit/debit card with a chip, look at the arrangement of the contacts and compare to a SIM card. It's essentially the same standard (ISO 7816) at the lower layers, but with different application-layer protocols on top.

Also, as a matter of being the only device in posession of the subscriber but arguably owned by the telco, I'd definitely prefer it to be a removable piece which communicates over a standard interface. The alternative of embedding it into the handset is far worse from the perspective of lock-in and perhaps security.

Re:Ask HN: Why are SIM cards still a thing? by gcb0 on Sunday October 30, 2016 @03:14PM (#12831650)
/me puts on tinfoil hat

the sim card has one important difference. It lives in a device that provides it with 24/7 battery and radio access.

That is really worrisome when you think about. A tiny computer running applications you have no idea/access. powered 24/7. Always with you. With access to battery, network, mic, etc. And the other side of the network that could monitor it's traffic for malicious actions is owned by the very people that could abuse it in the first place.

Re:Ask HN: Why are SIM cards still a thing? by umurkontaci on Sunday October 30, 2016 @04:12PM (#12831974)
It's no different than having no SIM, if your phone wants to spy on you, it doesn't need a SIM card. It's the phone that transceives the signals, and it can do so without a SIM card. SIM card authenticates you to the network, but you control the device and the network around the device, there's no need for a SIM card.
Re:Ask HN: Why are SIM cards still a thing? by colechristensen on Sunday October 30, 2016 @07:17PM (#12833105)
If there was an open standards-compliant protocol it could be implemented open-source and trusted. You could create an entire open operating system and use open hardware to know everything happening on your phone. That is different than having a SIM, which is a piece of mystery hardware the phone company could do anything with.
Re:Ask HN: Why are SIM cards still a thing? by Laforet on Sunday October 30, 2016 @07:54PM (#12833282)
They already have control of all your traffic so what's the harm? Take the sim out of your phone in case you are really worried, but that would cut you off the network as well.

I'd be far more concerned with the hundreds of microcontrollers running proprietary code.

Re:Ask HN: Why are SIM cards still a thing? by colechristensen on Sunday October 30, 2016 @08:20PM (#12833402)
The SIM, being a physical piece of hardware plugged into my phone, could easily be used as an attack vector for my phone company to root my phone. Hardware plugged into my phone is a much more vulnerable attack surface than control of network traffic.
Re:Ask HN: Why are SIM cards still a thing? by EvanAnderson on Sunday October 30, 2016 @08:53PM (#12833523)
The baseband is already at the beck-and-call of your telco provider and has much better access to the hardware than the SIM card.
Re:Ask HN: Why are SIM cards still a thing? by infinity0 on Sunday October 30, 2016 @08:59PM (#12833546)
The point is your phone (if it were secure enough) could treat your SIM card like any other untrusted device accessory, and only let it do stuff it's allowed to do.

[network] <-> [phone] <-> [SIM card]

In theory. Not sure how well practise matches this though.

Re:Ask HN: Why are SIM cards still a thing? by gcb0 on Monday October 31, 2016 @12:48AM (#12834370)
the selling point of the sim is that it it "trusted computing". meaning the user is left out by design.
Re:Ask HN: Why are SIM cards still a thing? by amelius on Sunday October 30, 2016 @06:57PM (#12833015)
Yes, but now your Telco can also do those things.
Re:Ask HN: Why are SIM cards still a thing? by gcb0 on Monday October 31, 2016 @12:46AM (#12834367)
so? the point is that the sim IS there already. yeah you can have more vulnerabilities, but that one is a given.
Re:Ask HN: Why are SIM cards still a thing? by derefr on Sunday October 30, 2016 @03:41PM (#12831791)
> powered 24/7

Is it? When you turn on "airplane mode" on a phone, is there a reason for the SIM to still be receiving power at that point?

Re:Ask HN: Why are SIM cards still a thing? by zamalek on Sunday October 30, 2016 @03:47PM (#12831833)
> Is it?

Easy to test: add a SIM pin, turn on airplane mode and reboot your phone.

Re:Ask HN: Why are SIM cards still a thing? by gcb0 on Monday October 31, 2016 @12:50AM (#12834376)
yes.

the sim has direct access to the radio and other modules, by design. it only needs the actual phone cpu/os for use interface.

if it wants to take the radio out of silent mode it can.

Re:Ask HN: Why are SIM cards still a thing? by derefr on Monday October 31, 2016 @01:46AM (#12834539)
That seems like it wouldn't comply with FAA regulations.

I always presumed "airplane mode" was the specific set of features required by the FAA to enable the phone to do the same thing as a phone that's off, from the perspective of potential interference with a plane's communications.

If the SIM can still enable and use the radio despite "airplane mode" being on, then "airplane mode" is not really "a mode for making your phone safe to stay on while on an airplane."

Re:Ask HN: Why are SIM cards still a thing? by nucleardog on Monday October 31, 2016 @07:34PM (#12841946)
It's actually an FCC regulation that prevents people using cellular devices on airplanes, and the issue isn't "interference with avionics" but "violating some fundamental assumptions that the existing cellular network is based on" like devices not travelling 600mph or having the ability to transmit signals for dozens of miles.
Re:Ask HN: Why are SIM cards still a thing? by milcron on Monday October 31, 2016 @04:33PM (#12840688)
You can actually enable wifi yourself even while airplane mode is enabled - try it!
Re:Ask HN: Why are SIM cards still a thing? by gcb0 on Monday October 31, 2016 @11:42AM (#12837778)
yes and that is not new.

try this: enable airplane mode and then open any app that has system permission to change gps or Bluetooth or wifi settings. it will enable those radio and the ui will still show the little airplane there.

Re:Ask HN: Why are SIM cards still a thing? by milcron on Monday October 31, 2016 @04:32PM (#12840682)
For tinfoil wearers, the sim card is not as much of an issue as the baseband modem itself.
Re:Ask HN: Why are SIM cards still a thing? by jjawssd on Sunday October 30, 2016 @04:24PM (#12832030)
Phones can be directly accessed over a network via IMEI
Re:Ask HN: Why are SIM cards still a thing? by jwatte on Sunday October 30, 2016 @03:25PM (#12831711)
That's what Sprint did, and why you couldn't use Sprint LTE equipment (that would otherwise be compatible) abroad. They basically hardwired the SIM to an existing design...
Re:Ask HN: Why are SIM cards still a thing? by amelius on Sunday October 30, 2016 @07:01PM (#12833039)
Yes but if we have credit cards which can be charged simply by copying a few numbers that can be read visually off the card, then why do we need SIMs really?

In other words, SIMs seem disproportionally secure w.r.t. credit cards.

Re:Ask HN: Why are SIM cards still a thing? by Strom on Sunday October 30, 2016 @07:12AM (#12829173)
In Estonia, you can use your SIM to create a government recognizeed digital signature. [1] Thus, you not only identify yourself to the mobile operator, but you can also identify yourself to banks, government services, and more.

[1] https://e-estonia.com/component/mobile-id/

Re:Ask HN: Why are SIM cards still a thing? by anlif on Sunday October 30, 2016 @07:23AM (#12829202)
The same idea is used in Norway. Most banks and public services (e.g. tax returns) use this system for online two-factor authentication.

[1] https://www.bankid.no/en/

Re:Ask HN: Why are SIM cards still a thing? by shshhdhs on Sunday October 30, 2016 @11:54AM (#12830447)
Didn't NIST just say two factor via mobile is a "bad idea"? Have Norway or Estonia responded?

EDIT: Thank you whoever downvoted an honest question that added to the discussion

Re:Ask HN: Why are SIM cards still a thing? by brainfire on Sunday October 30, 2016 @12:00PM (#12830479)
The bad idea is being sent a (potentially interceptable) SMS with a code.

The Estonian method is described as using a private key present on the SIM card, just like a normal smart card used for authenticating/signing.

Re:Ask HN: Why are SIM cards still a thing? by candiodari on Wednesday November 02, 2016 @06:13AM (#12853373)
That's how every bank I know in Australia, at least 2 US banks and 4 European banks do it. Transfer (sometimes login too) ? Code over SMS.

Besides, pretty much all banks simply use 2 or 3 factor authentication as an anticompetitive tactic (half the businesses in most countries pay the banks 2-300$ per month just for scheduled download of transactions)

Re:Ask HN: Why are SIM cards still a thing? by captn3m0 on Sunday October 30, 2016 @11:58AM (#12830474)
I think that was for SMS, not specifically mobile.
Re:Ask HN: Why are SIM cards still a thing? by rimantas on Sunday October 30, 2016 @06:37PM (#12832883)
Same in Lithuania. Have been using mobile signatyre as it is called for yeats, very convenient.
Re:Ask HN: Why are SIM cards still a thing? by RyJones on Sunday October 30, 2016 @03:50PM (#12831849)
Here is a great video[0] with an exploration of using SIMs for a (very) micro telco, including a discussion of the APIs available

[0] https://www.youtube.com/watch?v=_-nxemBCcmU

Re:Ask HN: Why are SIM cards still a thing? by mherrmann on Sunday October 30, 2016 @07:05AM (#12829147)
Doesn't every login form on the web also protect the respective operator from the subscriber? Why can't a "software SIM" simply be a username and a password?

My explanation is that it's difficult to change something that literally the entire world uses.

Re:Ask HN: Why are SIM cards still a thing? by user5994461 on Sunday October 30, 2016 @07:22AM (#12829192)
Because username and password is a disaster for security. It's sole purpose is let ANY guy ANY where on the planet connect to your account.

SIM cards are cryptographic hardware tokens. They are much more secure than passwords.

In fact, they do need a password as well on top of the hardware token, that's the 'PIN code' you have to enter when you (re)boot your phone.

Re:Ask HN: Why are SIM cards still a thing? by nly on Sunday October 30, 2016 @10:01AM (#12829818)
In practice SIM cards don't give you much physical security anyway.

I transferred my mobile phone number etc over to a new SIM card the other week and all I needed was name, address, DOB and proof of ID... of course my network didnt have any of these on file yet, so I had to first tell them these details, and then show ID to verify that I was who I had just told them that I should be. Yeah... this is the state of consumer mobile security.

None of this required physical access to the phone, I just had to login to their website, with a username and password, and change my details.

On most networks you can steal someones mobile number with just a few minutes of physical access and a bit of planning.

Re:Ask HN: Why are SIM cards still a thing? by URSpider94 on Sunday October 30, 2016 @02:19PM (#12831320)
But that's the choice of the network operator. The SIM itself is still completely unique and identifiable, they just chose to allow customers to re-map SIM's on the fly.
Re:Ask HN: Why are SIM cards still a thing? by gcb0 on Sunday October 30, 2016 @03:17PM (#12831665)
and this is the norm all over the world. And SIMs cannot exist without the network operator. So in the end, this is the worst vulnerability of SIM cards.
Re:Ask HN: Why are SIM cards still a thing? by makomk on Sunday October 30, 2016 @07:28PM (#12833154)
SIM cards come from an era where mobile phone contracts were much less common and more expensive, and therefore cloning phones cost the providers a lot of money. I assume the security requirements for reissuing SIMs were also higher back then.
Re:Ask HN: Why are SIM cards still a thing? by mherrmann on Sunday October 30, 2016 @07:35AM (#12829237)
Most of the internet runs on usernames/passwords. I understand that a hardware token (with a PIN) is more secure. But is it worth the added complexity?
Re:Ask HN: Why are SIM cards still a thing? by pjc50 on Sunday October 30, 2016 @07:47AM (#12829273)
The SIM protects the carrier against "account sharing". It allows them to be sure that a subscriber is only using one phone at once - although it's portable between phones.

It means that carriers don't have to maintain "sessions" centrally. The SIM can authenticate you to the base station without the base station having to check back to see if you're logged in elsewhere - vital in reducing the latency of cell changes.

(It also stores various bits of technical information for SMS/MMS routing, and was intended to be a platform for "value added" applications.

Re:Ask HN: Why are SIM cards still a thing? by jacquesm on Sunday October 30, 2016 @07:59AM (#12829312)
Account sharing in a telco context is a bad thing all around. Which phone would you like to ring? How do you ensure the charges really are made by (and to) the right person? How will you protect against messages with important information landing with the wrong party?

Authentication in a telco context is a good thing, the fact that the web doesn't have it enabled a large number of applications to flourish, it also made some other things devilishly hard, or even almost impossible.

Re:Ask HN: Why are SIM cards still a thing? by bogomipz on Sunday October 30, 2016 @10:42AM (#12830049)
Carriers do maintain sessions centrally though. These are the HLR and VLR - home location register and visitor location register. This is how "hand offs" between towers work. Handsets don't authenticate to the base station, the base station proxies those back to the MSC, mobile switching center and are looked up in the EIR - Equipment Identity Register.
Re:Ask HN: Why are SIM cards still a thing? by eropple on Sunday October 30, 2016 @08:01PM (#12833318)
Do you happen to know of a good breakdown of how mobile networks work? I'd love to know more, but it's hard to get a handle on it to get started.
Re:Ask HN: Why are SIM cards still a thing? by bogomipz on Sunday October 30, 2016 @09:58PM (#12833785)
Sure:

Its helpful to understand the history of mobile/wireless I think since the Telecom industry takes acronyms to an insane level. The terminology changes slightly depending on which generation of mobile is being discussed. This is a good breakdown of the evolution of mobile networks. I think its a good starting point:

http://www1.i2r.a-star.edu.sg/~wongtc/EE5406-Network-Archite...

This is a good resource for understanding more recent and relevant mobile architecture. This has a lot more detail:

http://www.slideshare.net/abhishekshringi/gsm-architecture-1...

If you really want to learn mobile and wireless networking, this is unbeatable and very thorough, I highly recommend it, grab a used copy.

https://www.amazon.com/Wireless-Communications-Andreas-F-Mol...

If you just want the 10K view see:

http://www.telecomspace.com/gsm.html

Re:Ask HN: Why are SIM cards still a thing? by eropple on Tuesday November 01, 2016 @12:26PM (#12847330)
Guess I've got some reading ahead of me. Thanks!
Re:Ask HN: Why are SIM cards still a thing? by baybal2 on Sunday October 30, 2016 @09:31AM (#12829677)
>It allows them to be sure that a subscriber is only using one phone at once

Only on home network, everybody who knows your IMSI and have low level access to phone network can clone your identity in roaming.

Re:Ask HN: Why are SIM cards still a thing? by user5994461 on Sunday October 30, 2016 @08:01AM (#12829318)
There is no added complexity. Just buy a SIM card and put it in your phone. It is very simple and straightforward.

The alternatives are worse in usability AND security.

Re:Ask HN: Why are SIM cards still a thing? by jacquesm on Sunday October 30, 2016 @07:43AM (#12829260)
> But is it worth the added complexity?

If you don't want your account to be hacked: yes.

Re:Ask HN: Why are SIM cards still a thing? by Sanddancer on Sunday October 30, 2016 @03:58PM (#12831892)
I'd very much argue that a hardware token is more secure, and less complex, especially with multiple devices. It's a lot easier to remember where you put your smart card than to need to get a password store somewhere shareable, to secure that, to remember to put passwords in the store, etc.
Re:Ask HN: Why are SIM cards still a thing? by kalleboo on Sunday October 30, 2016 @07:07AM (#12829156)
We're moving away from usernames and passwords though, into 2-factor systems such as... smart cards (Chip and PIN). Regressing phones back into usernames and passwords is a clear step backwards in security.
Re:Ask HN: Why are SIM cards still a thing? by esquivalience on Sunday October 30, 2016 @08:47AM (#12829483)
Yes, and remember too that SIMs are standardised technology from the mid-1990s, originating in GSM. It's not a trivial matter to change security in globally standardised technology.

(and Even if you did, it would need to be backward-compatible and still support SIM cards)

There is a good deal more to telecoms tech than just the tech side - the standardisation process brings a whole bunch of competitor companies into a room to develop a solution, incrementally over a number of years.

This applies from physical aspects all the way up to higher level concerns like security. It's a fascinating development process.

Re:Ask HN: Why are SIM cards still a thing? by jacquesm on Sunday October 30, 2016 @07:08AM (#12829161)
Who would you want to hold your 'software SIM' username and password? What's to stop someone else from logging in to your account once they have your credentials?
Re:Ask HN: Why are SIM cards still a thing? by mherrmann on Sunday October 30, 2016 @07:36AM (#12829241)
I have hundreds of usernames and passwords for various web sites and don't see a problem in having one more(?)
Re:Ask HN: Why are SIM cards still a thing? by jacquesm on Sunday October 30, 2016 @07:42AM (#12829257)
Interesting. I try to keep the number of usernames and passwords I have to an absolute minimum because I don't trust any of those to keep that secret, nor do I trust my computer to not spill the secrets somehow through a browser bug or other drive by exploit.

At the same time I totally trust my sim, it's never been more than 10 meters away from me in the last decade or two, hasn't failed me even once and it would be very hard to get it to cough up its secrets without my cooperation (so rubber hose cryptography would still work).

Contrary to www security the phone system seems - from my perspective - at least to have done a half decent job at integrating 2FA when your average website - 20 years later - is still making up its mind about whether or not that might be a useful thing to add.

Re:Ask HN: Why are SIM cards still a thing? by Strom on Sunday October 30, 2016 @07:48AM (#12829278)
If you use actual strong passwords then you are an outlier. Most people use basic words like "password" as shown by every password dump in history. Indeed, most people would use the very same weak password they use for their e-mail for their mobile, and this would reduce protection against spoofing versus continuing to use the SIM system.

What we need is a SIM-type system on the web as well, not to bring the broken web password system elsewhere.

Re:Ask HN: Why are SIM cards still a thing? by Sanddancer on Sunday October 30, 2016 @04:02PM (#12831914)
Client TLS certificates have been a thing since forever, but browser makers keep it a pain in the ass, and too many "modern" software stacks don't even consider leveraging the decades of infrastructure that would make their job easier. Add to the fact that identity aggregators want to be producers, but rarely allow themselves to be consumers and we get stuck in the hell that is identity online.
Re:Ask HN: Why are SIM cards still a thing? by another on Sunday October 30, 2016 @11:48AM (#12830410)
Furthermore, any security system that effectively relies on the user possessing more than one computing device (e.g., using your laptop for access to a password manager or email address) fails for the significant and increasing swath of humanity for which their phone is their [first and] only such device.
Re:Ask HN: Why are SIM cards still a thing? by RandyRanderson on Sunday October 30, 2016 @12:14PM (#12830554)
Even small carriers have software customizations done to phone firmware deployed on their network. This is common.

I believe he's contrasting this between a built-in solution. So say Samsung would put a hardwired UICC (SIM) in the phone and ATT say would make Samsung give ATT an "area" (Security Domain" in UICC parlance) to provision. For all intents and purposes it would work the same. If you wantd to switch carriers I'm guessing there would be a 'virtual' switch SIM app or some such.

If you're bored, you can read about it here:

https://www.globalplatform.org

Re:Ask HN: Why are SIM cards still a thing? by uola on Sunday October 30, 2016 @06:48AM (#12829096)
Yeah, while I can appreciate the question (curiosity is a good things) I don't think anyone with experience of software should be surprised. When you consider things like passwords, credit cards, wifi login and e-mail addresses the question is really why aren't more things like sim cards. (which is kind of what Apple is trying to do these days?)
Re:Ask HN: Why are SIM cards still a thing? by bonzini on Sunday October 30, 2016 @07:02AM (#12829136)
The Yubikey Neo and similar gadgets are pretty much the same thing as USB smart cards. The software could be improved but in the end it is a pretty convenient way to achieve two factor authentication.
Re:Ask HN: Why are SIM cards still a thing? by glennos on Sunday October 30, 2016 @08:07AM (#12829340)
I hadn't thought about the security of being a physical token. Feels like you could do 2FA using someone's email (or similar) to protect against some scenarios, but take the point that someone having to steal something physical changes the attack surface.
Re:Ask HN: Why are SIM cards still a thing? by agumonkey on Sunday October 30, 2016 @03:54PM (#12831874)
I recently read the Wikipedia pages for health cards, and was surprised that these are demi-computers (by that I mean, no IO, no power). Standard chips are 4MHz >8bits these days (with added crypto etc). A Gameboy Air.
Re:Ask HN: Why are SIM cards still a thing? by arsmoriendi on Sunday October 30, 2016 @06:47PM (#12832949)
I'd love to study a piece of software like M-Pesa.