News for hackers. Stuff that matters.
Re:Massachusetts health notifications app installed without ... by simpss on Saturday June 19, 2021 @04:09AM (#27558758)
I think the real question is what mechanism allows them to push a random app to some phones? google play services is actively listening for remote installation requests?

that's essentially a remote-code-execution backdoor to all android phones?

Re:Massachusetts health notifications app installed without ... by dTal on Saturday June 19, 2021 @05:46AM (#27559188)
>google play services is actively listening for remote installation requests?

Uh, yes? That is and always has been core functionality. You can click "install" on the Google Play website on your laptop and the app will magically appear on your phone, if both devices are signed in to Google. I triggered this behavior accidentally a good 10 years ago when I got my first Android phone, and it gave me the shivers - it really drove home the point that Google had root on my phone, not me.

In fact, this entire behavior is so normalized on phones we now have a special word for the process of downloading an app and installing it manually, the way we do on PCs: "sideloading".

Re:Massachusetts health notifications app installed without ... by IncRnd on Saturday June 19, 2021 @01:10PM (#27562262)
That's not the behaviour of what happened here, where an app was downloaded without user initiation or intervention. There was no authorization from the user of the actions that were taken by Google or the app's vendor.
Re:Massachusetts health notifications app installed without ... by dTal on Saturday June 19, 2021 @03:03PM (#27563365)
From a technical standpoint, it is the same. The phone maintains a connection to a Google server and listens for "authorized" installation requests - where "authorized" means "authorized by Google". When you click "install" on the Play Store on your laptop, you're not talking directly to your phone (how would that even work?) - you're talking to Google, who then speaks to your phone on your behalf.
Re:Massachusetts health notifications app installed without ... by IncRnd on Saturday June 19, 2021 @03:18PM (#27563526)
> From a technical standpoint, it is the same.

Yes, of course, but this isn't a technical issue. Look at the webpage that this hn page references. When people say, "an app was installed on my device without my consent or knowledge," the exact method the device used to listen isn't important.

The first issue is that Google software allows non-authorized software installations. The second issue is that a government forced the installation of the app. The technical specifics are just implementation details.

Re:Massachusetts health notifications app installed without ... by dTal on Saturday June 19, 2021 @03:26PM (#27563602)
This subthread is about the technical issue. The root comment asks "the real question is what mechanism allows them to push a random app to some phones?".
Re:Massachusetts health notifications app installed without ... by IncRnd on Saturday June 19, 2021 @05:30PM (#27564633)
From what you've written, it appears that you are guessing as to the implementation details that correspond to the mechanism for pushing random apps to phone, which is in this case means un-authenticated apps. There may be an entirely different method used than the standard push method from selecting an app on the website.
Re:Massachusetts health notifications app installed without ... by simpss on Saturday June 19, 2021 @03:10PM (#27563440)
it could work with google cloud providing oauth and the phone verifying it's the same account.
Re:Massachusetts health notifications app installed without ... by sohei on Saturday June 19, 2021 @04:34AM (#27558879)
A corollary of your question. If Google can lawfully install arbitrary apps on ordinary users' phones, can it also run arbitrary code on the personal devices of government officials investigating it for price fixing in the ad market?
Re:Massachusetts health notifications app installed without ... by GavinMcG on Saturday June 19, 2021 @05:40AM (#27559162)
"Arbitrary" is doing a lot of sneaky work here. You're implying that the law would somehow allow Google to manipulate investigators. But the law has broad allowances and exceptions in lots of areas, and competing permissions/denials that together weave specific allowances. There's little reason to think that the law couldn't allow app installation in general and also disallow either targeting of individuals or collection/manipulation of certain kinds of data.
Re:Massachusetts health notifications app installed without ... by pydry on Saturday June 19, 2021 @06:55AM (#27559489)
>You're implying that the law would somehow allow Google to manipulate investigators.

Not the law. Google having root access on 2.5 billion android devices.

The law didn't allow Uber to greyball either. It did though.

This is a risk Google fully recognizes - it's why Google prevents f droid from updating apps one by one without user input. That's a privilege reserved exclusively for google play services.

Re:Massachusetts health notifications app installed without ... by sohei on Saturday June 19, 2021 @05:44AM (#27559182)
Another question worth asking is "what is the governing law?" It is almost certainly contract law via Google's ToS. Government phones probably have different ToS, but government employee' personal phones have the same ToS we have.

If Google is asserting non-contractual rights, I'd like to know what they are.

Edit: I edited this comment because it was rude, and that was not my intent.

Re:Massachusetts health notifications app installed without ... by GavinMcG on Saturday June 19, 2021 @05:50AM (#27559204)
[Edit: the comment originally said their question wasn't implying anything] Of course you're implying something. If nothing else, you're implying the one might imply the other, and that the implication is worth attention.

The governing law that would protect people is a lot of things, and ToS is the least of it. The Wiretap Act applies, for example.

Re:Massachusetts health notifications app installed without ... by sohei on Saturday June 19, 2021 @06:03AM (#27559248)
> ToS is the least of it

I'm afraid I disagree. Google running code on your phone implies it believes you have consented to that. That consent was not given in the app store, so it must have come from the ToS.

Consent is an exception to virtually every protection that exists: Wiretap Act, state wiretapping laws, the CFAA, and state computer trespass laws. Remember, consent is the difference between a home invasion and a dinner party.

So it seems that Google would have to cook up a pretty implausible stopping principle to argue that whatever allows them to do this does not also enable the hypothetical I described above.

Re:Massachusetts health notifications app installed without ... by GavinMcG on Saturday June 19, 2021 @06:08AM (#27559267)
If you've got a stock Android device you've obviously consented to Google running some code, and even updating to add new code after you bought it. On the other hand, apps are restricted based on permissions, and Google bypassing that would belie a consent theory.

You're making out like code is code and there aren't already existing lines and stopping principles, which just isn't true on its face.

Re:Massachusetts health notifications app installed without ... by dragonwriter on Saturday June 19, 2021 @06:22AM (#27559336)
> If Google can lawfully install arbitrary apps on ordinary users' phones

Of the partners in this, I think that the source of authority waa almost certainly the other one. It’s not Google, but the State of Massachusetts, whose authority is likely involved.

Re:Massachusetts health notifications app installed without ... by notacoward on Saturday June 19, 2021 @11:26AM (#27561295)
That also means it's going to be hard to sue over this, because the courts where you might do so are part of the same Commonwealth that authorized the action. Even if you could get a case on the docket, they'd just say the magic words "sovereign immunity" and it would disappear.
Re:Massachusetts health notifications app installed without ... by danuker on Saturday June 19, 2021 @06:54AM (#27559487)
> personal devices of government officials investigating it for price fixing

Anything in the name of "improving our services".

Re:Massachusetts health notifications app installed without ... by fragileone on Saturday June 19, 2021 @04:27AM (#27558837)
I thought this was well-known, Android is not private at all until you degoogle. Unlock your bootloader then install a ROM without Google Play Services such as GrapheneOS, CalyxOS or LineageOS.

You can consider installing microG also as an open-source minimal implementation of Google Play Services if some of it's functionality is absolutely necessary for you to keep.

Re:Massachusetts health notifications app installed without ... by okdjnfweonfe on Saturday June 19, 2021 @04:43AM (#27558927)
That doesn't fix the issue

ISPs mandate certain capabilities of the cellular modem + the simcards (remember java cards? that ran java? they still exist as simcards!)

Government RCE is still 100% on the table regardless of whatever software your phone is running

Re:Massachusetts health notifications app installed without ... by sohei on Saturday June 19, 2021 @05:07AM (#27559016)
The factual basis of your assertion is absolutely true, but your attitude is unhelpful and defeatist.

There is a chasm between "a state actor throws an 0day at you" and "Google remotely installs an app on your phone". The latter is done at scale. The former is expensive, risky, and used relatively rarely.

If you're organizing a protest movement, it's totally reasonable to factor government 0days into your threat model. For more boring people, running GrapheneOS is a great way to reduce the attack surface they expose to the advertising and mass surveillance industrial complex.

Re:Massachusetts health notifications app installed without ... by okdjnfweonfe on Saturday June 19, 2021 @05:11AM (#27559032)
its not exactly a 0day if the ISP is communicating (through an intermediary) to a card the ISP gave you, that's just normal, unexpensive

And this is like, literally a state actor installing an app in this case?

Re:Massachusetts health notifications app installed without ... by fragileone on Saturday June 19, 2021 @05:20AM (#27559077)
In this case it requires the presence of Google Play Services. I'm unsure if there's any evidence that they can install apps without it being present.
Re:Massachusetts health notifications app installed without ... by fragileone on Saturday June 19, 2021 @05:10AM (#27559027)
It's hard to get good info on what capabilities it does have. Here's what I've gathered though I'd like to learn more:

Modems are often isolated by being connected via USB, or if on your SoC the modem has DMA then it's isolated via IOMMU groups.

SIM cards have to implement the E911 feature which allows 911 operators to toggle a cell phone into "stay online no matter what" mode.

Some SIM cards have additional apps installed on them, which allows attacks like SIMjacker and WIBattack.

Re:Massachusetts health notifications app installed without ... by exikyut on Saturday June 19, 2021 @02:50PM (#27563224)
Two datapoints:

1) http://ramtin-amin.fr/#nvmepcie, http://ramtin-amin.fr/#nvmedma (the two articles are separate but the first provides incidental context for the second) the iPhone 6 kinda maybe sorta didn't dot the Is and cross the Ts with the MMU side of things. So, USB is awesome in that the failure state is "probably can't RCE".

2) I read a comment on here, which I should be able to re-find, but hn.algolia is not cooperating, suggesting that the system design of a particular AGPS implementation (a few years ago) interposed the GPS in between the CPU and the cellular radio such that the GPS SoC could do HTTP requests to grab its almanac that all of Android, down to the kernel, had no idea about.

IMHO this level of security paranoia is at the end of the day a micro-optimization. For any given device, you're looking at maybe two or three dozen Things Containing ALUs™ (often buried inside subcomponents buried inside other things); one or two concentrations of several billion transistors; and an unknown proportion of manglement, incompetence, cost-cutting, internal compromise (because guarantee there's none), and Agreements™. Honestly: give up, and declare that whatever makes you feel better is enough.

Re:Massachusetts health notifications app installed without ... by remuskaos on Saturday June 19, 2021 @04:47AM (#27558944)
Do any of the privacy oriented custom ROMs protect against that? I can't imagine their maintainers seeing code that just installs any app the ISP wants and be okay with it.
Re:Massachusetts health notifications app installed without ... by okdjnfweonfe on Saturday June 19, 2021 @05:14AM (#27559054)
The problem is, its usually cheaper the more things you can shove into the 1 hardware item, so you have your cellular hardware in the same chip as your CPU and GPU. Not much a ROM can do about this unless the chip itself supports disabling direct memory across the two items, + does it correctly, + doesn't allow it to be reversed from the other side, + you would also need the datasheet to find out how to implement this.

Generally why privacy roms don't support more than 1 or 2 brands total, I guess.

There are also platforms with strict division between the seperate parts of hardware, la pinephone and the librem5

Re:Massachusetts health notifications app installed without ... by sneak on Saturday June 19, 2021 @10:31AM (#27560722)
Smartphones are usable without sim cards.
Re:Massachusetts health notifications app installed without ... by ampdepolymerase on Saturday June 19, 2021 @12:02PM (#27561648)
A core issue is that building Android ROMs is very difficult to do so in a simple and accessible manner. The build systems generally all require enterprise server level of memory and a build can easily take hours. Every device has a unique configuration, imagine if every brand of laptop ran their own variant of Ubuntu. For most "ROMs" that you find on obscure places like XDA, the builds by random people across the globe are a much greater security risk than good first-party updates.
Re:Massachusetts health notifications app installed without ... by 1vuio0pswjnm7 on Saturday June 19, 2021 @04:25AM (#27558828)
No different than, say, "Windows Update".

The entire "updates" culture is essentially RCE backdoor (botnet) functionality for "trusted" tech companies.

Consent, where it is actually explicitly obtained, never rises to the level of "informed". That's because even if a user "consents", she still cannot see what is in each update.

Re:Massachusetts health notifications app installed without ... by formerly_proven on Saturday June 19, 2021 @05:46AM (#27559183)
WU allows hardware manufacturers to silently install literally anything based on hardware ID matching and the only way to prevent that is to disable WU driver updates entirely (via GPC/registry).

In my case the maker of my motherboard installed a persistent “self-repairing” (i.e. difficult to uninstall) from yet another third party. Naturally, I will not buy a product from them (MSI) again.

Another way to put this is: windows update will install malware w/o user approval in the background.

Re:Massachusetts health notifications app installed without ... by the_pwner224 on Saturday June 19, 2021 @03:13PM (#27563466)
You can probably turn that off from the BIOS. It's (unfortunately) pretty common these days, MSI isn't special for doing this.

It's a different mechanism from Windows automatically loading drivers and/or the vendor's malware when you plug in a device.

Re:Massachusetts health notifications app installed without ... by aorth on Saturday June 19, 2021 @05:48AM (#27559195)
I think the difference is that I chose to install Chrome/Firefox etc, so I don't mind the automatic updates.

In this case nobody actually installed this app by choice!

Re:Massachusetts health notifications app installed without ... by smeej on Saturday June 19, 2021 @08:12AM (#27559823)
Related question I'm not wrapping my head around:

How does the thing know you're a Massachusetts resident?

People who have the contact tracing setting disabled are reporting they still got the app, so the obvious answer seems not to apply.

Is it just getting installed on any device that enters MA? New England states are pretty small, and there's a lot of crossover, especially with states like Maine and New Hampshire, which wouldn't take this very well.

Or, if you have a layover at Boston's Logan airport, do you now end up with its contact tracing app?

Re:Massachusetts health notifications app installed without ... by Jailbird on Saturday June 19, 2021 @08:52AM (#27560036)
Not a resident. I just found it installed due to HN. I am in MA at this time.... and have no idea when it was installed. (Of course I uninstalled it immediately)
Re:Massachusetts health notifications app installed without ... by neltnerb on Saturday June 19, 2021 @01:19PM (#27562341)
If they're also hitting phones that were only in the state temporarily it must be using cell tower locations right? I use an always on VPN and it still auto installed (without opting in) but I have my E911 address set here so I'd have guessed that otherwise.
Re:Massachusetts health notifications app installed without ... by ahofmann on Saturday June 19, 2021 @04:14AM (#27558785)
You can install apps from your browser on the PC since years. I think this also works on apple?
Re:Massachusetts health notifications app installed without ... by contriban on Saturday June 19, 2021 @04:17AM (#27558797)
Not exactly. On the Android store you can choose exactly which device to install an application on.

For Apple as far as I know the most you can do is buy the app on desktop and, if the device is configured that way, it will receive the new app. This means it’s limited to new purchases and by the device’s settings.

Re:Massachusetts health notifications app installed without ... by ahofmann on Saturday June 19, 2021 @04:24AM (#27558822)
Ok, but my point was that on Android and iOS it is possible to install apps without touching your phone. This qualifies as remote code execution. You need your credentials for doing this, but google and Apple apparently don't need them.
Re:Massachusetts health notifications app installed without ... by pizza on Saturday June 19, 2021 @05:05AM (#27559010)
Yes, but RCE is typically shorthand for “RCE by someone other than the owner of the device”
Re:Massachusetts health notifications app installed without ... by ahofmann on Saturday June 19, 2021 @05:29AM (#27559116)
When I buy a phone, I'd like to think that I am the owner. I haven't rented it from the vendor or something.
Re:Massachusetts health notifications app installed without ... by bigiain on Saturday June 19, 2021 @08:22AM (#27559859)
That’s exactly what the vendor who owns it wants you to think…
Re:Massachusetts health notifications app installed without ... by E8L3i on Saturday June 19, 2021 @04:15AM (#27558787)
Re:Massachusetts health notifications app installed without ... by simpss on Saturday June 19, 2021 @04:19AM (#27558801)
Thank you, I've even used this functionality some years ago but didn't remember it existed.

I've since de-googled my phone and sacrificed some apps that require google services, but this whole thing shows (to me) that it was the right decision.

Re:Massachusetts health notifications app installed without ... by tdeck on Saturday June 19, 2021 @04:42AM (#27558922)
My guess is that it's the Play Store app itself that does this (con.android.vending). That app is responsible for both updating itself regularly and installing/updating other apps.

One possible way: There is a daily job run in the Play Store called "daily hygiene" that performs various configured tasks based on device state and device targeting. It would not be difficult to add some code to install this app for MA users, then push it with the next Play Store update. I am very unpleasantly surprised that this app was installed from a policy perspective, however.

Re:Massachusetts health notifications app installed without ... by dTal on Saturday June 19, 2021 @06:12AM (#27559282)
They don't have to add any code or push a Play Store update or wait for a daily cronjob. Listening for remote installation requests is a core feature of Google Play Services. It is not a mystery how this was done.
Re:Massachusetts health notifications app installed without ... by hungryforcodes on Monday June 21, 2021 @05:38AM (#27577634)
So you keep "claiming", but where is this documented?
Re:Massachusetts health notifications app installed without ... by thepangolino on Saturday June 19, 2021 @04:43AM (#27558929)
Isn’t there a feature from the app stores allowing for remote installation of apps?