Presentation is loading. Please wait.

Presentation is loading. Please wait.

Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security1 October 30, 2003 Network Security Assurance Lecture.

Similar presentations


Presentation on theme: "Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security1 October 30, 2003 Network Security Assurance Lecture."— Presentation transcript:

1 Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security1 October 30, 2003 Network Security Assurance Lecture 9

2 INFSCI 2935: Introduction to Computer Security2 ISO/OSI Model SSL: Security at Transport Layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Network Layer Data Link Layer Physical Layer Peer-to-peer Flow of bits

3 INFSCI 2935: Introduction to Computer Security3 Security at the Transport Layer Secure Socket Layer (SSL) Developed by Netscape to provide security in WWW browsers and servers Developed by Netscape to provide security in WWW browsers and servers SSL is the basis for the Internet standard protocol – Transport Layer Security (TLS) protocol (compatible with SSLv3) SSL is the basis for the Internet standard protocol – Transport Layer Security (TLS) protocol (compatible with SSLv3) Key idea: Connections and Sessions Key idea: Connections and Sessions  A SSL session is an association between two peers  An SSL connection is the set of mechanisms used to transport data in an SSL session

4 INFSCI 2935: Introduction to Computer Security4 Secure Socket Layer (SSL) Each party keeps session information Each party keeps session information  Session identifier (unique)  The peer’s X.503(v3) certificate  Compression method used to reduce volume of data  Cipher specification (parameters for cipher and MAC)  Master secret of 48 bits Connection information Connection information  Random data for the server & client  Server and client keys (used for encryption)  Server and client MAC key  Initialization vector for the cipher, if needed  Server and client sequence numbers Provides a set of supported cryptographic mechanisms that are setup during negotiation (handshake protocol) Provides a set of supported cryptographic mechanisms that are setup during negotiation (handshake protocol)

5 INFSCI 2935: Introduction to Computer Security5 SSL Architecture Provides a basis for Secure communication Confidentiality + Message authenticity

6 INFSCI 2935: Introduction to Computer Security6 SSL Record Protocol Operation e.g., HTTP messages Message type, version, length of block

7 INFSCI 2935: Introduction to Computer Security7 Handshake Protocol The most complex part of SSL The most complex part of SSL Allows the server and client to authenticate each other Allows the server and client to authenticate each other  Based on interchange cryptosystem (e.g., RSA) Negotiate encryption, MAC algorithm and cryptographic keys Negotiate encryption, MAC algorithm and cryptographic keys  Four rounds Used before any application data are transmitted Used before any application data are transmitted

8 INFSCI 2935: Introduction to Computer Security8 Other protocols SSL Change Cipher Spec Protocol SSL Change Cipher Spec Protocol  A single byte is exchanged  After new cipher parameters have been negotiated (renegotiated) SSL Alert Protocol SSL Alert Protocol  Signals an unusual condition  Closure alert : sender will not send anymore  Error alert: fatal error results in disconnect

9 INFSCI 2935: Introduction to Computer Security9 ISO/OSI Model IPSec: Security at Network Layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Network Layer Data Link Layer Physical Layer Peer-to-peer Flow of bits

10 INFSCI 2935: Introduction to Computer Security10 IPSec Set of protocols/mechanisms Set of protocols/mechanisms  Encrypts and authenticates all traffic at the IP level Protects all messages sent along a path Intermediate host with IPSec mechanism (firewall, gateway) is called a security gateway  Use on LANs, WANs, public, and private networks Application independent (Transparent to user) Application independent (Transparent to user)  Web browsing, telnet, ftp… Provides at the IP level Provides at the IP level  Access control  Connectionless integrity  Data origin authentication  Rejection of replayed packets  Data confidentiality  Limited traffic analysis confidentiality

11 INFSCI 2935: Introduction to Computer Security11 Cases where IPSec can be used Internet/ Intranet End-to-end security between two hosts Internet/ Intranet SG End-to-end security between two security gateways

12 INFSCI 2935: Introduction to Computer Security12 Cases where IPSec can be used (2) Internet SG Intranet Internet SG Intranet End-to-end security between two hosts + two gateways End-to-end security between two hosts during dial-up

