On 26/11/2026 03:22, Emiliano G.O. wrote:
In the past days I've been noticing some massive adoption waves. That felt weird, so I decided to run some numbers on maintainers.That is the same mechanism behind June/July attacks that blocked adoptions (twice) and new registrations (still in effect). Those are good measures, but they're bandaids, they act on the mechanism, not the structure.
Adoptions have to be manually approved by Arch Linux staff, which is the likely root cause of the "wave" pattern you're observing. As the request queue [1] is being processed, many adoptions go live at the same time which shows up as an "adoption wave".
The structure is that a compromised/forged session, as with commit- metadata spoofing in June, on any account in that top group is a trusted update to thousands of machines with nothing in the platform to signal that anything unusual happened. Users cannot see that a package changed hands, helpers do now warn it, the RPC doesn't expose it. The only way to track maintainer changes right now is to manually track them or use TrustSight.
Given the (imperfect) but currently widely accepted "review all PKGBUILDs" doctrine, a change of package maintainer is a non-event for AUR users. It would matter if trust in a package is linked to the trust in the maintainer, which isn't really the case in practice. Most if not all AUR users fall into 2 categories: "yolo trust everyone" and "review each updates"; none of which account for "who authored the PKGBUILD". Perhaps the relatively recent Lua scriptlets from yay which allow for tracking maintainer change [2] are changing the dynamic, but I don't think they're being adopted by the majority just yet.
A possible mitigation to all of this could be making the credential that can push to the repository expire.OpenSSH allows three solutions. The most hardcore is requiring FIDO2- backed keys for all acounts above a certain threshold. The cleanest (imo) is a small ssh CA: aurweb issues a 15-min cert after a 2FA auth web action, sshd trusts only that CA, and there is no long lived credentials to steal. ||The cheapest is expiry-time on authorized_keys, rewritten by aurweb after each 2FA login,which needs no new infrastructure and gets most of the benefit. I'd suggest >100 packages or >1,000 total votes as a starting bracket, deliberately generous, as a threshold, making 2FA mandatory.
Some packages are maintained automatically by a CI that pushes to the AUR. Whether that's advisable or not, these workflows pairs poorly with MFA because there is no interactive prompt or anyone to enter/provision a temporary code. Some registries like npm solve this using "staging" mechanisms where the package is uploaded with a set of credentials, and needs to be approved manually out-of-band with a second authentication factor. But these architectures are a lot more complex than what aurweb can deal with without major changes to its architecture... Issuing SSH certificates works on paper but provisioning them each time one needs to publish a new version of a package is very likely to be extremely annoying. And it still doesn't work for automated workflows.
Also, as an extra. On adoption for packages above a vote threshold, maybe add a 72h hold/cooldown where adoption is recorded but not pushed immediately. Most of the legitimate takeover work is rarely in a rush, but malicious payloads usually are.
As stated prior, ALL adoption requests today are manually reviewed and approved by Arch staff.
This is not a full solution, but at least covers the cases of mass adopters/maintainers with big blast radius if they get compromised and some of the supply chain risk of popular packages/dependencies.
I previously pointed that out on the ML [3]; AUR PMs have a non-trivial responsibility to secure their credentials. I'm still unsure about the usability of TPM-backed SSH keys on Linux, but they are a good candidate for a free alternative to more costly hardware keys (considering virtually all PCs have one built-in). Thanks for your work and watchful eye Cheers ~Cynthia [1] https://lists.archlinux.org/archives/list/[email protected] [2] https://github.com/Jguer/yay/blob/959f0d527e34de63cfba5ff0ec4d6ad6976055c6/doc/examples/maintainer_change.lua [3] https://lists.archlinux.org/archives/list/[email protected]/message/WEBFAXAPEFTQQ5L4WRYWTAKCO377276P
OpenPGP_signature.asc
Description: OpenPGP digital signature
