CSE331: Introduction to Networks and Security. Lecture 34 Fall 2006



Similar documents
CIS 551 / TCOM 401 Computer and Network Security. Spring 2005 Lecture 4

CIS 551 / TCOM 401 Computer and Network Security

? Resource. Access Control and Operating System Security. Access control matrix. Access control. Capabilities. Two implementation concepts.

? Resource. Outline. Access Control and Operating System Security. Access control. Access control matrix. Capabilities. Two implementation concepts

TEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control

CIS433/533 - Computer and Network Security Operating System Security

System Security Fundamentals

CSE543 - Introduction to Computer and Network Security. Module: Reference Monitor

Access Control Lists in Linux & Windows

CEN 559 Selected Topics in Computer Engineering. Dr. Mostafa H. Dahshan KSU CCIS

Windows Security. CSE497b - Spring 2007 Introduction Computer and Network Security Professor Jaeger.

WHITE PAPER. Understanding Windows & UNIX File Permissions on GuardianOS

CSE543 - Introduction to Computer and Network Security. Module: Operating System Security

EMC ISILON MULTIPROTOCOL DATA ACCESS WITH A UNIFIED SECURITY MODEL

Mandatory Access Control

Using NFS v4 ACLs with Samba in a multiprotocol environment

USING USER ACCESS CONTROL LISTS (ACLS) TO MANAGE FILE PERMISSIONS WITH A LENOVO NETWORK STORAGE DEVICE

Filesystem Security. General Principles

Quest ChangeAuditor 5.1. For Windows File Servers. Events Reference

Computer Security: Principles and Practice

Capability-Based Access Control

CSE 120 Principles of Operating Systems. Modules, Interfaces, Structure

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

SECURITY SUBSYSTEM IN WINDOWS

TELE 301 Lecture 7: Linux/Unix file

Chapter 7: Unix Security. Chapter 7: 1

A Survey of Access Control Policies

Windows security for n00bs part 1 Security architecture & Access Control

Security IIS Service Lesson 6

Windows Server 2003 Active Directory MST 887. Course Outline

Introduction to Computer Security

Chapter 14: Access Control Mechanisms

Computer security Lecture 3. Access control

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

The Mac OS X Server Essentials v10.5 Exam Skills Assessment Guide

Advanced Audit Policy Configurations for LT Auditor+ Reference Guide

Contents III: Contents II: Contents: Rule Set Based Access Control (RSBAC) 4.2 Model Specifics 5.2 AUTH

MCSE TestPrep: Windows NT Server 4, Second Edition Managing Resources

ELEC 377. Operating Systems. Week 1 Class 3

ChangeAuditor 6.0 For Windows File Servers. Event Reference Guide

Topic 5a Operating System Fundamentals

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

EXPLORING LINUX KERNEL: THE EASY WAY!

Chapter 6, The Operating System Machine Level

Distributed File Systems Part I. Issues in Centralized File Systems

Windows Operating Systems. Basic Security

Case Studies. Joint software development Mail 1 / 38. Case Studies Joint Software Development. Mailers

CHAPTER 15: Operating Systems: An Overview

Exam: QUESTION 1 QUESTION 2 QUESTION 3 QUESTION 4

Product Specification

Chapter 12 File Management

Chapter 12 File Management. Roadmap

ONEFS MULTIPROTOCOL SECURITY UNTANGLED

Allion Ingrasys Europe. NAStorage. Security policy under a UNIX/LINUX environment. Version 2.01

CIFS Permissions Best Practices Nasuni Corporation Natick, MA

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

CSE 265: System and Network Administration

Online Backup Client User Manual Linux

