But what are we "supposed" to do with the signing key to validate that?
<https://i.postimg.cc/9Mkyf8k4/signingkey.jpg>
Presumably we find an Android tool that can check signatures?
There's more in the Muntashirakon report, but that's the gist of it.
I just downloaded the latest version of NewPipe and the download page provides the hash (which I understand how to use) plus a signing key.
<https://newpipe.net/#download>
The hash is there to verify that the file hasn't been changed, and the signing key is there to also verify that it came from the developers.
So it seems that the signing key is there so we can tell if the file has
been modified and also that it was signed by the actual real developers.
<https://archive.newpipe.net/fdroid/repo/NewPipe_v0.27.6.apk>
So it seems that the signing key is there so we can tell if the file has
been modified and also that it was signed by the actual real developers.
<https://archive.newpipe.net/fdroid/repo/NewPipe_v0.27.6.apk>
No, the idea is to verify the integrity by *Google* when uploading applications to Google Play.
In the past this was only done using a private key stored in a local key store. However this has changed over time.
Also see:
<https://support.google.com/googleplay/android-developer/answer/9842756?hl=en>
<https://ashuvssut.hashnode.dev/android-app-signing>
So it seems that the signing key is there so *we* can tell if the file has >> been modified and also that it was signed by the actual real developers.
(emphasis mine) No.
Apparently, instead, NewPipe uses a single signing key to sign its APKs.
As far as I can tell, this key serves both the purpose of verifying the
app's authenticity and ensuring that updates come from the same source.
Oh, I think I know what Rudy was trying to say, which is the "we" should
be changed to "Android", in that this signature key is for Android, not
us.
Digging deeper, I found out that Android's security model inherently
requires APKs to be signed regardless of the distribution channel.
Apparently, even if an app isn't on Google Play, it still needs to be
signed for an Android device to install it. Does that seem right to you?
Apparently, even if an app isn't on Google Play, it still needs to be
signed for an Android device to install it. Does that seem right to you?
Yes - because Android can then verify, if an update to an existing app
is still by the same publisher and thus can avoid legit apps getting
replaced by other apps just using the same package name.
Thanks for explaining this process, and thanks to Rudy for clarifying too.
I didn't know a thing about signatures until I saw it in the NewPipe page.
Yes - because Android can then verify, if an update to an existing app
is still by the same publisher and thus can avoid legit apps getting
replaced by other apps just using the same package name.
My issue now, is that I use a *lot* of package managers when I install
apps, where I wonder if they all work the same. I certainly hope so. :)
Yes - because Android can then verify, if an update to an existing
app is still by the same publisher
Android package manager you use will somehow recognize that the new APK
has the exact same package name as an already installed (older) app.
It only cares about the signatures.
Arno ,
Yes - because Android can then verify, if an update to an existing
app is still by the same publisher
Thats starting one step to late. The first step is that, *at the moment
of installing*, the app is verified to be the one mentioned in the signing key.
At the very first install at all, there is no chain of trust back to the original developer
for example when using F-Droid. Then only F-Droid is signing the app.
So it seems that the signing key is there so *we* can tell if the file has been modified and also that it was signed by the actual real developers.
Arno,
At the very first install at all, there is no chain of trust back to the
original developer
I think there is.
for example when using F-Droid. Then only F-Droid is signing the app.
And they will do that for any random app ? Hey F-Droid, I got a few info- and other stealers here, and as you guys don't bother to check if I'm on the up-and-up I can use you guys to spread my malwarez !
No, if F-Droid is only using their own name on the apps than they will try
to make *damn* sure that they are not used to spread malware. And we trust them to be good at it. And yes, even in that case I do believe that
F-Droid knows, at least by name, the developers of the apps they offer for download - so that they, just like Google, can cut off any app-maker who is engaging in "funny stuff".
At least one has to suggest an application to be added to the repository
of F-Droid first
and at this point, the app won't get accepted, if it contains suspicious code.
this won't work unnoticed
You won't find any of my signatures in the package provided by F-Droid.
...At the very first install at all, there is no chain of trust back to the >>> original developer
I think there is.
Exactly - but still there is no certificate chain in F-Droid packages
which lead to the original developer.
Arno,
At least one has to suggest an application to be added to the repository
of F-Droid first
Yeah, duh.
and at this point, the app won't get accepted, if it contains suspicious
code.
IOW, F-Droid tries to, as I mentioned before, make sure that the app is on the up-and-up.
this won't work unnoticed
Really ? There have been cases where the author didn't even know that one of the resources he used was poisonned.
You won't find any of my signatures in the package provided by F-Droid.
No, but it *does* contain information identifying who made/signed it.
https://source.android.com/docs/security/features/apksigning
"App signing allows developers to identify the author of the app"
Not really. The signatures can not be verified since there is no CA for
it.
Arno,
Not really. The signatures can not be verified since there is no CA for
it.
*Again*, that is where F-Droid comes in needing to check who created that self-signed cert, effectivily making F-Droid the CA - even though they do not(?) give out certs.
But F-Droid has no proof who the person is,
where they get the sources from.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 714 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 141:55:57 |
| Calls: | 12,088 |
| Calls today: | 1 |
| Files: | 14,998 |
| Messages: | 6,517,448 |