G53SEC 1 Reference Monitors Enforcement of Access Control.

Slides:



Advertisements
Similar presentations
Computer-System Structures Er.Harsimran Singh
Advertisements

CS426Fall 2010/Lecture 71 Computer Security CS 426 Lecture 7 Operating System Security Basics.
Chapter 6 Security Kernels.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
CSE331: Introduction to Networks and Security Lecture 28 Fall 2002.
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
1 Building with Assurance CSSE 490 Computer Security Mark Ardis, Rose-Hulman Institute May 10, 2004.
OS Spring’03 Introduction Operating Systems Spring 2003.
Abhinav Kamra Computer Science, Columbia University 2.1 Operating System Concepts Silberschatz, Galvin and Gagne  2002 Chapter 2: Computer-System Structures.
CMSC 414 Computer and Network Security Lecture 13 Jonathan Katz.
Operating System Organization
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Protection and the Kernel: Mode, Space, and Context.
ISA 562 Internet Security Theory & Practice
G53SEC 1 Reference Monitors Enforcement of Access Control.
Three fundamental concepts in computer security: Reference Monitors: An access control concept that refers to an abstract machine that mediates all accesses.
2.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 2: Computer-System Structures Computer System Operation I/O Structure.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 2: Computer-System Structures Computer System Operation I/O Structure.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Chapter 2: Computer-System Structures
1 CSE Department MAITSandeep Tayal Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
2: Computer-System Structures
Security Architecture and Design Chapter 4 Part 3 Pages 357 to 377.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto OS-Related Hardware.
1 Chapter 2: Computer-System Structures  Computer System Operation  I/O Structure  Storage Structure  Storage Hierarchy  Hardware Protection  General.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection Network Structure.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Operating Systems Security
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
Chapter 2: Computer-System Structures(Hardware) or Architecture or Organization Computer System Operation I/O Structure Storage Structure Storage Hierarchy.
Lecture 5 Rootkits Hoglund/Butler (Chapters 1-3).
Lecture 4 Page 1 CS 111 Online Modularity and Memory Clearly, programs must have access to memory We need abstractions that give them the required access.
1 Security Architecture and Designs  Security Architecture Description and benefits  Definition of Trusted Computing Base (TCB)  System level and Enterprise.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
CSCE451/851 Introduction to Operating Systems
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Introduction to Operating Systems Concepts
Chapter 2: Computer-System Structures(Hardware)
Chapter 2: Computer-System Structures
Protection and OS Structure
Modularity and Memory Clearly, programs must have access to memory
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Computer-System Architecture
Module 2: Computer-System Structures
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Module 2: Computer-System Structures
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Chapter 2: Operating-System Structures
Module 2: Computer-System Structures
Presentation transcript:

G53SEC 1 Reference Monitors Enforcement of Access Control

G53SEC Overview of Today’s Lecture: Introduction Operating System Integrity Hardware Security Features Protecting Memory 2

G53SEC Introduction: Fundamental Concepts: Reference Monitor – an abstract concept Security Kernel – its implementation Trusted Computing Base (TCB) – kernel + other protection mechanisms 3

G53SEC Reference Monitor (RM): “An access control concept that refers to an abstract machine that mediates all access to objects by subjects.” Must be tamper proof/resistant Must always be invoked when access to object required Must be small enough to be verifiable / subject to analysis to ensure its correctness 4

G53SEC Security Kernel: “The hardware, firmware, and software elements of a TCB that implement the reference monitor.” Must mediate all access Must be protected from modification Must be verifiable for correctness Ideally in the bottom layers of a system 5

G53SEC Trusted Computing Base (TCB): “The totality of protection mechanisms within a computer system responsible for enforcing a security policy” One or more components Enforce a unified security policy over a product or system Correct enforcement depends on components within and input by system administrators 6

G53SEC Reference Monitor Placement: Can be placed anywhere  Hardware  Dedicated registers for defining privilages  Operating System Kernel  Virtual machine emulating users  Operating System  Windows Security Reference Monitor  Services Layer  JVM,.NET  Application  Firewall 7

G53SEC Reference Monitor Placement: In relation to application it should control: 8 program RM programRM program application kernel RM in kernelInterpreter In-line RM

G53SEC Operating System Integrity: OS is not only the arbitrator of access requests OS is itself an object of access control “Users must not be able to modify the operating system” Users should be able to use the OS Users should not be able to misuse the OS 9

G53SEC Modes of Operation: Distinguish computations done “on behalf of”: the OS the user A Status flag allows the OS to operate in different modes. e.g. In Unix – supervisor (root) and user modes 10

G53SEC Controlled Invocation: User requiring supervisor mode for an operation Processor switches between modes Only predefined set of operations performed in supervisor mode System returns to user mode 11

G53SEC Hardware Security Features: Reasons for placing security in lower system levels: Possibility to evaluate security to a higher degree  reasonably simple structures  security mechanism compromised if layer below attacked Performance overheads reduced Access control decisions far removed from decisions made by applications 12

G53SEC Memory Structures: Security characteristics of memory structures: 1.RAM – (R/W) - Cannot guarantee integrity or confidentiality 2.ROM – built-in integrity guarantee, good for storing parts of an OS 3.EPROM – useful for storing parts of OS or crypto keys, advanced attacks may pose a threat 4.WROM – good for storing crypto keys, disks used for audit trail logs 13

G53SEC continued… Volatile memory loses its contents on power off neither instantaneous nor complete reconstructable using special electronics defence – repeated overwrites Non-volatile (permanent) memory if attacker has access by bypassing CPU further measures required (e.g. cryptography) 14

G53SEC continued… Memory main memory cache buffers etc.. Data object may exist simultaneously in more than one location! Copy held in an unprotected memory = risk 15

G53SEC Processes and Threads: Process – program in execution, important unit of control in an OS and for security Works in its own address space Communicates with other processes with help of OS Separation useful for security Thread – a strand of execution within a process 16

G53SEC Controlled Invocation - Interrupts: Exceptions/Interrupts/Traps Interruptions of executions due to errors, user request, hardware failure, etc… Handled by CPU Improper handling leads to security flaws  CTRL-C during supervisor mode operations  Interrupt table entry change 17

G53SEC Processing Interrupt: 18 TRAP #n interrupt vector interrupt handler InterruptInterrupt vector table Memory n 1010

G53SEC Processing Interrupt: 19 TRAP #n interrupt vector interrupt handler InterruptInterrupt vector table Memory n 1010 viral code

G53SEC Protecting Memory: OS integrity – preserved by separation of user & kernel space Separation of users: File management – logical memory object Memory management – physical memory objects 20

G53SEC continued… Segmentation – divides data into logical units Good basis for enforcing security policy Variable length – difficult memory management Paging – divides memory into pages of equal size Popular – efficient memory management Not good for access control A page might contain objects requiring different protection 21

G53SEC Secure Addressing: Confinement of processes to separate address spaces Control access to data objects in memory 1.OS modifies addresses received from user (address sandboxing e.g. mask) 2.OS constructs effective addresses from relative ones (relative addressing) 3.OS checks whether address within given bounds (base register addressing) 22

G53SEC 23 Summary: How Access Control is enforced Why OS integrity is important Security features of existing hardware How to control access to memory

G53SEC End 24 07/02/08