SlideShare ist ein Scribd-Unternehmen logo
1 von 33
COEN 350
Mobile Security
Wireless Security
 Wireless offers additional challenges:
 Physical media can easily be sniffed.
 War Driving

Legal?
 U.S. federal computer crime statute, Title 18 U.S.C. 1030,

Crime to knowingly access a computer used in interstate or
foreign communication "without authorization" and obtain any
information from the computer.

Crime to access a computer without authorization with "intent
to defraud" to obtain "anything of value."

But not if "the object of the fraud and the thing obtained
consists only of the use of the computer and the value of
such use is not more than $ 5,000 in any 1-year period."
Wireless Security
 Wireless offers additional challenges:
 Physical media can easily be sniffed.
 Mobile computing needs to preserve
battery power.

Calculations cost more on a mobile platform.

Especially important for sensor networks
Wireless Security:
Attackers Perspective
 Knowing the Threat
 Targets of opportunity

Goal is
 Internet access.
 Easy pickings.
 Targeted attacks

Targets assets valuable enough.
 Internal attackers

Most Dangerous

Can open an unintentional security hole
COEN 351 E-Commerce
Security
 E-Commerce Security Course Homepage
 Lecture Notes
IEEE 802.11
 Wired Equivalent Privacy (WEP)
Protocol
 Based on a shared secret k.

Distributed out of band.
 Uses CRC for internal integrity protection.
 Uses RC4 to encrypt network traffic.
WEP Protocol
WEP Protocol
 Confidentiality
 Original packet is first check-summed.
 Checksum and data form the payload.
 Transmitting device creates a 24-bit
random initialization vector IV.
 IV and shared key are used to encrypt with
RC4
WEP Protocol
 RC4
 Generates a pseudo-random stream of
bytes (keystream)

Based on a secret internal state
 Permutation S of all 256 possible bytes
 Two index pointers
 Plaintext is XORed with keystream
WEP Protocol
 RC4
 Key Scheduling Algorithm (KSA)

Initializes S based on a key
for i from 0 to 255
S[i] := i
j := 0
for i from 0 to 255
j := (j + S[i] + key[i mod keylength]) mod 256
swap(S[i],S[j])
WEP Protocol
 RC4
 Pseudo-Random Generation Algorithm
(PRGA)

Generates pseudo-random byte stream
i := 0
j := 0
while GeneratingOutput:
i := (i + 1) mod 256
j := (j + S[i]) mod 256
swap(S[i],S[j])
output S[(S[i] + S[j]) mod 256]
WEP Protocol
 RC4
 Known weaknesses

Keystream slightly biased
 Fluhrer & McGrew attack can distinguish keystream
from random stream given a GB of input.
 Fluhrer, Mantin, Shamir: statistics for output of the
first few bytes of output keystream are non-random,
leaking information about key.
WEP Protocol
 Authentication
 Station associating with access point
needs to authenticate itself.
 Both exchange the type of authentication
that is accepted.

Open: Just identification between station and
AP

Shared Secret: Participants send nonces to
each other, encrypt the nonce using WEP (and
the shared secret key), and verify the other’s
response.
WEP has no key management
 Everyone allowed to have access to a
wireless network has the same key.
 Anyone with the key can read ALL
traffic.
WEP: RC4
 RC4 uses the key and the IV to produce
a stream of pseudo-random bytes.
 Calculates cipher text from plaintext by
XORing the pseudo-random stream
with the plain-text.
WEP: RC4
WEP: Attacks on RC4
 Dictionary Attack

Build database:

224
different IVs

Build a database of 224
streams of MTU bytes
(2,312 B) for each different IV.

Takes < 40 GB storage.
 XOR two entries with the same IV.

Result are the two plaintexts XORed.

Natural language text has enough redundancy
to decrypt the XOR of two text streams.
WEP: Attacks on RC4
 Dictionary Attack
 Many packages can be completely or
partially guessed.
 XORing guessed plaintext and captured
cipher gives pseudo-random byte stream
for a given IV.
 Some implementations reset IVs poorly.
 This simplifies dictionary attacks.
WEP: Attacks on RC4
 Injection Attack
 Attacker creates packets on the wireless
connection.
 Attacker XORs plaintext and cipher.

Builds Pseudo-Random Stream database
indexed by IV.
RC4
Fluhrer, Mantin, Shamir Attack
 First few bits of several thousand
messages reveals key.
 Based on an analysis of the RC4 code.

Originally kept secret, but later leaked on the
internet.
RC4
Fluhrer, Mantin, Shamir Attack
 Key Scheduling Algorithm
 Sets up RC4 state array S
 S is a permutation of 0, 1, … 255
 Output generator uses S to create a
pseudo-random sequence.
 First byte of output is given by
S[S[1]+S[S[1]]].

First byte depends on
 {S[1], S[S[1], S[S[1]+S[S[1]]}
RC4
Fluhrer, Mantin, Shamir Attack
 Key Scheduling Algorithm
 First byte of plain text package is part of the SNAP header

0xAA for IP and ARP packages

0xFF or 0xE0 for IPX

Guessing the first byte is trivial
 Some IVs are vulnerable: “resolved”

(KeyByte+3, 0xFF, *)

Plus some more
 Easy to test whether an IV is vulnerable.
 Search for vulnerable IVs.
 They leak key bytes probabilistically.
 Large number of packets does it.
RC4
Fluhrer, Mantin, Shamir Attack
 Optimization needs about 5,000,000 to
1,000,000 packages.
 Counter-measures:
 Change key frequently.
 Change IV counters to avoid bad IVs.
WEP Message Modification
 WEP uses CRC code to ascertain integrity of
messages.
 CRC code is linear:
 CRC(x ⊕ y) = CRC(x) ⊕ CRC(y).
 Attacker knows plaintext M and desired modification
∆ for target plaintext M’ = M ⊕ ∆.
 Attacker want to substitute X = P⊕(M,CRC(M)) for
P⊕(M’,CRC(M’)).
 Attacker sends
X⊕(∆,CRC(∆)) = P⊕(M,CRC(M)) ⊕(∆,CRC(∆))
= P⊕(M’,CRC(M’))
Wireless Insecurity Problems
 WiFi card software allows users to
change the MAC address.
Wireless Security
 Casual user, low yield traffic
 WEP is good enough.
 Enterprise, Commercial
 Combine WEP with higher order security

SSH

VPN

IPSec
WPA
 Created by WiFi Alliance
 Certification started April 2003
 Uses 802.1X authentication server

Distributed different keys to each user.
 Can also be used in “pre-shared key”
(PSK) mode

Every user uses the same passphrase.

Called WPA Personal
IEEE 802.1X
http://www.linux.com/howtos/8021X-HOWTO/index.shtml
 Standard for port-
based authentication.
 Uses a third-party
authentication server
such as Radius
WPA
 Protocol changes over WEP
 CRC is replaced by “Michael” MIC.

MIC now includes a frame counter, preventing replay
attacks.

Payload bit flipping is now impossible.
 Data encryption still uses RC4, but now

Prevents key recovery attacks on WEP by using
 128b Key
 48b Initialization vector
 Temporal Key Integrity Protocol (TKIP) changes key
dynamically.
TKIP
 Temporal Key Integrity Protocol
 Ensures that every data packet has its own
encryption key.
802.11i
 Uses AES instead of RC4.
 Subset published as WPA2
 Uses 802.1X authentication
Protocol Layers
 WEP
 Privacy only.
 Very elementary security.
 WPA
 Temporal Key Exchange Protocol

Fixes WEP that scrambles keys between packages and adds a secure
message check.
 AES: Advanced Encryption Standard
 802.11i
 Military grade encryption, replaces DES
 802.1X
 General purpose and extensible framework for authentication users
and generating / distributing keys.
 Simple Secure Network (SSN)
 Recipe for authentication based on 802.1X
COEN 351 E-Commerce
Security
 E-Commerce Security Course Homepage
 Lecture Notes

Weitere ähnliche Inhalte

Was ist angesagt?

Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
Mohd Arif
 
T C P I P Weaknesses And Solutions
T C P I P Weaknesses And SolutionsT C P I P Weaknesses And Solutions
T C P I P Weaknesses And Solutions
eroglu
 

Was ist angesagt? (20)

Barriers to TOR Research at UC Berkeley
Barriers to TOR Research at UC BerkeleyBarriers to TOR Research at UC Berkeley
Barriers to TOR Research at UC Berkeley
 
Ip Sec
Ip SecIp Sec
Ip Sec
 
CMIT 321 QUIZ 1
CMIT 321 QUIZ 1CMIT 321 QUIZ 1
CMIT 321 QUIZ 1
 
Ipsec
IpsecIpsec
Ipsec
 
Certified Ethical Hacker quick test prep cheat sheet
Certified Ethical Hacker quick test prep cheat sheetCertified Ethical Hacker quick test prep cheat sheet
Certified Ethical Hacker quick test prep cheat sheet
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
 
Ipsec
IpsecIpsec
Ipsec
 
Type of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 exampleType of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 example
 
Firewalls
FirewallsFirewalls
Firewalls
 
T C P I P Weaknesses And Solutions
T C P I P Weaknesses And SolutionsT C P I P Weaknesses And Solutions
T C P I P Weaknesses And Solutions
 
IPSec and VPN
IPSec and VPNIPSec and VPN
IPSec and VPN
 
Hacking Cisco
Hacking CiscoHacking Cisco
Hacking Cisco
 
IP Spoofing
IP SpoofingIP Spoofing
IP Spoofing
 
My ppt..priya
My ppt..priyaMy ppt..priya
My ppt..priya
 
Best!
Best!Best!
Best!
 
Ip sec talk
Ip sec talkIp sec talk
Ip sec talk
 
Session hijacking
Session hijackingSession hijacking
Session hijacking
 
Informal Presentation on WPA-TKIP
Informal Presentation on WPA-TKIPInformal Presentation on WPA-TKIP
Informal Presentation on WPA-TKIP
 
Ipspoofing
IpspoofingIpspoofing
Ipspoofing
 
security problems in the tcp/ip protocol suite
security problems in the tcp/ip protocol suitesecurity problems in the tcp/ip protocol suite
security problems in the tcp/ip protocol suite
 

Andere mochten auch

Lecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
phanleson
 
Session 1 Tp1
Session 1 Tp1Session 1 Tp1
Session 1 Tp1
phanleson
 
Hibernate Tutorial
Hibernate TutorialHibernate Tutorial
Hibernate Tutorial
Ram132
 
Introduction to hibernate
Introduction to hibernateIntroduction to hibernate
Introduction to hibernate
hr1383
 

Andere mochten auch (18)

Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
 
Hacking web applications
Hacking web applicationsHacking web applications
Hacking web applications
 
Lecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
 
Lecture 4 - Adding XTHML for the Web
Lecture  4 - Adding XTHML for the WebLecture  4 - Adding XTHML for the Web
Lecture 4 - Adding XTHML for the Web
 
Lecture 07 - Executive Information Systems and the Data Warehouse
Lecture 07 - Executive Information Systems and the Data WarehouseLecture 07 - Executive Information Systems and the Data Warehouse
Lecture 07 - Executive Information Systems and the Data Warehouse
 
HBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - OperationsHBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - Operations
 
Learning spark ch10 - Spark Streaming
Learning spark ch10 - Spark StreamingLearning spark ch10 - Spark Streaming
Learning spark ch10 - Spark Streaming
 
Learning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your DataLearning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your Data
 
Session 1 Tp1
Session 1 Tp1Session 1 Tp1
Session 1 Tp1
 
COM Introduction
COM IntroductionCOM Introduction
COM Introduction
 
enterprise java bean
enterprise java beanenterprise java bean
enterprise java bean
 
Learning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value PairsLearning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value Pairs
 
Hibernate Tutorial
Hibernate TutorialHibernate Tutorial
Hibernate Tutorial
 
JPA and Hibernate
JPA and HibernateJPA and Hibernate
JPA and Hibernate
 
Introduction to hibernate
Introduction to hibernateIntroduction to hibernate
Introduction to hibernate
 
Intro To Hibernate
Intro To HibernateIntro To Hibernate
Intro To Hibernate
 
Hibernate performance tuning
Hibernate performance tuningHibernate performance tuning
Hibernate performance tuning
 
Hibernate tutorial for beginners
Hibernate tutorial for beginnersHibernate tutorial for beginners
Hibernate tutorial for beginners
 

Ähnlich wie Mobile Security - Wireless hacking

5169 wireless network_security_amine_k
5169 wireless network_security_amine_k5169 wireless network_security_amine_k
5169 wireless network_security_amine_k
Rama Krishna M
 
4 wifi security
4 wifi security4 wifi security
4 wifi security
al-sari7
 
Computer network (3)
Computer network (3)Computer network (3)
Computer network (3)
NYversity
 

Ähnlich wie Mobile Security - Wireless hacking (20)

Wireless hacking and security
Wireless hacking and securityWireless hacking and security
Wireless hacking and security
 
5169 wireless network_security_amine_k
5169 wireless network_security_amine_k5169 wireless network_security_amine_k
5169 wireless network_security_amine_k
 
RC4&RC5
RC4&RC5RC4&RC5
RC4&RC5
 
RC4&RC5
RC4&RC5RC4&RC5
RC4&RC5
 
Comprehensive Guide On Network Security
Comprehensive Guide On Network SecurityComprehensive Guide On Network Security
Comprehensive Guide On Network Security
 
Wireless network security
Wireless network securityWireless network security
Wireless network security
 
Wireless Security (1).ppt
Wireless Security (1).pptWireless Security (1).ppt
Wireless Security (1).ppt
 
Wireless security
Wireless securityWireless security
Wireless security
 
Hash
HashHash
Hash
 
Nt1310 Unit 6 Powerpoint
Nt1310 Unit 6 PowerpointNt1310 Unit 6 Powerpoint
Nt1310 Unit 6 Powerpoint
 
4 wifi security
4 wifi security4 wifi security
4 wifi security
 
G05114043
G05114043G05114043
G05114043
 
Chapter 15 - Security
Chapter 15 - SecurityChapter 15 - Security
Chapter 15 - Security
 
Computer network (3)
Computer network (3)Computer network (3)
Computer network (3)
 
Security Issues of 802.11b
Security Issues of 802.11bSecurity Issues of 802.11b
Security Issues of 802.11b
 
Security Issues of IEEE 802.11b
Security Issues of IEEE 802.11bSecurity Issues of IEEE 802.11b
Security Issues of IEEE 802.11b
 
WEP
WEPWEP
WEP
 
IS Security Presentation
IS Security PresentationIS Security Presentation
IS Security Presentation
 
ip spoofing
ip spoofingip spoofing
ip spoofing
 
Hacking 1224807880385377-9
Hacking 1224807880385377-9Hacking 1224807880385377-9
Hacking 1224807880385377-9
 

Mehr von phanleson

Mehr von phanleson (20)

E-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server AttacksE-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server Attacks
 
HBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table designHBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table design
 
Hbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBaseHbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBase
 
Learning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlibLearning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlib
 
Learning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQLLearning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQL
 
Learning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a ClusterLearning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a Cluster
 
Learning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark ProgrammingLearning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark Programming
 
Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
 
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about LibertagiaHướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
 
Lecture 2 - Using XML for Many Purposes
Lecture 2 - Using XML for Many PurposesLecture 2 - Using XML for Many Purposes
Lecture 2 - Using XML for Many Purposes
 
SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19
 
Lecture 18 - Model-Driven Service Development
Lecture 18 - Model-Driven Service DevelopmentLecture 18 - Model-Driven Service Development
Lecture 18 - Model-Driven Service Development
 
Lecture 15 - Technical Details
Lecture 15 - Technical DetailsLecture 15 - Technical Details
Lecture 15 - Technical Details
 
Lecture 10 - Message Exchange Patterns
Lecture 10 - Message Exchange PatternsLecture 10 - Message Exchange Patterns
Lecture 10 - Message Exchange Patterns
 
Lecture 9 - SOA in Context
Lecture 9 - SOA in ContextLecture 9 - SOA in Context
Lecture 9 - SOA in Context
 
Lecture 07 - Business Process Management
Lecture 07 - Business Process ManagementLecture 07 - Business Process Management
Lecture 07 - Business Process Management
 
Lecture 04 - Loose Coupling
Lecture 04 - Loose CouplingLecture 04 - Loose Coupling
Lecture 04 - Loose Coupling
 
Lecture 2 - SOA
Lecture 2 - SOALecture 2 - SOA
Lecture 2 - SOA
 
Lecture 3 - Services
Lecture 3 - ServicesLecture 3 - Services
Lecture 3 - Services
 
Lecture 01 - Motivation
Lecture 01 - MotivationLecture 01 - Motivation
Lecture 01 - Motivation
 

Kürzlich hochgeladen

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Kürzlich hochgeladen (20)

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

Mobile Security - Wireless hacking

  • 2. Wireless Security  Wireless offers additional challenges:  Physical media can easily be sniffed.  War Driving  Legal?  U.S. federal computer crime statute, Title 18 U.S.C. 1030,  Crime to knowingly access a computer used in interstate or foreign communication "without authorization" and obtain any information from the computer.  Crime to access a computer without authorization with "intent to defraud" to obtain "anything of value."  But not if "the object of the fraud and the thing obtained consists only of the use of the computer and the value of such use is not more than $ 5,000 in any 1-year period."
  • 3. Wireless Security  Wireless offers additional challenges:  Physical media can easily be sniffed.  Mobile computing needs to preserve battery power.  Calculations cost more on a mobile platform.  Especially important for sensor networks
  • 4. Wireless Security: Attackers Perspective  Knowing the Threat  Targets of opportunity  Goal is  Internet access.  Easy pickings.  Targeted attacks  Targets assets valuable enough.  Internal attackers  Most Dangerous  Can open an unintentional security hole
  • 5. COEN 351 E-Commerce Security  E-Commerce Security Course Homepage  Lecture Notes
  • 6. IEEE 802.11  Wired Equivalent Privacy (WEP) Protocol  Based on a shared secret k.  Distributed out of band.  Uses CRC for internal integrity protection.  Uses RC4 to encrypt network traffic.
  • 8. WEP Protocol  Confidentiality  Original packet is first check-summed.  Checksum and data form the payload.  Transmitting device creates a 24-bit random initialization vector IV.  IV and shared key are used to encrypt with RC4
  • 9. WEP Protocol  RC4  Generates a pseudo-random stream of bytes (keystream)  Based on a secret internal state  Permutation S of all 256 possible bytes  Two index pointers  Plaintext is XORed with keystream
  • 10. WEP Protocol  RC4  Key Scheduling Algorithm (KSA)  Initializes S based on a key for i from 0 to 255 S[i] := i j := 0 for i from 0 to 255 j := (j + S[i] + key[i mod keylength]) mod 256 swap(S[i],S[j])
  • 11. WEP Protocol  RC4  Pseudo-Random Generation Algorithm (PRGA)  Generates pseudo-random byte stream i := 0 j := 0 while GeneratingOutput: i := (i + 1) mod 256 j := (j + S[i]) mod 256 swap(S[i],S[j]) output S[(S[i] + S[j]) mod 256]
  • 12. WEP Protocol  RC4  Known weaknesses  Keystream slightly biased  Fluhrer & McGrew attack can distinguish keystream from random stream given a GB of input.  Fluhrer, Mantin, Shamir: statistics for output of the first few bytes of output keystream are non-random, leaking information about key.
  • 13. WEP Protocol  Authentication  Station associating with access point needs to authenticate itself.  Both exchange the type of authentication that is accepted.  Open: Just identification between station and AP  Shared Secret: Participants send nonces to each other, encrypt the nonce using WEP (and the shared secret key), and verify the other’s response.
  • 14. WEP has no key management  Everyone allowed to have access to a wireless network has the same key.  Anyone with the key can read ALL traffic.
  • 15. WEP: RC4  RC4 uses the key and the IV to produce a stream of pseudo-random bytes.  Calculates cipher text from plaintext by XORing the pseudo-random stream with the plain-text.
  • 17. WEP: Attacks on RC4  Dictionary Attack  Build database:  224 different IVs  Build a database of 224 streams of MTU bytes (2,312 B) for each different IV.  Takes < 40 GB storage.  XOR two entries with the same IV.  Result are the two plaintexts XORed.  Natural language text has enough redundancy to decrypt the XOR of two text streams.
  • 18. WEP: Attacks on RC4  Dictionary Attack  Many packages can be completely or partially guessed.  XORing guessed plaintext and captured cipher gives pseudo-random byte stream for a given IV.  Some implementations reset IVs poorly.  This simplifies dictionary attacks.
  • 19. WEP: Attacks on RC4  Injection Attack  Attacker creates packets on the wireless connection.  Attacker XORs plaintext and cipher.  Builds Pseudo-Random Stream database indexed by IV.
  • 20. RC4 Fluhrer, Mantin, Shamir Attack  First few bits of several thousand messages reveals key.  Based on an analysis of the RC4 code.  Originally kept secret, but later leaked on the internet.
  • 21. RC4 Fluhrer, Mantin, Shamir Attack  Key Scheduling Algorithm  Sets up RC4 state array S  S is a permutation of 0, 1, … 255  Output generator uses S to create a pseudo-random sequence.  First byte of output is given by S[S[1]+S[S[1]]].  First byte depends on  {S[1], S[S[1], S[S[1]+S[S[1]]}
  • 22. RC4 Fluhrer, Mantin, Shamir Attack  Key Scheduling Algorithm  First byte of plain text package is part of the SNAP header  0xAA for IP and ARP packages  0xFF or 0xE0 for IPX  Guessing the first byte is trivial  Some IVs are vulnerable: “resolved”  (KeyByte+3, 0xFF, *)  Plus some more  Easy to test whether an IV is vulnerable.  Search for vulnerable IVs.  They leak key bytes probabilistically.  Large number of packets does it.
  • 23. RC4 Fluhrer, Mantin, Shamir Attack  Optimization needs about 5,000,000 to 1,000,000 packages.  Counter-measures:  Change key frequently.  Change IV counters to avoid bad IVs.
  • 24. WEP Message Modification  WEP uses CRC code to ascertain integrity of messages.  CRC code is linear:  CRC(x ⊕ y) = CRC(x) ⊕ CRC(y).  Attacker knows plaintext M and desired modification ∆ for target plaintext M’ = M ⊕ ∆.  Attacker want to substitute X = P⊕(M,CRC(M)) for P⊕(M’,CRC(M’)).  Attacker sends X⊕(∆,CRC(∆)) = P⊕(M,CRC(M)) ⊕(∆,CRC(∆)) = P⊕(M’,CRC(M’))
  • 25. Wireless Insecurity Problems  WiFi card software allows users to change the MAC address.
  • 26. Wireless Security  Casual user, low yield traffic  WEP is good enough.  Enterprise, Commercial  Combine WEP with higher order security  SSH  VPN  IPSec
  • 27. WPA  Created by WiFi Alliance  Certification started April 2003  Uses 802.1X authentication server  Distributed different keys to each user.  Can also be used in “pre-shared key” (PSK) mode  Every user uses the same passphrase.  Called WPA Personal
  • 28. IEEE 802.1X http://www.linux.com/howtos/8021X-HOWTO/index.shtml  Standard for port- based authentication.  Uses a third-party authentication server such as Radius
  • 29. WPA  Protocol changes over WEP  CRC is replaced by “Michael” MIC.  MIC now includes a frame counter, preventing replay attacks.  Payload bit flipping is now impossible.  Data encryption still uses RC4, but now  Prevents key recovery attacks on WEP by using  128b Key  48b Initialization vector  Temporal Key Integrity Protocol (TKIP) changes key dynamically.
  • 30. TKIP  Temporal Key Integrity Protocol  Ensures that every data packet has its own encryption key.
  • 31. 802.11i  Uses AES instead of RC4.  Subset published as WPA2  Uses 802.1X authentication
  • 32. Protocol Layers  WEP  Privacy only.  Very elementary security.  WPA  Temporal Key Exchange Protocol  Fixes WEP that scrambles keys between packages and adds a secure message check.  AES: Advanced Encryption Standard  802.11i  Military grade encryption, replaces DES  802.1X  General purpose and extensible framework for authentication users and generating / distributing keys.  Simple Secure Network (SSN)  Recipe for authentication based on 802.1X
  • 33. COEN 351 E-Commerce Security  E-Commerce Security Course Homepage  Lecture Notes

Hinweis der Redaktion

  1. Course Homepage : http://ouo.io/SI9jJ Lecture Notes : http://ouo.io/0oFRv
  2. Course Homepage : http://ouo.io/SI9jJ Lecture Notes : http://ouo.io/0oFRv