SlideShare una empresa de Scribd logo
1 de 47
Descargar para leer sin conexión
All Your Biases Belong To Us:
Breaking RC4 in WPA-TKIP and TLS
Mathy Vanhoef and Frank Piessens, KU Leuven
USENIX Security 2015
RC4
2
Intriguingly simple stream cipher
WEP
WPA-TKIP
SSL / TLS PPP/MPPE
And others ...
RC4
3
Plaintext CiphertextKeystreamRC4
Key
Intriguingly simple stream cipher
Is RC4 still used?!
4
ICSI Notary: TLS connections using RC4
50%
30%
13%
0%
10%
20%
30%
40%
50%
60%
March 2013 Februari 2015 July 2015
RC4 fallback not taken into account!
RC4 Fallback
5
Client Server
ClientHello: without RC4 Browser first tries without RC4
ServerHello: use AES
Alert: Handshake Failed
RC4 Fallback
6
ClientHello: without RC4 Browser first tries without RC4
If that fails …
Client Server
ClientHello: with RC4
ServerHello: use RC4
RC4 Fallback
7
Client Server
Alert: Handshake Failed
ClientHello: without RC4 Browser first tries without RC4
If that fails …
… fallback to RC4
ClientHello: with RC4
ServerHello: use RC4
RC4 Fallback
8
Client Server
Alert: Handshake Failed
ClientHello: without RC4 Browser first tries without RC4
Forgeable by attacker!
… fallback to RC4
 13% estimate is a lower bound
 Force connection (which we
assumed secure) to use RC4
Our Goal: further kill RC4
9
New Biases Plaintext Recovery
Break WPA-TKIP Attack HTTPS
First: Existing Biases
10
Distribution keystream byte 2
Pr 𝒁 𝟐 = 𝟎 =
𝟐
𝟐𝟓𝟔
[MS01]
First: Existing Biases
11
Distribution keystream byte 1 (to 256)
First: Existing Biases
12
Distribution keystream byte 1 (to 256)
AlFardan et al. ‘13:
first 256 bytes biased
Short-term biases
Long-Term Biases
13
A B S A B
Fluhrer-McGrew (2000):
 Some consecutive values are biased
Examples: 0, 0 and (0, 1)
Mantin’s ABSAB Bias (2005):
 A byte pair (𝐴, 𝐵) likely reappears
Fluhrer-McGrew: only 8 out
of 65 536 pairs are biased
Search for new biases
14
Traditional emperical approach:
 Generate large amount of keystreams
 Manually inspect data or graph
How to automate
the search?
Search for new biases
15
Hypothesis tests!
 Uniformly distributed: Chi-squared test.
 Correlated: M-test (detect outliers = biases)
Traditional emperical approach:
 Generate large amount of keystreams
 Manually inspect data or graph
Allows a large-scale search,
revealing many new biases
Biases in Bytes 258-513
16
Example: keystream byte 258
Biases in Bytes 258-513
17
Example: keystream byte 320
Biases in Bytes 258-513
18
Example: keystream byte 352
Biases quickly
become quite weak
New Long-term Bias
19
(𝑍256∙𝑤, 𝑍256∙𝑤+2) = (128, 0)
with probability 2−16
(1 + 2−8
)
128 0 ...
Every block of 256 bytes
Additional Biases
20
See paper!
Our Goal: further kill RC4
21
New Biases Plaintext Recovery
Break WPA-TKIP Attack HTTPS
Existing Methods [AlFardan et al. ‘13]
22
Plaintext encrypted under
several keystreams
Ciphertext Distribution Plaintext guess 𝜇
Induced keystream
distribution
Verify guess: how close to
real keystream distribution?
Example: Decrypt byte 1
23
Ciphertext Distribution
Example: Decrypt byte 1
24
RC4 & Ciphertext distribution
Example: Decrypt byte 1
25
If plaintext byte 𝜇 = 0x28: RC4 & Induced
𝜇 = 0x28 has low likelihood
Example: Decrypt byte 1
26
If plaintext byte 𝜇 = 0x5C: RC4 & Induced
𝜇 = 0x5C has higher likelihood
Example: Decrypt byte 1
27
If plaintext byte 𝜇 = 0x5A: RC4 & Induced
𝜇 = 0x5A has highest likelihood!
Types of likelihood estimates
28
Previous works: pick value with highest likelihood.
Better idea: list of candidates in decreasing likelihood:
 Most likely one may not be correct!
 Prune bad candidates (e.g. bad CRC)
 Brute force cookies or passwords
How to calculate list of candidates?
1st idea: Generate List of Candidatess
29
Gist of the Algorithm: Incremental approach
Calculate candidates of length 1, length 2, ...
1
2
𝑛
1
2
𝑛
1
2
𝑛
...
2nd idea: abusing the ABSAB bias
30
Assume there’s surrounding known plaintext
 Derive values of A, B
 Combine with ABSAB bias to (probablisticly) predict A′, B′
 Ordinary likelihood calculation over only (A′, B′)
A B S A’ B’
Known Plaintext Unknown Plaintext
Likelihood estimate:
!
Our Goal: further kill RC4
31
New Biases Plaintext Recovery
Break WPA-TKIP Attack HTTPS
TKIP Background
32
How are packets sent/received?
1. Add Message Integrity Check (MIC)
2. Add CRC (leftover from WEP)
3. Add IV (increments every frame)
4. Encrypt using RC4 (per-packet key)
Encrypted
MICDataIV CRC
Flaw #1: TKIP Per-packet Key
33
Key-Mix
Key Sender MAC 𝐼𝑉
packet key
Anti-FMS(𝐼𝑉0, 𝐼𝑉1)
 𝐼𝑉-dependent biases in keystream
[Gupta/Paterson et al.]
Avoid weak keys which broke WEP
Flaw #2: MIC is invertible
34
If decrypted, reveals MIC key
MICDataIV CRC
 With the MIC key, an attacker can inject and
decrypt some packets [AsiaCCS ‘13]
Goal: decrypt data and MIC
35
If decrypted, reveals MIC key
MICDataIV CRC
Generate identical packets (otherwise MIC changes):
 Assume victim connects to server of attacker
 Retransmit identical TCP packet
 List of plaintext candidates (unknown MIC and CRC)
 Prune bad candidates based on CRC
Evaluation
36
Simulations with 230
candidates:
 Need ≈ 224
captures to decrypt with high success rates
Emperical tests:
 Server can inject 2 500 packets per second
 Roughly one hour to capture sufficient traffic
 Successfully decrypted packet & found MIC key!
Our Goal: further kill RC4
37
New Biases Plaintext Recovery
Break WPA-TKIP Attack HTTPS
TLS Background
38
Client Server
 Focus on record protocol with RC4 as cipher
Handshake protocol
Negotiate keys
Record protocol
Encrypt data
Targeting HTTPS Cookies
39
Previous attacks only used Fluhrer-McGrew (FM) biases
We combine FM bias with the ABSAB bias
Must surround cookie with known plaintext
1. Remove unknown plaintext arround cookie
2. Inject known plaintext arround cookie
Example: manipulated HTTP request
40
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
Trident/7.0; rv:11.0) like Gecko
Host: a.site.com
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: auth=????????????????; P=aaaaaaaaaaaaaaaaa
Surrounded by known
plaintext at both sides
Headers are
predictable
Preparation: manipulating cookies
41
Clienta.site.com fake.site.com
HTTPS insecure
Remove & inject
secure cookies!
Performing the attack!
42
JavaScript: Cross-Origin requests in WebWorkers
Performing the attack!
43
Keep-Alive connection to generate them fast
Performing the attack!
44
Combine Fluhrer-McGrew and ABSAB biases
Decrypting 16-character cookie
45
Takes 75 hours with 4450 requests / second
Ciphertext copies times 227
Decrypting 16-character cookie
46
DEMO!
rc4nomore.com
Questions?
May the bias be ever in your favor

