Docsity

Operating System - Computer Security - Slides | CSE 543, Study notes of Computer Science

Partial preview of the text

Download Operating System - Computer Security - Slides | CSE 543 and more Study notes Computer Science in PDF only on Docsity!

CSE 543 - Computer Security

(Fall 2006)

Lecture 24 - Virtual machine security

November 28, 2006

URL: http://www.cse.psu.edu/~tjaeger/cse543-f06/

Operating System Quandary

Recall Saltzer-Schroeder

Q: What is the primary goal of system security?

OS enables multiple users/programs to share
resources on a physical device

Access control policies of OS become complex

We’ll see via SELinux

What are we to do?

Virtual Machine Architectures

Full system simulation

CPU can be simulated

Paravirtualization (Xen)

VM has a special API

Requires OS changes

Native virtualization (VMWare)

Simulate enough HW to run OS

OS is for same CPU

Application virtualization (JVM)

Application API

Virtual Machine Types

Type I

Lowest layer of software is VMM

E.g., Xen, VAX VMM, etc.

Type II

Runs on a host operating system

E.g., VMWare, JVM, etc.

Q: What are the trust model issues with Type II
compared to Type I?

VAX VMM Security Kernel

A1 assured virtual machine system
Virtualization

Protect sensitive state

• Sensitive instructions must be virtualized (i.e., require privilege)

• Access to sensitive data must be virtualized (ditto)

Need to hide virtualization

• Systems cannot see that they are being virtualized

I/O Processing

• Need to share access to devices correctly

• Special driver interface (all in VMM security kernel)

Self-virtualization: Run VMM as VM

VM Security

Do VMs need to communicate or share resources?
How do they do it?

Aside

Simple security property

Read-down only

S can read O if and only if S’s access class dominates O

*-security property

Write-up only

S can write to O if and only if O’s access class dominates S

Basic Security Theorem

Every protection state satisfies simple and *-security properties

Bell-LaPadula meets this trivially

Q: Why is this?

VAX VMM Challenges

Q: Why was the project cancelled?
Drivers? In VMM... New model...
Development languages/performance? Pascal?!
Usability? Where’s X?
Lack of customers?
Hardware changes?
Covert channel defenses? Fuzzy time...
Insanity?

Xen

Paravirtualized Hypervisor
Privileged VM

VM: DomU VM: DomU Xen Hypervisor Guest OS’ Guest OS’ Partitioned Resources Device Dom 0 Requests Host OS’ Drivers VM Services

Xen sHype

Controlled information flows among VMs

VM: DomU VM: DomU Xen Hypervisor Guest OS’ Guest OS’ Partitioned Resources Device Dom 0 Requests Host OS’ Drivers VM Services Ref Mon

Java Virtual Machine

Interpret Java bytecodes

Machine specification defined by bytecode

On all architectures, run same bytecodes

• Write once, run anywhere

Can run multiple programs w/i JVM simultaneously

Different ‘classloaders’ can result in different protection domains

How do we enforce access control?

CSE543 Computer and Network Security - Fall 2006 - Professor Jaeger Page Java Security Architecture

  • Java 1.0: Applets and Applications 17

CSE543 Computer and Network Security - Fall 2006 - Professor Jaeger Page Stack Inspection

  • Authorize based on protection domains on the stack
    • Union of all sources
      • All must have permission 19

CSE543 Computer and Network Security - Fall 2006 - Professor Jaeger Page Do Privileged

  • doPrivileged terminates backtrace
  • Like setuid, with similar risks 20