Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clone git://kernel.ubuntu.com/ is Not Secure #3

Open
eviljoel opened this issue Sep 13, 2014 · 2 comments
Open

git clone git://kernel.ubuntu.com/ is Not Secure #3

eviljoel opened this issue Sep 13, 2014 · 2 comments

Comments

@eviljoel
Copy link

In Ubuntu kernel with grsecurity, the instructions dictate that one should clone the Ubuntu source from kernel.ubuntu.com:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git

However, according to the git manual page, cloning a repository using the 'git' protocol is not secure:

The native transport (i.e. git:// URL) does no authentication and should be used
with caution on unsecured networks.

The the content of the download is also never verified in the Verify the digital signatures section.

According to the Ubuntu documention, there are a couple ways to obtain the Ubuntu source code. Option B seems like the most secure method for obtaining the source:

sudo apt-get source linux-image-uname -r

Alternatively, at the cost of some security, you can continue to use Option A and verify the signature on each tag. The problem with this is that each tag is signed by a different person at Canonical and it is not practical for Secure Drop users to obtain the public key of each Canonical kernel developer. This method also relies on the SHA1 signatures used by git which have known weaknesses (although the attacks are not very practical).

I recommend changing the instructions for obtaining the Ubuntu source to either use apt-get or provide instructions on verifying git tags. Thank you.

@eviljoel
Copy link
Author

@runasand James said you would probably look into this issue.

@runasand
Copy link
Contributor

I created https://github.com/runasand/ubuntu-grsec/issues/5 and will look into it. Thanks, @eviljoel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants