Fireship · @fireship

Linux got wrecked by backdoor attack

Uploaded April 1, 2024 · Length 4:32

Linux got wrecked by backdoor attack

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.

  1. 0:00

    over the last few days the open source

  2. 0:01

    world has been in panic mode a highly

  3. 0:03

    sophisticated and carefully planned

  4. 0:05

    attack affecting the XZ compression tool

  5. 0:08

    was shipped to production and it's

  6. 0:09

    compromised Linux dros like Debian CI

  7. 0:12

    open Susa and others thank God Temple OS

  8. 0:14

    is unaffected though and it's quite

  9. 0:16

    possibly one of the most well executed

  10. 0:18

    supply chain attacks of all time and

  11. 0:19

    give some random dude unfettered access

  12. 0:21

    to execute code on your machine via a

  13. 0:24

    secret back door this is not your

  14. 0:25

    everyday security vulnerability it's a

  15. 0:27

    Threat Level Midnight 10.0 critical

  16. 0:29

    issue on the cve RoR scale even higher

  17. 0:32

    than famous bugs like heart bleed log

  18. 0:34

    for shell and shell shock in today's

  19. 0:36

    video you'll learn exactly how the XZ

  20. 0:38

    back door works and the incredible story

  21. 0:40

    of how it was discovered by accident it

  22. 0:42

    is April 1st 2024 and you're watching

  23. 0:44

    the code report unfortunately this is

  24. 0:46

    not an April Fool's video If you happen

  25. 0:48

    to be using one of the Linux distros

  26. 0:49

    listed here you'll want to upgrade

  27. 0:51

    immediately luckily it only affects a

  28. 0:53

    very narrow set of dros most of which

  29. 0:55

    are unstable builds but that's only

  30. 0:57

    because this back door was discovered by

  31. 0:58

    pure luck early on more on that in just

  32. 1:00

    a second let's first take a deep dive

  33. 1:02

    into this back door XY utils is a tool

  34. 1:05

    for compressing and decompressing

  35. 1:06

    streams based on the lle ziv Markoff

  36. 1:09

    chain algorithm or lzma it contains a

  37. 1:11

    command line tool that's installed on

  38. 1:13

    most Linux dros by default which you can

  39. 1:15

    use right now with the XZ command but

  40. 1:17

    also contains an API Library called lib

  41. 1:19

    lzma and many other pieces of software

  42. 1:22

    depend on this library to implement

  43. 1:24

    compression one of which is sshd or

  44. 1:26

    secure shell demon a tool that listens

  45. 1:28

    to SSH connection

  46. 1:30

    like when you connect your local machine

  47. 1:32

    to the terminal on a Cloud Server and

  48. 1:34

    now here's where the back door comes in

  49. 1:35

    but keep in mind researchers are still

  50. 1:37

    figuring out exactly how this thing

  51. 1:38

    works malicious code was discovered in

  52. 1:40

    the tarballs of lib lzma which is the

  53. 1:43

    thing that most people actually install

  54. 1:44

    that malicious code is not present in

  55. 1:46

    the source code though it uses a series

  56. 1:48

    of obfuscations to hide the malicious

  57. 1:50

    code then at build time it injects a

  58. 1:52

    pre-built object disguised as a test

  59. 1:54

    file that lives in the source code it

  60. 1:56

    modifies specific parts of the lzma code

  61. 1:58

    which ultimately allows the attach ha ER