590 likes | 603 Views
This lecture provides an introduction to computer security integrity policies, including Biba's model, low-water-mark policy, ring policy, strict integrity policy, and Lipner's model.
E N D
October 4, 2005 Introduction to Computer Security Lecture 5 Integrity Policies INFSCI 2935: Introduction of Computer Security
Overview • Requirements • Very different than confidentiality policies • Biba’s models • Low-Water-Mark policy • Ring policy • Strict Integrity policy • Lipner’s model • Combines Bell-LaPadula, Biba • Clark-Wilson model IS2150/TEL2810: Introduction to Computer Security
Requirements of Commercial Integrity Policies (Lipner) • Users will not write their own programs, but will use existing production programs and databases. • Programmers will develop and test programs on a nonproduction system; if they need access to actual data, they will be given production data via a special process, but will use it on their development system. • A special process must be followed to install a program from the development system onto the production system. • The special process in requirement 3 must be controlled and audited. • The managers and auditors must have access to both the system state and the system logs that are generated. IS2150/TEL2810: Introduction to Computer Security
Integrity Policy: Principles of operation • Requirements induce principles of operation: • Separation of Duty: Single person should not be allowed to carry out all steps of a critical function • Moving a program from Dev. to Prod. system • Developer and Certifier (installer) of a program • Authorizing checks and cashing it • Separation of function • Do not process production data on development system • Auditing • Emphasis on recovery and accountability • Controlled/audited process for updating code on production system IS2150/TEL2810: Introduction to Computer Security
Biba’s Integrity Policy Model • Based on Bell-LaPadula • Subject, Objects • Integrity Levels with dominance relation • Higher levels • more reliable/trustworthy • More accurate • Information transfer path:Sequence of subjects, objects where • siroi • siwoi+1 IS2150/TEL2810: Introduction to Computer Security
Policies • Low-Water-Mark Policy • swo i(o) ≤i(s) prevents writing to higher level • sreadso i’(s) = min(i(s), i(o)) drops subject’s level • s1xs2 i(s2) ≤i(s1) prevents executing higher level objects • Ring Policy • sro allows any subject to read any object • swo i(o) ≤i(s) (same as above) • s1xs2 i(s2) ≤i(s1) • Biba’s Model: Strict Integrity Policy (dual of Bell-LaPadula) • sro i(s) ≤i(o) (no read-down) • swo i(o) ≤i(s) (no write-up) • s1xs2 i(s2) ≤i(s1) • Theorem for each: • If there is an information transfer path from object o1 to object on+1, then the enforcement of the policy requires that i(on+1) ≤i(o1) for all n>1 IS2150/TEL2810: Introduction to Computer Security
Lipner: Integrity Matrix • BLP + Biba to conform to commercial requirement • Security Levels • Audit: AM • Audit/management functions • System Low: SL • Everything else; any process can read information at this level • Categories • Development (not yet in production use) • Production Code (production processes and programs) • Production Data (data covered by the integrity policy) • System Development (system programs under development) • Software Tools (programs in production system not related to sensitive/protected data) • Follow Bell-LaPadula security properties IS2150/TEL2810: Introduction to Computer Security
Lipner: Integrity Matrix • Users: Clearance • Ordinary (SL,{PC, PD}) • Developers (SL,{D,T}) • System Programmers (SL,{SD, T}) • System Managers/Aud. (AM,{D,PC,PD,SD,T}) • Controllers (SL,{D,PC,PD,SD,T} + downgrade prv • Objects Classification • Development code/data (SL,{D,T}) • Production code (SL,{PC}) • Production data (SL,{PC,PD}) • Tools (SL,{T}) • System Programs (SL,) • System Program update (SL,{SD,T}) • Logs (AM, {…}) IS2150/TEL2810: Introduction to Computer Security
Check against the requirement • Users will not write their own programs, but will use existing production programs and databases. • Users have no access to T, so cannot write their own programs • Programmers will develop and test programs on a non production system; if they need access to actual data, they will be given production data via a special process, but will use it on their development system. • Applications programmers have no access to PD, so cannot access production data; if needed, it must be put into D (downgrade), requiring the system controller to intervene IS2150/TEL2810: Introduction to Computer Security
Check against the requirement • A special process must be followed to install a program from the development system onto the production system. • Installing a program requires downgrade procedure (from D to PC), so only system controllers can do it • The special process in requirement 3 must be controlled and audited. • Control: only system controllers can downgrade; audit: any such downgrading must be logged • The managers and auditors must have access to both the system state and the system logs that are generated. • System management and audit users are in AM and so have access to system state and logs IS2150/TEL2810: Introduction to Computer Security
Problem • Too inflexible • System managers cannot run programs for repairing inconsistent or erroneous production database • A program for repairing an inconsistent database cannot be application level software • An integrity issue • So add more … IS2150/TEL2810: Introduction to Computer Security
Lipner’s full modelIntroduce integrity levels • Integrity classifications (highest to lowest) • ISP (System Program): for system programs • IO (Operational): production programs, development software • ISL (System Low): users get this on log in • Integrity categories (distinguish between development and production) • ID (Development): development entities • IP (Production): production entities IS2150/TEL2810: Introduction to Computer Security
Simplify Bell-LaPadula • Reduce security categories to 3: • SP (Production): production code, data • SD (Development): same as D • SSD (System Development): same as old SD • Remove T • Earlier category T allowed application developers and system programmers to use the same programs without being able to alter those programs. • The new integrity categories distinguish between development and production, so they serve the purpose of software tools category • Collapse PC and PD into SP category IS2150/TEL2810: Introduction to Computer Security
Users and Levels IS2150/TEL2810: Introduction to Computer Security
Key Ideas for Assigning Integrity Levels to Objects • Security clearances of subjects same as without integrity levels • Ordinary users need to modify production data, so ordinary users must have write access to integrity category IP • Ordinary users must be able to write production data but not production code; integrity classes allow this IS2150/TEL2810: Introduction to Computer Security
Objects and Classifications IS2150/TEL2810: Introduction to Computer Security
S: System Managers O: Systems and Application Log (Audit Trail) (AM, { SP, SD, SSD }) (ISL, ) (SL, { SP, SD, SSD }) and downgrade privilege S: System Control (ISP, {IP, ID}) (SL, { SP }) (SL, { SSD}) (SL, { SD }) (ISL, {IP}) (ISL, {ID}) (ISL, {ID}) S: Repair S: Production Users O: Production data S: Application programmers O: Development Code/Data S: System programmers O: System code in Development (SL, { SP }) (SL, { SP }) (SL, ) (ISP, {IP}) (IO, {IP}) (IO, {ID}) O: Repair Code O: Production Code O: Software Tools (SL, ) • Additional constraints: • Production users can execute only production code • No user can be both application programmer and a production user • System control is allowed to write down (ISP, {IP, ID}) O: System programs IS2150/TEL2810: Introduction to Computer Security
Additional constraints • Production users can execute production users only • No individual can be both an application programmer and a production users • In contradiction to the *property- system controllers are allowed to write down. IS2150/TEL2810: Introduction to Computer Security
Clark-Wilson Integrity Model • Transactions as the basic operation • Integrity defined by a set of constraints • Data in a consistent or valid state when it satisfies these • Example: Bank • D today’s deposits, W withdrawals, YB yesterday’s balance, TB today’s balance • Integrity constraint: D + YB –W • Well-formed transaction • A series of operations that move system from one consistent state to another • State before transaction consistent state after transaction consistent • Issue: who examines, certifies transactions done correctly? • Separation of duty is crucial IS2150/TEL2810: Introduction to Computer Security
Clark/Wilson Model Entities • Constrained Data Items (CDI) : data subject to Integrity Control • Eg. Account balances • Integrity constraints constrain the values of the CDIs • Unconstrained Data Items (UDI): data not subject to IC • Eg. Gifts given to the account holders • Integrity Verification Procedures (IVP) • Test CDIs’ conformance to integrity constraints at the time IVPs are run (checking that accounts balance) • Transformation Procedures (TP); E.g., • Depositing money • Withdrawing money • Money transfer etc. IS2150/TEL2810: Introduction to Computer Security
Clark/Wilson:Certification/Enforcement Rules • C1: When any IVP is run, it must ensure all CDIs are in valid state • C2: A TP must transform a set of CDIs from a valid state to another valid state • TR must not be used on CDIs it is not certified for • E1: System must maintain certified relations • TP/CDI sets enforced • E2: System must control users • user/TP/CDI mappings enforced IS2150/TEL2810: Introduction to Computer Security
Clark/Wilson: Certification/Enforcement Rules • C3: Relations between (user, TP, {CDI}) must support separation of duty • E3: Users must be authenticated to execute TP • Note, unauthenticated users may manipulate UDIs • C4: All TPs must log undo information to append-only CDI (to reconstruct an operation) • C5: A TP taking a UDI as input must either reject it or transform it to a CDI • E4: Only certifier of a TP may change the list of entities associated with that TP • Enforces separation of duty: if a user could create a TP and associate some set of entities and himself with that TP, he could have the TP perform some unauthorized act IS2150/TEL2810: Introduction to Computer Security
Requirements of Commercial Integrity Policies (Lipner) • Users will not write their own programs, but will use existing production programs and databases. • Programmers will develop and test programs on a nonproduction system; if they need access to actual data, they will be given production data via a special process, but will use it on their development system. • A special process must be followed to install a program from the development system onto the production system. • The special process in requirement 3 must be controlled and audited. • The managers and auditors must have access to both the system state and the system logs that are generated. IS2150/TEL2810: Introduction to Computer Security
Comparison With Requirements • Users can’t (only trusted personnel can) certify TPs, so CR5 and ER4 enforce this • Procedural, so model doesn’t directly cover it; but special process corresponds to using TP • No technical controls can prevent programmer from developing program on production system; usual control is to delete software tools • TP does the installation, trusted personnel do certification IS2150/TEL2810: Introduction to Computer Security
Comparison With Requirements 4. CR4 provides logging; ER3 authenticates trusted personnel doing installation; CR5, ER4 control installation procedure • New program is UDI before certification, CDI (and TP) after • Log is CDI, so appropriate TP can provide managers, auditors access • Access to state handled similarly IS2150/TEL2810: Introduction to Computer Security
Summary • Integrity policies deal with trust • As trust is hard to quantify, these policies are hard to evaluate completely • Look for assumptions and trusted users to find possible weak points in their implementation • Biba, Lipner based on multilevel integrity • Clark-Wilson introduce new ideas • Commercial firms do not classify data using multilevel scheme and they enforce separation of duty • Notion of certification is different from enforcement; • enforcement rules can be enforced, • certification rules need outside intervention, and • process of certification is complex and error prone IS2150/TEL2810: Introduction to Computer Security
Hybrid Policies INFSCI 2935: Introduction of Computer Security
Chinese Wall Model • Supports confidentiality and integrity • Information can’t flow between items in a Conflict of Interest set • Applicable to environment of stock exchange or investment house • Models conflict of interest • Objects: items of information related to a company • Company dataset (CD): contains objects related to a single company • Written CD(O) • Conflict of interestclass (COI): contains datasets of companies in competition • Written COI(O) • Assume: each object belongs to exactly one COI class IS2150/TEL2810: Introduction to Computer Security
Example Bank COI Class Gasoline Company COI Class Bank of America Shell Oil Standard Oil a Bank of the West Union ’76 ARCO Citibank a IS2150/TEL2810: Introduction to Computer Security
CW-Simple Security Property (Read rule) • CW-Simple Security Property • s can read o one of the following holds • o’ PR(s) such that CD(o’) = CD(o) • o’, o’ PR(s) COI(o’) COI(o), or • o has been “sanitized” (o’ PR(s) indicates o’ has been previously read by s) • Public information may belong to a CD • As is publicly available, no conflicts of interest arise • So, should not affect ability of analysts to read • Typically, all sensitive data removed from such information before it is released publicly (called sanitization) IS2150/TEL2810: Introduction to Computer Security
Writing • Anthony, Susan work in same trading house • Anthony can read BankOfAmercia’s CD, • Susan can read CitiBanks’s CD, • Both can read ARCO’s CD • If Anthony could write to ARCO’s CD, Susan can read it • Hence, indirectly, she can read information from BankOfAmercia’s CD, a clear conflict of interest IS2150/TEL2810: Introduction to Computer Security
CW-*-Property (Write rule) • CW-*- Property • s can writeo the following holds • The CW-simple security condition permits S to read O. • For all unsanitized objects o’, s can read o’ CD(o’) = CD(o) Says that s can write to an object if all the (unsanitized) objects it can read are in the same dataset • Anthony can read both CDs hence condition 1 is met • He can read unsanitized objects of BankOfAmercia, hence condition 2 is false • Hence Anthony can’t write to objects in ARCO’s CD. IS2150/TEL2810: Introduction to Computer Security
Compare to Bell-LaPadula • Fundamentally different • CW has no security labels, B-LP does • CW has notion of past accesses, B-LP does not • Bell-LaPadula can capture state at any time • Each (COI, CD) pair gets security category • Two clearances, S (sanitized) and U (unsanitized) such that (S dom U) • Subjects assigned clearance for compartments without multiple categories corresponding to CDs in same COI class eg. If Susan can read the BankOfAmerica and ARCO CDs, her process would get clearance for compartment (U, {a, n}) IS2150/TEL2810: Introduction to Computer Security
Compare to Bell-LaPadula • Bell-LaPadula cannot track changes over time • Susan becomes ill, Anna needs to take over • C-W history lets Anna know if she can • No way for Bell-LaPadula to capture this • Access constraints change over time • Initially, subjects in C-W can read any object • Bell-LaPadula constrains set of objects that a subject can access • Can’t clear all subjects for all categories, because this violates CW-simple security condition IS2150/TEL2810: Introduction to Computer Security
Compare to Clark-Wilson • Clark-Wilson Model covers integrity, CW consider only access control aspects • If “subjects” and “processes” are interchangeable, a single person could use multiple processes to violate CW-simple security condition • If “subject” is a specific person and includes all processes the subject executes, then consistent with Clark-Wilson Model IS2150/TEL2810: Introduction to Computer Security
Access control in organizations is based on “roles that individual users take on as part of the organization” A role is “is a collection of permissions” Role Based Access Control (RBAC) IS2150/TEL2810: Introduction to Computer Security
RBAC • Access depends on function, not identity • Example: Allison is bookkeeper for Math Dept. She has access to financial records. If she leaves and Betty is hired as the new bookkeeper, Betty now has access to those records. The role of “bookkeeper” dictates access, not the identity of the individual. IS2150/TEL2810: Introduction to Computer Security
Advantages of RBAC • Allows Efficient Security Management • Administrative roles, Role hierarchy • Principle of least privilege allows minimizing damage • Separation of Duties constraints to prevent fraud • Allows grouping of objects • Policy-neutral - Provides generality • Encompasses DAC and MAC policies IS2150/TEL2810: Introduction to Computer Security
RBAC IS2150/TEL2810: Introduction to Computer Security
RBAC (NIST Standard) Permissions PA UA Users Roles Operations Objects user_sessions (one-to-many) role_sessions (many-to-many) Sessions An important difference from classical models is that Subject in other models corresponds to a Session in RBAC IS2150/TEL2810: Introduction to Computer Security
Core RBAC (relations) • Permissions = 2Operations x Objects • UA ⊆ Users x Roles • PA ⊆ Permissions x Roles • assigned_users: Roles 2Users • assigned_permissions: Roles 2Permissions • Op(p): set of operations associated with permission p • Ob(p): set of objects associated with permission p • user_sessions: Users 2Sessions • session_user: Sessions Users • session_roles: Sessions 2Roles • session_roles(s) = {r | (session_user(s), r) UA)} • avail_session_perms: Sessions 2Permissions IS2150/TEL2810: Introduction to Computer Security
RBAC with General Role Hierarchy RH (role hierarchy) Permissions PA UA Users Roles Operations Objects user_sessions (one-to-many) role_sessions (many-to-many) Sessions IS2150/TEL2810: Introduction to Computer Security
RBAC with General Role Hierarchy • authorized_users: Roles 2Users authorized_users(r) = {u | r’ ≥ r &(r’, u) UA} • authorized_permissions: Roles 2Permissions authorized_permissions(r) = {p | r ≥ r’ &(p, r’) PA} • RH ⊆ Roles x Roles is a partial order • called the inheritance relation • written as ≥. (r1 ≥ r2) authorized_users(r1) ⊆ authorized_users(r2) & authorized_permisssions(r2) ⊆ authorized_permisssions(r1) IS2150/TEL2810: Introduction to Computer Security
pp px, py px, py px, py px, py px, py px, py e1, e2 e3, e4 e5 e8, e9 e10 e6, e7 po pa, pb pm, pn px, py p1, p2 Example authorized_users(Employee)? authorized_users(Administrator)? authorized_permissions(Employee)? authorized_permissions(Administrator)? IS2150/TEL2810: Introduction to Computer Security
Constrained RBAC RH (role hierarchy) Static Separation of Duty Permissions PA UA Users Roles Operations Objects user_sessions (one-to-many) Dynamic Separation of Duty Sessions IS2150/TEL2810: Introduction to Computer Security
Static Separation of Duty • SSD ⊆2Roles x N • In absence of hierarchy • Collection of pairs (RS, n) where RS is a role set, n ≥ 2; for all (RS, n) SSD, for allt ⊆RS: |t| ≥ n ∩rtassigned_users(r)= • In presence of hierarchy • Collection of pairs (RS, n) where RS is a role set, n ≥ 2; for all (RS, n) SSD, for allt ⊆RS: |t| ≥ n ∩rtauthorized_uers(r)= IS2150/TEL2810: Introduction to Computer Security
Dynamic Separation of Duty • DSD ⊆2Roles x N • Collection of pairs (RS, n) where RS is a role set, n ≥ 2; • A user cannot activate n or more roles from RS • What if both SSD and DSD contains (RS, n)? • Consider (RS, n) = ({r1, r2, r3}, 2)? • If SSD – can r1, r2 and r3 be assigned to u? • If DSD – can r1, r2 and r3 be assigned to u? IS2150/TEL2810: Introduction to Computer Security
MAC using RBAC HR LW H Read Roles (same lattice) Write Roles (inverse lattice) M1R M2R M1W M2W M1 M2 BLP LR H L • Transformation rules • R = {L1R, L2R,…, LnR, L1W, L2W,…, LnW} • Two separate hierarchies for {L1R, L2R,…, LnR} and { L1W, L2W,…, LnW} • Each user is assigned to exactly two roles: xR and LW • Each session has exactly two roles yR and yW • Permission (o, r) is assigned to xR iff (o, w) is assigned to xW) IS2150/TEL2810: Introduction to Computer Security
RBAC’s Benefits IS2150/TEL2810: Introduction to Computer Security
Cost Benefits • Saves about 7.01 minutes per employee, per year in administrative functions • Average IT amin salary - $59.27 per hour • The annual cost saving is: • $6,924/1000; $692,471/100,000 • Reduced Employee downtime • if new transitioning employees receive their system privileges faster, their productivity is increased • 26.4 hours for non-RBAC; 14.7 hours for RBAC • For average employee wage of $39.29/hour, the annual productivity cost savings yielded by an RBAC system: • $75000/1000; $7.4M/100,000 IS2150/TEL2810: Introduction to Computer Security