Docsity

CRYPTOGRAPHY AND NETWORK SECURITY, Lecture notes of Cryptography and System Security

Toggle sidebar
bg1
Cryptography _chapter1
Security of information: Information is an asset that has a value like any other
asset. As an asset information needs to be secured from attacks.
Security goals: There are three primary goals in any security service. These are
confidentially, integrity and availability.
Confidentiality: The principle of confidentiality is that :only the sender and the
reciever should be able to access the contents of a message. Confidentiality
gets compromised if an unauthorized person is able to access the message.
Integrity: When the contents of a message are changed after the sender sends
it, but before it reaches the reciever, we say that the integrity of the message is
lost.
Availability
The principle of availability :is that resources should be available to authorized
parties at all times.
OSI SECURITY ARCHITECTURE
The OSI security architecture focuses on security attacks, mechanisms, and
services.These can be defined briefly as follows:
Security attack:Security attack is any action that compromises the security of
information owned by an organization.
Security mechanism
A process that is designed to detect, prevent, or recover from a security attack.
Security service
A communication service that enhances the security of the data processing
systems and the information transfers of an organization.
Threat : A threat is a possible danger that might exploit vulnerability(weakness).
Attack: Attack is an assault on system security that derives from an a deliberate
attempt to evade security services and violate the security policy of a system.
TYPES OF ATTACKS
Attacks are classified as passive and active.
A passive attack is :an attempt to learn or make use of information from the
system without affecting system resources;
Active attack is an attempt to alter system resources or affect their operation.
Passive Attacks
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download CRYPTOGRAPHY AND NETWORK SECURITY and more Lecture notes Cryptography and System Security in PDF only on Docsity!

Cryptography _chapter

Security of information: Information is an asset that has a value like any other asset. As an asset information needs to be secured from attacks.

Security goals: There are three primary goals in any security service. These are confidentially, integrity and availability.

Confidentiality: The principle of confidentiality is that : only the sender and the reciever should be able to access the contents of a message. Confidentiality gets compromised if an unauthorized person is able to access the message.

Integrity: When the contents of a message are changed after the sender sends it, but before it reaches the reciever, we say that the integrity of the message is lost.

Availability

The principle of availability : is that resources should be available to authorized parties at all times.

OSI SECURITY ARCHITECTURE

The OSI security architecture focuses on security attacks, mechanisms, and services. These can be defined briefly as follows:

Security attack: Security attack is any action that compromises the security of information owned by an organization.

Security mechanism

A process that is designed to detect, prevent, or recover from a security attack.

Security service

A communication service that enhances the security of the data processing systems and the information transfers of an organization.

Threat : A threat is a possible danger that might exploit vulnerability(weakness).

Attack: Attack is an assault on system security that derives from an a deliberate attempt to evade security services and violate the security policy of a system.

TYPES OF ATTACKS

Attacks are classified as passive and active.

A passive attack is :an attempt to learn or make use of information from the system without affecting system resources ;

Active attack is an attempt to alter system resources or affect their operation.

Passive Attacks

Passive attacks are in the nature of eavesdropping(overhearing)b, or monitoring of, transmissions. The goal of the opponent is to obtain information that is being transmitted.

Two types of passive attacks are

  • (^) release of message contents(snooping)
  • traffic analysis.
  1. The release of message contents
  2. Traffic analysis

The opponent could determine the location and identity of communicating hosts and could observe the frequency and length of messages being exchanged. This information might be useful in guessing the nature of the communication that was taking place.

eg: customer message sent to the bank to perform a transaction .attacker modifies changes the transaction.

  1. The denial of service (DOS attack)/ repudiation prevents or inhibits the normal use or management of communications facilities .This attack may have a specific target; suppress all messages directed to a particular destination .the disruption of an entire network disabling the network or by overloading it with messages so as to degrade performance.

Eg: PING flooding

Attacks Passive/active Threatening Snooping

Traffic analysis

passive confidentiality

Modification

Masquerading

Replaying

active integrity

repudiation active availability

SECURITY SERVICES.

ITU-T (International telecommunication Union) develops standards called relating to Telecommunication. X.800 is used to define general security-related architectural elements needed when protection of communication between open systems is required.

Data Confidentiality - Protection of data from unauthorized disclosure.

Confidentiality is the protection of transmitted data from passive attacks snooping and traffic anlysis. Example: when aTCP connection is set up between two systems, this broad protection prevents the release of any user data transmitted over the TCP connection. It can detect modifications (insertion, deletion,replay).

We know that,At each level two entities (N-entity) interact by means of the (N) protocol by transmitting Protocol Data Units (PDU).

Service Data Unit (SDU) is a specific unit of data that has been passed down from an OSI layer, to a lower layer.

services provided for the protection of data from unauthorized disclosure as described below:

Connection confidentiality : This service provides for the confidentiality of all (N)- user-data on an (N)-connection.

