Transcription

3 The Security Architecture Security Features of the Architecture Security-related functions which handle sensitive data pervade the architecture, which implies that security needs to be considered in every aspect of the design, and must be designed in from the start (it s very difficult to bolt on security afterwards). One standard reference [1] recommends that a security architecture have the properties listed below, with annotations explaining the approach towards meeting them as used in cryptlib: Permission-based access: The default access/use permissions should be deny-all, with access or usage rights being made selectively available as required. Objects are only visible to the process which created them, although the default object access setting makes it available to every thread in the process. The reason for this is because of the requirement for ease of use having to explicitly hand an object off to another thread within the process would significantly reduce the ease of use of the architecture. For this reason the deny-all access is made configurable by the user, with the option of making an object available throughout the process or only to one thread when it is created. If the user specifies this behaviour when the object is created then only the creating thread can see the object unless it explicitly hands off control to another thread. Least privilege and isolation: Each object should operate with the least privileges possible to minimise damage due to inadvertent behaviour or malicious attack, and objects should be kept logically separate in order to reduce inadvertent or deliberate compromise of the information or capabilities they contain. These two requirements go hand in hand, since each object only has access to the minimum set of resources required to perform its task, and can only use those in a carefully controlled manner. For example if a certificate object has an encryption object attached to it, the encryption object can only be used in a manner consistent with the attributes set in the certificate object (it might be usable only for signature verification, but not for encryption or key exchange, or for the generation of a new key for the object). Complete mediation: Each object access is checked each time the object is used it s not possible to access an object without this checking, since the act of mapping an object handle to the object itself is synonymous with performing the access check. Economy of mechanism and open design: The protection system design should be as simple as possible in order to allow it to be easily checked, tested, and trusted, and should not rely on security through obscurity. To meet this requirement, the security kernel is contained in a single module, which is divided into single-purpose functions of a dozen or so lines of code which were designed and implemented using Design by Contract principles [2], making the kernel very amenable to testing using mechanical verifiers such as ADL [3]. This is covered in more detail in later chapters. Easy to use: In order to promote its use, the protection system should be as easy to use and transparent as possible to the user. In almost all cases the user isn t even aware of the presence of the security functionality, since the programming interface can be set up to function in a manner which is almost indistinguishable from the conventional collection-of-functions interface. A final requirement which is given is the separation of privilege, in which access to an object depends on more than one item such as a token and a password or encryption key. This is somewhat specific to user access to a computer system or objects on a computer system, and doesn t really apply to an encryption architecture. The architecture employs a security kernel to implement its security mechanisms. This kernel provides the interface between the outside world and the architecture s objects (intra-object security) and between the objects themselves (interobject security). The security-related functions are contained in the security kernel for the following reasons [4]: Separation: By isolating the security mechanism from the rest of the implementation, it is easier to protect them from manipulation or penetration. Unity: All security functions are performed by a single code module. Modifiability: Changes to the security mechanism are easier to make and test.

4 36 Introduction to Security Mechanisms Compactness: Because it performs only security-related functions, the security kernel is likely to be small. Coverage: Every access to a protected object is checked by the kernel. The details involved in meeting these requirements are covered in this and the following chapters Security Architecture Design Goals Just as the software architecture is based on a number of design goals, so the security architecture, in particular the cryptlib security kernel, is also built on top of a number of specific principles. These are: Separation of policy and mechanism. The policy component deals with context-specific decisions about objects and requires detailed knowledge about the semantics of each object type. The mechanism deals with the implementation and execution of an algorithm to enforce the policy. The exact context and interpretation are supplied externally by the policy component. In particular it is important that the policy not be hard-coded into the enforcement mechanism, as is the case for a number of Orange Bookbased systems. The advantage of this form of separation is that it then becomes possible to change the policy to suit individual applications (an example of which is given in the next chapter) without requiring the re-evaluation of the entire system. Verifiable design. It should be possible to apply formal verification techniques to the security-critical portion of the architecture (the security kernel) in order to provide a high degree of confidence that the security measures are implemented as intended (this is a standard Orange Book requirement for security kernels, although rarely achieved). Furthermore, it should be possible to perform this verification all the way down to the running code (this has never been achieved, for reasons covered in a later chapter). Flexible security policy. The fact that the Orange Book policy was hardcoded into the implementation has already been mentioned, a related problem was the fact that security policies and mechanisms were defined in terms of a fixed hierarchy which lead users who wanted somewhat more flexibility to try to apply the Orange Book as a Chinese menu in which they could choose one feature from column A and two from column B [5]. Since not all users require the same policy, it should be relatively easy to adapt policy details to user-specific requirements without either a great deal of effort on the part of the user or a need to re-evaluate the entire system whenever a minor policy change is made. Efficient implementation. A standard lament about security kernels built during the 1980 s was that they provided abysmal performance. It should therefore be a primary design goal for the architecture that the kernel provide a high level of performance, to the extent that the user isn t even aware of the presence of the kernel. Simplicity. A simple design is required indirectly by the Orange Book in the guise of minimising the trusted computing base, however most kernels end up being relatively complex (although still simpler than mainstream OS kernels) because of the necessity to implementation a full range of operating system services. Because cryptlib doesn t require such an extensive range of services, it should be possible to implement an extremely simple, efficient, and easy-to-verify kernel design. In particular, the decision logic implementing the systems mandatory security policy should be encapsulated in the smallest and simplest possible number of system elements. This chapter covers the security-relevant portions of the design, with later chapters covering implementation details and the manner in which the design and implementation are made verifiable. 2. Introduction to Security Mechanisms The cryptlib security architecture is built on top of a number of standard security mechanisms which have evolved over the last three decades. This section contains an overview of some of the more common ones and the sections which follow discuss the details of how these security mechanisms are employed as well as detailing some of the more specialised mechanisms which are required for cryptlib s security.

