• Tidak ada hasil yang ditemukan

Where does WiFi Security Come From?

N/A
N/A
Protected

Academic year: 2024

Membagikan "Where does WiFi Security Come From?"

Copied!
18
0
0

Teks penuh

(1)

Where does

Where does WiFi WiFi Security Come Security Come From?

From?

Jesse Walker Intel Corporation

[email protected]

(2)

Agenda Agenda

 The Chain of Trust

 How 802.11i Delivers

Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United States or other countries

(3)

The Chain of Trust The Chain of Trust

Authentication

Authorization

Data Integrity Data Confidentiality

The Chain of Trust

(4)

Data Confidentiality Data Confidentiality

 Purpose: Control read access of the channel

‘

So an attacker cannot steal your data

 How:

‘

Use a cryptographic key to

 encrypt every packet sent over the channel

 decrypt every packet received over the channel

‘

Discard all unencrypted packets

‘

Key use proves authorization to access channel

 Questions:

‘

Required qualities of the cryptographic key?

‘

How do you know the decrypted data is any good?

The Chain of Trust

(5)

Review of stream ciphers Review of stream ciphers

Pseudo-random number generator

Plaintext data byte p

“key stream” byte k

⊕ Ciphertext data byte

c = pk Decryption works the same way: p = ck

Thought Experiment: what happens if you encrypt two different plaintexts under the same key stream by k?

c1 = p1k c2 = p2k c1c2 = p1kp2k = p1p2

Conclusion: can’t reuse the key stream byte k across different packets; need a fresh key every time stream cipher is reinitialized

The Chain of Trust

(6)

Forgery attacks Forgery attacks

Defeating stream ciphers:

‰ Capture an in-flight encrypted packet

‰ Pick any byte c of ciphertext data and flip one of its bits. Then we know c = pk for some key stream byte k

‰ Release captured altered packet

‰ On decryption, since p′ = ck, the byte with bit flipped will decrypt as p′ = p ⊕ 1

Encryption only provides confidentiality, not integrity!

Hdr Encrypted Data

1 c

The Chain of Trust

(7)

Data Integrity Data Integrity

 Purpose: Control write access to the channel so attacker cannot

‘ impersonate you to the network

‘ impersonate the network to you

‘ use the network to decrypt your data

 How:

‘ Give each packet a sequence number

‘ Use a cryptographic key deriving from authentication to“sign”

every packet, including sequence number

‘ Use a cryptographic key to verify every “signed” packet received over the channel

‘ Discard all packets with invalid “signatures”

‘ Discard all unsigned packets

