You are not logged in.

#1 2026-10-09 18:05:27

xorsanitysanity
Member
Registered: 2026-10-09
Posts: 2

How does Arch protect against supply chain attacks

(concerning pacman safety)

Hi. arch noob here,

I've been experimenting and starting to rice (hoping this is the right terminology) my Arch setup but keep seeing things online about massive supply chain attacks where a repository owner is hacked or socially engineered so the stable or main branch of a given repository becomes backdoored or tampered with. I've legitimately enjoyed my experience thus far with Arch, but am concerned about such attacks and am wondering what Arch does to resist similar attacks. Is there something like a small holding period to see if there is obvious tampering with a package installed via pacman before it is released to the public? Is there something I can do to manually lower my risk? I've not touched the AUR yet for this reason.

Thanks,

xorsanitysanity

Offline

#2 2026-10-09 19:02:39

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,491

Re: How does Arch protect against supply chain attacks

None of the supply chain attacks this year have had any effect on archlinux official repos.

As for using AUR packages : I have over 50 installed and no issues at all.
But I'm one of the almost extinct (according to some) breed of people that check pkgbuild, aur commit history and upstream/download url before installing any aur package.

Supply chain attacks in general : stay away from npm, electron, flatpak and other stuff that relies on external deps unless you are sure those external deps are trustworthy.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2026-10-09 19:56:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,373

Re: How does Arch protect against supply chain attacks

what Arch does to resist similar attacks. Is there something like a small holding period to see if there is obvious tampering with a package installed via pacman before it is released to the public

You do understand that in this case arch *is* the supply chain?
If one of the TUs goes rogue or Allan gets funny we're fucked.

where a repository owner is hacked or socially engineered so the stable or main branch of a given repository becomes backdoored

The xz disaster was technically not a supply-chain attack. Upstream (through a malicious de-facto maintainer change) turned evil.
The supply-chain aspect was because the git tree remained clean and only a manually provided tarball (not used by arch) was infected.

The xz-attack didn't work for various reasons against arch (in a  nutshell: the target wasn't xz but sshd, that required sshd to link libsystemd, the openssh developers wisely refused and arch didn't accept/apply a downstream patch to override their decision either; to limit exposure the malware would not have activated on arch even iff it had built from the infected tarball) BUT you need to be aware that if upstream turns evil and laces 100k LOC with some nimble malware (the xz infection was very detection-evasive) you're essentially screwed as well.

To lower your risk you first need to understand what your individual risk is.
Who would invest how much to get what from infecting your system?

If you're Joe Desktopuser the worst thing somebody could probably do would be to encrypt your data for ransom.
Regardless of even that, there're only two kinds of users: those how have backups and those who had plans for backups.

If you're running a (private) server and worry about becoming a malware hub, limit the attack surface and monitor the system (behavioral analysis, intrusion detection, etc)

If you're a high-exposure target (government official etc.) you should frankly not be asking such questions in this place, but keep sensitive data air-gap'd.

Offline

#4 2026-10-10 02:20:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,673
Website

Re: How does Arch protect against supply chain attacks

seth wrote:

If one of the TUs goes rogue or Allan gets funny we're fucked.

I am very much open to bribes.

Offline

#5 2026-10-10 07:16:29

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: How does Arch protect against supply chain attacks

xorsanitysanity wrote:

I've legitimately enjoyed my experience thus far with Arch, but am concerned about such attacks and am wondering what Arch does to resist similar attacks.

I'm curious what alternative you are considering. It is quite difficult to function these days without any kind of connection to the internet.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2026-10-10 16:50:56

xorsanitysanity
Member
Registered: 2026-10-09
Posts: 2

Re: How does Arch protect against supply chain attacks

@Cymru (maybe @ mentions work here)

I've been distro hopping (mainly between debian forks and NixOS) trying to balance customization and security, my problem has nothing to do with internet. Rather, my problem is whether or not pacman does anything to protect against a source code repository (for example, bluetui) going evil. In this scenerio the repository (similar to the liblzma [I think] situation) has malicious code published to its source. Debian, from my understanding, will have a small holding period even for critical security updates just to ensure that the code hasn't become a password stealer or something worse. I understand that Arch is rolling release, I just wonder if there are any mechanisms provided by pacman or whatever mirror it pulls from I can utilize to protect myself against such threats.

Thanks for the swift responses

Offline

#7 2026-10-10 17:46:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,373

Re: How does Arch protect against supply chain attacks

@cfr is *from* Cymru wink
(And no, the @ does nothing special(

What makes you think waiting an arbitrary time will shield you or offer any kind of protection against upstream turning evil?
You can use the ALA to trail arch by a month or so, but that's security-by-wish-belief.

It's not really related but debian was one of the few infected distros because the accepted the malicious downstream patch linking sshd with libsystemd against the judgement of the ssh developers, they also once caused
random_number.png

Offline

#8 2026-10-10 18:55:12

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: How does Arch protect against supply chain attacks

A holding period only works if someone or something will be performing verification during the hold period.  It works for git CI projects on the assumption that a compromised release will be detected within X days by some undefined mechanism and the releases yanked and all releases more than X days old should be not be compromised.

Offline

#9 2026-10-11 03:30:19

headkase
Member
Registered: 2011-12-06
Posts: 1,994

Re: How does Arch protect against supply chain attacks

Allan wrote:
seth wrote:

If one of the TUs goes rogue or Allan gets funny we're fucked.

I am very much open to bribes.

lol

Offline

#10 2026-10-11 04:03:39

mpan
Member
Registered: 2012-08-01
Posts: 1,669
Website

Re: How does Arch protect against supply chain attacks

The bribes do not work well in Arch community. Some package maintainers were bribed with donuts or cat pictures, but so far they failed to deliver supply chain attacks. Microsoft’s Npm is much better at that (see AUR situation earlier this year). Jia Tan managed to get into major companies’ repos, but our package maintainers forgot to open doors for them. Completely useless. I don’t know how FOSS can continue with people who can’t even properly process bribes. /s

Offline

#11 2026-10-11 07:47:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,373

Re: How does Arch protect against supply chain attacks

https://bbs.archlinux.org/viewtopic.php … 1#p2113111

From my experience the main problem is that while the fees are reasonable, you're also required to actually watch…

Offline

Board footer

Powered by FluxBB