5 The Security Architecture Access Control Access control mechanisms are usually viewed in terms of an access control matrix [6] which lists active subjects (typically users of a computer system) in the rows of the matrix and passive objects (typically files and other system resources) in the columns as shown in Figure 1. Because storing the entire matrix would consume far too much space once any realistic quantity of subjects or objects is present, real systems use either the rows or the columns of the matrix for access control decisions. Implementations which use a rowbased implementation work by attaching a list of accessible objects to the subject, typically implemented using capabilities. Implementations which use a column-based implementation work by attaching a list of subjects allowed access to the object, typically implemented using access control lists (ACLs) or protection bits, a cut-down form of ACLs [7]. Object1 Object2 Object3 Subject1 Read/Write Read Execute Capability Subject2 Read Execute Subject3 Read Read ACL Figure 1: Access control matrix Capability-based systems issue capabilities or tickets to subjects which contain access rights such as read, write, or execute, and which the subject uses to demonstrate their right to access an object. Passwords are a somewhat crude form of capability which give up the fine-grained control provided by true capabilities in order to avoid requiring the user to remember and provide a different password for each object for which access is required. Capabilities have the property that they can be easily passed on to other subjects, and can limit the number of accessible objects to the minimum required to perform a specific task (for example a ticket could be issued which allowed a subject to access only the objects needed for the particular task at hand, but no more). The ease of transmission of capabilities can be an advantage but is also a disadvantage because the ability to pass them on can t be easily controlled, leading to a requirement that subjects maintain very careful control over any capabilities they possess and making revocation and access review (the ability to audit who has the ability to do what) extremely tricky. ACL-based systems allow any subject to be allowed or disallowed access to a particular object. Just as passwords are a crude form of capabilities, so protection bits are a crude form of ACL s which are easier to implement but have the disadvantage that allowing or denying access to an object on a single-subject basis is difficult or impossible (for the most commonly-encountered implementation, Unix access control bits, singlesubject control works only for the owner of the object, but not for arbitrary collections of subjects). Although groups of subjects have been proposed as a partial solution to this problem, the combinatorics of this solution make it rather unworkable, and they exhibit a single-group analog of the single-subject problem. A variation of the access-control based view of security is the information-flow based view, which assigns security levels to objects and only allows information to flow to a destination object of an equal or higher security level than that of the source object [8]. This concept is the basis for the rules in the Orange Book, discussed in more detail below. In addition there exist a number of hybrid mechanisms which combine some of the best features of capabilities and ACLs or ones which try to work around the shortcomings of one of the two, for example by using the cached result of an ACL lookup as a capability [9], by providing per-object exception lists which allow capabilities to be revoked [10], or by extending the scope of one of the two approaches to incorporate portions of the other approach [11] Reference Monitors A reference monitor is the mechanism used to control access by a set of subjects to a set of objects as depicted in Figure 2. The monitor is the subsystem which is charged with checking the legitimacy of a subjects attempts to access objects, and represents the abstraction for the control over the relationships between subjects and objects. It should have the properties that it is tamper-proof, always invoked, and

6 38 Introduction to Security Mechanisms simple enough to be open to a security analysis [12]. A reference monitor implements the mechanism part of the separation of policy and mechanism requirement. Subjects Users, processes, threads Reference monitor Objects Encryption/ signature, certificate, envelope, session, device Reference monitor database 2.3. Security Policies and Models Figure 2: Reference monitor The security policy of a system is a statement of the restrictions on access to objects and/or information transfer which a reference monitor is intended to enforce, or more generally any formal statement of a system s confidentiality, availability, or integrity requirements. The security policy implements the policy part of the separation of policy and mechanism requirement. The first widely-accepted formal security model, the Bell-LaPadula model [13], attempted to codify standard military security practices in terms of a formal computer security model. This model requires a reference monitor which enforces two security properties, the Simple Security Property and the *-Property (pronounced star-property 1 [14]) using an access control matrix as the reference monitor database. The model assigns a fixed security level to each subject and object and only allows read access to an object if the subjects security level is greater than or equal to the objects security level (the simple security property, no read up ) and only allows write access to an object if the subjects security level is less than or equal to that of the objects security level (the *-property, no write down ). The effect of the simple security property is to prevent a subject with a low-security level from reading an object with a high-security level (for example a user cleared for Secret data to read a Top Secret file). The effect of the *-property is to prevent a subject with a high security level from writing to an object with a low security level (for example a user writing Top Secret data to a file readable by someone cleared at Secret, which would allow the simple security property to be bypassed). The intent of the Bell-LaPadula model beyond the obvious one of enforcing multilevel security (MLS) controls was to address the confinement problem [15], which required preventing the damage which could be caused by trojan horse software which could transmit sensitive information owned by a legitimate user to an unauthorised outsider. In the original threat model (which was based on multiuser mainframe systems) this involved mechanisms such as writing sensitive data to a location where the outsider could access it, in a commonly-encountered more recent threat model the same goal is achieved by using Outlook Express to send it over the Internet. Other, more obscure approaches were the use of timing or covert channels, in which an insider modules certain aspects of a systems performance such as its paging rate to communicate information to an outsider. The goals of the Bell-LaPadula model were formalised in the Orange Book (more formally the Department of Defense Trusted Computer System Evaluation Criteria or TCSEC [16]), which also added a number of other requirements and various levels of conformance and evaluation testing for implementations. A modification to the roles of the simple security and *- properties produced the Biba integrity model, in which a subject is allowed to write to an object of equal or lower integrity level and read from an object of equal or higher integrity level [17]. This model (although it reverses the way in which the two properties work) has the effect on integrity which the Bell-LaPadula version had on confidentiality. This type of mandatory integrity policy suffers from the problem that most system administrators have little familiarity 1 When the model was initially being documented, no-one could think of a name so * was used as a placeholder to allow an editor to quickly find and replace any occurrences with whatever name was eventually chosen. No name was ever chosen, so the report was published with the * intact.

7 The Security Architecture 39 with its use, and there is little documented experience on applying it in practice (although what experience exists indicates that it, along with a number of other integrity policies, are awkward to manage) [18][19] Security Models after Bell-LaPadula After the Orange Book was introduced the so-called military security policy which it relied on was criticised as being unsuited for commercial applications which were often more concerned with integrity (the prevention of unauthorised data modification) than confidentiality (the prevention of unauthorised disclosure) business equate trustworthiness with signing authority, not security clearances. One of the principal reactions to this was the Clark-Wilson model whose primary target was integrity rather than confidentiality. Instead of subjects and objects, this model works with constrained data items (CDIs) which are processed by two types of procedures, transformation procedures (TPs) and integrity verification procedures (IVPs). The TP transforms the set of a CDIs from one valid state to another, and the IVP checks that all CDI s conform to the system s integrity policy [20]. The Clark-Wilson model has close parallels in the transaction-processing concept of ACID properties [21][22][23], and is applied by using the IVP to enforce the precondition that a CDI is in a valid state and then using a TP to transition it, with the postcondition that the resulting state is also valid. Another commercial policy which was targeted at integrity rather than confidentiality protection was Lipner s use of lattice-based controls to enforce the standard industry practice of separating production and development environments, with controlled promotion of programs from development to production and controls over the activities of systems programmers [24]. This type of policy was mostly just a formalisation of existing practice, although it was shown that it was possible to shoehorn the approach into a system which followed a standard MLS policy. Most other models were eventually subject to the same reinterpretation since during the 1980 s and early 1990 s it was a requirement that any new security model be shown to eventually map to Bell-LaPadula in some manner (usually via a lattice-based model, the ultimate expression of which was the Universal Lattice Machine or ULM [25]) in the same way that the US island-hopping campaign in WWII showed that you can get to Tokyo from anywhere in the Pacific if you were prepared to jump over enough islands on the way 2. Another proposed commercial policy is the Chinese Wall security policy [26][27], which is derived from standard financial institution practice which is designed to ensure that objects owned by subjects with conflicting interests are never accessible by subjects from a conflicting interest group. In the real world this policy is used to prevent problems such as insider trading from occurring. The Chinese Wall policy groups objects into conflict-of-interest classes (that is, classes containing object groups for which there is a conflict of interest between the groups) and requires that a subject with access to a group of objects in a particular conflict-of-interest class can t access any other group of objects in that class, although they can access objects in a different conflict-of-interest class. Initially the subject has access to all objects in the conflict-of-interest class, but once they commit to one particular object access to any other object in the class is denied to them. In real-world terms, a market analyst might be allowed to work with Oil Company A (from the Oil Company conflict-of-interest class) and Bank B (from the Bank conflict-of-interest class), but not Oil Company B, since this would conflict with Oil Company A from the same class. These basic models were intended to be used as general-purpose models and policies, applicable to all situations for which they were appropriate. Like other flexible objects such as rubber screwdrivers and foam rubber cricket bats, they give up some utility and practicality in exchange for their flexibility, and in practice tend to be extremely difficult to work with. The implementation problems associated in particular with the Bell-LaPadula/Orange Book model, with which implementers have the most experience, are covered in a later chapter, and newer efforts such as the Common Criteria (CC) have taken this flexibility-at-any-cost approach to a whole new level so that a vendor can do practically anything and still claim enough CC compliance to assuage the customer [28] 3. 2 Readers with too much spare time on their hands may want to try constructing a security model which requires two passes through (different views of) the lattice before arriving at Bell-LaPadula. 3 One of the problems with the CC is that it s so vague it even has a built-in metalanguage to help users try and describe what they re trying to achieve that it s difficult to make any precise statement about it, which is why it isn t

