Fireship · @fireship
Linux got wrecked by backdoor attack
Uploaded April 1, 2024 · Length 4:32
Summary
Linux backdoor attack: how XZ compression tool was compromised and what it means for users.
- linux backdoor
- xz compression
- security vulnerability
- supply chain attack
- debian ci
- linux distros
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
over the last few days the open source
- 0:01
world has been in panic mode a highly
- 0:03
sophisticated and carefully planned
- 0:05
attack affecting the XZ compression tool
- 0:08
was shipped to production and it's
- 0:09
compromised Linux dros like Debian CI
- 0:12
open Susa and others thank God Temple OS
- 0:14
is unaffected though and it's quite
- 0:16
possibly one of the most well executed
- 0:18
supply chain attacks of all time and
- 0:19
give some random dude unfettered access
- 0:21
to execute code on your machine via a
- 0:24
secret back door this is not your
- 0:25
everyday security vulnerability it's a
- 0:27
Threat Level Midnight 10.0 critical
- 0:29
issue on the cve RoR scale even higher
- 0:32
than famous bugs like heart bleed log
- 0:34
for shell and shell shock in today's
- 0:36
video you'll learn exactly how the XZ
- 0:38
back door works and the incredible story
- 0:40
of how it was discovered by accident it
- 0:42
is April 1st 2024 and you're watching
- 0:44
the code report unfortunately this is
- 0:46
not an April Fool's video If you happen
- 0:48
to be using one of the Linux distros
- 0:49
listed here you'll want to upgrade
- 0:51
immediately luckily it only affects a
- 0:53
very narrow set of dros most of which
- 0:55
are unstable builds but that's only
- 0:57
because this back door was discovered by
- 0:58
pure luck early on more on that in just
- 1:00
a second let's first take a deep dive
- 1:02
into this back door XY utils is a tool
- 1:05
for compressing and decompressing
- 1:06
streams based on the lle ziv Markoff
- 1:09
chain algorithm or lzma it contains a
- 1:11
command line tool that's installed on
- 1:13
most Linux dros by default which you can
- 1:15
use right now with the XZ command but
- 1:17
also contains an API Library called lib
- 1:19
lzma and many other pieces of software
- 1:22
depend on this library to implement
- 1:24
compression one of which is sshd or
- 1:26
secure shell demon a tool that listens
- 1:28
to SSH connection
- 1:30
like when you connect your local machine
- 1:32
to the terminal on a Cloud Server and
- 1:34
now here's where the back door comes in
- 1:35
but keep in mind researchers are still
- 1:37
figuring out exactly how this thing
- 1:38
works malicious code was discovered in
- 1:40
the tarballs of lib lzma which is the
- 1:43
thing that most people actually install
- 1:44
that malicious code is not present in
- 1:46
the source code though it uses a series
- 1:48
of obfuscations to hide the malicious
- 1:50
code then at build time it injects a
- 1:52
pre-built object disguised as a test
- 1:54
file that lives in the source code it
- 1:56
modifies specific parts of the lzma code
- 1:58
which ultimately allows the attach ha ER


