Docsity

Soluzione esame Computer Network Security gennaio 2013, Prove d'esame di Sicurezza delle reti

Toggle sidebar
bg1
Short questions (no more than 5 lines per question)!
1. Which are the main characteristics of stream ciphers and of RC4 with other cipher
we have seen in class?!
From the key k we generates a keystream as long as the plaintext and we XOR the
plaintext with the plaintext to obtain the cipher text.!
RC-4 has variable key length, easy to program and fast, is synchronous, generate
apparently random permutation used as stream. Other kind of cipher are the block
ones, for example the Cipher BlockChaining where there is an initial seed that are
XORed with the first m1, then the result is encrypted and its cipher text is xored to
the next m2, and so on, so we re not working on a stream but on blocks. Only for the
first block we use directly the seed. (The difference with block ciphers is that the
encryption/decryption is on a stream and not on several blocks. )!
2. Cryptography can be used for many things. For example, it could be used to!
encrypt data to be archived on a tape for many years, or it could be used to!
protect a critical message being sent across the Internet. Are the issues of!
key selection the same or different for these two cases?!
Yes it’s different because in the second case we it’ enough to choose a key that is
secure at the moment or the close future, instead of the first case where it’s important
to take into account that the key will be still secure years and years after. After some
years something that is safe today cannot be considered still safe..so if now 128
legnht is considered safe…if we want to store it for many hers is better to use 512.!
3. MARCHETTI: Which is the main difference between a Firewall and an Intrusion
detection system?!
Firewall avoid or allow that some TCP/IP packets enter the network.!
IDS works at application layer, detect intrusion, and can block it.!
3. D’AMORE: DESCRIVERE COSA è UN BIRTHDAY ATTACK E IN QUALI
SITUAZIONI ESSO VIENE UTILIZZATO!
Birthday attack is based on the birthday paradox. Function D->R : taking randomly
sqrt(R) people of D, the possibility to find 2 of them born in the same date is higher
than 1/2. So it can be applied to the case of an Hash function and we’d find
collision. codomain of the hash function finding a collision ( same date )!
Even/Odd game!
Alice and Bob want to play the even-odd game (pari-dispari in italian), The game is
as follows:!
!1.!Alice declare whether the sum of the numbers they will choose in step 2 will
be odd or even; !
!2.!Alice and Bob each chooses a positive integer, let a and b the chosen numbers;
and !
communicate the number to the other one. If the sum of the two number has
pf3
pf4
pf5

Anteprima parziale del testo

Scarica Soluzione esame Computer Network Security gennaio 2013 e più Prove d'esame in PDF di Sicurezza delle reti solo su Docsity!

Short questions (no more than 5 lines per question)

  1. Which are the main characteristics of stream ciphers and of RC4 with other cipher we have seen in class? From the key k we generates a keystream as long as the plaintext and we XOR the plaintext with the plaintext to obtain the cipher text. RC-4 has variable key length, easy to program and fast, is synchronous, generate apparently random permutation used as stream. Other kind of cipher are the block ones, for example the Cipher BlockChaining where there is an initial seed that are XORed with the first m1, then the result is encrypted and its cipher text is xored to the next m2, and so on, so we re not working on a stream but on blocks. Only for the first block we use directly the seed. (The difference with block ciphers is that the encryption/decryption is on a stream and not on several blocks. )
  2. Cryptography can be used for many things. For example, it could be used to encrypt data to be archived on a tape for many years, or it could be used to protect a critical message being sent across the Internet. Are the issues of key selection the same or different for these two cases? Yes it’s different because in the second case we it’ enough to choose a key that is secure at the moment or the close future, instead of the first case where it’s important to take into account that the key will be still secure years and years after. After some years something that is safe today cannot be considered still safe..so if now 128 legnht is considered safe…if we want to store it for many hers is better to use 512.
  3. MARCHETTI: Which is the main difference between a Firewall and an Intrusion detection system? Firewall avoid or allow that some TCP/IP packets enter the network. IDS works at application layer, detect intrusion, and can block it.
  4. D’AMORE: DESCRIVERE COSA è UN BIRTHDAY ATTACK E IN QUALI SITUAZIONI ESSO VIENE UTILIZZATO Birthday attack is based on the birthday paradox. Function D->R : taking randomly sqrt(R) people of D, the possibility to find 2 of them born in the same date is higher than 1/2. So it can be applied to the case of an Hash function and we’d find collision. codomain of the hash function finding a collision ( same date ) Even/Odd game Alice and Bob want to play the even-odd game (pari-dispari in italian), The game is as follows:
    1. Alice declare whether the sum of the numbers they will choose in step 2 will be odd or even;
    2. Alice and Bob each chooses a positive integer, let a and b the chosen numbers; and communicate the number to the other one. If the sum of the two number has

