Skip to content

Pacman package signing. Why can't they just do it this way?

From what I can gather Pacman is somewhat insecure because anyone can set up a mirror. I read that article on how someone could do a man in the middle attack and change stuff, but that part seems completely irrelevant if you're using a trusted network.

Is there a reason the MD5 sums aren't just stored on the main arch server? That would eliminate the possibility of someone modifying the packages/md5 hashes on their mirror.

0 points-1 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
genyu

Author

10
posts
57
comments
7
media
View profile

2 comments

Because MD5 sums are not the same as signing; MD5 is simply for checking integrity of data, and thus is designed to be fast to compute, which makes it easy to crack. It was also shown to be possible to pad enough null characters to the end of compresses files to fake an MD5, and other such approaches.

Before pacman 3.5, when powerpill still worked, you could leverage MD5 by syncing the database/chechsums from a "trusted" mirror, and then download the packages from other mirrors. As powerpill/aria2 downloads pieces of a packagea from multiple mirrors, the MD5 would be different if something went wrong and would attempt to redownload the package. Of course, this is approach does have plenty of weaknesses. I believe this is similar to what the paccheck utility did.

If you are curious/haven't already, read the wiki and the mailing list--there's plenty of back and forth about what works/what won't and why (without the drama present everywhere else)

3 points
unknown author

Deleted before we saved it.

1 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.