macOS
brew install shclocal Homebrew formula metadata
sudo port install shcMacPorts ports tree · devel/shc/Portfile · source: api.github.com
brew / rank 3827
Shell Script Compiler. Version 4.0.3 via Homebrew; verified 2026-09-13. Also installable with nix: nix profile install nixpkgs#shc.
install
brew install shclocal Homebrew formula metadata
sudo port install shcMacPorts ports tree · devel/shc/Portfile · source: api.github.com
sudo apk add shcAlpine Linux edge package indexes · shc · source: dl-cdn.alpinelinux.org
sudo dnf install shcFedora Rawhide package metadata · shc · source: dl.fedoraproject.org
nix profile install nixpkgs#shcnixpkgs package indexes · pkgs/by-name/sh/shc/package.nix · source: api.github.com
sudo apt install shcUbuntu 24.04 LTS package indexes · shc · source: archive.ubuntu.com
overview
Shell Script Compiler
history
shc packages shell scripts as executable binaries by generating C source that decrypts and runs the original script through its designated shell.
shc was created as a generic shell-script-to-executable tool. It encodes and encrypts a script, emits C source, and invokes the system compiler to produce a stripped executable.
The current official project is maintained in the neurobin GitHub repository and documents experimental anti-tracing hardening alongside its traditional expiration and obfuscation capabilities.
shc is packaged for multiple Unix-like systems, including Alpine, Fedora-family distributions, Ubuntu, Nix, MacPorts, and Homebrew.
A typical invocation is shc -f script.sh -o binary. The resulting executable behaves like the source script but remains dependent on the shell named by its shebang.
Users should test generated binaries carefully. The official documentation notes argument-size limits and describes the -H hardening mode as experimental.
shc occupies an unusual niche between packaging, obfuscation, and compilation. It can turn a script into a conventional executable artifact, but the result still depends on the script's original interpreter.
Its limitations matter to packagers: shc does not produce a truly self-contained native program, and generated executables remain constrained by shell availability and system argument-size limits.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
shc | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/neurobin/shc
install metadata
| Package key | brew:shc |
|---|---|
| Version | 4.0.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/shc |
| Homepage | https://neurobin.github.io/shc |
| Repository | https://github.com/neurobin/shc |
| Upstream docs | https://neurobin.github.io/shc |
| License | GPL-3.0-or-later |
| Source archive | https://github.com/neurobin/shc/archive/refs/tags/4.0.3.tar.gz |
| Last updated | 2026-09-13T09:33:53Z |
| Pulse | updated |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | shc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
shc
nix profile install nixpkgs#shcshc 4.0.3-1
Shell script compiler
https://neurobin.org/projects/softwares/unix/shc/
sudo apt install shcshc 4.0.3-r2
A generic shell script compiler.
https://neurobin.org/projects/softwares/unix/shc/
sudo apk add shcshc 4.0.3-17.fc45
Shell script compiler
https://neurobin.org/projects/softwares/unix/shc/
sudo dnf install shcshc
sudo port install shcsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.