parity equal to Alice’s choice then Alice wins; otherwise Bob wins. a. Dicuss the robustness of the protocol with respect to possible misbehaviour of Bob Bob could have 2 different function for two different values ( valOdd and ValEven ) such that f(oddVal)=f’(evenVal). b. Improve the protocol in order to make it fair (i.e. there is no possibility for Alice and Bob to cheat So to improve that, instead of using an encoding function, we use crypto Hash function. Function, cause it’s harder to find collision. Hash and number are both communicated. So the receiver can check what the adversary had chosen. Authentication 1.Present an authentication scheme between two users Alice and Bob that share a weak password that at the same time allows to define a session key as proposed in the algorithm by Diffie and Hellman. SPEKE,to avoid man in the middle, share weak password W and exchange Wamodp function. B replies Wbmodp, in so doing then we have Wabmodp

  1. Discuss why the protocol is robust even if the password is weak wrt to a dictionary attack Hard to get W: even with a weak password adv cannot verify if it is correct. IPSec
  2. Network security can be established at the network level (IPSec) and the transport layer (SSL). Comments in no more than 15 lines which are the main advantages/ disadvantages of each approach. …
  3. Describe the main aspects of AH and ESP in tunnel mode and transport mode. ESP (transport) encrypts the payload, authentication of payload, header ESP (tunnel) encrypts the payload and original IP, authentication of payload,

IPSec

  1. Network security can be established at the network level (IPSec) and the transport layer (SSL). Comments in no more than 15 lines which are the main advantages/ disadvantages of each approach. Vedere risposta precedente
  2. Describe the main aspects of AH and ESP in tunnel mode and transport mode. Sono due protocolli diversi per l’IPsec. AH fornisce solo autentication. ESP fornisce anche encryption. ESP: trasport: encrypto solo il payload tunnel: encrypto payload + original IP (ovviamente aggiungo il nuovo header ip in chiaro) In entrambi i casi, viene autenticato tutto ciò che encriptato più l’header ESP. AH: trasport e tunnel: autentico tutto tranne campi mutabili
  3. Briefly describe the following services indicating whether they are provided by AH and ESP:

- Access control ESP

- Connectionless integrity AH e ESP

- Data origin authentication AH e ESP

- Rejection of replayed packets AH e ESP

- Confidentiality ESP

Access control a. Briefly explain the main difficulties/problems in the realization of an access control policy (10 lines).

Un access control serve per garantire che operazioni su alcuni oggetti vengano fatte solo da chi ne ha diritto. Esistono diversi tipi di Access Control. In base ai problemi da risolvere si sceglie un access control diverso. Se per esempio abbiamo bisogno che gli accesi siano regolati dagli utenti usiamo un DAC, altrimenti un MAC. Ogni access control si basa su soggetti e oggetti. In un DAC i soggetti possono garantire permessi ad altri soggetti a loro discrezione. Questo da problemi di Trojan Horse. MAC invece da accesso sfruttando regole tra classi di soggetti e oggetti. Tramite delle regole ( per esempio quelle di bell-lapadula, no read up, no write down), possiamo impedire attacchi di tipo trojan horse. In MAC però un soggetto non può dare permessi ad altri utenti per esempio. b. Doctors and volunteers have login accounts to the patient record system of a city. It is desired to implement these policies: (i) a doctor has access to the records (read/write) of all the patients who are assigned to him/her, (ii) a voluteer is assigned periodically to a district, covering one or more patient addresses. She/he is assigned to at most one district at a time. At any given time, she/ he has access to the records (only read) of all the patients currently in her district. Discuss which access control method is more suitable for this case and discuss how to implement these policies, focusing particularly on the suitability of capability lists and access control lists for each one. Usiamo una role based access control. Un dottore può accedere direttamente ai dati del paziente… Ricordarsi disegnino di spaccamela