Digital Signature : sender can electronically sign the data and receiver can electronically verify the signature.

Data Integrity:

  • a checkvalue is appended to the data unit by the sender.
  • (^) reciever receives data and check value.
  • He creates a new check value for the received data and compare it received one.
  • if both check values are same, data integrity is preserved.

Access Control: these mechanisms enforce access rights to resources. Eg:passswords,PIN

Authentication Exchange : two entities can prove their identities before exchange of messages. Eg: OTP,captcha.

Traffic Padding : The insertion of bits into gaps in a data stream is called traffic padding. This helps to prevent traffic analysis attempts.

Routing Control : Routing control enables selection of secure routes for certain data transmission and allows routing changes, especially when a breach of security is suspected.

Notarization: This is the use of a trusted third party to assure certain properties of a data exchange.

SERVICES TECHNIQUES: security goals can be implemented using security service techniques which are :

cryptography (general) and steganography (specific).

Cryptography

Cryptography, a word with Greek origin, means “secret writing”.

Definition: The science and art of transforming messages to make them secure and immune to attacks.

Earlier,cryptography reffered only to the encrytion and decryption of messages using secert keys, today it is defined as involving three distinct mechanisms:

  • symmetric-key encripherment,
  • asymmetric-key encipherment
  • hashing.
  1. Symmetric-key Encipherment: (secret key cryptography)

Alice send a message to Bob, over an insecure channel with the assumption that Eve eavesdropping over the channel.

Alice encrypts the message using an encryption algorithm. Bob decrypts the message using a decryption algorithm.

Symmetric-key encipherment uses a single secret key for both encryption and decryption.

Encryption/decryption can be thought of as electronic locking system.

In symmetric-key enciphering, Alice puts the message in a box and locks the box using the shared secret key ;

Bob unlocks the box with the same key and takes out the messages.

  1. Asymmetric Encipherment :

asymmetric Encipherment same as the symmetric-key encipherment, with a few exceptions.

There two keys instead of one; one public key and one private key.

To send a secure message to Bob,

  • Alice firsts encrypts the message using Bob 2 01 Fs public key.
  • To decrypts the message, Bob uses his own private key. 3. Hashing

Integer division

If we divide a by n we get q and r.

The relationship between 4 integers can be shown using division relation as

a=q X n + r

a is called dividend , q quotient ,n is the divisor ,r the remainder

eg: in 13 divided by 2 a=13,n=2,q=5,r=

13= 5 X 2 +

Two restrictions

  1. Divisor should be positive integer (n>0)
  2. Remainder should be a non negative integer (r>=0).

Graph of the relation

  1. Case of positive a

Starting from zero we can reach point representing integer a on that line.

We need to move qxn units to right and move r units in same directions.

Eg: for 25/3 a=25 n=3 q=8 and r=

Divisibility

division relation is a=q X n + r

If a is not zero and r=0 in division relation, then

a=qxn.

when we are not Interested in the value of q the we can write the relation as n|a. (or a|n)

we can say that,

  1. (^) n divides a or
  2. n is divisor of a or
  3. (^) a is divisible by n.

Example:

All divisors :

A positive integer can have more than one divisor.

Eg: 32 has 6 divisors (1,2,4,8,16,32)

  • (^) Fact 1: The integer 1 has only one divisor, itself.
  • (^) Fact 2: Any positive integer has at least two divisors, 1 and itself (but it can have more).

Common divisors of two integers

Greatest Common Divisor

The greatest common divisor of two positive integers is the largest integer that can divide both integers.

Euclidean Algorithm

Is developed 2000 years ago by Euclid.

To find GCD of two positive integers.

Fact 1: gcd (a, 0) = a

Eg: gcd(2,0)=

Fact 2: gcd (a, b) = gcd (b, r),

where r is the remainder of dividing a by b

eg: gcd(36,10) =gcd(10,6)=gcd(6,4)=gcd(4,2)=gcd(2,0)=

so gcd(36,10) =

Process:

  • R1 and r2 are two variables which are initialized to a and b.
  • In each step we calculate remainder of r1 /r2 and save as r.
  • Replace r1 by r2 and r2 by r.
  • Continue till r2 becomes 0.

When gcd (a, b) = 1, we say that a and b are relatively prime.

  1. Find the gcd of 210 and 45

A=210, b=

q r 1 r 2 r 4 210 45 30 1 45 30 15 2 30 15 0

Gcd (a=210, b=45)= 15

  1. Find the gcd of 97 and 20

A=97, b=

q r 1 r 2 r 4 97 20 17 1 20 17 3 5 17 3 2 1 3 2 1

Gcd of 20 and 97 is 1.

Hw: gcd (2470,1760)

Extended Euclidean Algorithm

Where s and t are two integers.

The extended Euclidean algorithm can

  • calculate the gcd (a, b) and
  • at the same time calculate the value of s and t.

Process