Más contenido relacionado

La actualidad más candente

Chapter 6 firewall
Chapter 6 firewallChapter 6 firewall
Chapter 6 firewallnewbie2019
 
Super Barcode Training Camp - Motorola AirDefense Wireless Security Presentation
Super Barcode Training Camp - Motorola AirDefense Wireless Security PresentationSuper Barcode Training Camp - Motorola AirDefense Wireless Security Presentation
Super Barcode Training Camp - Motorola AirDefense Wireless Security PresentationSystem ID Warehouse
 
Firewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth FirewallsFirewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth Firewallsphanleson
 
Exploiting WiFi Security
Exploiting WiFi Security Exploiting WiFi Security
Exploiting WiFi Security Hariraj Rathod
 
Network Security - Layer 2
Network Security - Layer 2Network Security - Layer 2
Network Security - Layer 2samis
 
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.Sumutiu Marius
 
Snort
SnortSnort
Snortnazzf
 
Wireless hacking and security
Wireless hacking and securityWireless hacking and security
Wireless hacking and securityAdel Zalok
 
Authentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless ProtocolsAuthentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless Protocolsphanleson
 
Attacks and their mitigations
Attacks and their mitigationsAttacks and their mitigations
Attacks and their mitigationsMukesh Chaudhari
 
Wireless security presentation
Wireless security presentationWireless security presentation
Wireless security presentationMuhammad Zia
 

La actualidad más candente (19)

Chapter 6 firewall
Chapter 6 firewallChapter 6 firewall
Chapter 6 firewall
 
Super Barcode Training Camp - Motorola AirDefense Wireless Security Presentation
Super Barcode Training Camp - Motorola AirDefense Wireless Security PresentationSuper Barcode Training Camp - Motorola AirDefense Wireless Security Presentation
Super Barcode Training Camp - Motorola AirDefense Wireless Security Presentation
 
Hacking L2 Switches
Hacking L2 SwitchesHacking L2 Switches
Hacking L2 Switches
 
Firewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth FirewallsFirewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth Firewalls
 
Hacking Cisco
Hacking CiscoHacking Cisco
Hacking Cisco
 
Best!
Best!Best!
Best!
 
Exploiting WiFi Security
Exploiting WiFi Security Exploiting WiFi Security
Exploiting WiFi Security
 
05 06 ike
05   06 ike05   06 ike
05 06 ike
 
Network Security - Layer 2
Network Security - Layer 2Network Security - Layer 2
Network Security - Layer 2
 
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
 
Snort
SnortSnort
Snort
 
3.Network
3.Network3.Network
3.Network
 
Wireless hacking and security
Wireless hacking and securityWireless hacking and security
Wireless hacking and security
 
Authentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless ProtocolsAuthentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless Protocols
 
Attacks and their mitigations
Attacks and their mitigationsAttacks and their mitigations
Attacks and their mitigations
 
Ceh v5 module 21 cryptography
Ceh v5 module 21 cryptographyCeh v5 module 21 cryptography
Ceh v5 module 21 cryptography
 
Stream Ciphers
Stream CiphersStream Ciphers
Stream Ciphers
 
Wireless security presentation
Wireless security presentationWireless security presentation
Wireless security presentation
 
Snort
SnortSnort
Snort
 

Similar a USENIX Security '15: All Your Biases Belong To Us: Breaking RC4 in WPA-TKIP and TLS

Wireless security837
Wireless security837Wireless security837
Wireless security837mark scott
 
Fundamentals of network hacking
Fundamentals of network hackingFundamentals of network hacking
Fundamentals of network hackingPranshu Pareek
 
Computer network (3)
Computer network (3)Computer network (3)
Computer network (3)NYversity
 
HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)
HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)
HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)Igalia
 
Unit 3:Enterprise Security
Unit 3:Enterprise SecurityUnit 3:Enterprise Security
Unit 3:Enterprise Securityprachi67
 
