Docsity

Computer Security: Security and Protection - Notes | ECS 150, Study notes of Operating Systems

Partial preview of the text

Download Computer Security: Security and Protection - Notes | ECS 150 and more Study notes Operating Systems in PDF only on Docsity!

C o Co mm pp uu tt ee rr S eSe cc uu rr ii tt yy

Goal To learn the basics of how data on computers is protected.

Security and Protection

Goals: confidentiality, integrity, availability Requirements vary from site to site; describe:

  • Orange book (DoD Trusted Computer System Evaluation Criteria)
  • Red Book (DoD Trusted Network Interpretation of the TCSEC)
  • Privacy Act all of which constrain policies at different sites

Discuss policy vs. mechanism. Our job: design mechanisms that will allow these goals to be accomplished, or think about why such mechanisms are infeasible

I s s u e s

Physical security covers access to the computer and associated equipment; controlled by badges, etc. Operational security covers polcies and procedures used to run the system, and includes:

  • access control: who can do what to each object subjects : actors objects : either passive entities or any entity (subjects too) protection domain : what objects a subject can access, and how. The basic structure is an access control matrix : objects

subjects

C - L i s t

ACL

Access^ control^ lists^ (ACLS) are the columns of the access control matrix. Capability lists (C-Lists) are the rows of the access control matrix

ACLs go down; C-lists across. Discuss capabilities:

  • the main difference is a capability is thought of as the only means to refer to an object
  • capability-based addressing: although we've talked about C- lists being for secondary storage (files, etc.) they are also used in main memory. Compare capability lists to segment tables:
    • both consist of pointers and rights
    • difference: entries in a segment table point to in-core structures (segments), but entries in a c-list point to secondary storage. So combine them: use capabilities for both in-core and secondary storage objects. That is, associate a unique capability with any object, regardless of where it is in system; the same one is used by the file manager and the memory manager.

global object table enables this. Each entry in the table points to exactly 1 object regardless of where it is; if the object moves, the table is updated. A capability is an index into this table, augmented with a set of rights. problem : must prevent users from creating capabilities. This is done in one of two ways: ( 1 ) store the capability in segments which the user's can't access ( 2 ) use a tagged architecture in which each main store location has a tag bit; if the tag bit is set, only system routines can minipulate that location. So put the capability there. example : MULTICS implements access control using access control lists in a dynamic linking environment based upon concentric protection rings:

nucleus administration system users

Each segment is assigned to a ring; the assignment is fixed, and is part of the entry in the file/directory for each segment {in practice, there is actually a bracket} A process can only access going out; ie , if a process executing in segment S in ring i tries to access segment T in ring j, the access is allowed if: ( 1 ) j ≥ i; and ( 2 ) ACL for T allows the access If i > j, an interrupt occurs, and control is passed to the system routine to verify the validity of the access.

  • keeping data unaltered ( integrity )

Cryptography

Used as a tool to augment (or replace) other security mechanisms, or where other security mechanisms infeasible ( ie , packet radio networks). Two goals: Privacy is protection against disclosure. Authentication is assurance of identity. Typical uses are to provide privacy to personal or proprietary information, and to provide assurance of its source. Two styles: Classical cryptography uses one secret key; privacy is done by keeping the key and message secret, whereas authentication is done by keeping the key secret but making the message public. Public Key cryptography uses two keys, one public, one private; privacy is done by encrypting using the recipient's public key (which she can decrypt using her private key), and authenticity is done by encrypting using the sender's private key (which anyone can decrypt using her public key). Attacks on cipher systems: ( 1 ) Ciphertext Only attack: given ciphertext, determine message (and key, if possible) ( 2 ) Corresponding Plaintext and Ciphertext attack: given ciphertext and corresponding plaintext, determine key ( 3 ) Chosen Plaintext attack: obtain ciphertext corresponding to any plaintext you choose, and then find the key.

Classical Ciphers Review briefly the concepts of types of ciphers, Cæsar ciphers, etc. here.

Public Key Ciphers Requirements: let D be private key, E public; m message, c ciphertext ( 1 ) DEm = m ( 2 ) Given E, it is “computationally infeasible” to get D ( 3 ) E cannot be determined by a chosen plaintext attack Best known is: RSA Cryptosystem ( 1 ) Pick two large prime numbers, p and q

( 2 ) Compute n = pq and φ(n) = (p-1)(q-1) (Euler's totient function)

(3) choose any d such that gcd (d, (^) f(n)) = 1 (4) find e such that ed = 1 mod (^) f(n)

One-Way Functions Describe these: noninvertible functions (like a good hash function); require: ( 1 ) Given a message m, easy to compute c = f(m); ( 2 ) Given a ciphertext c, computationally infeasible to find any m such that c = f(m) ( 3 ) Given a ciphertext c and its corresponding message m, computationally infeasible to find an m' such that c = f(m') and m' ≠ m. example : UNIX password encryption algorithm Describe it, including salt