Skip to content

Any real-world examples of malicious PKGBUILDS?

In the Arch community, there is something of a controversy over the potential for abuse that AUR packages represent. A lot of folks recommend against AUR helpers like yaourt for this reason, and I've even heard a few users advising against using the AUR entirely. Sound advice for security, but for most users that's not practical.

I've known a lot of Arch newbies, and this seems to be a consistent point of confusion. I'm planning on writing a beginner's guide to the AUR and the controversy around it. I'd like to give new users a primer on what exactly they should be doing when they review PKGBUILDs when installing from the AUR. Some advice is obvious: check source URLs, make sure the package isn't doing rm -rf $HOME or anything clearly wrong. I'd really like to give a real-world example, though, hence this post. Has there ever been an actual example of an abusive or malicious package in the AUR?

The closest I can think of is the dropbox package. It's not malicious or abusive (at least, I think not...), but it sources really sketchy looking URLs. Turns out Dropbox really does host their linux distributions on a weird cloudfront link, though. Go figure.

38 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
38 · 100% up
Kind
Text
ID
5adh81

Author

2
posts
23
comments
0
media
View profile

9 comments

unknown author

Deleted before we saved it.

20 points

As for actual malicious PKGBUILDs I have seen none. But the sources they pull in could contain malicious code. Anything on public repos can contain bad code. You just rely on the community to spot it before it reaches your systems. Otherwise you would have to audit all code yourself. The AUR is no special case.

7 points

This is somewhat of a tangent, as I can't think of any PKGBUILDs hosted on the AUR that are, or have been, actively malicious.

I understand the widespread rule-of-thumb that an automated AUR package helper may lead to lax security practices when it comes to installing unsupported software. However, a.) I've yet to come across any packages that are actively malicious, b.) the comment system allows for users to communicate potential issues with AUR hosted PKGBUILDs to others, whether they are using an AUR helper or no, and most importantly c.) in my own experience, having to install PKGBUILDs by hand doesn't necessarily mean I will look inside them to check for malicious code; especially when installing a long dependency chain.

AUR helpers such as pacaur/yaourt are useful tools that save users a lot of time. But best security practices can be followed by the user whether they choose to use such tools or no!

Best of luck writing that section; I look forward to reading it!

6 points

One thing that I wish pacaur did was check for change in maintainer/orphaned, and throw a warning. This is a nice feature (aurbot has it), that serves quality control and a little security.

6 points

Been using arch for some years now. Never heard of it. But I do check pkgbuilds and read up on packages I install. Like with any repository you give someone on the internet root access to your machine.

3 points

Nah mostly non working and wrongly packaged source is the worst I have seen.

2 points
unknown author

Deleted before we saved it.

1 points

Very quickly deleted my post. I don't know if you still get a notification in your inbox and can read what it said so if you do and are confused please ignore it. Misread a word which gave an opposite meaning of what you were saying.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.