~/talk

xz/liblzma backdoor Bash obfuscation explained

Talkat Nerdearla Chile 2024 · 2024-04-11..04-13· [security]
links:none on file
slides:none on file

Analysis dissects the Bash-only obfuscation chain that converts two test files (a 35 KB good large compressed lzma and a tiny bad corrupted sample) into a runnable payload: M4 stage zero runs a tr-based substitution to “uncorrupt” data, a custom function strips 1 KB gaps, tail+tr produce a 256-byte substitution cipher stream, awk implements RC4 via awk with a hardcoded key (skipping ~8 KB), xz -d yields a non-relocatable object file payload that is spliced into the liblzma build and executes.

AI-written summary · about

  1. 0:00Introduction to XZ backdoor
  2. 2:59Initial stages of injection
  3. 4:46Analyzing stage zero
  4. 10:51Decoding the bash script
  5. 19:12Extraction techniques
  6. 21:54RC4 decryption and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.