13 INFSCI 2935: Introduction to Computer Security13 IPSec Protocols Authentication header (AH) protocol Authentication header (AH) protocol  Message integrity  Origin authentication  Anti-replay services Encapsulating security payload (ESP) protocol Encapsulating security payload (ESP) protocol  Confidentiality  Message integrity  Origin authentication  Anti-replay services Internet Key Exchange (IKE) Internet Key Exchange (IKE)  Exchanging keys between entities that need to communicate over the Internet  What authentication methods to use, how long to use the keys, etc.

14 INFSCI 2935: Introduction to Computer Security14 Security Association (SA) Unidirectional relationship between peers (a sender and a receiver) Unidirectional relationship between peers (a sender and a receiver) Specifies the security services provided to the traffic carried on the SA Specifies the security services provided to the traffic carried on the SA  Security enhancements to a channel along a path Identified by three parameters: Identified by three parameters:  IP Destination Address  Security Protocol Identifier Specifies whether AH or ESP is being used  Security Parameters Index (SPI) Specifies the security parameters associated with the SA

15 INFSCI 2935: Introduction to Computer Security15 Security Association (2) Each SA uses AH or ESP (not both) Each SA uses AH or ESP (not both)  If both required two are SAs are created Multiple security associations may be used to provide required security services Multiple security associations may be used to provide required security services  A sequence of security associations is called SA bundle  Example: We can have an AH protocol followed by ESP or vice versa

16 INFSCI 2935: Introduction to Computer Security16 Security Association Databases IP needs to know the SAs that exist in order to provide security services IP needs to know the SAs that exist in order to provide security services Security Policy Database (SPD) Security Policy Database (SPD)  IPSec uses SPD to handle messages  For each IP packet, it decides whether an IPSec service is provided, bypassed, or if the packet is to be discarded Security Association Database (SAD) Security Association Database (SAD)  Keeps track of the sequence number  AH information (keys, algorithms, lifetimes)  ESP information (keys, IVs, algorithms, lifetimes)  Lifetime of the SA  Protocol mode  MTU

17 INFSCI 2935: Introduction to Computer Security17 IPSec Modes Two modes Two modes  Transport mode Encapsulates IP packet data area IP Header is not protected Protection is provided for the upper layers Usually used in host-to-host communications  Tunnel mode Encapsulates entire IP packet in an IPSec envelope Helps against traffic analysis The original IP packet is untouched in the Internet

18 INFSCI 2935: Introduction to Computer Security18 Authentication Header (AH) Next header Next header  Identifies what protocol header follows Payload length Payload length  Indicates the number of 32-bit words in the authentication header Security Parameters Index Security Parameters Index  Specifies to the receiver the algorithms, type of keys, and lifetime of the keys used Sequence number Sequence number  Counter that increases with each IP packet sent from the same host to the same destination and SA Authentication Data Authentication Data Authentication Data SequenceNumber Security Parameters Index Payload length Next Header parameters

19 INFSCI 2935: Introduction to Computer Security19 Preventing replay Using 32 bit sequence numbers helps detect replay of IP packets Using 32 bit sequence numbers helps detect replay of IP packets The sender initializes a sequence number for every SA The sender initializes a sequence number for every SA  Each succeeding IP packet within a SA increments the sequence number Receiver implements a window size of W to keep track of authenticated packets Receiver implements a window size of W to keep track of authenticated packets Receiver checks the MAC to see if the packet is authentic Receiver checks the MAC to see if the packet is authentic

20 INFSCI 2935: Introduction to Computer Security20 Transport Mode AH Internet/ Intranet Original IP Header TCP Header Payload Data Without IPSec Original IP Header TCP Header Payload Data Auth Header Next Header Payload Length SPI Seq. No. MAC

21 INFSCI 2935: Introduction to Computer Security21 Tunnel Mode AH Internet SG Intranet Original IP Header TCP Header Payload Data Without IPSec Next Header Payload Length SPI Seq. No. MAC Original IP Header TCP Header Payload Data Auth Header New IP Header

22 INFSCI 2935: Introduction to Computer Security22 ESP – Encapsulating Security Payload Creates a new header in addition to the IP header Creates a new header in addition to the IP header Creates a new trailer Creates a new trailer Encrypts the payload data Encrypts the payload data Authenticates the security association Authenticates the security association Prevents replay Prevents replay Security Parameters Index (SPI) – 32 bits Sequence Number 32 bits Payload Data Padding/ Next Header Authentication Data