‘ Discard all packets received out of order (wrong seq #)

‘Key use proves authorization to access channel

 Questions:

‘ Required qualities of the integrity key?

The Chain of Trust

(8)

Data Integrity’s Achilles Heel Data Integrity’s Achilles Heel

Access Point Wireless

Station

Hdr Packet n Hdr Packet n + 1 Hdr Packet n

Thought Experiment: what happens if you reuse sequence numbers with the same cryptographic key?

Answer: Attacker can replay packets

Conclusion: Need a fresh data integrity key each time the packet sequence space is restarted

The Chain of Trust

(9)

Authorization Authorization



Purpose: to make a decision

‘ Decide whether you want to talk with the network

‘ The network will do the same with you



How:

‘ Look for the network on list of approved networks

‘ Network will look for you among list of authorized users/devices

‘ Device and network agree on fresh cryptographic keys

‘ Device and network use agreed-upon cryptographic key to enforce access on each subsequent packets



Questions:

‘How do you know the peer is really the authorized party?

The Chain of Trust

(10)

Authentication Authentication

 Discover the peer’s identity

‘

The network proves who it is to you, so you can decide if you really do want to talk with it

‘

You (or your device) proves who it is to the network can decide whether to talk with you

 How:

‘

Authentication based on credentials exchange

 Questions:

‘

Where do the credentials used in the exchange come from?

‘

What properties are required of the exchange?

The Chain of Trust

(11)

Observations Observations



Can’t obtain confidentiality without integrity

‘An attacker can use the infrastructure to help break the encryption key



Can’t obtain confidentiality without authorization

‘Need to create a fresh data encryption key to to limit read access to the data



Can’t obtain integrity without authorization

‘Need to create a fresh data integrity key to prove traffic is authorized



Can’t obtain authorization without authentication

‘How do you know if they are allowed if you don’t know who they are?

No Security without all the links in the chain No Security without all the links in the chain

The Chain of Trust

(12)

What is…?

What is…?

 TGi – IEEE working group tasked to

“fix” WiFi security

 802.11i – Standard that will be produced by TGi

 WPA – WiFi Protected Access; pre- standard subset of 802.11i

‘ Includes TKIP, to “replace” WEP

‘ Includes 802.11i key management

‘ Includes 802.1X authentication

How 802.11i Delivers

(13)

Key Confirmation Key (KCK) – PTK

bits 0–127

Key Encryption Key (KEK) – PTK

bits 128–255

Temporal Key – PTK bits 256–n – can have cipher suite specific structure

802.11i Key Hierarchy 802.11i Key Hierarchy

Master Key (MK)

Pairwise Master Key (PMK) = TLS-PRF(MasterKey, “client EAP encryption”

| clientHello.random | serverHello.random)

Pairwise Transient Key (PTK) = EAPoL-PRF(PMK, AP Nonce | STA Nonce

| AP MAC Addr | STA MAC Addr)

How 802.11i Delivers

(14)

802.11 Operational Phases 802.11 Operational Phases

Data protection

802.1X authentication

802.1X key management RADIUS-based key distribution

Security capabilities discovery

Authentication Server

Access Point Station

How 802.11i Delivers

Master Key (MK) Master Key (MK)

PMK PMK

Temporal Encryption and Integrity Keys

(15)

Why are the Temporal Keys Why are the Temporal Keys

Fresh?

Fresh?

EAPoL-Key(ANonce)

Pick Random ANonce

EAPoL-Key(SNonce, MIC)

EAPoL-Key(ANonce, MIC) Pick Random SNonce, Derive PTK= EAPoL-PRF(PMK, ANonce |

SNonce | AP MAC Addr | STA MAC Addr)

Derive PTK

EAPoL-Key(MIC)

Install TK Install TK

AP STA

PMK PMK

How 802.11i Delivers

(16)

How does 802.11i provide…?

How does 802.11i provide…?

Seq # 48 bits

Data

>=0 octets

MIC 8 octets How 802.11i Delivers

802.11i fixes WiFi protocol security

802.11i fixes WiFi protocol security

(17)

Summary Summary

 No Security without all the links in the chain

 802.11i fixes WiFi protocol security

(18)

Feedback?

Feedback?

Referensi

Dokumen terkait

For example, social network aggregators reduce the security of social networking sites because a single password gives access to multiple repositories of personal data.. Security

To avoid Man in the Middle attacks, to protect the integrity of your site, and privacy of your users, you need to make all requests over HTTPS—especially requests involving

• The data portion is connected to the data network for Internet access.. • Applications of DSL : remote access

competitors, and to increase equality in access to the market, it is necessary both to separate the transmission and distribution activities of a network business form its

A network-attached storage system, or NAS, enables authorized network users and a variety of clients to store and retrieve data from a central place. Because NAS systems are adaptable

Security system companies can offer primarily determined by where you are located and what you are willing to pay for. So, where can you find the best security

Subject Pronoun Refers to the speaker himself 1st person Singular I Refers to a second person 2nd plural or singular You Refers to female 3rd person Singular She Refers to

PROFESSIONAL PRACTICE 6 SA Pharmacist’s Assistant [Autumn 2018] of healthcare services is found in Section 27 of the Bill of Rights, which deals with the right to food, water,