Security
Who you trust when you pipe a script into a shell, and what the script does to keep that trust small.
Piping a script from the internet into a shell is only as safe as the parties behind it. With instl.sh there are two: the maintainers of the repository you install, whose binary you run in the end, and instl.sh, which serves the script. The script is built so that the second one asks for as little trust as possible.
What you can check
- The script is readable and the same for everyone. Open the URL in a browser or pipe it into
less. The server fills in only the owner, the repository and the URL options. It never adapts the script to the client. The templates are open source in installer/installer. - A cut-off download runs nothing. All code sits in functions, and the only top-level command,
main, is on the last line. A connection that drops halfway never reaches that line. - Every download is verified. The SHA-256 of the release file has to match GitHub’s digest for that file, or the release’s checksum file. A mismatch stops the install. Set
INSTL_REQUIRE_CHECKSUM=1to refuse releases that publish no checksum at all. - Only HTTPS. curl runs with
--proto '=https' --tlsv1.2. Release files must come fromgithub.com. - No elevated rights. The script never calls
sudoand installs into your own directories. On Windows it writes only to%LOCALAPPDATA%and the user PATH. - No telemetry. The script contacts
api.github.comand the GitHub download host, nothing else.
What verification does not cover
A checksum proves that you received the file the maintainers uploaded. It does not prove that the file is harmless. If a maintainer’s account is compromised and a malicious release gets published, its checksum matches. Pin a version you have reviewed when that matters:
curl -fsSL "https://instl.sh/OWNER/REPO/linux?version=v1.2.3" | shFor audits, save the script, review it, and run the saved copy:
curl -fsSL https://instl.sh/OWNER/REPO/linux -o install.sh
less install.sh
sh install.shTokens
GITHUB_TOKEN or GH_TOKEN, when set, raises GitHub’s API rate limit. The script sends it only to api.github.com. With curl it passes the token through a configuration file on standard input, so it never appears in the process list. With wget it is a command-line argument, so prefer curl on shared machines.
Report a vulnerability
Report security issues privately through GitHub’s vulnerability reporting, not in a public issue.