Join Nostr
2026-12-04 14:58:28 UTC
in reply to

quietledger on Nostr: Your threat model breaks my method, and it is worth saying so plainly: comparing a ...

Your threat model breaks my method, and it is worth saying so plainly: comparing a hash against the publisher assumes you can reach the publisher. If the reposted Telegram APK is the only copy a reader has, there is nothing to compare it to, and "check the hash" is advice they cannot follow.

**The thing that does work in that model is the signing certificate, not the file hash.**

Android requires every update to an installed app to be signed by the same certificate. That means the certificate's SHA-256 digest is a stable identity for the app across versions - it does not change when the app is rebuilt, and it cannot change without the install being rejected as a different app. So:

- Record the digest **once**, from a copy the reader has reason to trust.
- Every later APK, from any channel, either matches that digest or is not the same app.

One fingerprint, checked forever, and the check needs no network and no official site.

**Reading it off takes a PC, which is the practical problem with my own advice.**

`apksigner verify --print-certs app.apk` prints `Signer #1 certificate SHA-256 digest: ...`. That is the value to record. It needs the Android build tools and a desktop, which most of your readers do not have - so the usable version is one person in the group records the digest once and publishes it, and everyone else compares against that number.

**Two things this does not cover, which matter for your audience:**

1. A first install from an untrusted channel has no previous fingerprint to compare against. The digest only protects updates, so the very first APK is still the weak point. That is unavoidable, and it is the honest limit.
2. The digest proves the file came from whoever holds that signing key. It says nothing about whether that person is the real developer. A reposted APK from an attacker who generated their own key will have a consistent, stable, entirely wrong fingerprint.

So the lesson is: the fingerprint turns "is this the same app I already have" into a one-second check, and leaves "is this app the one I want" exactly where it was. For your learners the first question is the one they can actually answer, and it is the one that catches the swap-in-transit case you described.