Cryptography and Network Security - PowerPoint PPT Presentation

1 / 27
About This Presentation
Title:

Cryptography and Network Security

Description:

Impersonation by outsider. Impersonation by insider. How trusted ... Discovering session key may result in impersonation. Types of Authentication. What you know ... – PowerPoint PPT presentation

Number of Views:67
Avg rating:3.0/5.0
Slides: 28
Provided by: drla67
Category:

less

Transcript and Presenter's Notes

Title: Cryptography and Network Security


1
Cryptography and Network Security
  • Third Edition
  • by William Stallings
  • Lecture slides by Lawrie Brown
  • Modified by David Martin

2
Chapter 13 Digital Signatures Authentication
Protocols
  • To guard against the baneful influence exerted by
    strangers is therefore an elementary dictate of
    savage prudence. Hence before strangers are
    allowed to enter a district, or at least before
    they are permitted to mingle freely with the
    inhabitants, certain ceremonies are often
    performed by the natives of the country for the
    purpose of disarming the strangers of their
    magical powers, or of disinfecting, so to speak,
    the tainted atmosphere by which they are supposed
    to be surrounded.
  • The Golden Bough, Sir James George Frazer

3
Authentication Protocols
  • used to convince parties of each other's identity
    and to exchange session keys
  • based on what you know
  • may be one-way or mutual
  • key issues are
  • confidentiality to protect session keys
  • timeliness to prevent replay attacks

4
Authentication Threats
  • Impersonation by outsider
  • Impersonation by insider
  • How trusted are trusted components?
  • Dictionary attacks when passwords present
  • Eavesdropping
  • For authentication protocols that use encryption
  • Discovering session key may result in
    impersonation

5
Types of Authentication
  • What you know
  • Password
  • Secret (symmetric) key
  • Private (asymmetric) key
  • What you have
  • Smart card
  • Fingerprints, other biometrics
  • Where you are
  • Network location

6
Where you are
  • Network address authentication very common
  • rlogin, rsh, rcp
  • /.rhosts
  • /etc/hosts.equiv
  • Use of DNS
  • NFS /etc/exports
  • TCP wrappers
  • Web servers
  • /etc/hosts.allow, /etc/hosts.deny
  • Firewalls
  • Good use of defense in depth, but not enough

7
HTTP Basic Authentication
  • Plaintext login/password
  • telnet, ftp
  • HTTP Basic Authentication
  • A ? S GET / HTTP/1.0
  • A ? S 401 Unauthorized WWW-Authenticate Basic
    realmCS
  • A ? S GET / HTTP/1.0 Authorization Basic
    QWxhZGRpbjpvcGVuIHNlc2FtZQ
  • Criticize this "improvement"
  • A ? S IDa, h(IDa,Kas), command
  • A ? S response to command

8
Replay Attacks
  • where a valid signed message is copied and later
    resent
  • simple replay
  • repetition that can be detected (within
    acceptable time)
  • repetition that cannot be detected
    (suppress-replay)
  • reflection (to sender) without modification
  • countermeasures include
  • challenge/response (using unique nonce)
  • use of sequence numbers (generally impractical)
  • timestamps (needs synchronized clocks)

9
Reflection attack
  • Mutual authentication
  • A ? B IDa, Na
  • A ? B Nb , f(Kab, Na )
  • A ? B f(Kab, Nb )
  • Prescription break symmetry

10
Digital Signatures
  • have looked at MACs
  • but does not address issues of trust mismatch
  • digital signatures provide the ability to
  • verify author, date time of signature
  • authenticate message contents
  • be verified by third parties to resolve disputes
  • hence include authentication function with
    additional capabilities

11
Digital Signature Properties
  • must depend on the message signed
  • must use information unique to sender
  • to prevent both forgery and denial
  • must be relatively easy to produce
  • must be relatively easy to recognize verify
  • be computationally infeasible to forge
  • with new message for existing digital signature
  • with fraudulent digital signature for given
    message
  • be practical save digital signature in storage

12
Using Symmetric Encryption
  • as discussed previously can use a two-level
    hierarchy of keys
  • usually with a trusted Key Distribution Center
    (KDC)
  • each party shares own master key with KDC
  • KDC generates session keys used for connections
    between parties
  • master keys used to distribute these to them

13
Needham-Schroeder Protocol
  • original third-party key distribution protocol
  • for session between A B mediated by KDC
  • protocol overview is
  • 1. A?KDC IDA IDB N1
  • 2. A?KDC EKaKs IDB N1 EKbKsIDA
  • 3. A?B EKbKsIDA
  • 4. A?B EKsN2
  • 5. A?B EKsf(N2)

14
Needham-Schroeder, again
15
Needham-Schroeder Protocol
  • used to securely distribute a new session key for
    communications between A B
  • session key used for enduring authentication
  • but is vulnerable to a replay attack if an old
    session key has been compromised
  • then message 3 can be resent convincing B that is
    communicating with A
  • modifications to address this require
  • timestamps (Denning 81)
  • using an extra nonce (Neuman 93)

