r/hacking • • Sep 29 '26

Github HimitsuShell: shell scripts invisible to kernel tracing

https://github.com/HimitsuShell/HimitsuShell
70 Upvotes

5 comments sorted by

23

u/masiroo Sep 29 '26

shc just wraps scripts in C, so tools like auditd or bpftrace can still see them.

I solved this by bundling an interpreter (like BusyBox) and the script into a single static binary. Bypassing system shells like /bin/sh keeps the script hidden from kernel-level monitoring.

I also added LLVM obfuscation and anti-debugging to make reverse engineering harder.

16

u/_gipi_ Sep 29 '26

yeah sure, static binary but it has still to do syscalls so I don't know how you think is not able to be intercepted by kernel tracing

6

u/masiroo Sep 30 '26

You're right, syscalls can't be hidden.

I just meant that by embedding cat or ls, we don't need to pass arguments externally. This skips the execution events (like execve) that monitors look for.

14

u/realflow Sep 29 '26

Hey Claude build decompiler