Panic! At The Distro: A Study of Malware Prevention in LinuxDistributions

Authors:

Abstract
Malicious attacks on open-source software packages are a growing concern. The discoveryof the XZ Utils backdoor intensified these concerns because of the potential widespreadimpact. This study, therefore, explores the challenges of preventing and detecting mal-ware in Linux distribution package repositories. To do so, we ask two research questions:(1) What measures have Linux distributions implemented to counter malware, and howhave maintainers experienced these efforts? (2) How effective are current malware detec-tion tools in identifying malicious Linux packages? To answer these questions, we conductinterviews with maintainers at several major Linux distributions and introduce a Linuxpackage malware benchmark dataset. Using this dataset, we evaluate the performance ofsix open-source malware detection scanners. Distribution maintainers, according to theinterviews, have mostly focused on reproducible builds to date. Our interviews identifiedonly a single Linux distribution, Wolfi OS, that performs active malware scanning. Usingthis new benchmark dataset, the evaluation found that the performance of existing opensource malware scanners is underwhelming. Most studied tools excel at producing falsepositives but only infrequently detect true malware. Those that avoid high false positiverates often do so at the expense of a satisfactory true positive. Our findings provideinsights into Linux distribution package repositories’ current practices for malware de-tection and demonstrate the current inadequacy of open source tools designed to detectmalicious Linux packages.