Docsity

Computer system security, Esercizi di Fondamenti di informatica

Toggle sidebar
bg1
1.Talk of malware food chain and make practical example
(and who had expected?)Examination of February 5, 2013
2.Describe the technique of digital signature and list all the
security features of from it, identifying which part of the
process signing / verification is crucial for individual
features.Explain the role of an X.509 certificate in this
context.
asymmetric encryption of data made with the private key of the
author,and usually data is not directly encrypted but only its summary
( digest ),use hash function.
Provide data authentication and integrity.(confidentiality without shared
secrets.)really?!!
A digital signature allows for authentication of the source and integrity of
the message, as well as non-repudiation.
The non-repudiation is associated with the idea that the private key is
known (and therefore usable) only to its rightful owner.#It follows that the
owner can not ignore a document showing marked with a signature
generated using the private key.
Message integrity is always guaranteed by the concept presented
above.#No one should be able to alter the content of a message and
generate a signature consistent without being in possession of the private
key of the signer "victim."
Authentication is also directly related to the relationship between the
private key used for signature and its owner.
In this scenario, via X.509 certificate, it is able to bind a public key
securely to a set of attributes, typically associated with an identity.#
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Anteprima parziale del testo

Scarica Computer system security e più Esercizi in PDF di Fondamenti di informatica solo su Docsity!

1.Talk of malware food chain and make practical example

(and who had expected?) Examination of February 5, 2013

2.Describe the technique of digital signature and list all the

security features of from it, identifying which part of the

process signing / verification is crucial for individual

features. Explain the role of an X.509 certificate in this

context.

asymmetric encryption of data made with the private key of the author,and usually data is not directly encrypted but only its summary ( digest ),use hash function. Provide data authentication and integrity.(confidentiality without shared secrets.)really?!! A digital signature allows for authentication of the source and integrity of the message, as well as non-repudiation. The non-repudiation is associated with the idea that the private key is known (and therefore usable) only to its rightful owner. It follows that the owner can not ignore a document showing marked with a signature generated using the private key. Message integrity is always guaranteed by the concept presented above. No one should be able to alter the content of a message and generate a signature consistent without being in possession of the private key of the signer "victim." Authentication is also directly related to the relationship between the private key used for signature and its owner. In this scenario, via X.509 certificate, it is able to bind a public key securely to a set of attributes, typically associated with an identity.

3. Describe the architecture firewall dual- homed gateway,

explain the role of each of its components and identify

advantages and disadvantages

dual-homed is one of the firewall architectures for implementing preventive security. It provides the first-line defense and protection technology for keeping untrusted bodies from compromising information security by violating trusted network space. Dual-homed gateway sets up between internal network and external network. Ad:easy to implement,small additional hardware requirements,internal network can be masqueraded. Dis:unflexible,large work overhead for gateway. Easy to be attack.

4. Compare the issues of authentication challenge

symmetric and asymmetric clearly identifying advantages

and disadvantages of each.

Symmetric challenge: challenge-response systems :a challenge (typically a random nonce) is sent to the user ...who replies the solution after a computation involving

Integrity, authentication, non-repudiation of messages: public key certificates + digital signature Confidentiality: symmetric algorithms (for content) + asymmetric algorithms (for encryption and key exchange symmetric) Authentication (user): protocols for user authentication protocols intrinsic access to MSA  symmetric algorithms: for the encryption of messages with message key  asymmetric algorithms:to encrypt and exchange the symmetric key for digital signature   use public key certificates (e g X 509) for non –repudiation  the message security is based only on the security of the UA of the recipient, not on the security of MTA (not trusted) /////////////////////////////////////Client authentication against MSA : SMTP authentication, possibly with TLS;  Authentication MSA / MTA incoming against other MTA : DKIM signing of outgoing messages from the MTA / MSA, SPF to verify what the MTA / MSA valid for a domain, SMTP authentication;  Secure e-mail from who manages the MSA / MTA / MS : formats secure email (S / MIME, PGP, etc.) to get integrity, authentication, confidentiality and non- repudiation of mail;  Client authentication for access to MS : authentication protocol for access to the MS (POP and IMAP), possibly with TLS;  Server authentication for access to MS : TLS;  Protection from email spam : client authentication against the MSA with AUTH SMTP MTA incomung validation controls with black-list (DNSBL), validation of the content of messages with black-list controls (URI DNSBL), signature of messages from incoming MTA with DKIM, SPF, greylisting techniques, avoid configurations of open mail relays. With some reservations about whether or not to put the spam ...

6. List the security features offered by a TLS channel. For

each feature explicitly indicate whether it is optional or

mandatory and which technique is implemented.

