What can go wrong

An unreleased build is more sensitive than most teams treat it. It may contain unannounced features, internal endpoints, test credentials or analytics identifiers, and it can be reverse engineered by anyone who obtains the file. Public links in forum posts, forwarded chat messages and shared drives are the usual ways builds escape.

The strongest control is requiring sign-in for the download. When that is impractical, for example for a client demo on a personal phone, use a private link that is long, random and unguessable, and limit who receives it. Short sequential identifiers are guessable and should never protect anything sensitive.

Expire and revoke

  • Give links an expiry that matches the testing window rather than leaving them live forever.
  • Revoke the link when a tester leaves the project.
  • Rotate the link when you suspect it was forwarded.
  • Replace old builds with a clear "superseded" state.

Scrub the build itself

  • Remove production credentials and point internal builds at staging.
  • Disable verbose logging that prints tokens or personal data.
  • Use obfuscation or shrinking where your platform supports it, for example R8 on Android.
  • Do not bundle third-party secrets that cannot be rotated.

Keep a record

A download log shows which version was fetched, when, and from which network. That helps in two situations: confirming a tester got the fixed build, and investigating a leak. If a build appears somewhere it should not, the log narrows the list of people who had access.

Protect testers' devices too

Ask testers to install builds only from links you sent directly, never from a link someone forwarded. On Android, remind them that the permission to install from a browser should be switched off again afterwards. On iOS, remove profiles and builds from phones when testing ends.

A simple policy to adopt

  1. Internal builds use a distinct application ID and signing key.
  2. Links require sign-in or are private and expiring.
  3. Downloads are logged and reviewed at the end of each cycle.
  4. Builds never contain production secrets.
  5. Access is removed when people leave the project.

None of this is exotic. It is a short list of habits that turns build sharing from an ad hoc act into a controlled process.

Threat model in plain language

Think about three kinds of person. The accidental recipient receives a forwarded link and installs the app out of curiosity. The competitor wants to see unannounced features. The attacker wants endpoints, tokens or logic to abuse. Most controls address the first two; scrubbing secrets addresses the third.

You cannot make a distributed APK or IPA impossible to inspect. You can make it uninteresting by keeping real secrets out of it, and you can make leaks traceable by keeping access lists and download logs.

Handling client and contractor access

  • Create named accounts for each external person rather than sharing one login.
  • Set a calendar reminder to remove access when the engagement ends.
  • Share builds for a specific milestone, not the whole project history.
  • Put confidentiality expectations in the contract, not only in the chat message that carries the link.

What to do after a suspected leak

  1. Revoke or rotate the link immediately.
  2. Check the download log to see who accessed the build and from where.
  3. Rotate any credentials or keys that were present in the build.
  4. Ship a new build with a new application ID if the old one must stop working.
  5. Write down what happened and which control would have prevented it.

Set an access lifetime and an owner

Every shared build should have an owner and an end date. The owner decides who needs access, answers installation questions, and closes the distribution when testing ends. Short-lived links reduce accidental exposure, but expiration must be communicated before it surprises a tester. Put the date, version, build number, supported platform, and contact in the same message as the link.

Do not treat an obscure URL as authentication. If the build contains confidential work, require a named account or a one-time invitation and keep authorization on the server. A recipient can copy both an installer and its link, so server APIs must still verify identity and environment permissions after installation.

Separate artifacts by environment

  • Use a visible in-app label and a distinct icon treatment for development or staging builds.
  • Give non-production builds a separate package or bundle identifier when parallel installation is useful.
  • Point internal builds at synthetic or deliberately limited data rather than a production customer database.
  • Use separate analytics and crash-reporting environments so tester behaviour does not pollute production metrics.
  • Disable payment, messaging, or destructive integrations unless they are the feature under test.

Environment separation limits the damage from a leaked build and reduces tester mistakes. It also makes screenshots and bug reports easier to interpret because the release channel is visible rather than inferred from a filename.

Choose evidence that helps during an incident

Keep the source commit, CI run, signer fingerprint, artifact checksum, uploader, recipients, and download timestamps with the release record. These details answer whether two people received the same binary and whether a suspicious file came from your pipeline. Avoid collecting precise location or unrelated device data simply because the distribution tool supports it.

Test the response process once with a harmless internal build: revoke the link, remove a tester, rotate a staging credential, and confirm the backend can reject that build if necessary. A control that has never been exercised is an assumption, not a recovery plan.

Review the retained evidence on a schedule and delete it when the security, support, or contractual need ends. Keeping every tester record forever creates a privacy liability without improving release security. State the retention period in the team runbook and apply the same rule to exported reports and support attachments.

Official references