How To Write A Windows Operating System (Windows) (For Linux) (Windows 2) (Programming) (Operating System) (Permanent) (Powerbook) (Unix) (Amd64) (Win2) (X

Demonstration of Windows XP Privilege Escalation Exploit

Permissions Mapping in the Isilon OneFS File System

Acronis Backup & Recovery 11.5

SEER Enterprise Shared Database Administrator s Guide

Advanced Systems Security: Retrofitting Commercial Systems

Introduction to Computer Security

COS 318: Operating Systems. File Layout and Directories. Topics. File System Components. Steps to Open A File

Case Study: Access control 1 / 39

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

CSE 265: System and Network Administration. CSE 265: System and Network Administration

24x7 Scheduler Multi-platform Edition 5.2

1. Introduction to the UNIX File System: logical vision

ADAM 5.5. System Requirements

VP-ASP Shopping Cart QUICK START GUIDE Version th Feb 2010 Rocksalt International Pty Ltd

Overview Windows NT 4.0 Security Cryptography SSL CryptoAPI SSPI, Certificate Server, Authenticode Firewall & Proxy Server IIS Security IE Security

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

Chapter 4. Operating Systems and File Management

Operating Systems. Design and Implementation. Andrew S. Tanenbaum Melanie Rieback Arno Bakker. Vrije Universiteit Amsterdam

Outline. Operating Systems Design and Implementation. Chap 1 - Overview. What is an OS? 28/10/2014. Introduction

CMSC 421, Operating Systems. Fall Security. URL: Dr. Kalpakis

A COMPARISON BETWEEN THE SAMBA3 AND LIKEWISE LWIOD FILE SERVERS

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 2 Introducing Operating Systems

Centricity EMR Who should read these release notes? !!! Important! The installation process for this release has.

Restructuring Active Directory Domains Within a Forest

White Paper Levels of Linux Operating System Security

FreeIPA 3.3 Trust features

OPERATING SYSTEM SERVICES

ChangeAuditor 5.6. For Windows File Servers Event Reference Guide

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Using Network Attached Storage with Linux. by Andy Pepperdine

Transcription:

CSE331: Introduction to Networks and Security Lecture 34 Fall 2006

Announcements Problem with Crypto.java Look for a new Crypto.java file later today Project 4 is due Dec. 8th at midnight. Homework 3 is out: Due. Dec. 8th at the start of class Final Exam: Friday Dec. 15th 12:00--2:00 CHEM B13 CSE331 Fall 2004 2

Access Control: The Big Picture Objects - resources being protected E.g. files, devices, etc. Subjects - active entities E.g. processes, machines Permissions (or Rights) - Kinds of access requests that are monitored E.g. read, write, execute Reference monitor - mediates requests made by subjects Permits or denies access Sub Sub Sub request Reference Monitor Obj Obj Obj Obj Obj Obj Obj CSE331 Fall 2004 3

Outline OS access control mechanisms Unix File system, Setuid Windows File system, Tokens, EFS Multics (if time permits) Ring structure Some slides courtesy of John Mitchell CSE331 Fall 2004 4

Unix file security Each file has owner and group Permissions set by owner Read, write, execute Owner, group, other Represented by vector of four octal values setid Only owner, root can change permissions This privilege cannot be delegated or shared Setid bits Discuss in a few slides --- rwx rwx rwx owner group other CSE331 Fall 2004 5

Question "owner" can have fewer privileges than "other" What happens? User gets access? User does not? Prioritized resolution of differences if user = owner then owner permission else if user in group then group permission else other permission CSE331 Fall 2004 6

Effective User ID (EUID) Each process has three user IDs (+ more under Linux) Real user ID (RUID) same as the user ID of parent (unless changed) used to determine which user started the process Effective user ID (EUID) from set user ID bit on the file being executed, or sys call determines the permissions for process file access and port binding Saved user ID (SUID) So previous EUID can be restored Real group ID, effective group ID, used similarly CSE331 Fall 2004 7

Process Operations and IDs Root ID=0 for superuser root; can access any file Fork and Exec Inherit three IDs, except when executing a file with setuid bit on. Setuid system calls seteuid(newid) can set EUID to Real ID or saved ID, regardless of current EUID Any ID, if EUID=0 Details are actually more complicated Several different calls: setuid, seteuid, setruid CSE331 Fall 2004 8

Setid bits on executable Unix file Three setid bits Setuid set EUID of process to ID of file owner Setgid set EGID of process to GID of file Sticky Off: if user has write permission on directory, can rename or remove files, even if not owner On: only file owner, directory owner, and root can rename or remove file in the directory CSE331 Fall 2004 9

Example RUID 25 Owner 18 SetUID ; ; exec( ); Owner 18 -rw-r--r-- file Owner 25 -rw-r--r-- file read/write read/write program ; ; i=getruid() setuid(i); ; ; RUID 25 EUID 18 RUID 25 EUID 25 CSE331 Fall 2004 10

Setuid programming Can do anything that owner of file is allowed to do Be Careful! Root can do anything; don t get tricked (no middle ground) Principle of least privilege change EUID when root privileges no longer needed Be sure not to Take action for untrusted user Return secret data to untrusted user Setuid scripts This is a bad idea Historically, race conditions Begin executing setuid program; change contents of program before it loads and is executed CSE331 Fall 2004 11

Unix summary We re all very used to this So probably seems pretty good We overlook ways it might be better Good things Some protection from most users Flexible enough to make things possible Main bad thing Too tempting to use root privileges No way to assume some root privileges without all root privileges CSE331 Fall 2004 12

Access control in Windows (NTFS) Some basic functionality similar to Unix Specify access for groups and users Read, modify, change owner, delete Some additional concepts Tokens Security attributes Generally More flexibility than Unix Can define new permissions Can give some but not all administrator privileges CSE331 Fall 2004 13

Sample permission options SID Identity (replaces UID) SID revision number 48-bit authority value variable number of Relative Identifiers (RIDs), for uniqueness Users, groups, computers, domains, domain members all have SIDs CSE331 Fall 2004 14

Permission Inheritance Static permission inheritance (Win NT) Initially, subfolders inherit permissions of folder Folder, subfolder changed independently Replace Permissions on Subdirectories command Eliminates any differences in permissions Dynamic permission inheritance (Win 2000) Child inherits parent permission, remains linked Parent changes are inherited, except explicit settings Inherited and explicitly-set permissions may conflict Resolution rules Positive permissions are additive (take union of all permissions) Negative permission (deny access) takes priority CSE331 Fall 2004 15

Tokens Security Reference Monitor uses tokens to identify the security context of a process or thread Security context privileges, accounts, and groups associated with the process or thread Impersonation token thread uses temporarily to adopt a different security context, usually of another user Related to the EUID used in Unix. CSE331 Fall 2004 16

Security Descriptor Access Control List associated with an object Specifies who can perform what actions on the object Several fields Header Descriptor revision number Control flags, attributes of the descriptor E.g., memory layout of the descriptor SID of the object's owner SID of the primary group of the object Two attached optional lists: Discretionary Access Control List (DACL) users, groups, System Access Control List (SACL) system logs,.. CSE331 Fall 2004 17

Example access request Access token Security descriptor User: Mark Group1: Administrators Group2: Writers Revision Number Control flags Owner SID Group SID DACL Pointer SACL Pointer Deny Writers Read, Write Allow Mark Read, Write Access request: write Action: denied User Mark requests write permission Descriptor denies permission to group Reference Monitor denies request CSE331 Fall 2004 18

Impersonation Tokens Windows equivalent of setuid Process uses security attributes of another Client passes impersonation token to server Client specifies impersonation level of server Anonymous Token has no information about the client Identification server obtain the SIDs of client and client's privileges, but server cannot impersonate the client Impersonation server identify and impersonate the client Delegation lets server impersonate client on local, remote systems CSE331 Fall 2004 19

Multics Operating System Designed 1964-1967 MIT Project MAC, Bell Labs, GE At peak, ~100 Multics sites Last system, Canadian Department of Defense, Nova Scotia shut down October, 2000 Extensive Security Mechanisms Influenced many subsequent systems http://www.multicians.org/security.html E.I. Organick, The Multics System: An Examination of Its Structure, MIT Press, 1972 CSE331 Fall 2004 20

Multics time period Timesharing was new concept Serve Boston area with one 386-based PC F.J. Corbato CSE331 Fall 2004 21

Multics Innovations Segmented, Virtual memory Hardware translates virtual address to real address High-level language implementation Written in PL/1, only small part in assembly language Shared memory multiprocessor Multiple CPUs share same physical memory Relational database Multics Relational Data Store (MRDS) in 1978 Security Designed to be secure from the beginning First B2 security rating (1980s), only one for years More about government certification levels later CSE331 Fall 2004 22

Multics Access Model Ring structure A ring is a domain in which a process executes Numbered 0, 1, 2, ; Kernel is ring 0 Graduated privileges Processes at ring i have privileges of every ring j > i Segments Each data area or procedure is called a segment Segment protection b1, b2, b3 with b1 b2 b3 Process/data can be accessed from rings b1 b2 A process from rings b2 b3 can only call segment at restricted entry points CSE331 Fall 2004 23

Multics processes Multiple segments Segments are dynamically linked Linking process uses file system to find segment A segment may be shared by several processes Multiple rings Procedure, data segments each in specific ring Access depends on two mechanisms Per-Segment Access Control File author specifies the users that have access to it Concentric Rings of Protection Call or read/write segments in outer rings To access inner ring, go through a gatekeeper Interprocess communication through channels CSE331 Fall 2004 24