Hello fellow AUR users.

In the past days I've been noticing some massive adoption waves. That felt 
weird, so I decided to run some numbers on maintainers.

Measured on 25/11/2026 (packages-meta-ext-v1.json.gz): 126,987 packages, of 
which 111,939 are maintained by 21,796 accounts and 
15,048 are orphaned. Sorted by packages held, the distribution is:



    10% of all packages    held by      8 accounts (0.04% of maintainers)
    25%                    held by     63 accounts (0.29%)
    50%                    held by    736 accounts (3.4%)
    75%                    held by  4,170 accounts (19.1%)




The top of that curve: BioArchLinuxBot 3,720 (2.9% of the archive on its own), 
zxp19821005 1,944, Dominiquini 1,803, taotieren 1,081, 
vitaliikuzhdin 919, alerque 893, ahp 810, badcast 774.


The curve in it of itself is not an issue, as most of it is legitimate work. I 
am not proposing that anybody maintain fewer packages.


The problem is what it combines with. Over the last four weeks the TrustSight 
Watcher recorded 647 package adoptions, 135 
of them by six 
accounts, alongside 661 dormant packages revived in the same window. 


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.


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.


A possible mitigation to all of this could be making the credential that can 
push to the repository expire. 
AUR publishing is git over SSH, so a second factor at login does nothing for 
the push path: a attacker holding a stolen key, 
or a scraped ~/.ssh directory, pushes exactly like the maintainer.

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.

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. 

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.

Bests of bests,

Emiliano



--
e [at] emiliano-go [dot] com
emiliano-go [dot] com
F759 D6D4 9B0A 395A B922 414A 5CC3 B4C5 0D37 E793 

Reply via email to