8 40 Introduction to Security Mechanisms Another problem which occurs with information-flow based models used to implement multilevel security policies is that information tends to flow up to the highest security level (a problem known as overclassification [29]), from which it is prevented from returning by the mandatory security policy. Examples of the type of problems this causes include users having to maintain multiple copies of the same data at different classification levels since once it s contaminated through access at level m it can t be moved back down to level n, the presence of inadvertent and annoying write-downs arising from the creation of temporary files and the like (multilevel secure Unix systems try to get around this with multiple virtual /tmp directories, but this doesn t really solve the problem for programs which attempt to write data to the user s home directory), problems with where a user logged in at level m isn t even made aware of the presence of at level n (when logged in at a low level a user can t see messages at high levels, and when logged in at a high level they can see messages at low levels but can t reply to them), and so on [30]. Although there have been some theoretical approaches made towards mitigating this problem [31], the standard solution is to resort to the use of trusted processes (pronounced kludges ), technically a means of providing specialised policies outside the reach of kernel controls but in practice a rug under which all problems not easily solved are swept [32]. Examples of such trusted functions include an ability to violate the *-property in the SIGMA messaging system to allow users to downgrade over-classified messages without having to manually retype them at a lower classification level (leading to users leaking data down to lower classification levels because they didn t understand the policy being applied), the ability for the user to act as if they were simultaneously at multiple security levels under Multics in order to avoid having to log out at level m and in again at level n whenever they needed to effect a change in level, and the use of non-kernel security related (NKSR) functions in KSOS and downgrading functions in the Guard message filter to allow violation of the *-property so that functions such as printing could work [33]. cryptlib contains a single such mechanism, which is required in order to exchange session keys and to save keys held in encryption contexts (which are normally inaccessible) to persistent storage. This mechanism and an explanation of its security model is covered in a later section. Alongside the general-purpose models outlined above and various other models derived from them [34][35][36], there are a number of application-specific models and adaptations which don t have the full generality of the previous models, but which in exchange offer a greatly reduced amount of implementation difficulty and complexity. Many of these adaptations came about because it was recognised that an attempt to create a one-size-fits-all model based on a particular doctrine (for example mandatory secrecy controls) didn t really work in practice, with the resulting system being both inflexible (hardcoding in a particular policy made it impossible to adapt the system to changing requirements) and unrealistic (it was very difficult to try to integrate diverse and often contradictory real-world policies to fit in with whatever policy was being used in the system at hand). As a result, more recent work has looked at creating blended security models or ones which incorporate more flexible, multi-policy mechanisms which allow the mixing and matching of features taken from a number of different models [37][38]. These multi-policy mechanisms might allow the mixing of mandatory and discretionary controls, Bell-LaPadula, Clark-Wilson, Chinese Wall, and other models, and a means of changing the policies to match changing real-world requirements when required. The cryptlib kernel implements a flexible policy of this nature through its kernel filter mechanisms which are explained in more detail in the next chapter. The entire collection of hardware, firmware, and software protection mechanisms within a computer system which is responsible for enforcing security policy is known as the trusted computing base or TCB. In order to obtain the required degree of confidence in the security of the TCB, it needs to be made compact and simple enough for its security properties to be readily verified, which provides the motivation for the use of a security kernel as discussed in the next section Security Kernels and the Separation Kernel Having covered security policies and mechanisms, we need to take a closer look at how the mechanism is to be implemented, and examine the most appropriate combination of policy and mechanism for our purposes. mentioned in this work except to say that everything presented herein is bound to be compliant to some protection profile or other.

9 The Security Architecture 41 The practical expression of the abstract concept of the reference monitor is the security kernel, the motivation for whose use is the desire to isolate all security functionality, all critical components in a single place which can then be subject to analysis and verification. Since all non-kernel software is irrelevant to security, the immense task of verifying and securing an entire system is reduced to that of securing only the kernel [39]. The kernel provides the property that it enforces security on the system as a whole without requiring the rest of the system to cooperate towards that end [40]. The particular kernel type used in cryptlib is the separation kernel in which all objects are isolated from one another. This can be viewed as a variant of the noninterference requirement, which in its original form which was intended for use with MLS systems stipulated that high-level user input couldn t interfere with low-level user output [41] but which in this case requires that no input or output interfere with any other input or output. The principles embodied in the separation kernel date back to the early 1960 s with the concept of decomposable systems, ones where the components of the system have no direct interactions or only interact with similar components [42]. A decomposable system can be decomposed into two smaller systems with non-interacting components, which can in turn be recursively decomposed into smaller and smaller systems until they can t be decomposed any further. The separation kernel itself was first formalised in 1981 (possibly by more than one author [32]) with the realisation that secure systems could be modelled as a collection of individual distributed systems (in other words a completely decomposed system) in which security is achieved through the separation of the individual components, with mediation performed by a trusted component. The separation kernel allows such a virtually distributed system to be run within a single physical system, and provides the ability to compose a single secure system from individual modules which don t necessarily need to be as secure as the system as a whole [43][44]. Separation kernels are also known as separation machines or virtual machine monitors [45][46][47]. Following the practice already mentioned earlier, the separation kernel policy was also mapped to Bell-LaPadula in 1991 [45]. The fundamental axiom of the separation kernel s security policy is the isolation policy, in which a subject can only access objects which it owns. There is no inherent concept of information sharing or security levels, which greatly simplifies many implementation details. In Orange Book terms, the separation kernel implements a number of virtual machines equal to the number of subjects, running at system high. The separation kernel ensures that there is no communication between subjects by means of shared system objects (communications may, if necessary, be established using normal communications mechanisms, but not security-relevant functions). In this model each object is labelled with the identity of the subject which owns it (in the original work on the subject these identifying attributes were presented as colours) with the only check which needs to be applied to it being a comparison for equality rather than the complex ordering required in Bell-LaPadula and other models. Subject1 Subject2 Kernel Obj1 Obj1 Obj2 Obj3 Obj2 Obj3 Regime1 Regime2 Figure 3: Separation kernel An example of a separation kernel is shown in Figure 3, in which the kernel is controlling two groups of objects (referred to as regimes in the original work) owned by two different subjects. The effect of the separation kernel is that the two subjects can t distinguish the shared environment (the concrete machine)

