First, by using a Foxit-based PDF renderer you are less likely to be compromised by a PDF exploit targeting Acrobat's renderer. Of course an attacker could target the Foxit rendering implementation as easily as Adobe's, and we should assume Foxit vulnerabilities exist. However, a reasonable assumption is that an attacker wanting to compromise systems via PDF will target the much more common Adobe Reader PDF viewing platform. When you use an alternate renderer you are less likely to be exploitable.
Secondly, Google Chrome's security model limits the interaction of the rendered webpage content (or the PDF document) with the operating system via a technique known as sandboxing. Chrome is divided into two functionally isolated halves: the rendering engine that processes content and outputs bitmap images and the other half that controls the renderer and interacts with the underlying OS. By isolating rendered components, the Chrome browser reduces the opportunities for an attacker to exploit the operating system running the browser. A document on the Chromium Security Architecture (.pdf) has an interesting overview on the anticipated threats and the design decisions (and tradeoffs) that are behind Chrome's security.
Together these two factors greatly reduce the risk that your system will be compromised via a maliciously created PDF file. If you'd like to verify that Chrome is using the Foxit plug-in rather than, for example, an Acrobat plug-in, you can browse to chrome://plugins/. The following screen shot shows the Google foxit plug-in enabled:
See larger image
Similarly, the next screen show shows the Adobe Acrobat plug-in disabled:
See larger image
Great, you say, Chrome is now configured to view PDFs with a proper plug-in, but how do I make it my default viewer for all PDFs? You'll need to configure Windows to use Chrome as the default viewer for the PDF file type. For anyone who has forgotten how, just right-click on a PDF and select Open With -> Choose Program. Chrome is a little unusual in that you will not find it installed under Program Files. Instead, you'll look in your user profile. Here is an example: "C:\Documents and Settings\your_username\Local Settings\Application Data\Google\Chrome\Application\chrome.exe". If you can't find it you could always look at the startup shortcut that Chrome installed. Now your system will call Chrome to view PDFs by default. You will lose the PDF features that Reader has but, should you need those, you can always manually select Reader.
As always, it's best not to run applications within an administrative context unless required, so it's a good idea to perform daily tasks as a non-administrator.
Tom Chmielarski is a senior consultant with GlassHouse Technologies, Inc.
Send Tom your security questions.
Join us on LinkedIn.
This was first published in October 2010