InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Microsoft’s Web Browser-Based OS: Gazelle

Posted by Jonathan Allen on Jul 09, 2009

Sections
Development,
Operations & Infrastructure
Topics
Architecture ,
Operating Systems ,
.NET
Tags
Browsers

Google isn’t the only company toying with the idea of a secure operating system based around a web browser. Back in February, researches at Microsoft revealed details about Gazelle. Gazelle claims to be “a multi-principal OS construction of a secure web browser. Gazelle’s Browser Kernel exclusively provides cross-principal protection and fair sharing of all system resources.”

Like Chrome OS, which is built on top of Linux, Gazelle isn’t really a new operating system. Rather it is a layer that extends the browser’s security model down into the operating system level. Key to system is the idea of a “principal”, which in this case is the triple of protocol, domain-name, and port. Each combination is isolated from any other combination at the process level.

To protect from issues like cross-site scripting attacks, pages can only directly render content from one principal. Content from other principals is off-loaded into a another process specifically created for that principal. Communication between principals is done via the “Browser Kernel”. The Browser Kernel is a restricted OS process written in C# that facilitates inter-process communication. XML-based messages are sent between the Browser Kernel and the various processes using named pipes. As each process completes its rendering, the results are composed into a final image for the browser by the Browser Kernel.

Gazelle has numerous features targeting specific browser vulnerabilities such as plugins, mixed HTTP/HTTPS, and the “recursive mashup attack”.

Plugins. Gazelle enforces the same-origin policy on plugin content. That is, plugin content runs as the principal of its origin (and not as the principal of its host page). Since plugins are a source of rampant vulnerability growth, enforcing policy on plugins in Browser Kernel is critical for containing the damage caused by an exploit. Existing plugin software must be adapted (ported or binary-rewritten) to use Browser Kernel system calls to accomplish its tasks. There are 34 out of top 100 Alexa sites that use Flash plugins and no other kinds of plugins are used. This indicates that by porting or adapting Flash alone can address a significant portion of the plugin compatibility issue.

HTTPS inclusion of HTTP scripts and CSS. In Gazelle an HTTPS principal cannot include an HTTP script or CSS content. Other types of content, such as images and plugins, will be run in the process belonging to the hosting principal. This policy could be easily changed in Gazelle; however, by preventing HTTPS content from including HTTP provided scripts and CSS, Gazelle enforces stronger security against a network attacker. Since the top 100 Alexa sites don’t use SSL, we identified a few different sites that provide SSL sessions for parts of their web application: amazon.com, mail.google.com, mail. microsoft.com, blogger.com, and a few popular banking sites that are outside of the top 100. These sites don’t violate our policy.

Strict child-only navigation. A landlord frame can only cause navigation in tenants and has no control over frames belonging to the tenants or other principals. Sites that attempt to navigate descendants other than direct children will be unable to do so in Gazelle. By limiting the scope of navigation, Gazelle is able to prevent malicious web pages from navigating frames in benign web applications. This type of attack was previously analyzed by Barth et al. and presented as the “recursive mashup attack”. We were unable to automatically test sites for violations of this policy with our compatibility testing framework.

This level protection isn’t cheap. It can double rendering time on complex pages such as the nytime.com when cross-origin frames are involved. However much of this can be minimized with more work on the image composition portion of the Browser Kernel.

You can read the entire research paper and see a comparison to existing browsers such as Google’s Chrome on the Microsoft Research website.

No comments

Watch Thread Reply

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.