Server Authentication: compulsory and based on X. Client Authentication: optional X.509 certificate-based authentication and integrity of messages exchanged: keyed-digest (MD5, SHA1) + MID (no replay, no filtering) Privacy Posts: symmetric encryption of the data (RC2 / 4, DES, 3DES, IDEA, AES) + key exchange (DH, RSA, Fort-KeyExchange) Aut / Int / Res Message: client / server hello are exchanged with a set of algorithms NULL , so theoretically these three properties are not mandatory, but specifically you are talking in general or just content sent to channel established. //////////////////// Ok for authentication of the counterparty. For messages that I think the auth and integrity are still required and no privacy. For the handshake, which is fine at the beginning but then the algorithms are NULL authentication and integrity are mandatory and supplied

with messages Finished. Basile the correction of the laboratory seems to have said that the ciphersuite NULL_NULL_NULL exists only formally to define the security level from which one starts with the handshake but that you can not negotiate the secure channel setup. Property as optional add the perfect forward secrecy achieved using mechanisms ephemeral.

7.Talk about the mechanism of the keyed digest.

Sender sent the data in clear to receiver,and use hash

fuction to compute the digest of sent data and shared secret

key.after computation kds,send this to receiver.receiver use

hash to get the digest of received data & shared secret

key,whick is Kdr,compare.

Technique that allows for authentication and integrity of the content (with a few additional data) by the use of a single operation of calculation of the digests, carried out on the original document and a shared secret between the two parties. Only those who know the secret can compare the digest sent with the data shared. It allows for non-repudiation (who you would have with digital signature) because of the existence of the secret shared between the two parties, which makes it impossible to determine which of the two has produced data and digest (both should be trusted). On the other hand is a technique extremely fast, and therefore is suited to network transmissions. possible mistakes  if kd = H (K || M) then I can change the message adding at its end one or more blocks: kd' H (K || M || M') f (kd M')  kd' = H (K || M || M') = f (kd , M')  if kd = H (M || K) then I can change the message adding before it a suitable block:  kd = H (M' || M || K) choosi ng M' s.t. IV = f (IV, M')  protection:  insert in the digested data also the length of M  define kd = H (K || M || K)  use a standard keyed-digest

8.VPN end-to-end (same style)? , and possible

implementations.

E2E: secure channel created by IPSec in transport mode between hosts. Depending on whether you are using ESP or AH you can get different levels of protection. E2E + basic: as above with the addition of IPSec in tunnel mode between gw organization. Allows you to "customize" the level of protection obtained, thanks to the flexibility and choices taken. Soon

Packet filter : filtering decisions taken packet by packet without considering a broader context. Advantages : fast, scalable, inexpensive, transparent to applications. Disadvantages : protection by spoofing or circumvent packet fragmentation, difficult to support services that use dynamic ports, more difficult to manage (more rules because taken at a finer granularity). Circuit-level gateway : acts as a terminator and repeater communications transport layer, making decisions on the basis of the filtering of TCP / UDP communications enabled or not. Breaks the client server model. Advantages : decisions more precise filtering, allows you to authenticate the client (requires modification of applications) and to isolate the server from direct attacks (such as fragmentation attacks or TCP sull'handshake) easier to manage. Disadvantages : it introduces a delay and a certain workload due to the need to collect the entire TCP / UDP segment before deciding whether to pass it or not (though less of the application-level proxy). Both do not have the visibility on the application level and therefore do not protect against attacks that exploit application vulnerabilities. 9 - Same as Cosmos. 10 - But seriously? I do not remember them ever. For how they are used simply say what do you use for signing, key exchange, etc..

10.How to provide authentication HTTP traffic.

Possible at three distinct levels, exposing more and a greater attack surface as it rises.

  1. SSL channel: sets attacks only the library functions. It is based on authentication methods typical SSL / TLS, so based on X.509 certificate
  2. Channel HTTP attacks exposes the entire web server. It is based on HTTP authentication, in the basic version (which assumes secure channel) or digest (challenge based on symmetric)
  3. Application layer: exposes attacks the application server and is based on specific authentication mechanisms offered by the application itself. Generally authentication should be achieved at the lowest level possible (for the reasons above) and limit the spread of the id authenticated. It is also likely that the level up, attention to safety tends to decrease.

11.S-MIME indicate encryption algorithms, hashing and

signing, both mandatory and optional, and indicate how

each is used within S-MIME.

Encryption: 3DES with 3 keys, RC Digest: SHA1(preferred), MD Signature: DSA (mandatory), digest+RSA Key exchange: Diffie-Helman (obbligatorio), RSA encrypt key.

3.Server that provide a service outside should be located in the DMZ. Knowing the access mechanism and the ports that must be accedibili may be a good idea to properly configure a firewall to protect (also) the same server. 5.TLS: Security protocol-oriented communication channel. Properties of security: authentication server or servers and clients. Confidentiality of messages on the channel. authentication and message integrity. replay protection and filtering. algorithms: AES, 3DES, elliptic curves. Keywords: DH, RSA, DSA, pre-shared secrets 6!

12. Connection Hijacking. What's this? How can be

conducted n which

countermeasures can be taken. (Examination of 09/02/12)

Connection hijacking  also namedata spoofing

 attacker takes control of a communication channel to insert,

delete, or manipulat e the tra ffi c

 logical or physical MITM (Man In The Middle)

 attacks:reading, insertion of false data and modification of

data exchanged between two parties

countermeasure: authentication, integrity and serialization of each

single network packet

"Screened-host" architecture

 router:

 blocks the packets from INT to EXT unless they

come from the bastion host

 blocks the packets from EXT to INT unless they go

to the bastion host

 exception: directly enabled protocols

 bastion host:

 circuit/application level gateway to selectively enable

some services servizi

"Screened-host" architecture

 more expensive

 more flexible

 complex to manage: two systems rather one

 possible selectively relax the controls over some

services / hosts

 only the hosts/protocols passing through the

bastion can be masqueraded (unless the router

offers the NAT functionality)

I assume intends screened-host gw. protection gw Router which has the task of blocking all traffic-INT> EXT unless it comes from the bastion and EXT-> INT unless it is intended to bastion. Hopefully you can relax this configuration in the event that it becomes necessary to handle exceptions, enabling the protocols to pass in a direct way. Bastion host with functionality gw (application or circuit, depends on the choices and the

needs of the company) for selectively enabling services. Architecture expensive but flexible. Complexity management. The router is directly attachable and represents a single point of failure. If R in the NAT configuration, you can mask the internal network and protocols, otherwise be masked just how much is transported through the bastion.

A) 1 "point.))

S witch) in) order) the) most) slow) the) most) fast) i) s eguenti)