23 INFSCI 2935: Introduction to Computer Security23 Details of ESP Security Parameters Index (SPI) Security Parameters Index (SPI)  Specifies to the receiver the algorithms, type of keys, and lifetime of the keys used Sequence number Sequence number  Counter that increases with each IP packet sent from the same host to the same destination and SA Payload Payload  Application data carried in the TCP segment Padding Padding  0 to 255 bytes of data to enable encryption algorithms to operate properly  To mislead sniffers from estimating the amount of data transmitted Authentication Data Authentication Data  MAC created over the packet

24 INFSCI 2935: Introduction to Computer Security24 Transport mode ESP Original IP Header TCP Header Payload Data Without IPSec Original IP Header TCP Header Payload Data ESP Header ESP Trailer ESP Auth Encrypted Authenticated

25 INFSCI 2935: Introduction to Computer Security25 Tunnel mode ESP Original IP Header TCP Header Payload Data Without IPSec Encrypted Authenticated Original IP Header TCP Header Payload Data ESP Header ESP Trailer ESP Auth New IP Header

26 INFSCI 2935: Introduction to Computer Security26 Perimeter Defense Organization system consists of a network of many host machines – Organization system consists of a network of many host machines –  the system is as secure as the weakest link Use perimeter defense Use perimeter defense  Define a border and use gatekeeper (firewall) If host machines are scattered and need to use public network, use encryption If host machines are scattered and need to use public network, use encryption  Virtual Private Networks (VPNs)

27 INFSCI 2935: Introduction to Computer Security27 Perimeter Defense Is it adequate? Is it adequate?  Locating and securing all perimeter points is quite difficult Less effective for large border  Inspecting/ensuring that remote connections are adequately protected is difficult  Insiders attack is often the most damaging

28 INFSCI 2935: Introduction to Computer Security28 Firewalls Total isolation of networked systems is undesirable Total isolation of networked systems is undesirable  Use firewalls to achieve selective border control Firewall Firewall  Is a configuration of machines and software  Limits network access  Come “for free” inside many devices: routers, modems, wireless base stations etc.  Alternate: a firewall is a host that mediates access to a network, allowing and disallowing certain type of access based on a configured security policy

29 INFSCI 2935: Introduction to Computer Security29 What Firewalls can’t do They are not a panacea They are not a panacea  Only adds to defense in depth If not managed properly If not managed properly  Can provide false sense of security Cannot prevent insider attack Cannot prevent insider attack Firewalls act a particular layer (or layers) Firewalls act a particular layer (or layers)

30 INFSCI 2935: Introduction to Computer Security30 Virtual Private Networks What is it? It is a private network that is configured within a public network It is a private network that is configured within a public network A VPN “appears” to be a private national or international network to a customer A VPN “appears” to be a private national or international network to a customer The customer is actually “sharing” trunks and other physical infrastructure with other customers The customer is actually “sharing” trunks and other physical infrastructure with other customers Security? Security?

31 INFSCI 2935: Introduction to Computer Security31 What is a VPN? (2) A network that supports a closed community of authorized users A network that supports a closed community of authorized users The authorized users are allowed to access various network related resources and services The authorized users are allowed to access various network related resources and services There is traffic isolation There is traffic isolation  Contents are secure  Services and resources are secure Use the public Internet as part of the virtual private network Use the public Internet as part of the virtual private network Provide security! Provide security!  Confidentiality and integrity of data  User authentication  Network access control IPSec IPSec

32 INFSCI 2935: Introduction to Computer Security32 Secure IP VPNs Use the public Internet as part of the virtual private network Use the public Internet as part of the virtual private network Provide security! Provide security!  Confidentiality and integrity of data  User authentication  Network access control IPSec can be used IPSec can be used

33 INFSCI 2935: Introduction to Computer Security33 Tunneling in VPN

34 INFSCI 2935: Introduction to Computer Security34 “Typical” corporate network Web Server Mail forwarding Mail server DNS (internal) DNS (DMZ) Internet File Server User machines Web Server Demilitarized Zone (DMZ) Intranet Firewall