10 42 Introduction to Security Mechanisms from two physically separated ones with their resources dedicated to the subject (the abstract machines). The required security property for a separation kernel is that each regime s view of the concrete machine should correspond to the abstract machine, which leads to the concept of a proof of separability for separation kernels: If all communications channels between the components of a system are cut then the components of a system will become completely isolated from one another. In the original work, which assumed the use of shared objects for communication, this required a fair amount of analysis and an even longer formal proof [48], but the analysis in cryptlib s case is much simpler. Recall from the previous chapter that all inter-object communication is handled by the kernel, which uses its built-in routing capabilities to route messages to classes of objects and individual objects. In order to cut the communications channels, all we need to do is disable routing either to an entire object class (for example encryption contexts) or an individual object, which can be implemented through a trivial modification to the routing function. In this manner the complex data flow analysis required by the original method is reduced to a single modification (removing the appropriate routing information from the routing table used by the kernel routing code). An early real-life implementation of the separation kernel concept is shown in Figure 4. This configuration connects multiple untrusted workstations through a LAN, with communications mediated by trusted network interface units (TNIUs) which perform the function of the separation kernel. In order to protect communications between TNIU s, all data sent over the LAN is encrypted and MAC d by the TNIUs. The assumption made with this configuration is that the workstations are untrusted and potentially insecure, so that security is enforced by using the TNIUs to perform trusted mediation of all communication between the systems. Untrusted system Untrusted system TNIU TNIU LAN TNIU TNIU Untrusted system Untrusted system Figure 4: Separation kernel implemented using interconnected workstations The advantage of a separation kernel is that complete isolation is much easier to attain and assure than the controlled sharing required by kernels based on models such as Bell-LaPadula, and that it provides a strong foundation upon which further application-specific security policies can be constructed. The reason for this, as pointed out in the work which introduced the separation kernel, is that a lot of security problems just vanish and others are considerably simplified [43]. Another advantage of the separation model over the Bell-LaPadula one is that it appears to provide a more rigorous security model with an accompanying formal proof of security [48], while some doubts have been raised over some of the assumptions made in, and the theoretical underpinnings of, the Bell-LaPadula model [49][50] The Generalised TCB The concept of the separation kernel has been extended into that of a generalised trusted computing base (GTCB), defined as a system structured as a collection of protection domains managed by a separation kernel [51]. In the most extreme form of the GTCB, separation can be enforced through dedicated hardware, typically by implementing the separation kernel using a dedicated processor. This is the approach used in the LOCK (LOgical Coprocessor Kernel, formerly known as the Secure Ada Target or SAT, before that the

11 The Security Architecture 43 Provably Secure Operating System or PSOS, and after LOCK the Secure Network Server or SNS, this project sheds its skin every few years in order to obtain funding for the new project) machine, which uses a special coprocessor (SIDEARM, which for performance reasons may consist of more than one physical CPU) which plugs into the system backplane to adjudicate access between the system CPU and memory [52][53]. Although originally used for performance reasons, this approach also provides a high level of security since all access control decisions are made by dedicated hardware which is inaccessible to any other code running on the system. This type of implementation can be particularly appropriate in security-critical situations where the hardware in the host system isn t completely trusted. In practice this description applies (once a fine enough microscope is applied) to almost all systems, and is exacerbated by the fact that, while the software which comprises a trusted system is subject to varying levels of scrutiny, the hardware is generally treated as a black box, usually because there s no alternative available (the very few attempts to build formally verified hardware have only succeeded in demonstrating that this approach isn t really feasible [54][55]). Whereas in the 1970 s and 1980 s trusted systems, both hardware and software, were typically built by one company and could be evaluated as part of the overall system evaluation process, in the 1990 s companies have moved to using commodity hardware, usually 80x86 architecture processors, while retaining the 1970 s assumption that hardware was implicitly safe. As a result, anyone who can exploit one of the known security-relevant problem areas on a given CPU, or take advantage of a bug in a particular CPU family, or even discover a new flaw, could compromise an otherwise secure software design [56]. An example of this type of problem is the so-called unreal mode, in which a task running in real mode on an Intel CPU can address the entire 4GB address space even though it should only be able to see 1MB + 64KB (the extra 64KB is due to another slight anomaly in the way addressing is handled) [57]. Unreal mode has become so widely used after its initial discovery on the that Intel was forced to support it in all later processors, although its presence was never documented. Potential alternative avenues for exploits include the use of the undocumented ICEBP (in-circuit emulation breakpoint) instruction to drop the CPU into the little-documented ICE mode from which the system again looks like a 4GB DOS box, or the use of ICE mode or the somewhat less undocumented system management mode (SMM) to initialise the CPU into an otherwise illegal state, for example one which allows such oddities as a program running in virtual x86 mode in ring 0 [58]. This kind of trickery is possible because, when the CPU reloads the saved system state to move back into normal execution mode, it doesn t perform any checks on the saved state, allowing the loading of otherwise illegal values. Although no exploits using these types of tricks and other, similar ones are currently known, this is probably mostly due to their obscurity and the lack of demand for their use. By moving the hardware which implements the kernel out of reach of any user code, the ability of malicious users to subvert the security of the system by taking advantage of particular features of the underlying hardware is eliminated, since no user can code ever run on the hardware which performs the security functions. With a kernel whose interaction with the outside world consists entirely of message passing (that is, one which doesn t have to manage system resources such as disks, memory pages, I/O devices, and other complications), such complete isolation of the security kernel is indeed possible Implementation Complexity Issues When building a secure system for cryptographic use, there are two possible approaches which can be taken. The first is to build (or buy) a general-purpose kernel-based secure operating system and run the crypto code on top of it, and the second is to build a special-purpose kernel which is designed to provide security features which are appropriate specifically for cryptographic applications. Building the crypto code on top of an existing system is explicitly addressed by FIPS 140 [59], the one standard which specifically targets crypto modules. This requires that, where the crypto module is run on top of an operating system which is used to isolate the crypto code from other code, it be evaluated at progressively higher Orange Book levels for each FIPS 140 level, so that security level 2 would require the software module to be implemented on a C2-rated operating system. This provides something if an impedance mismatch between the actual security of equivalent hardware and software crypto module implementations, it s possible that the these security levels were set so low out of concern that setting them any higher would make it impossible to implement the higher FIPS 140 levels in software due to a lack of systems evaluated at that level. For example trying to source a B2 or more realistically B3 system to provide an adequate level of security for the crypto software is almost