algorithms :)

AES, DES, RC4, 3DES. )

B) 1 "point.))

:) What PKCS_11) e)) which) aim) is) used. )

C) 1 "point.))

Which) technique) is) better) use) to) protect) data) transmitted) in)

the network)

by) attacks) of) type) replay?) Encryption) sym,) CIFR.) asym,)

keyed)

digest) other.) justify care)

1: Speaking of sniffing attacks, spoofing and hijacking and describe the appropriate security measures. Sniffing: This technique allows the read / intercept everything that is in transit on a channel. It is particularly easy to do in broadcast networks or having access to the transmission and routing nodes (hubs, switches). You can parry encrypting posted content (does not prevent sniffing, but at least it hides the contents). solutions architectural alternatives (non-broadcast networks) would theoretically be

In this way it is not necessary that the individual hosts implement the protocol, but you make the same gw bottlenecks. else? 5: Properties of S / MIME clear-signed indicating the appropriate algorithms used and tell if they are mandatory or optional The mode produces a clear-signed message without encryption that is associated with a signature that ensures integrity, authentication and non-repudiation. Allows you to make the message readable to anyone, and verifiable by anyone who has the necessary tools to do so. In S / MIME signature aspects are associated with DSS (or optionally digest + RSA) key exchange is left to DH (or optionally RSA) while calculating the SHA1 digest is left (preferred) or MD5. 5 and 3/4: Describe the properties of authentication and integrity HMAC over the electronic signature. The generation of a keyed-digest (such as HMAC) is based on the knowledge of a shared secret between the two (more?) Parts, so can only guarantee integrity and authentication of data, but it is not enough to get even the properties associated with non-repudiation, instead obtained with the digital signature. 6: Describe the attributes of S / MIME clear-signed indicating which are optional and describe the various encryption algorithms and keys used. Attributes? What attributes? 7: Calculate how much data must be saved to disk to perform the decryption and authentication of a large file 1kB Digest SHA-1 and RSA 1024-bit key.

Obviously the file 1Kbyte. A digest calculated on the fly using SHA-1 as verification, 160bit. The public key certificate associated with the key RSA encrypted (?) ...? 8: What do the following acronyms: DSA, RC-4, RIPEMD DSA = digital signature algorithm RC4 Ron's Code 4 = RIPEMD On my notes did not exist. Google says RACE Prime Integer Evaluation Message Digest 9: What is and what is PKCS-7? Standard for the definition of the concept of safe envelope signed and / or encrypted. Used to define the security aspects, structure and content associated with the cryptographic messages. Soon? 10: Describe a phishing attack and what are the measures to limit Attack that falls into the family of social engineering that aims to lure the victim to shadow server with the intent to steal credentials or install malicious software on the victim machine. The target is attracted to the fake server using e-mail or IM created in -hoc. To limit the effectiveness of such attacks is desirable to provide a minimum provide computer training to employees and identify standard procedures to be followed in relation to corporate security (eg specific protocols to follow, which may include dedicated teams who report suspicious situations, to lift the user from having to make decisions