35 INFSCI 2935: Introduction to Computer Security35 Typical network: Terms Network Regions Network Regions  Internet  Intranet  DMZ Network Boundaries Network Boundaries  Firewall Filtering firewall: Based on packet headers Audit mechanism  Proxy Proxy firewall: Gives external view that hides intranet Contents of packets and messages besides attributes of packet headers

36 INFSCI 2935: Introduction to Computer Security36 Issues IP: Intranet hidden from outside world IP: Intranet hidden from outside world  Internal addresses can be real Proxy maps between real address and firewall  Fake private addresses Network Address Translation protocol maps internal addresses to the Internet addresses (inner firewall) Mail Forwarding Mail Forwarding  Hide internal addresses  Map incoming mail to “real” server  Additional incoming/outgoing checks

37 INFSCI 2935: Introduction to Computer Security37 Firewalls: Configuration External Firewall External Firewall  What traffic allowed External source: IP restrictions What type of traffic: Ports (e.g., SMTP, HTTP)  Proxy between DMZ servers and internet Internal Firewall Internal Firewall  Traffic restrictions: Ports, From/to IP  Proxy between intranet and outside

38 INFSCI 2935: Introduction to Computer Security38 DMZ Administration Direct console access required? Direct console access required?  Real hassle “Special” access “Special” access  SSH connections allowed from internal to DMZ “administration” connections  Only from specified internal IPs  Only through internal firewall

39 Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security39 Assurance

40 INFSCI 2935: Introduction to Computer Security40 Overview Trust Trust Problems from lack of assurance Problems from lack of assurance Types of assurance Types of assurance Life cycle and assurance Life cycle and assurance Waterfall life cycle model Waterfall life cycle model Other life cycle models Other life cycle models

41 INFSCI 2935: Introduction to Computer Security41 Trust Trustworthy entity has sufficient credible evidence leading one to believe that the system will meet a set of requirements Trustworthy entity has sufficient credible evidence leading one to believe that the system will meet a set of requirements Trust is a measure of trustworthiness relying on the evidence Trust is a measure of trustworthiness relying on the evidence Assurance is confidence that an entity meets its security requirements based on evidence provided by the application of assurance techniques Assurance is confidence that an entity meets its security requirements based on evidence provided by the application of assurance techniques  Formal methods, design analysis, testing etc.

42 INFSCI 2935: Introduction to Computer Security42 Relationships Evaluation standards Trusted Computer System Evaluation Criteria Information Technology Security Evaluation Criteria Common Criteria

43 INFSCI 2935: Introduction to Computer Security43 Problem Sources (Neumann) 1.Requirements definitions, omissions, and mistakes 2.System design flaws 3.Hardware implementation flaws, such as wiring and chip flaws 4.Software implementation errors, program bugs, and compiler bugs 5.System use and operation errors and inadvertent mistakes 6.Willful system misuse 7.Hardware, communication, or other equipment malfunction 8.Environmental problems, natural causes, and acts of God 9.Evolution, maintenance, faulty upgrades, and decommissions

44 INFSCI 2935: Introduction to Computer Security44 Examples Challenger explosion (1986) Challenger explosion (1986)  Sensors removed from booster rockets to meet accelerated launch schedule Deaths from faulty radiation therapy system Deaths from faulty radiation therapy system  Hardware safety interlock removed  Flaws in software design Bell V22 Osprey crashes Bell V22 Osprey crashes  Failure to correct for malfunctioning components; two faulty ones could outvote a third Intel 486 chip bug (trigonometric function) Intel 486 chip bug (trigonometric function)  Cost a lot of time and money

45 INFSCI 2935: Introduction to Computer Security45 Role of Requirements Requirements are statements of goals that must be met Requirements are statements of goals that must be met  Vary from high-level, generic issues to low- level, concrete issues Security objectives are high-level security issues and business goals Security objectives are high-level security issues and business goals Security requirements are specific, concrete issues Security requirements are specific, concrete issues

46 INFSCI 2935: Introduction to Computer Security46 Types of Assurance Policy assurance is evidence establishing security requirements in policy is complete, consistent, technically sound Policy assurance is evidence establishing security requirements in policy is complete, consistent, technically sound  To counter threats and meet objectives Design assurance is evidence establishing design sufficient to meet requirements of security policy Design assurance is evidence establishing design sufficient to meet requirements of security policy Implementation assurance is evidence establishing implementation consistent with security requirements of security policy Implementation assurance is evidence establishing implementation consistent with security requirements of security policy  Need to use good engineering practices

