7 ms·
SMS Security and Privacy Gaps
- miohtama 3y agoIf you think SMS is antique, let me tell you about email. (Here cross link hundreds of posts how running your own email server is no longer practically possible)
- kmeisthax 3y agoSMS is like e-mail in the 80s: no authentication, no encryption, and everything can be snooped. In contrast, e-mail itself has gotten several upgrades that at least try to mitigate these flaws. It is possible to run your own e-mail server, the problem is how much of your life you want to dedicate to getting a static IP address off the major spam blocklists, troubleshooting myriad delivery issues, and generally keeping the whole thing running.
- cubesnooper 3y agoI’ve run my own email server for five years now. It’s surprisingly approachable when done piecemeal. I broke it into several pieces. 1. Switched from the GMail web interface and app to open source IMAP clients on phone and PC. 2. Switched away from gmail.com to my own domain, using Google as the provider. This was the hardest part, because I had to change my email address everywhere! It also meant setting up DMARC and SPF records for the domain. 3. Set up a VPS running an SMTP server in a MX configuration. At first I had the server relay over a VPN to a second machine in my house, but later I moved to port forwarding over the tunnel, so the VPS provider never sees the contents of my emails (as long as they’re encrypted). Of course, STARTTLS is subject to downgrade attacks, but this can be reduced somewhat with MTA-STS and DANE. And Google still saw my outgoing emails (but I receive way more private emails than I send, personally). 4. I wanted to remove the last vestige of Google, and also to hard-fail if the recipient doesn't support TLS, so I finally set up a sending SMTP server on my LAN, which routes outgoing mail through a VPN tunnel so it looks like it’s coming from the VPS instead of my home IP. The first few furtive emails I sent went straight to Google’s spam box, but the recipients marked them “not spam,” and I stopped having trouble with that. I can also send to Microsoft addresses. It’s reliable enough that I get replies whenever I expect them. Very rarely, it goes to spam, and I have to follow up with the recipient to mark it not spam—but this is very rare, and surprisingly, happens at about the frequency that it happened when I was using Google to send my mail. Really! I took these steps months and sometimes years apart. Long enough to be 100% comfortable to move on to the next step, but I could just as easily have been satisfied and stopped at any point, and it would have been better than total dependence on the cloud. Overall maintenance effort is about inline with the other servers I run (DNS, HTTP, Minecraft). Running your own mail is not for everybody, but “no longer practically possible” is a defeatist, demotivating overstatement.
- giancarlostoro 3y agoWhat email daemons do you run and services you recommend looking into for anyone considering such an endeavor?
- cubesnooper 3y agoI run OpenSMTPD, mostly because of how simple it is to configure but also how its privilege separated design has reduced the impact of bugs when they happen. (See Qualys’s sometimes complimentary comments in their OpenSMTPD vulnerability writeups.) It’s really important to use a distro that you understand well and are comfortable keeping secure and up to date. For me that’s OpenBSD; for you it might be something else. For security reasons, I recommend keeping the server setups simple, minimal, and isolated as much as possible. I have three machines: the sending server, the receiving server, and the VPS. The VPS is the only machine directly accessible from the Internet, so it is locked down as much as possible: it forwards incoming port 25 over a WireGuard tunnel to the receiving server, it forwards traffic from a second WireGuard tunnel (from the sending server) to the Internet, and that’s it. No other services, and all other incoming and outcoming ports are blocked with the firewall. The SPF settings in my DNS list only this VPS’s IP address as a trusted sender, and the MX settings point to the VPS too. The receiving server runs on a Raspberry Pi. Since it’s almost directly accessible from the Internet over port 25, this one’s heavily locked down too. It’s firewalled from making Internet connections except those relevant to mail receipt (incoming port 25, reverse DNS lookup, DMARC lookups, etc.). It delivers to a Maildir. The sending server is an Intel NUC actually running two VMs, only one of which is for sending. The second VM is the viewing VM. It periodically rsyncs new mails from the receiving server to a Maildir. I interface with the Maildir directly by logging in with SSH and using command-line tools like mblaze and notmuch. This machine also runs Dovecot as an IMAP server backed by the Maildir; the IMAP is used by my phone, Thunderbird, and my self-hosted webmail (Roundcube). The other VM, the sending VM, is what I point my mail clients’ outgoing SMTP settings to. It listens for outgoing mails from my LAN (requiring TLS client certificates for authentication), and sends them to the destination server, but with the traffic routed through the VPS so it looks like they came from there rather than a residential connection. What I described is what I ran for a while, but over time I’ve added additional complexity for the sake of higher uptime. That’s not really necessary, since downtime was already rare and SMTP handles outages of a few hours gracefully, but like the progressive steps in my previous comment, after several months I was comfortable with my setup and wanted to push it further. Now there are two VPSes from different providers (mitigating downtime at one datacenter and the risk of being tied to one VPS provider), port forwarding to two MXes on my LAN. I’m planning to get a second ISP at home, so a VPS can have an alternate path to its MX if one ISP is down.
- dwheeler 3y agoThe idea of written communications is even older, let's get rid of that too :-). Email has not stayed put. Most email is encrypted hop-to-hop, for example. It's not ideal for security, sure, but compare it to the alternatives. I can switch between email providers (because I own my domain name), and I can switch registrars. That provides many protections against lock-in.
- ilaksh 3y agoDoes Apple support RMS?
- neilv 3y agoRMS sure doesn't support Apple.
- NotYourLawyer 3y agoGoogle still crying about how Apple won’t support RCS, but no user actually wants RCS. Everybody wants iMessage.
- bilalq 3y agoThis is about interop. I'm not interested in iMessage. I do, however, want to be able to have group chats that don't suck and images that don't compress to death when I message friends with iPhones. Unsurprisingly, my friends with iPhones want the same thing when they message me.
- cubesnooper 3y agoGoogle Voice doesn’t support RCS either, so I roll my eyes when Google talks about interop.
- skipkey 3y agoYep. I have two group family chats, one with everyone and one that leaves off the two people on Android. I’m sure that social groups where the percentages go the other way do the same thing.
- jesuspiece 3y agoSounds like you're describing iMessage
- aendruk 3y agoCan you elaborate on the interoperability of that?
- fh9302 3y agoGoogle refuses to open up the Android RCS API to third party developers. To me this seems like an attempt to lock in users into their own messaging app, unlike SMS which does support third party apps like Textra. https://twitter.com/TextraSMS/status/1568128147044057088 https://twitter.com/TextraSMS/status/1568128147044057088
- issafram 3y agothis is an incredibly minor issue when the big problem is that Apple won't integrate usage into the iPhone messaging.
- simfree 3y agoRCS does not consistently work unlike other OTT messaging platforms. Roaming on another network often breaks RCS, and even when both people are on their native networks, RCS will turn on and off during a conversation seemingly at random. Note that my usage has only occured on Google's Jibe servers using Pixel phones. Samsung Messages and alternative RCS servers might perform differently.
- marticode 3y agoIn my experience, roaming on another network also often breaks SMS.
- TheHappyOddish 3y agoWhy would they? - Google change their approach on messaging every year or two - Google's RCS implementation has them hosting rather than the carrier (against spec) - Google's RCS only just added E2EE for their group messages (or is that still beta? I can't find confirmation on that), and did not contain any E2EE or even confirmation they'd add it at launch - Speaking of which, where was Googles interest in RCS pre-2019? - RCS is phone number linked (as a carrier service probably should be), so how would compatibility with iCloud/Apple users work? It seems like a bad decision for Apple and a regression for users who broadly have solved the issue themselves by using alternatives (WhatsApp, Signal, Facebook Messenger, Telegram, Matrix, etc).
- neilv 3y agoIn 2024, I want to start recommending a secure and open solution for real-time text&photo chats (person-to-person and group) for techies and non-techies alike. Something we can confidently recommend to friends, family, people we just started dating, etc., and they will be happy with it on the their phones, tablets, and desktops. I'm currently leaning towards recommending Matrix and whatever are the most easy-to-use apps at the time. Unless Element is giving off concerning signals, or something better comes along. A serious IETF standard with much the same properties as Matrix would be nice. (I haven't entirely ruled out Signal, as a stopgap measure, but the current proprietary-ness isn't something I want to recommend, and I really don't like that it can only be active on one mobile device at a time.)
- uoaei 3y agoIt was as if millions of techies cried out "network effect" and were suddenly silenced.
- _rs 3y agoThe new Element X clients are a huge leap forward, definitely making me consider using it with more non-techie friends
- hedora 3y agoLack of support for backups and moving accounts between android and iOS are my biggest issues with signal. One device at a time is a close second. (It sort of works on multiple devices though. It works on my phone, watch and ipad.)
- blendergeek 3y agoMatrix is an IETF standard now if I remember correctly.
- celtoid 3y agoI've been using SimpleX [0] with a couple of friends recently. It appears to work as advertised. [0] https://simplex.chat https://simplex.chat
- JimDabell 3y ago
- indymike 3y agoThis is just more Google trying to grab a service from carriers and Apple. The carriers make a lot of money on sms, and because it's table stakes for a phone, SMS remains the least common denominator in text messaging (it's like OG JavaScript, except without the good parts). Meanwhile, there are a plethora of over-the-top messaging apps that have accrued huge user bases addressing all the things RCS tries to and then some.
- lotsofpulp 3y agoI don’t know any mobile networks that charge for SMS. Maybe international SMS, but I cannot imagine that is a huge revenue source with ubiquitous data and free messaging apps.
- indymike 3y agoOver $10 Billion last year. https://www.statista.com/statistics/736007/mobile-messaging-revenue-worldwide-by-carrier-standard/ https://www.statista.com/statistics/736007/mobile-messaging-...
- lotsofpulp 3y agoIt seems like a lot more. I forgot about businesses having to pay for SMS like 2FA codes. https://www.statista.com/statistics/1222773/worldwide-application-to-person-sms-revenues/ https://www.statista.com/statistics/1222773/worldwide-applic... > In 2021, the global application-to-person (A2P) SMS market is anticipated to reach 45.93 billion U.S. dollars in revenue.
- indymike 3y agoI just grabbed the SMS part. There is an RCS part that makes the number come out over $50 B. Even "free text messages" or "unlimited text messages" result in revenue for the carriers. The A2P SMS includes a lot of things beyond just what the carriers make.
- issafram 3y agoI can't understand why any person would actually side with Apple with this issue. At it's core, Apple's refusal to integrate with RCS is an anti-consumer practice. They fear it will drive customers to purchase Android phones but that would most likely be an incredibly small amount of people. People buy iPhones for many reasons. The color of the messages isn't the main one.
- nyolfen 3y ago> The color of the messages isn't the main one. maybe not HN readers, but this is actually a major factor for a huge number of ordinary people in the US, particularly teenagers and young people
- cubesnooper 3y agoHow huge?
- tenebrisalietum 3y agoGreen text bubbles cause one to be identified as uncool and limit your lifetime earing power as a result.
- hedora 3y agoIt’s not just the color of the bubble. On iOS, green is a warning that at least two things are true: 1) The other side is subject to blanket surveillance (which is probably true of RCS, assuming Google implemented the client/backup). 2) The other endpoint cannot handle images or videos correctly. Based on their track record with the last dozen communications platforms Google has built, this is probably also true for Android RCS implementations. For example, the other day, someone attempted to use gmail to send me a locally stored image, and instead it sent a URL back to some server somewhere. This is neither SMTP nor SMS’s fault. Presumably Google’s RCS client will eventually pull crap like that too. Hell, they try to do it with HTML (remember AMP)? Note that, following this convention, Signal messages are correctly colored blue, even when sent to android. (I know that apple does not dictate these colors. Just explaining what “green bubble” means to people that are used to android’s bullshit.)
- 1vuio0pswjnm7 3y agoAs a simple experiment I asked someone, "What is the greatest security and privacy threat to communication today?" The answer was not SMS. It was "Big Tech". There is a belief that these so-called "tech" companies want to collect data and analyse communications for commercial purposes in ways that telecom companies never did unless they were hit with a subpoena (and that's still not commercial use). Unlike telecoms, these companies have not had to operate under significant government regulation (including laws concering customer data), their original business model is surveillance-based advertising and they are unlikely to abandon it. (Telecom companies have obviously morphed somewhat in response to Big Tech's competition, arguably not in a good way. This evolutionary pressure toward surveillance for profit is a more subtle form of the threat posed by "Big Tech".)
- vinay_ys 3y agoToday, every telecom company is also a OTT apps/services company with desires to become like big tech. So, your assertions about telecom companies as some sort of time frozen thing is not valid. Secondly, I would trust Google more than Apple or Meta to keep my data safe from technical hacks or leaking or selling it to third parties. And I understand they are going to use my data to power their ads business where they personalize and target ads to me on their own and 3rdparty properties. Finally, we need to keep the regulatory oversight and pressures to move and keep them in line with increasing privacy and security expectations.
- TheHappyOddish 3y ago> SMS Interception: Attackers can intercept SMS messages by exploiting vulnerabilities in mobile carrier networks. This can allow them to read the contents of SMS messages, including sensitive information such as two-factor authentication codes, passwords, and credit card numbers due to the lack of encryption offered by SMS. True... But only if you can force a device to 2G. From the article: > First it is noted that there are vulnerabilities in the security functions of 2G, which makes practical attacks possi-ble. It is, however, important to point out that the attacks are not restricted to 2G, but applies to all generations of mobile networks that have implemented a fallback solution to 2G. For example, an attacker can relatively easily perform a downgrade attack to change 5G service to 2G service, which makes the user vulnerable to the threat scenarios for 2G. Many countries shut down their 2G networks years ago. I was baffled it took us so long in Australia. No idea what everyone else is doing. But regardless, for many users this is not a concern. > SMS texting is both a large and weak link in the chain largely because texts between iPhones and Androids revert to SMS. > It’s a shame that a problem like texting security remains as prominent as it is, particularly when new protocols like RCS (https://www.gsma.com/futurenetworks/rcs/the-rcs-ecosystem/ https://www.gsma.com/futurenetworks/rcs/the-rcs-ecosystem/) are well-esta blished and would drastically improve security for everyone. Ah ok, it's a thinly veiled attack against Apple from Google, the kings of interoperability ¿
- Nextgrid 3y agoA much more practical attack is to social-engineer/bribe the idiots who handle customer "support" into swapping the SIM to an attacker-controlled one. Significantly easier and cheaper than mobile protocol/infrastructure -level attacks.
- M95D 3y agoI wish someone would create an encrypted-messaging-over-SMS protocol. Something simple: send a public key with the first (unencrypted) SMS and the receiving person's messaging app can use that key to reply with an encrypted SMS, first reply also containing his/her public key. No forward secrecy, but a lot better than nothing.