16
Using Public-Key Encryption
  • have a range of approaches based on the use of
    public-key encryption
  • need to ensure you have correct public keys for
    other parties
  • using a central Authentication Server (AS)
  • various protocols exist using timestamps or nonces

17
Denning AS Protocol
  • Denning 81 presented the following
  • 1. A?AS IDA IDB
  • 2. A?AS EKRasIDAKUaT EKRasIDBKUbT
  • 3. A?B EKRasIDAKUaT EKRasIDBKUbT
    EKUbEKRaKsT
  • 4. A?B EKs message
  • uses certificates
  • note session key is chosen by A, hence AS need
    not be trusted to protect it
  • timestamps prevent replay but require
    synchronized clocks

18
Forward Secrecy
  • Denning protocol can be summarized as
  • Client chooses session key, signs, encrypts,
    transmits to server
  • AS provides certificates in case they are needed
  • Timestamps prevent replay
  • Anyone knowing Bob's private key can decrypt
    multiple sessions
  • Forward secrecy is the lack of this property
  • In other words, a long-term key should not reveal
    short-term keys
  • Important consideration for very sensitive data
  • and mitigating key escrow threats

19
Getting Forward Secrecy
  • A general approach
  • First authenticate yourself to peer
  • Then invent and transmit a new key pair
  • Peer responds by inventing and transmitting a new
    session key encrypted under new key pair
  • Expensive
  • Diffie-Hellman authentication
  • The key is not presented in a form where knowing
    long-term authentication keys helps an adversary
  • "Break backward" "forward secrecy"

20
Woo-Lam '92 protocol
  • A, B only know KUKDC uses nonces instead of
    timestamps
  • 1. A ? KDC IDa, IDb
  • 2. A ? KDC Cert b
  • 3. A ? B EKUB Na, IDa
  • 4. B ? KDC IDa, IDb, EKUKDC Na
  • 5. B ? KDC Cert a, EKUB EKRKDC Na, Ks, IDb
  • 6. A ? B EKUA EKRKDC Na, Ks, IDb , Nb
  • 7. A ? B EKs Nb

21
One-Way Authentication
  • required when sender receiver are not in
    communications at same time (eg. email)
  • have header in clear so can be delivered by email
    system
  • may want contents of body protected sender
    authenticated

22
Using Symmetric Encryption for One-way
authentication
  • can refine use of KDC but cant have final
    exchange of nonces, namely
  • 1. A?KDC IDA IDB N1
  • 2. A?KDC EKaKs IDB N1 EKbKsIDA
  • 3. A?B EKbKsIDA EKsM
  • does not protect against replays to B
  • could rely on timestamp in message, though email
    delays make this problematic
  • use only for messages that do no harm when
    repeated (hard to enforce)

23
Public-Key Approaches to One-way
  • have seen some public-key approaches
  • if confidentiality is major concern, can use
  • A?B EKUbKs EKsM
  • has encrypted session key, encrypted message
  • used in PGP, PEM, S/MIME,
  • if authentication needed use a signature with a
    certificate
  • A?B M EKRaH(M) EKRasTIDAKUa
  • with message, signature, certificate

24
Authentication via Encryption
  • Recall notion if it decrypts to something
    sensible then it must have been encrypted by a
    keyholder
  • Detecting sensible is hard
  • Encryption schemes do not enforce this (e.g.,
    DES-CBC)
  • Use explicit auth mechanism instead
  • So, instead of EKs(M), generate two session keys
    one for encryption, one for MAC

25
Digital Signature Standard (DSS)
  • US Govt approved signature scheme FIPS 186
  • uses the SHA hash algorithm
  • designed by NIST NSA in early 90's
  • DSS is the standard, DSA is the algorithm
  • a variant on ElGamal and Schnorr schemes
  • creates a 320 bit signature, but comparable to
    RSA 512-1024 bit security
  • security depends on difficulty of computing
    discrete logarithms

26
Digital Signature Algorithm (DSA)
27
DSA Key Generation
  • have shared global public key values (p,q,g)
  • a large prime p 2L
  • where L 512 to 1024 bits and is a multiple of 64
  • choose q, a 160 bit prime factor of p-1
  • choose g h(p-1)/q
  • where hltp-1, h(p-1)/q (mod p) gt 1
  • users choose private compute public key
  • choose xltq
  • compute y gx (mod p)

28
DSA Signature Creation
  • to sign a message M the sender
  • generates a random signature key k, kltq
  • nb. k must be random, be destroyed after use, and
    never be reused
  • then computes signature pair
  • r (gk(mod p))(mod q)
  • s (k-1.SHA(M) x.r)(mod q)
  • sends signature (r,s) with message M

29
DSA Signature Verification
  • having received M signature (r,s)
  • to verify a signature, recipient computes
  • w s-1(mod q)
  • u1 (SHA(M).w)(mod q)
  • u2 (r.w)(mod q)
  • v (gu1.yu2(mod p)) (mod q)
  • if vr then signature is verified
  • see book web site for details of proof why

30
Summary
  • have considered
  • digital signatures
  • authentication protocols (mutual one-way)
  • digital signature standard
Write a Comment
User Comments (0)
About PowerShow.com