12 44 Introduction to Security Mechanisms impossible (the practicality of employing an OS in this class, whose members include Trusted Xenix, XTS 300, and Multos, speaks for itself). Anther work which examines crypto software modules also recognises the need to protect the software through some form of security kernel based mechanism, but views implementation in terms of a device driver protected by an existing operating system kernel. The suggested approach is to modify an existing kernel to provide cryptographic support [60]. Two decades of experience in building high-assurance secure systems have conclusively shown that an approach which is based on the use of an application-specific rather than general-purpose kernel is the preferred one. For example in one survey of secure systems carried out during the initial burst of enthusiasm for the technology, most of the projects discussed were special-purpose filter or guard systems, and for the remaining general-purpose systems a recurring comment is of poor performance, occasional security problems, and frequent mentions of verification being left incomplete because it was too difficult (although this occurs for some of the special-purpose systems as well, and is covered in more detail in a later chapter) [61]. Although some implementors did struggle with the problem of kernel size and try to keep things as simple as possible (one paper predicted that the KSOS, SCOMP, and KVM kernels will look enormous compared to our kernel [62]), attempts to build general-purpose secure OS kernels appear to have foundered, leaving application-specific and special-purpose kernels as the best prospect for successful implementation. One of the motivations for the original separation kernel design was the observation that other kernel design efforts at the time were targeted towards producing multilevel secure operating systems on general-purpose hardware, whereas many applications which required a secure system would be adequately served by a (much easier to implement) special-purpose, single-function system. One of the features of such a single-purpose system is that its requirements are usually very different from those of a general-purpose multilevel secure one. In real-world kernels, many processes require extra privileges in order to perform their work, which is impeded by the multilevel security controls enforced by the kernel. Examples of these extra processes include print spoolers, backup software, networking software, and assorted other programs and processes involved in the day-to-day running of the system. The result of this accumulation of extra processes is that the kernel is no longer the sole arbiter of security, so that all of the extra bits and pieces which have been added to the TCB now also have to be subject to the analysis and verification process. The need for these extra trusted processes has been characterised as a mismatch between the idealisations of the multilevel security policy and the practical needs of a real user environment [63]. An application-specific system, in contrast, has no need for any of the plethora of trusted hangers-on required by a more general-purpose system, since it performs only a single task which requires no further help from other programs or processes. An example of such a system is the NRL Pump, whose function is to move data between systems of different security levels under control of a human administrator, in effect transforming multiple single-level secure systems into a virtual multilevel secure system without the pain involved in actually building an MLS system. Communication with the pump is via non-security-critical wrappers on the high and low systems, and the sole function of the pump itself is that of a secure one-way communications channel which minimises any direct or indirect communications from the high system to the low system [64][65]. Because the pump performs only a single function, the complexity of building a full Orange Book kernel is avoided, leading to a much simpler and more practical design. Another example of a special-purpose kernel is the one used in Blacker, a communications encryption device using an A1 application-specific kernel which in effect constitutes the entire operating system and acts as a mediator for interprocess communication [66]. At a time when other, general-purpose kernels were notable mostly for their lack of performance, the Blacker kernel performed at a level where its presence wasn t noticed by users when it was switched in and out of the circuit for testing purposes [67]. There is only one (known) system which uses a separation kernel in a cryptographic application, the NSA/Motorola Mathematically Analysed Separation Kernel (MASK) which is roughly contemporary with the cryptlib design and which is used in the Motorola Advanced Infosec Machine (AIM) [68][69]. The MASK kernel isolates data and threads (called strands) in separate cells, with each subject seeing only their own cell. In order to reduce the potential for subliminal channels, the kernel maintains very careful control over the use of resources such as CPU time (strands are non-preemptively multitasked, in effect making them fibers rather

13 The Security Architecture 45 than threads) and memory (a strand is allocated a fixed amount of memory which must be specified at compile time when it is activated), and has been carefully designed to avoid situations where a cell or strand can deplete kernel resources. Strands are activated in response to receiving messages from other strands, with message processing consisting of a one-way dispatch of an allocated segment to a destination under the control of the kernel [70]. The main concern for the use of MASK in AIM was its ability to establish separate cryptographic channels each with its own security level and cryptographic algorithm, although AIM also appears to implement a form of RPC mechanism between cells. Apart from the specification system used to build it [71], little else is known about the MASK design. 3. The cryptlib Security Kernel The security kernel which implements the security functions outlined earlier is the basis of the entire architecture all objects are accessed and controlled through it, and all object attributes are manipulated through it. The security kernel is implemented as an interface layer which sits on top of the objects, monitoring all accesses and handling all protection functions. The previous chapter presented the cryptlib kernel in terms of a message forwarding and routing mechanism which implements the distributed process software architectural model, but this only scratches the surface of its functionality: The kernel, whose general role is shown in Figure 5, is a full-scale Orange Book style security kernel which performs the security functions of the architecture as a whole. As was mentioned earlier, the cryptlib kernel doesn t conform to the Bell-LaPadula paradigm because the types of objects which are present in the architecture don t correspond to the Bell-LaPadula notion of an object, namely a purely passive information repository. Instead, cryptlib objects combine both passive repositories and active agents represented by invocations of the object s methods. In this type of architecture information flow is represented by the flow of messages between objects, which are the sole source of both information and control flow [72]. The security kernel, the system element charged with enforcing the systemwide security policy, acts as a filter for this message flow, examining the contents of each message and allowing it to pass through to its destination (a forward information flow) or rejecting it as inappropriate and returning an error status to the sender. The replies to messages (a backward information flow) are subject to the same scrutiny, guaranteeing the enforcement of the security contract both from sender to recipient and from recipient back to the sender. The task of the kernel/message filter is to prevent illegal information flows, as well as enforcing certain other object access controls which are covered in a later section. User App Obj1 Obj2 Obj3 Kernel Object ACL Attribute ACL Figure 5. Architecture security model The cryptlib kernel, serving as the reference monitor for a message-based architecture, has some similarities to the Trusted Mach kernel [73][74]. In both cases objects (in the Mach case these are actually tasks) communicate by passing messages via the kernel, however in the Mach kernel a task sends a message intended for another task to a message port for which the sender has send rights and the receiver has receive rights. The Mach kernel then checks the message and, if all is OK, moves it to the receiver s message queue

14 46 The cryptlib Security Kernel for which the receiver itself (rather than the kernel) is responsible for queue management. This system differs from the one used in cryptlib in that access control is based on send and receive rights to ports, leading to a number of complications as some message processing such as the queue management described above which might be better handled by the kernel is handed off to the tasks involved in the messaging. For example port rights may be transferred between the time the message is sent and the time it is received, or the port on which the message is queued may be deallocated before the message is processed, requiring extra interactions between the tasks and the kernel to resolve the problem. In addition the fact that Mach is a general-purpose operating system further complicates the message-passing semantics, since messages can be used to invoke other communications mechanisms such as kernel interface commands (KIC s) or can be used to arrange shared memory with a child process. In the cryptlib kernel, the only interobject communications mechanism is via the kernel, with no provision for alternate command and control channels or memory sharing. A similar concept is used in the integrity-lock approach to database security, in which a trusted front-end (equivalent to the cryptib kernel) mediates access between an untrusted front-end (the user) and the database back-end (the cryptlib objects) [75][76], although the main goal of the integrity-lock approach is to allow security measures to be bolted onto an existing (relatively) insecure commercial database. An alternative to having message-handling directly controlled by the kernel which has been suggested for use with object-oriented databases is for a special interface object to mediate the flow of messages to a group of objects. This scheme divides objects into protected groups and only allows communication within the group, with the exception of a single interface object which is allowed to communicate outside the group. Other objects, termed implementation objects, can only communicate within the group via the group s interface object. Inter-group communication is handled by making the interface object for one group an implementation object for a second group [77][78]. Figure 6 illustrates an example of such a scheme, with object 3 being an implementation object in group 1 and the interface object in group 2, and object 2 being the interface object for group 1. Object2 Group1 Object1 Object3 Group2 Object4 Object5 Figure 6: Access mediation via interface objects Although this provides a means of implementing security measures where none would otherwise exist, it distributes enforcement of security policy across a potentially unbounded number of interface objects, each of which have to act as a mini-kernel to enforce security measures. In contrast the cryptlib approach of using a single, centralised kernel means that it s only necessary to get it right once, and allows a far more rigorous, controlled approach to security than the distributed approach involving mediation by interface objects. A variant of this approach encapsulates objects inside a resource module (RM), an extended form of an object which controls protection, synchronisation, and resource access for network objects. The intent of a RM of this type, shown in Figure 7, is to provide a basic building block for network software systems [79]. As each message arrives, it is checked by the protection component to ensure that the type of access it is requesting is valid, has integrity checks (for example prevention of simultaneous access by multiple messages) enforced by the synchronisation component, and is finally processed by the access component.

