News for hackers. Stuff that matters.
Re:NHS open-sources contract tracing iOS and Android apps by londons_explore on Thursday May 07, 2020 @04:57PM (#23108230)
> Each two hours, we merge any changes from master into internal

Not hiding the fact the published source code isn't that built into the app then...

Re:NHS open-sources contract tracing iOS and Android apps by m0xte on Thursday May 07, 2020 @05:04PM (#23108310)
Yes indeed. I'm not buying it isn't patched in some way before it's pushed to any app stores. Especially with all the noise beforehand about how it operates and the involvement of GCHQ/NCSC in development.

Edit: some digging. NHSX is run by Matthew Gould. Former Israel diplomat and tied via UK-Israel technology hub to NICE (Neptune Intelligence Computer Engineering) Ltd which is a former Israeli army surveillance and data security company among other functions.

So basically a hotpot of reasons not to install this thing.

Re:NHS open-sources contract tracing iOS and Android apps by GordonS on Thursday May 07, 2020 @05:45PM (#23108728)
A security researcher in Twitter was looking into it the other day, and found the app isn't obfuscated (they were able to decompile it "cleanly").

I'm not saying that guarantees no skullduggery is afoot, but it goes a long way - at least in it's current form, at that point in time.

Re:NHS open-sources contract tracing iOS and Android apps by m0xte on Thursday May 07, 2020 @05:51PM (#23108778)
That's good to know.
Re:NHS open-sources contract tracing iOS and Android apps by sixstringtheory on Thursday May 07, 2020 @05:17PM (#23108466)
It's the same story as with Signal for iOS. How do we know the version downloaded from the App Store is the same code hosted on GitHub? I'd like to have the option to sideload it. Clearly that would involve some work on their backend, but I think that's fairer than the stuff described in this Signal GitHub issue [0] and Telegram's website [1] regarding the same thing.

EDIT: if I'm wrong please leave some details for myself and others to learn more. I've worked on iOS apps for several years, and as far as I know there's no way to verify if an app downloaded from the App Store was compiled from a particular code revision. Even the same code compiled on separate machines can produce different unique binary IDs. And on the scale of difficulty, I'd say that sideloading is less difficult than jailbreaking, if that method even really works for this problem.

[0]: https://github.com/signalapp/Signal-iOS/issues/641

[1]: https://core.telegram.org/reproducible-builds#reproducible-b...

Re:NHS open-sources contract tracing iOS and Android apps by withzombies on Thursday May 07, 2020 @07:17PM (#23109504)
It's not possible to side-load iOS apps and still get push notifications. Also, Apple doesn't allow you to distribute applications outside of the app store (unless you violate the terms of your enterprise developer account).
Re:NHS open-sources contract tracing iOS and Android apps by saagarjha on Thursday May 07, 2020 @07:37PM (#23109672)
While I'm not an expert on push notifications, shouldn't you be able to receive push notifications if you entitle your application for them and create the right certificate online?
Re:NHS open-sources contract tracing iOS and Android apps by sixstringtheory on Thursday May 07, 2020 @08:41PM (#23110106)
This is my understanding. You would have to register your device in ADP and create an ad-hoc certificate for the app. If people are doing this on their own ADP accounts, then they're just testing their own builds, not receiving an enterprise deployment from some single developer.
Re:NHS open-sources contract tracing iOS and Android apps by httpsterio on Thursday May 07, 2020 @10:16PM (#23110712)
Apple does allow self-hosting enterprise apps, one of the main distribution methods for in-house apps is buying a license from Apple to install your own certification on iOS and MacOS devices which will let you basically remotely install, update and sideload in-house applications.

We personally opted out of it because the user's device's security would ultimately fall into our hands and at worst we have a root kit on the user's device someone might exploit.

Re:NHS open-sources contract tracing iOS and Android apps by kalleboo on Friday May 08, 2020 @05:46AM (#23113003)
FWIW, in iOS 13 Apple has finally made it so you can firewall off user personal device control from MDM control https://www.brianmadden.com/opinion/Apple-iOS-13-user-enroll...
Re:NHS open-sources contract tracing iOS and Android apps by toast0 on Friday May 08, 2020 @02:36PM (#23117965)
If you install from an App store and want to know if it matches the source, you need to pull the installed package from your phone and compare the contents to your own known good binaries.

Ideally, if the builds are fully repeatable, the only differences should be in the signatures, but of course, you need to confirm that the signature doesn't drive unexpected differences in behavior.

I don't have the skills or the tools to do this, but it's not like it's some impossible mystery.

Re:NHS open-sources contract tracing iOS and Android apps by sixstringtheory on Saturday May 09, 2020 @01:21PM (#23126552)
In order to do what you’re suggesting you have to jailbreak a device, which I mentioned in my comment and is discussed in many blog posts such as [0], which links to others.

Without a jailbreak, which isn’t a sure thing and even if available is not nearly as feasible as sideloading, it in fact is an impossible mystery to decrypt an iOS app store build to inspect it.

[0]: https://ivrodriguez.com/reverse-engineer-ios-apps-ios-11-edi...

Re:NHS open-sources contract tracing iOS and Android apps by EGreg on Thursday May 07, 2020 @10:51PM (#23110924)
Well, can’t the vendor upload the binary that was signed by Apple’s private key? So all you’d have to do verify it would be to compile the source code to produce the exact same binary... assuming that the process can be made to be deterministic?
Re:NHS open-sources contract tracing iOS and Android apps by m0xte on Thursday May 07, 2020 @05:23PM (#23108522)
Yes exactly that. I imagine vendor signing causes some issues there as well.
Re:NHS open-sources contract tracing iOS and Android apps by hadtodoit on Thursday May 07, 2020 @10:29PM (#23110791)
I wouldn't trust anything coming from Israel ever. Their government appears to have a mandate for installing backdoors, evidenced by the scrapped Iron Dome project which they wouldn't hand the source code over for.

https://news.ycombinator.com/item?id=22512674

Re:NHS open-sources contract tracing iOS and Android apps by 2rsf on Friday May 08, 2020 @06:43AM (#23113301)
You are doing a huge huge leap here, Iron Dome was not scrapped because of backdoors nor do we know about any (officially). Then one project doesn't mean that Israel are doing the same in other projects, and finally the mentioned company is private and has nothing to do with the government
Re:NHS open-sources contract tracing iOS and Android apps by hadtodoit on Friday May 08, 2020 @07:39PM (#23120720)
I'm not making any leaps, I provided a link that explained it. I have no trust in Israel to begin with due to their uncomfortable control over US politics, this was just further evidence to support that decision.
Re:NHS open-sources contract tracing iOS and Android apps by TechBro8615 on Thursday May 07, 2020 @05:12PM (#23108414)
Well, it should be fairly trivial to put it through the rigor of some MITM proxies and verify that the built app is not making any unexpected network requests. I look forward to infosec twitter ripping this apart.
Re:NHS open-sources contract tracing iOS and Android apps by m0xte on Thursday May 07, 2020 @05:14PM (#23108435)
That would be interesting analytics but you just never know with this stuff. Even basic intercept-avoiding technology like burst encoding require very long term sampling to detect, so the thing would need to be disassembled and every line of code analysed.
Re:NHS open-sources contract tracing iOS and Android apps by dTal on Sunday May 10, 2020 @09:27AM (#23132407)
...is it not possible to build the app from source yourself?

I will install this app happily from F-Droid, and no other place.