47 INFSCI 2935: Introduction to Computer Security47 Types of Assurance Operational assurance is evidence establishing system sustains the security policy requirements during installation, configuration, and day-to-day operation Operational assurance is evidence establishing system sustains the security policy requirements during installation, configuration, and day-to-day operation  Also called administrative assurance  Example, Do a thorough review of product or system documentation and procedures, to ensure that the system cannot accidentally be placed in a non-secure state.

48 INFSCI 2935: Introduction to Computer Security48 Assurance steps

49 INFSCI 2935: Introduction to Computer Security49 Life Cycle Conception Conception Manufacture Manufacture Deployment Deployment Fielded Product Life Fielded Product Life

50 INFSCI 2935: Introduction to Computer Security50 Conception Idea Idea  Decisions to pursue it Proof of concept Proof of concept  See if idea has merit  Rapid prototyping, analysis, etc. High-level requirements analysis High-level requirements analysis  What does “secure” mean for this concept? Identify threats  Is it possible for this concept to meet this meaning of security?  Is the organization willing to support the additional resources required to make this concept meet this meaning of security?

51 INFSCI 2935: Introduction to Computer Security51 Manufacture Develop detailed plans for each group involved Develop detailed plans for each group involved  May depend on use; internal product requires no sales  Plans: marketing, sales training, development, testing  Software development and engineering process Implement the plans to create entity Implement the plans to create entity  Includes decisions whether to proceed, for example due to market needs May be the longest stage May be the longest stage

52 INFSCI 2935: Introduction to Computer Security52 Deployment Delivery Delivery  Assure that correct (assured) masters are delivered to production and protected  Distribute to customers, sales organizations Installation and configuration Installation and configuration  Developers must ensure that the system operates properly in the production environment

53 INFSCI 2935: Introduction to Computer Security53 Fielded Product Life Routine maintenance, patching Routine maintenance, patching  Responsibility of engineering in small organizations  Responsibility may be in different group than one that manufactures product Customer service, support organizations Customer service, support organizations  Answering questions; recording bugs Retirement or decommission of product Retirement or decommission of product  Migration plans for customers

54 INFSCI 2935: Introduction to Computer Security54 Waterfall Life Cycle Model Requirements definition and analysis Requirements definition and analysis  Functional and non-functional  General (for customer), specifications System and software design System and software design Implementation and unit testing Implementation and unit testing Integration and system testing Integration and system testing Operation and maintenance Operation and maintenance

55 INFSCI 2935: Introduction to Computer Security55 Relationship of Stages

56 INFSCI 2935: Introduction to Computer Security56 Other Models of Software Development Exploratory programming Exploratory programming  Develop working system quickly  Used when detailed requirements specification cannot be formulated in advance, and adequacy is goal  No requirements or design specification, so low assurance Prototyping (Similar to Exploratory) Prototyping (Similar to Exploratory)  Objective is to establish system requirements  Future iterations (after first) allow assurance techniques

57 INFSCI 2935: Introduction to Computer Security57 Models Formal transformation Formal transformation  Create formal specification  Translate it into program using correctness- preserving transformations  Very conducive to assurance methods System assembly from reusable components System assembly from reusable components  Depends on whether components are trusted  Must assure connections, composition as well  Very complex, difficult to assure  This is common approach to building secure and trusted systems

58 INFSCI 2935: Introduction to Computer Security58 Models Extreme programming Extreme programming  Rapid prototyping and “best practices”  Project driven by business decisions  Requirements open until project complete  Programmers work in teams  Components tested, integrated several times a day  Objective is to get system into production as quickly as possible, then enhance it  Evidence adduced after development needed for assurance

59 INFSCI 2935: Introduction to Computer Security59 Key Points Assurance critical for determining trustworthiness of systems Assurance critical for determining trustworthiness of systems Different levels of assurance, from informal evidence to rigorous mathematical evidence Different levels of assurance, from informal evidence to rigorous mathematical evidence Assurance needed at all stages of system life cycle Assurance needed at all stages of system life cycle

60 INFSCI 2935: Introduction to Computer Security60


Download ppt "Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security1 October 30, 2003 Network Security Assurance Lecture."

Similar presentations


Ads by Google