Yamato-Security / hayabusa

Hayabusa (隼) is a sigma-based threat hunting and fast forensics timeline generator for Windows event logs.
GNU Affero General Public License v3.0
2.32k stars 203 forks source link

[bug] musl packages created by Release Automation failed with `/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.38 not found` #1431

Closed fukusuket closed 1 month ago

fukusuket commented 1 month ago

https://github.com/Yamato-Security/hayabusa/pull/1430#issuecomment-2403610756

YamatoSecurity commented 1 month ago

Humm, this is weird. MUSL binaries should not be using GLIBC so it looks like it is not being correctly compiled to MUSL

fukusuket commented 1 month ago

I see... it still doesn't seem to compile to the expected binary... :(

I am compiling with x86_64-unknown-linux-musl specified below, but this does not seem to be working. I will try it on my local Ubuntu!

The following issues could have the same cause ... ? 🤔

fukusuket commented 1 month ago

I was able to create musl binaries in local, so it may be an actions issue ...

Ubuntu 22.04 LTS local build

$ rustup target add x86_64-unknown-linux-musl
$ cargo build --target=x86_64-unknown-linux-musl --release
$ ldd hayabusa
    statically linked

Ubuntu 22.04 LTS Actions build

 $ ldd hayabusa-2.18.0-lin-intel-x64-musl
./hayabusa-2.18.0-lin-intel-x64-musl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by ./hayabusa-2.18.0-lin-intel-x64-musl)
./hayabusa-2.18.0-lin-intel-x64-musl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ./hayabusa-2.18.0-lin-intel-x64-musl)
    linux-vdso.so.1 (0x00007ffd052c9000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007faae5a0a000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007faae59ea000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007faae5903000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faae56da000)
    /lib64/ld-linux-x86-64.so.2 (0x00007faae68ab000)