Malicious Software Packages Found On Arch Linux User Repository

in #linux6 years ago

arch-linux-aur-malware.png

One of the most popular Linux distros Arch Linux has pulled as many as three user-maintained software repository AUR packages after it was found hosting malicious code.
Arch Linux is an independently developed, general-purpose GNU/Linux distribution composed predominantly of free and open-source software, and supports community involvement.
Besides official repositories like Arch Build System (ABS), Arch Linux users can also download software packages from several other repositories, including AUR (Arch User Repository), a community-driven repository created and managed by Arch Linux users.

Since AUR packages are user-produced content, Arch maintainers always suggest Linux users to carefully check all files, especially PKGBUILD and any .install file for malicious commands.
However, this AUR repository has recently been found hosting malware code in several instances, including a PDF viewer.
Compromised PDF Viewer Found on Arch Linux AUR
On June 7, a malicious user nicknamed "xeactor" adopted an orphaned package (software without an active maintainer) called "acroread" which functions as a PDF viewer, and modified it to add malicious code.
As per a Git commit to the package's source code, xeactor added malicious code that would download a curl script which in turn would install and run a script from a remote server.
This script installs persistent software that meddles with "systemd" and reconfigures it, and would run every 360 seconds.
The investigation revealed that the malicious script was designed to collect data on the infected systems to retrieve the following information:
Date and Time
Machine's ID
Pacman information (package management utility)
The output of the "uname-a" command
CPU Information
The output of "systemctl list-units" command
The collected data would then be posted in a Pastebin document.
Fortunately, a code analysis discovered the modifications in due time and revealed that the scripts did not appear to be a serious threat, but payloads can be manipulated by the attacker at any time to push sophisticated malicious code.

changes made in the package, suspended xeactor's account, and also found two more packages that xeactor has recently adopted and modified in the same manner.
More Malicious Software Packages
The AUR team also removed the other two packages without revealing their names.
So if you're an Arch Linux user who downloaded "acroread" recently, you'll are highly recommended to delete it.
While the breach does not pose a serious threat to Linux users, the incident definitely sparked a debate about the security of untrusted software packages.
A comment made by Arch's Giancarlo Razzolini reads that user-provided AUR packages might contain bad code and explicitly trusting such packages is not a good security practice.
Screenshot_2018-08-06-17-01-22-1.png
Screenshot_2018-08-06-17-01-28-1.png

So, with any user-maintained repository, users should double check what they are downloading.

Sort:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://thehackernews.com/2018/07/arch-linux-aur-malware.html

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.032
BTC 66856.70
ETH 3114.05
USDT 1.00
SBD 3.75