0

Suppose a hacker launches a new Linux distro with firefox provided with it. Now a browser contains the certificates of the root certification authorities of PKI. Because firefox is a free browser anyone can package it with fake root certificates. Thus a fake root certificate would contain a the certification authority that is not actually certified. Can this be used to authenticate some websites. How?

Many existing linux distros are mirrored by people. They can easily package software containing certificates that can lead to such attacks. Is the above possible? Has such an attack taken place before?

1
  • this is better suited to a discussion forum. May 1, 2010 at 20:39

4 Answers 4

4

Most open source software applications will be published along with a hash key of some kind. There are lots of tools available that will allow you to verify that what you have downloaded has the same hash as the one published on the project's website. So even if you download the files from a mirror, you can check the hash to verify that the download has exactly the same content. This means that to do what you are suggesting the attacker would have to also subvert the projects website and publish a fake hash key, but even then someone would notice pretty quickly that the published hash did not match all the valid software downloads.

I suppose there is no reason why an attacker couldn't create their own Linux distro, but remember this stuff is all open source, so people could verify it wasn't doing anything malicious. When a new distro is small no one is likely to verify it, but if it were ever to achieve large scale adoption like Ubuntu, Suse, Fedora etc, then someone will take the time to verify it.

1
  • any exploitation that has used fake root certificates in the past. Apr 28, 2010 at 12:36
1

There is always a chain of trust. For most people it starts (for them) in the bricks-and-mortar store where they buy their pre-built computer or shrink-wrapped software. You trust in known brands and the fact that the store has been there for a little while and hasn't been raided by the police.

Linux and open-source software that you download from the net also has a chain of trust. You trust a distro vendor (because other people do, or you have read about it in a mag). You assume Google sends you to the correct URL. You assume the people there properly sign the software (that is, they encrypt a hash, or unique defining signature, of their software) that you can test. But if any one of those links in the chain are broken, trust can be compromised.

0

As Simon Stevens said, they usually come with a hash, though I have noticed a lot actually come with a MD5 hash which has proven weaknesses. So it would be quite possible, even changing the hask key, depending on what the hash was generated with. It's best to check if they have a SHA-2 hash, they are much more secure than MD5, and if something like MD4 is used, just don't trust it at all.

3
  • i wasn't familiar with SHA-2 previously, only SHA-1 and SHA-256. the difference is that SHA-1 and SHA-256 are algorithms; SHA-2 is the algorithm family that succeeded SHA-1 and includes SHA-256 and SHA-512 (and others). May 1, 2010 at 20:36
  • Yeah by 'a SHA-2 hash' I simply meant a hash within the collection of hashes that is SHA-2
    – lavamunky
    May 1, 2010 at 20:44
  • i was about to post a "don't you mean sha-256" comment but wikipedia showed me i was wrong. :) May 2, 2010 at 5:43
0

To answer your initial question, yes an attacker could generate their own CA and add it as a trusted authority to the browser. This is a feature though, the list of trusted CAs are only the widely accepted list. There is no reason why you shouldn't be able to add your own CA. This brings us back to the point where you just have to be able to trust the sources where you get your software. If a user downloads a corrupted linux install with malicious code in it, the most likely attack would be a rootkit of some sort.

If you are worried you can always check the list of allowed CAs by Firefox and compare it to your current install.

Not the answer you're looking for? Browse other questions tagged .