Because it is based on certificates is necessary to trust in the hierarchy of certification and certification authorities, and requires sending additional messages. The client is obliged to make a signature (slow operation) in the establishment phase channel. else? 13: Give a brief description of: RC4, RSA, RIPEMD RC4 encryption algorithm working on a data stream, secret. It provides a C implementation to follow reverse engineering (ARCFOUR). I know. RSA public key encryption algorithm based on the product of prime numbers (for good) and the factorization of the first (for the wicked) be used for confidentiality and digital signature. One can also describe the entire operation. RIPEMD hash algorithm (made in Europe) that works on blocks of input 512b and 160b to produce digest. It is deemed better since there are no known weaknesses, but has not been particularly analyzed by the scientific community. I know. 14: What is an ARP spoofing attack? Synonymous with ARP poisoning. Involves poisoning the ARP cache of the victim (if you overwrite the entries using the same mechanism of ARP reply for which are accepted without query) in order to introduce false data. Can afford to complete MITM attacks (see Ettercap.) 15: Where is a crl distribution point and what does it mean? Identifies the CRL distribution points to use in the process of checking the validity of a certificate. could be a drectory entry, an e-mail or URL. else?

1 explain that so '? Your social engeneering, give an

example of this

attack, countermeasures indicate that a company can take

to

defend?

2 cos'? RADIUS, what are the safety features and which

has a role in security architecture

3 company wants to make available to Internet users, a

http service on port 8080, specify a network configuration

eo server to deliver the service safely and explain the

why? choices taken

4 describe the architecture screened homed gateway firewall

indicating

actors advantages and disadvantages

5 properties? Tls security algorithms and keys

[the praise]

6 a 28-byte message is encrypted with des-cbc: how many bytes

will be sent in total?

7 indicate errors in this sentence: I have a server that encrypts data

X.509 certificate with 2048-bit, protected by a reverse proxy that

verify the password with an algorithm RIPEMD

attack, countermeasures indicate that a company can? take to

fend

Cos'? RADIUS, what are the safety features and which

has a role in security architecture

A company wants to make available to Internet users, a

http service on port 8080, specify a network configuration

eo server to deliver the service to explain the sicuroe

why? choices taken

Describe the architecture screened homed gateway firewall

indicating

actors advantages and disadvantages

Property? Tls security algorithms and keys

A 28-byte message is encrypted with des-cbc: how many bytes

will be sent in total?

Indicate errors in this sentence: I have a server that encrypts data

X.509 certificate with 2048-bit, protected by a reverse proxy that

verify the password with an algorithm RIPEMD

So that '? Pkcs-11?

Describe a phishing attack and what are the measures to limit ...

User A wants to send a secret mess and authenticated user in b and

c,

all three have a pair of RSA keys each. Describe the format

of the data block to send the message with the required properties?

of

safety.

What are the security issues of the ICMP protocol?

Describe the technology of packet filter and describe the

advantages and limitations

Describe how the TLS client authentication: discuss

its advantages: its disadvantages.

Give a brief description of: RC4, RSA, RIPEMD

Cos and an ARP spoofing attack?

Where is a crl distribution point and what does it mean?

1. Explain what they are phishing attacks and whaling. (

points)

◦ attack based on social engineering

◦ Mechanisms: e-mail, instant messaging, keywords to attract

attention,

psychological pressure (to attract people)

◦ Purpose: To steal sensitive data or authentication credentials.

◦ fake website with the same look and feel of a trusted site (for data

capture). It attracts

the user on a site known and trusted him to subtract the data.

◦ Whaling: targeted phishing important for users with special

powers but generally with

few technical skills in terms of safety.

2. Describe the cryptographic technique called ECB identifying

advantages and disadvantages (6points).

◦ Method for applying a cryptographic algorithm to blocks of data

whose size is

greater than the basic block.

◦ Advantages: parallelizable, error propagation limited to decoding a

single

block, simple and therefore fast.

◦ Disadvantages: lends itself to known plaintext attacks, lends itself

to attacks block swapping

(Should be numbered blocks)

3. Kerberos is said to be an authentication system TTP. Explain why