Live monitoring Updated 72-hour alert levelPriority Editor: Frédéric LENQUETTE
CYBERIACKCybersecurity & AI intelligence · by Frédéric LENQUETTE
CybersecurityImportant

Arch Linux (AUR): fake yay and paru packages, script run as root, machines to check

On October 13, an alert on the aur-general mailing list reported AUR packages impersonating yay and paru that ran a remote script as root. Arch workstations and servers that use the AUR: check packages installed from outside the official repositories.

Translated from French by AI. The original French article is the reference version.

Article illustration : Arch Linux (AUR): fake yay and paru packages, script run as root, machines to check

Key points

AUR packages impersonating yay and paru, two widely used AUR helpers, downloaded and ran a remote script with root privileges at install or update time. A maintainer banned the account responsible and deleted its packages. Arch machines that use the AUR should be checked; those that installed one of these packages should be treated as compromised.

The facts

  • October 13: alert on the aur-general mailing list, whose title mentions “hundreds” of malicious packages published in bulk. No official count has been published.
  • Andreas Reichel, an AUR maintainer, analyzed yyay with a detection tool, which classified it as malicious with 99% confidence and blocked its build.
  • According to Help Net Security, the fake package reused the address and archive of the real yay; the malicious command was in the script run by pacman, alongside install functions left empty. Andreas Reichel sees this as a deception “aimed at casual reviewers and automated scanners”.
  • According to BleepingComputer, the script was fetched through a Wayback Machine copy pointing to a personal repository hosted on GitFlic, a Russian service.
  • The script's function has not been publicly established. Andreas Reichel believes it could be used to collect credentials or to install a backdoor or a rootkit. No machine compromise has been confirmed so far.
  • The maintainer DeepChirp confirmed the presence of the malicious code, banned the account marchos1as and deleted all of its packages.
  • An OSV advisory on DirtyBlanket, a campaign targeting npm documented by SafeDep, mentions the same Wayback Machine address and GitFlic. No link has been established between the two operations.

Impact

Workstations and servers running Arch Linux or a derivative that install packages from the AUR are exposed; Arch's official repositories are not affected. Because the script ran as root, an affected machine should be considered fully compromised, along with the passwords, SSH keys and access tokens it holds. The number of installations before October 13 is not known.

This is the third AUR alert since June, after more than 400 packages distributing an infostealer in June, according to BleepingComputer, and the temporary suspension of adoption of orphaned packages in late July. The technique targets checks limited to the name and the source: the archive is genuine, and only the install recipe is booby-trapped. On administration workstations and servers, the AUR should be controlled like any open-publication registry.

Recommendations

  1. List packages from outside the official repositories with pacman -Qm and look for a name close to yay or paru (yyay or another variant).
  2. Review /var/log/pacman.log for any install or update of such a package, including before October 13.
  3. Match the dates found against proxy and DNS logs to spot requests to the Wayback Machine or GitFlic.
  4. Treat an affected machine as compromised: reinstall it from clean media, change passwords, and revoke the SSH keys and access tokens that were on it.
  5. Read the PKGBUILD and the .install scripts before building an AUR package, not just its name.
  6. Control AUR use on administration workstations and servers: an allowlist of packages, and review before installation.

Method: facts verified against the sources cited below, article reviewed and approved by Frédéric LENQUETTE. Our editorial policy.

Vendor page: Linux · 32 exploited vulnerabilities

Share this article