15 The Security Architecture 47 Messages Protection Synchronisation Object state Access control Figure 7: Object resource module This approach goes even further than the use of interface objects since it makes each object/rm responsible for access control and integrity control/synchronisation. Again, with the cryptlib approach this functionality is present in the kernel which avoids the need to re-implement it (and get it right) for each individual object. Another design feature which distinguishes the cryptlib kernel from many other kernels is that it doesn t provide any ability to run user code, which vastly simplifies its implementation and the verification process since there is no need to perform much of the complicated protection and isolation which is necessary in the presence of executable code supplied by the user. Since the user can still supply data which can affect the operation of the cryptlib code this doesn t do away with the need for all checking or security measures, but it does greatly simplify the overall implementation Extended Security Policies and Models In addition to the basic message-filtering-based access control mechanism, the cryptlib kernel provides a number of other security services which can t be expressed using any of the security models presented so far. The most obvious shortcoming of the existing models is that none of them can manage the fact that some objects require a fixed ordering of accesses by subjects. For example an encryption context can t be used until a key and IV have been loaded, but none of the existing security models provides a means for expressing this requirement. In order to constrain the manner in which subjects can use an object, we require a means of specifying a sequence of operations which can be performed with the object, a mechanism first introduced in the form of transaction control expressions which can be used to enforce serialisability of operations on and with an object [80][81]. Although the original transaction control expression model required the additional property of atomicity of operation (so that either none or all of the operations of a transaction could take effect), this property isn t appropriate for the operations performed by cryptlib and isn t used. Another approach which can be used to enforce serialisation is to incorporate simple boolean expressions into the access control model to allow the requirement for certain access sequences to be expressed [82][83] or even to build sequencing controls using finite state automata encoded in state transition tables [84][85], but again these aren t really needed in cryptlib. Since cryptlib objects don t provide the capability for performing arbitrary operations, cryptlib can use a greatly simplified form of serialisability control which is tied into the object life cycle described in the next section. This takes advantage of the fact that an object is transitioned through a number of discrete states by the kernel during its life cycle so that only operations appropriate to that state can be allowed. For example when an encryption context is in the no key loaded state encryption is disallowed but a key load is possible, while an object in the key loaded state can be used for encryption but can t have a new key loaded over the top of the existing one. The same serialisability controls are used for other objects, for example a certificate can have its attributes modified before it is signed but not after it is signed. Another concept which is related to transaction control expressions is that of transaction authorisation controls, which were designed to manage the transactions which a user can perform against a database. An

16 48 The cryptlib Security Kernel example of this type of control is that a user may be authorised to run the disburse payroll transaction, but wouldn t be authorised to perform an individual payroll disbursement [86]. cryptlib includes a similar form of mechanism which is applied when lower-layer objects are controlled by higher-layer ones, for example a user might be permitted to process data through an envelope container object, but wouldn t be permitted to directly access the encryption, hashing, or signature contexts which the envelope is using to perform its task. This type of control is implicit in the way the higher-level objects work, and doesn t require any explicit mechanism support within cryptlib beside the standard security controls. With the benefit of 20/20 hindsight coming from other researchers who have spent years exploring the pitfalls which inevitably accompany any security mechanism, cryptlib takes precautions to close certain security holes which can crop up in existing designs. One of these is the general inability of ACL-based systems to constrain the use of the privilege to grant privileges, which gives capability fans something to respond with when ACL fans criticise capability-based systems on the basis that they have problems tracking which subjects have access to a given object (that is, who holds a capability). One approach to this problem has been to subdivide ACLs into two classes, regular and restricted, and to greatly constrain the modification of restricted ACLs in order to provide greater control over the distribution of access privileges, and to provide limited privilege transfer in which the access rights which are passed to another subject are only temporary [87]. Another approach is that of owner-retained access control (ORAC) or propagated access control (PAC), which gives the owner of an object full control over it and allows them to later add or revoke privileges which propagate through to any other subjects who have access to it, effectively making the controls discretionary for the owner and mandatory for everyone else [88][89]. This type of control is targeted specifically for intelligence use, in particular NOFORN and ORCON-type controls on dissemination, and would seem to have little other practical application, since it both requires the owner to act as the ultimate authority on access control decisions and gives them (or a trojan horse acting for them) the ability to allow anyone full access to an object. cryptlib objects face a more general form of this problem because of their active nature, since not only access to but also use of the object needs to be controlled. For example although there is nothing much to be gained from anyone reading the key size attribute of a private-key object (particularly since the same information is available through the public key), it is extremely undesirable for anyone to be able to repeatedly use it to generate signatures on arbitrary data. In this case anyone also includes the key owner, or at least trojan horse code acting as the owner. In order to provide a means of controlling these problem areas, the cryptlib kernel provides a number of extra ACLs which can t be easily expressed using any existing security model. These ACLs can be used to restrict the number of times an object can be used (for example a signature object might be usable to generate a single signature after which any further signature operations would be disallowed), restrict the types of operations an object can perform (for example an encryption context representing a conventional encryption algorithm might be restricted to allowing only encryption or only decryption of data), provide a dead-man timer to disable the object after a given amount of time (for example a private-key object might disable itself five minutes after it has been created to protect against problems when the user is called away from their computer after activating the object but before they can use it), and a number of other special-case circumstances. These object usage controls are rather specific to the cryptlib architecture and are relatively simple to implement since they don t require the full generality or flexibility of controls which might be needed for a general-purpose system Controls Enforced by the Kernel As the previous sections have illustrated, the cryptlib kernel enforces a number of controls adapted from a variety of security policies, as well as introducing new application-specific ones which apply specifically to the cryptlib architecture. Table 1 summaries the various types of controls and their implications and benefits, alongside some more specialised controls which are covered in later sections.

