Skip to content

Acquisition

Before an app ever runs, appjail has to get it: find the release you asked for, download it, decide what is known about who made it, unpack it, and record all of that so it can be checked again later. Every one of these steps handles bytes and text from someone else, so each is either a check or happens in a jail. This part follows an app from the name you type to the files on your disk.

The path of an install

What appjail add does, step by step Review the repository, resolve the release and asset, ask, download in a jail with only a network, check size, digest and format, verify the attestation in a jail, extract in a jail without network, validate the tree, then write the pins and the manifest. Each step can stop the install. 1. Review the repository owner, account id and age, stars, fork, archived 2. Resolve release and asset x86-64 AppImage, digest, attestation present? 3. Ask you nothing is downloaded before you agree 4. Download (jail: network only) https, allowed hosts, stops at the size 5. Check the bytes size, SHA-256 against the digest, AppImage type 2 6. Verify the attestation (jail) pinned gh, then the certificate re-read 7. Extract (jail: no network) unsquashfs at the offset; size and time limits 8. Validate the tree no special files, AppRun inside, tree hashed 9. Pin and record image and tree hashes, evidence tier, owner id, manifest written last, history commit dashed: runs in a helper jail solid: appjail itself, which never runs code from the download
appjail add owner/repo. Any failed check deletes what was downloaded and writes nothing.

For an app added from a URL the first two steps are replaced by the URL you give, and from a file by the file you give; the rest is the same, without the attestation.

The pages

  1. The AppImage format: what is inside the file, and why appjail never runs or mounts it.
  2. Sources and the resolver: where an app may come from, and how a release and its file are chosen.
  3. Hashes and evidence tiers: what a hash proves, what a digest adds, and how much is known about who built the bytes.
  4. Build attestations: the strongest evidence, and what it does and does not prove.
  5. Jailed download and extraction: the helper jails that handle the bytes before anything is known about them.
  6. Untrusted text: release names, descriptions and menu entries as an attack in their own right.
  7. The manifest: where the decisions end up, and why it is data only.

Every step can stop the install, and none of them is skipped silently: a check that cannot be made is reported, and the evidence tier records what was actually verified.

The decisions behind this part are in Decisions: acquisition.