Show HN: HimitsuShell – shell scripts to obfuscated binaries, interpreter inside...
Show HN @show
Show HN: HimitsuShell – shell scripts to obfuscated binaries, interpreter inside github.com · 3 points · 0 comments · HN thread
TL;DR HimitsuShell is a Show HN project that compiles a shell script into a single static Linux binary with an embedded POSIX-style shell interpreter, LLVM-based obfuscation (control flow flattening, instruction substitution, string encryption, bogus control flow) and anti-debug checks, positioned as an alternative to shc. The README claims the script is hidden from auditd and bpftrace logging, and it can be configured to stop running after an expiration date. The post had 3 points and no comments at the time of capture.
- Build flow: upload a launcher.sh to a provided Docker container, run compile.sh, and copy out a static binary (x86_64 and aarch64 musl builds; ARMv7 and RISC-V listed as planned).
- Scripts run on an embedded interpreter instead of /bin/sh or /bin/bash, which the project says keeps them out of OS-level logging and hooking such as auditd and bpftrace.
- Obfuscation passes include control flow flattening, bogus control flow, instruction substitution, basic block splitting and string/constant encryption; defaults are sub and sobf only.
- Continuous debugger detection (gdb, ptrace, strace) and an expiration date check that blocks execution after a set date (default 2099-01-01).
- Bash and Zsh scripts reportedly work but may error; built-in commands cover a long list of coreutils and util-linux tools, and other commands fall back to the system shell.
- Dual license: Polyform Noncommercial 1.0.0 for the Community Edition, with a paid Commercial Edition for business use; a Korean patent is cited.
Discussion The thread has no comments yet, so there is no community discussion to summarize.
#shellScripts #obfuscation #binaryPacking #antiDebugging #showHN #linuxSecurity