17 The Security Architecture 49 Policy Section Type Description Benefit Policy Section Type Description Benefit Policy Section Type Description Benefit Policy Section Type Description Benefit Policy Section Type Description Benefit Policy Section Type Description Benefit Separation 2.5. Security Kernels and the Separation Kernel Mandatory All objects are isolated from one another and can only communicate via the kernel Simplified implementation and the ability to use a special-purpose kernel which is very amenable to verification. No ability to run user code 3. The cryptlib Security Kernel Mandatory cryptlib is a special-purpose architecture with no need for the ability to run user-supplied code. Users can supply data to be acted upon by objects within the architecture, but can t supply executable code Vastly simplified implementation and verification Single-level object security 3. The cryptlib Security Kernel Mandatory There is no information sharing between subjects so there is no need to implement an MLS system. All objects owned by a subject are at the same security level, although object attributes and usages are effectively multilevel. Simplified implementation and verification Multilevel object attribute and object usage security 6. Object Usage Control Mandatory Objects have individual ACLs indicating how they respond to messages which affect attributes or control the use of the object from subjects or other objects. Separate controls are allowed for messages coming from subjects inside and outside the architectures security perimeter, so that any potentially risky operations on objects can be denied to subjects outside the perimeter. Serialisation of operations with objects 3.1 Extended Security Policies and Models, 4. The Object Life Cycle Mandatory The kernel controls the order in which messages may be sent to objects, ensuring that certain operations are performed in the correct sequence. Kernel-mandated control over how objects are used, removing the need for explicit checking in each objects implementation. Object usage controls 3.1 Extended Security Policies and Models Mandatory/discretionary Extended control over various types of usage such as whether an object can be used for a particular purpose and how many times an object can be used before access is disabled. Precise user control over the object so that, for example, a signing key can only be used to generate a single signature under the direct control of the user rather than an uncontrolled number of signatures under the control of a trojan horse. Table 1: Controls and policies enforced by the cryptlib kernel

18 50 The Object Life Cycle 4. The Object Life Cycle Each object goes through a series of distinct stages during its lifetime. Initially the object is created in the uninitialised state by the kernel, after which it hands it off to the object-type-specific initialisation routines to perform object-specific initialisation and set any attributes which are supplied at object creation (for example the encryption algorithm for an encryption context or the certificate type for a certificate object). The attributes which are set at object creation time can t be changed later. Once the kernel and object-specific initialisation is complete the object is in the low state, in which object attributes can be read, written, or deleted, but the object can t generally be used for its intended purpose. For example in this state a conventional encryption context can have its encryption mode and IV set, but it can t be used to encrypt data because no key is loaded. At some point the object receives a trigger message which causes the kernel to move it into the high state in which access to attributes is greatly restricted but the object can be used for its intended purpose. For the aforementioned context the trigger message would be one which loads or generates a key in the context, after which encryption with the context becomes possible but operations such as loading a new key over the top of the existing one are disallowed. The object life cycle is shown in Figure 8. As indicated by the arrows, the progression through these stages is strictly one-way, with the kernel ensuring that, like military security levels, the object progresses to higher and higher levels of security until it is eventually destroyed by the kernel at the end of its life (the pre- and post-use states which exist outside the normal concept of object states have also been described as alpha and omega states, being respectively C++ objects before their constructor is called and after their destructor is called, the object declaration before it is constructed and the carcass of an object after it has been deleted [90]). Create Object accessible by other objects Uninitialised Low High Kernel creates object Object-specific initialisation Receive trigger message Kernel destroys object Establish fixed attributes and characteristics Read/write/delete attributes Use object, restricted access to attributes Destroy Figure 8: The Object Life Cycle Similar life cycles occur with other objects, for example a certificate is transitioned into the high state when it is signed by a CA key and a session object is transitioned into the high state once a connection with a peer is established. Although the cryptlib architecture doesn t restrict the number of states to only two (low and high), in practice only these two are used in order to avoid the combinatorial explosion of states which would occur if every change in an object s internal state were to be mapped to a cryptlib state. Even something as simple as an encryption context could have states corresponding to various combinations of encryption mode set or not set, IV set or not set, and key loaded or not loaded, and the number of states attainable by more complex object types such as envelope or session container objects doesn t bear thinking about. For this reason objects are

19 The Security Architecture 51 restricted to having only two states, experience with cryptlib has shown that this is adequate for handling all eventualities Object Creation and Destruction When an object is created, it is identified to the entity which requested its creation through an arbitrary handle, an integer value which has no connection to the object s data or associated code. The handle represents an entry in an internal object table which contains information such as a pointer to the objects data and ACL information for the object. The handles into the table are allocated in a pseudorandom manner not so much for security purposes but to avoid the problem of the user freeing a handle by destroying an object and then immediately having the handle reused for the next object allocated, leading to problems if some of the user s code still expects to find the previous object accessible through the handle. If the object table is full, it is expanded to make room for more entries. Both the object table and the object data are protected through locking and ACL mechanisms. Creation of a new object proceeds as shown in Figure 9, which creates an object of the given type with the given attributes, adds an entry for it to the object table, marks it as under construction so that it can t be accessed in the incomplete state, and returns a pointer to the object data to the caller (the caller being code within cryptlib itself, the user never has access to this level of functionality). The object can also have a variety of attributes specified for its creation such as the type of memory used, for example some systems can allocate limited amounts of protected, non-pageable memory which is preferred for sensitive data such as encryption contexts. The object is now in the uninitialised state. At this point the caller can complete any object-specific initialisation, after which it sends an init complete message to the kernel which sets the object s state to normal, unlocks the object and returns its handle to the user. At this point the object is in the low state ready for use. When the object was initially created by the kernel, it set an ACL entry which marked it as being visible only within the architecture, so that the calling routine has to explicitly make it accessible outside the architecture by changing the ACL (that is, it defaults to deny-all rather than permit-all). caller requests object creation by kernel lock object table; create new object with requested type and attributes; if( object was created successfully ) add object to object table; set object state = under construction; unlock object table; caller completes object-specific initialisation caller sends initialisation complete message to kernel lock object table; set object state = normal; unlock object table; Figure 9: Object creation An object is usually destroyed by having its reference count decremented sufficiently that it drops to zero, which causes the kernel to destroy the object. Before the object itself is destroyed, any dependent objects (for example a public-key context attached to a certificate) also have their reference counts decremented, with the process continuing recursively until leaf objects are reached. Destruction of an object proceeds as shown in Figure 10, which signals any dependent objects which may be present, marks the object as being in the process of being destroyed so that it can t be accessed any more while this is in progress, sends a destroy object message to the object s message handler to allow it to perform object-specific cleanup, and finally removes the object from the kernel object table. caller requests decrement of object s reference count lock object table; decrement reference count of any dependent objects; set object state = being destroyed; unlock object table; send destroy object message to object s message handler

20 52 Object Access Control lock object table; dequeue any further messages for this object; clear entry in object table; unlock object table; Figure 10: Object destruction At this point the object s slot in the object table is ready for reuse. As has been mentioned previously, in order to avoid problems where a newly-created object would be entered into a newly-freed slot and be allocated the same handle as the previous object in that slot, leading to a potential for confusion if the users code isn t fully aware that such a replacement has taken place and that the handle now belongs to a new object, the kernel cycles through the slots to ensure that handles aren t reused for the longest time possible in the same way that Unix process IDs are cycled to give the longest possible time before ID reuse. An alternative approach, used in the LOCK kernel, is to encrypt the unique IDs (UIDs) which it uses, although this is motivated mainly by a need to eliminate the potential for covert channel signalling via UIDs (which isn t an issue with cryptlib) and by the ready availability of fast crypto hardware, which is an integral portion of the LOCK system. Note that for both object creation and object destruction the object-specific processing is performed with the object table unlocked, which ensures that if the object-specific processing takes a long time to complete or even hangs altogether, the functioning of the kernel isn t affected. 5. Object Access Control Each object within the architecture is contained entirely within its security perimeter, so that data and control information can only flow in and out in a very tightly-controlled manner, and that objects are isolated from each other within the perimeter by the security kernel. Associated with each object is a mandatory access control list (ACL) which determines who can access a particular object and under which conditions the access is allowed. Mandatory ACLs control features such as whether an object can be accessed externally (by the user) or only via other objects within the architecture (for example an encryption context associated with an envelope can only be used to encrypt data by the envelope, not by the user who owns the envelope), the way in which an object can be used (for example a private key may be usable for decryption but not for signing), and so on. A somewhat special-case ACL entry is the one which is used to determine which processes or threads can access an object. This entry is set by the object s owner either when it is created or at a later point when the security properties of the object are changed, and provides a much finer level of control than the internal/external access ACL. Since an object can be bound to a process or a thread within a process by an ACL, it will be invisible to other processes or threads, resulting in an access error if an attempt is made to access it from another process or thread. A typical example of this ACL s use is shown in Figure 11, which illustrates the case of an object created by a central server thread setting up a key in the object and then handing it off to a worker thread which uses it to encrypt or decrypt data. This model is typical of multithreaded server processes which use a core server thread to manage initial connections and then hand further communications functions off to a collection of active threads. Server thread Worker thread create object load keys Transfer ownership encrypt/decrypt Figure 11. Object ownership transfer