Common crypto attacks and secure implementations
Common crypto attacks and secure implementationsCommon crypto attacks and secure implementations
Common crypto attacks and secure implementationsTrupti Shiralkar, CISSP
 
SSL/TLS Eavesdropping with Fullpath Control
SSL/TLS Eavesdropping with Fullpath ControlSSL/TLS Eavesdropping with Fullpath Control
SSL/TLS Eavesdropping with Fullpath ControlMike Thompson
 
[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...
[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...
[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...Aaron Zauner
 
Hacking SSL When Using RC4
Hacking SSL When Using RC4Hacking SSL When Using RC4
Hacking SSL When Using RC4Khairi Aiman
 
DTS Solution - Wireless Security Protocols / PenTesting
DTS Solution - Wireless Security Protocols / PenTesting DTS Solution - Wireless Security Protocols / PenTesting
DTS Solution - Wireless Security Protocols / PenTesting Shah Sheikh
 
Wi fi-security-the-details-matter
Wi fi-security-the-details-matterWi fi-security-the-details-matter
Wi fi-security-the-details-matterDESMOND YUEN
 
Fragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdf
Fragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdfFragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdf
Fragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdfYuChianWu
 

Similar a USENIX Security '15: All Your Biases Belong To Us: Breaking RC4 in WPA-TKIP and TLS (20)

Wireless security837
Wireless security837Wireless security837
Wireless security837
 
Fundamentals of network hacking
Fundamentals of network hackingFundamentals of network hacking
Fundamentals of network hacking
 
Computer network (3)
Computer network (3)Computer network (3)
Computer network (3)
 
HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)
HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)
HTTPS: Achievements, Challenges, and Epiphany (Web Engines Hackfest 2015)
 
RC4&RC5
RC4&RC5RC4&RC5
RC4&RC5
 
RC4&RC5
RC4&RC5RC4&RC5
RC4&RC5
 
KRACK attack
KRACK attackKRACK attack
KRACK attack
 
Unit 3:Enterprise Security
Unit 3:Enterprise SecurityUnit 3:Enterprise Security
Unit 3:Enterprise Security
 
Common crypto attacks and secure implementations
Common crypto attacks and secure implementationsCommon crypto attacks and secure implementations
Common crypto attacks and secure implementations
 
Wpa vs Wpa2
Wpa vs Wpa2Wpa vs Wpa2
Wpa vs Wpa2
 
SSL overview
SSL overviewSSL overview
SSL overview
 
SSL/TLS Eavesdropping with Fullpath Control
SSL/TLS Eavesdropping with Fullpath ControlSSL/TLS Eavesdropping with Fullpath Control
SSL/TLS Eavesdropping with Fullpath Control
 
[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...
[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...
[BlackHat USA 2016] Nonce-Disrespecting Adversaries: Practical Forgery Attack...
 
Hacking SSL When Using RC4
Hacking SSL When Using RC4Hacking SSL When Using RC4
Hacking SSL When Using RC4
 
802.11i
802.11i802.11i
802.11i
 
Cours4.pptx
Cours4.pptxCours4.pptx
Cours4.pptx
 
DTS Solution - Wireless Security Protocols / PenTesting
DTS Solution - Wireless Security Protocols / PenTesting DTS Solution - Wireless Security Protocols / PenTesting
DTS Solution - Wireless Security Protocols / PenTesting
 
Wifi Security
Wifi SecurityWifi Security
Wifi Security
 
Wi fi-security-the-details-matter
Wi fi-security-the-details-matterWi fi-security-the-details-matter
Wi fi-security-the-details-matter
 
Fragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdf
Fragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdfFragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdf
Fragattacks-Breaking-Wi-Fi-Through-Fragmentation-And-Aggregation.pdf
 

Último

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Último (20)

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

USENIX Security '15: All Your Biases Belong To Us: Breaking RC4 in WPA-TKIP and TLS

  • 1. All Your Biases Belong To Us: Breaking RC4 in WPA-TKIP and TLS Mathy Vanhoef and Frank Piessens, KU Leuven USENIX Security 2015
  • 2. RC4 2 Intriguingly simple stream cipher WEP WPA-TKIP SSL / TLS PPP/MPPE And others ...
  • 4. Is RC4 still used?! 4 ICSI Notary: TLS connections using RC4 50% 30% 13% 0% 10% 20% 30% 40% 50% 60% March 2013 Februari 2015 July 2015 RC4 fallback not taken into account!
  • 5. RC4 Fallback 5 Client Server ClientHello: without RC4 Browser first tries without RC4 ServerHello: use AES
  • 6. Alert: Handshake Failed RC4 Fallback 6 ClientHello: without RC4 Browser first tries without RC4 If that fails … Client Server
  • 7. ClientHello: with RC4 ServerHello: use RC4 RC4 Fallback 7 Client Server Alert: Handshake Failed ClientHello: without RC4 Browser first tries without RC4 If that fails … … fallback to RC4
  • 8. ClientHello: with RC4 ServerHello: use RC4 RC4 Fallback 8 Client Server Alert: Handshake Failed ClientHello: without RC4 Browser first tries without RC4 Forgeable by attacker! … fallback to RC4  13% estimate is a lower bound  Force connection (which we assumed secure) to use RC4
  • 9. Our Goal: further kill RC4 9 New Biases Plaintext Recovery Break WPA-TKIP Attack HTTPS
  • 10. First: Existing Biases 10 Distribution keystream byte 2 Pr 𝒁 𝟐 = 𝟎 = 𝟐 𝟐𝟓𝟔 [MS01]
  • 11. First: Existing Biases 11 Distribution keystream byte 1 (to 256)
  • 12. First: Existing Biases 12 Distribution keystream byte 1 (to 256) AlFardan et al. ‘13: first 256 bytes biased Short-term biases
  • 13. Long-Term Biases 13 A B S A B Fluhrer-McGrew (2000):  Some consecutive values are biased Examples: 0, 0 and (0, 1) Mantin’s ABSAB Bias (2005):  A byte pair (𝐴, 𝐵) likely reappears
  • 14. Fluhrer-McGrew: only 8 out of 65 536 pairs are biased Search for new biases 14 Traditional emperical approach:  Generate large amount of keystreams  Manually inspect data or graph How to automate the search?
  • 15. Search for new biases 15 Hypothesis tests!  Uniformly distributed: Chi-squared test.  Correlated: M-test (detect outliers = biases) Traditional emperical approach:  Generate large amount of keystreams  Manually inspect data or graph Allows a large-scale search, revealing many new biases
  • 16. Biases in Bytes 258-513 16 Example: keystream byte 258
  • 17. Biases in Bytes 258-513 17 Example: keystream byte 320
  • 18. Biases in Bytes 258-513 18 Example: keystream byte 352 Biases quickly become quite weak
  • 19. New Long-term Bias 19 (𝑍256∙𝑤, 𝑍256∙𝑤+2) = (128, 0) with probability 2−16 (1 + 2−8 ) 128 0 ... Every block of 256 bytes
  • 21. Our Goal: further kill RC4 21 New Biases Plaintext Recovery Break WPA-TKIP Attack HTTPS
  • 22. Existing Methods [AlFardan et al. ‘13] 22 Plaintext encrypted under several keystreams Ciphertext Distribution Plaintext guess 𝜇 Induced keystream distribution Verify guess: how close to real keystream distribution?
  • 23. Example: Decrypt byte 1 23 Ciphertext Distribution
  • 24. Example: Decrypt byte 1 24 RC4 & Ciphertext distribution
  • 25. Example: Decrypt byte 1 25 If plaintext byte 𝜇 = 0x28: RC4 & Induced 𝜇 = 0x28 has low likelihood
  • 26. Example: Decrypt byte 1 26 If plaintext byte 𝜇 = 0x5C: RC4 & Induced 𝜇 = 0x5C has higher likelihood
  • 27. Example: Decrypt byte 1 27 If plaintext byte 𝜇 = 0x5A: RC4 & Induced 𝜇 = 0x5A has highest likelihood!
  • 28. Types of likelihood estimates 28 Previous works: pick value with highest likelihood. Better idea: list of candidates in decreasing likelihood:  Most likely one may not be correct!  Prune bad candidates (e.g. bad CRC)  Brute force cookies or passwords How to calculate list of candidates?
  • 29. 1st idea: Generate List of Candidatess 29 Gist of the Algorithm: Incremental approach Calculate candidates of length 1, length 2, ... 1 2 𝑛 1 2 𝑛 1 2 𝑛 ...
  • 30. 2nd idea: abusing the ABSAB bias 30 Assume there’s surrounding known plaintext  Derive values of A, B  Combine with ABSAB bias to (probablisticly) predict A′, B′  Ordinary likelihood calculation over only (A′, B′) A B S A’ B’ Known Plaintext Unknown Plaintext Likelihood estimate: !
  • 31. Our Goal: further kill RC4 31 New Biases Plaintext Recovery Break WPA-TKIP Attack HTTPS
  • 32. TKIP Background 32 How are packets sent/received? 1. Add Message Integrity Check (MIC) 2. Add CRC (leftover from WEP) 3. Add IV (increments every frame) 4. Encrypt using RC4 (per-packet key) Encrypted MICDataIV CRC
  • 33. Flaw #1: TKIP Per-packet Key 33 Key-Mix Key Sender MAC 𝐼𝑉 packet key Anti-FMS(𝐼𝑉0, 𝐼𝑉1)  𝐼𝑉-dependent biases in keystream [Gupta/Paterson et al.] Avoid weak keys which broke WEP
  • 34. Flaw #2: MIC is invertible 34 If decrypted, reveals MIC key MICDataIV CRC  With the MIC key, an attacker can inject and decrypt some packets [AsiaCCS ‘13]
  • 35. Goal: decrypt data and MIC 35 If decrypted, reveals MIC key MICDataIV CRC Generate identical packets (otherwise MIC changes):  Assume victim connects to server of attacker  Retransmit identical TCP packet  List of plaintext candidates (unknown MIC and CRC)  Prune bad candidates based on CRC
  • 36. Evaluation 36 Simulations with 230 candidates:  Need ≈ 224 captures to decrypt with high success rates Emperical tests:  Server can inject 2 500 packets per second  Roughly one hour to capture sufficient traffic  Successfully decrypted packet & found MIC key!
  • 37. Our Goal: further kill RC4 37 New Biases Plaintext Recovery Break WPA-TKIP Attack HTTPS
  • 38. TLS Background 38 Client Server  Focus on record protocol with RC4 as cipher Handshake protocol Negotiate keys Record protocol Encrypt data
  • 39. Targeting HTTPS Cookies 39 Previous attacks only used Fluhrer-McGrew (FM) biases We combine FM bias with the ABSAB bias Must surround cookie with known plaintext 1. Remove unknown plaintext arround cookie 2. Inject known plaintext arround cookie
  • 40. Example: manipulated HTTP request 40 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko Host: a.site.com Connection: Keep-Alive Cache-Control: no-cache Cookie: auth=????????????????; P=aaaaaaaaaaaaaaaaa Surrounded by known plaintext at both sides Headers are predictable
  • 41. Preparation: manipulating cookies 41 Clienta.site.com fake.site.com HTTPS insecure Remove & inject secure cookies!
  • 42. Performing the attack! 42 JavaScript: Cross-Origin requests in WebWorkers
  • 43. Performing the attack! 43 Keep-Alive connection to generate them fast
  • 44. Performing the attack! 44 Combine Fluhrer-McGrew and ABSAB biases
  • 45. Decrypting 16-character cookie 45 Takes 75 hours with 4450 requests / second Ciphertext copies times 227
  • 47. Questions? May the bias be ever in your favor