Reference Guide for Security in Networks This reference guide is provided to aid in understanding security concepts and their application in various network architectures. It should not be used as a template

C H A P T E R 12 System Assurance 169 The aim of system assurance is to verify that a system enforces a desired set of security goals. For example, we would like to know that a new operating system that

Secure By Default: Platforms Computing platforms contain vulnerabilities that can be exploited for malicious purposes. Often exploitation does not require a high degree of expertise, as tools and advice

Access to general objects CS 4803 Computer and Network Security Memory protection is only one example Need a way to protect more general objects Before we begin, some design principles Alexandra (Sasha)

CHAPTER 2 MODELLING FOR DISTRIBUTED NETWORK SYSTEMS: THE CLIENT- SERVER MODEL This chapter is to introduce the client-server model and its role in the development of distributed network systems. The chapter

83-10-35 A New Security Model for Networks and the Internet Dan Thomsen Payoff Computer security is a matter of controlling how data is shared for reading and modifying. Type enforcement is a new security

Review from last time CS 537 Lecture 3 OS Structure What HW structures are used by the OS? What is a system call? Michael Swift Remzi Arpaci-Dussea, Michael Swift 1 Remzi Arpaci-Dussea, Michael Swift 2

Applications of Formal Methods in Building High-Assurance Secure Systems Rance J. DeLong Computer Engineering Department Information Assurance Santa Clara University 1 Credits The work described is being

16 Example of Standard API System Call Implementation Typically, a number associated with each system call System call interface maintains a table indexed according to these numbers The system call interface

Smart Card- An Alternative to Password Authentication By Ahmad Ismadi Yazid B. Sukaimi Purpose This paper is intended to describe the benefits of smart card implementation and it combination with Public

CIS 551 / TCOM 401 Computer and Network Security Spring 2007 Lecture 6 Announcements Reminder: Send in project groups TODAY If you don't have a group, let us know. If you haven't started on the project

IY2760/CS3760: Part 6 In this part of the course we give a general introduction to network security. We introduce widely used security-specific concepts and terminology. This discussion is based primarily

The Design of a Cryptographic Security Architecture Peter Gutmann University of Auckland, New Zealand The Problem... design a versatile, multiplatform, crypto architecture Standard environment considerations

C H A P T E R 11 Secure Virtual Machine Systems A problem in building a new, secure operating system is that existing applications may not run on the new system. Operating systems define an application

CMPT 471 Networking II Firewalls Janice Regan, 2006-2013 1 Security When is a computer secure When the data and software on the computer are available on demand only to those people who should have access

Operating Systems Notice that, before you can run programs that you write in JavaScript, you need to jump through a few hoops first JavaScript interpreter Web browser menu / icon / dock??? login??? CPU,

system so that an unauthorized individual can take over an authorized session, or to disrupt service to authorized users. From a high-level standpoint, attacks on computer systems and networks can be grouped

8. Security Features Motivation Viruses, spam, trojan horses have become increasingly common in PC environment In mobile environment, new kinds of opportunities offered for malicious software Potentially

Chapter 1: Operating System Models 1 2 Operating System Models 2.1 Introduction Over the past several years, a number of trends affecting operating system design are witnessed and foremost among them is

CIS 551 / TCOM 401 Computer and Network Security Spring 2006 Lecture 7 Announcements Reminder: First Midterm is one week from today. (2/9/2006) In class, closed notes Example exam from last year will be

Chapter 9........................................ Shih planned to make a great wall by extending and enlarging preexisting walls made by previous rulers. This great wall would serve as a barricade to keep

Architecture The policy discussed suggests that the network be partitioned into several parts with guards between the various parts to prevent information from leaking from one part to another. One part

Role Based Access Control: Adoption and Implementation in the Developing World By Loy A.K. Muhwezi Master s Thesis in Computer Science Thesis number: Supervised By Dr. Martijn Oostdijk Radboud University

How do Users and Processes interact with the Operating System? Users interact indirectly through a collection of system programs that make up the operating system interface. The interface could be: A GUI,

C H A P T E R 7 Securing Commercial Operating Systems Since the discovery of the reference monitor concept during the development of Multics, there have been many projects to retrofit existing commercial

Essay 19 Architectures for MLS Database Management Systems LouAnna Notargiacomo This essay presents a survey of the basic architectures that have been used in the research and development of trusted relational

Lecture Notes (Syracuse University) Access Control: 1 Access Control 1 Overview of Access Control What is Access Control? The ability to allow only authorized users, programs or processes system or resource

1 Information Security Information & Network Security Lecture 2 David Weston Birkbeck, University of London Autumn Term 2 Security Policies 3 Introduction So you ve succeeded as SO in convincing people

Introduction Security and privacy are two of the leading issues for users when transferring important files. Keeping data on-premises makes business and IT leaders feel more secure, but comes with technical

We have to watch and listen to everything that people are doing so that we can catch terrorists, drug dealers, pedophiles, and organized criminals. Some of this data is sent unencrypted through the Internet,

Technical Standards for Information Security Measures for the Central Government Computer Systems April 21, 2011 Established by the Information Security Policy Council Table of Contents Chapter 2.1 General...

What is a Secret - and - What does that have to do with Computer Security? Ruth Nelson Information System Security 48 Hardy Avenue, Watertown, MA 02172 Abstract This paper questions some of the basic assumptions

TECHNICAL NOTE VMware Infrastructure 3 SAN Conceptual and Design Basics VMware ESX Server can be used in conjunction with a SAN (storage area network), a specialized high speed network that connects computer

The Essentials Series: Code-Signing Certificates What Are Certificates? sponsored by by Don Jones W hat Are Certificates?... 1 Digital Certificates and Asymmetric Encryption... 1 Certificates as a Form

IoT Security Platform 2 Introduction Wars begin when the costs of attack are low, the benefits for a victor are high, and there is an inability to enforce law. The same is true in cyberwars. Today there

New Security Options in DB2 for z/os Release 9 and 10 IBM has added several security improvements for DB2 (IBM s mainframe strategic database software) in these releases. Both Data Security Officers and