Advanced Penetration testing

Slides:



Advertisements
Similar presentations
Crack WEP Lab Last Update Copyright 2014 Kenneth M. Chipps Ph.D.
Advertisements

IEEE i IT443 Broadband Communications Philip MacCabe October 5, 2005
Crack WPA Lab Last Update Copyright 2014 Kenneth M. Chipps Ph.D.
CSE  Wired Equivalent Privacy (WEP) ◦ first security protocol defined in  Wi-Fi Protected Access (WPA) ◦ defined by Wi-Fi Alliance 
MIS Week 12 Site:
Attack and Defense in Wireless Networks Presented by Aleksandr Doronin.
IPsec Internet Headquarters Branch Office SA R1 R2
Wireless Security Ryan Hayles Jonathan Hawes. Introduction  WEP –Protocol Basics –Vulnerability –Attacks –Video  WPA –Overview –Key Hierarchy –Encryption/Decryption.
1 MD5 Cracking One way hash. Used in online passwords and file verification.
MIS Week 13 Site:
The Trouble with WEP Or, cracking WiFi networks for fun & profit (not really) Jim Owens.
Wireless Network Security: WEP And Beyond Heidi Parsaye Jason DeVries Roxanne Ilse Heidi Parsaye - Jason DeVries - Roxanne Ilse.
Security in Wireless LAN Layla Pezeshkmehr CS 265 Fall 2003-SJSU Dr.Mark Stamp.
Department of Computer Science Southern Illinois University Carbondale Wireless and Network Security Lecture 9: IEEE
IEEE Wireless Local Area Networks (WLAN’s).
Security+ Guide to Network Security Fundamentals, Third Edition Chapter 6 Wireless Network Security.
WIRELESS NETWORK SECURITY. Hackers Ad-hoc networks War Driving Man-in-the-Middle Caffe Latte attack.
WPA2 By Winway Pang. Overview  What is WPA2?  Wi-Fi Protected Access 2  Introduced September 2004  Two Versions  Enterprise – Server Authentication.
WLAN security S Wireless Personal, Local, Metropolitan, and Wide Area Networks1 Contents WEP (Wired Equivalent Privacy) No key management Authentication.
Wireless Security Issues David E. Hudak, Ph.D. Senior Software Architect Karlnet, Inc.
IWD2243 Wireless & Mobile Security Chapter 3 : Wireless LAN Security Prepared by : Zuraidy Adnan, FITM UNISEL1.
MIS Week 11 Site:
Wireless Attacks. Set up the APs Computer IP: Subnet Mask: Router IP address: –
Wireless security & privacy Authors: M. Borsc and H. Shinde Source: IEEE International Conference on Personal Wireless Communications 2005 (ICPWC 2005),
Investigators have published numerous reports of birds taking turns vocalizing; the bird spoken to gave its full attention to the speaker and never vocalized.
Chapter Network Security Architecture Security Basics Legacy security Robust Security Segmentation Infrastructure Security VPN.
Wireless Network Security Dr. John P. Abraham Professor UTPA.
Wireless Security Beyond WEP. Wireless Security Privacy Authorization (access control) Data Integrity (checksum, anti-tampering)
COEN 350 Mobile Security. Wireless Security Wireless offers additional challenges: Physical media can easily be sniffed. War Driving Legal? U.S. federal.
CWSP Guide to Wireless Security Chapter 2 Wireless LAN Vulnerabilities.
WEP Protocol Weaknesses and Vulnerabilities
COEN 350 Mobile Security. Wireless Security Wireless offers additional challenges: Physical media can easily be sniffed. War Driving Legal? U.S. federal.
WEP AND WPA by Kunmun Garabadu. Wireless LAN Hot Spot : Hotspot is a readily available wireless connection.  Access Point : It serves as the communication.
Wireless LAN Security. Security Basics Three basic tools – Hash function. SHA-1, SHA-2, MD5… – Block Cipher. AES, RC4,… – Public key / Private key. RSA.
WEP, WPA, and EAP Drew Kalina. Overview  Wired Equivalent Privacy (WEP)  Wi-Fi Protected Access (WPA)  Extensible Authentication Protocol (EAP)
Doc.: IEEE /551r0 Submission September 2002 Moore, Roshan, Cam-WingetSlide 1 TGi Frame Exchanges Tim Moore Microsoft Pejman Roshan Nancy Cam-Winget.
Wireless Security: The need for WPA and i By Abuzar Amini CS 265 Section 1.
Wireless Security Rick Anderson Pat Demko. Wireless Medium Open medium Broadcast in every direction Anyone within range can listen in No Privacy Weak.
Csci388 Wireless and Mobile Security – Key Hierarchies for WPA and RSN
Wireless Security John Himmelein Erick Andrew Christian Adam Varun Bapna.
Authentication has three means of authentication Verifies user has permission to access network 1.Open authentication : Each WLAN client can be.
Doc.: IEEE /657r0 Submission August 2003 N. Cam-WingetSlide 1 TGi Draft 5.0 Comments Nancy Cam-Winget, Cisco Systems Inc.
EECS  Wired Equivalent Privacy (WEP) ◦ first security protocol defined in  Wi-Fi Protected Access (WPA) ◦ defined by Wi-Fi Alliance 
Wireless Authentication Protocol Presented By: Tasmiah Tamzid Anannya Student Id:
Module 48 (Wireless Hacking)
Re-evaluating the WPA2 Security Protocol
OSA vs WEP WPA and WPA II Tools for hacking
Wireless Protocols WEP, WPA & WPA2.
Lecture 29 Security in IEEE Dr. Ghalib A. Shah
Wireless Attacks: WEP Module Type: Basic Method Module Number: 0x00
We will talking about : What is WAP ? What is WAP2 ? Is there secure ?
WEP & WPA Mandy Kershishnik.
Advanced Penetration testing
Wireless LAN Security CSE 6590.
Wireless Security Ian Bodley.
Advanced Penetration testing
Advanced Penetration testing
Motions to Address Some Letter Ballot 52 Comments
Hacking Wi-Fi Beyond Script Kiddie and WEP
Advanced Penetration testing
Advanced Penetration testing
IEEE i Dohwan Kim.
Wireless Network Security
Advanced Penetration testing
An Inductive Chosen Plaintext Attack against WEP/WEP2
Breaking into Wi-Fi Networks
Tim Moore Microsoft Pejman Roshan Nancy Cam-Winget Cisco Systems, Inc
IT4833/6833 WiFi Security Building Blocks (I).
By: Anthony Gervasi & Adam Dickinson
Advanced Penetration testing
Presentation transcript:

Advanced Penetration testing MIS 5212.001 Week 11a Site: http://community.mis.temple.edu/mis5212sec001s16/

Tonight's Plan In the news WEP Revisit Kismet Introduction to Aircrack Attacking WEP WPA-PSK Next Week MIS 5212.001

In The News Submitted http://www.nytimes.com/2016/03/28/technology/american-tech-giants-face-fight-in-europe-over-encrypted-data.html?_r=0 https://www.washingtonpost.com/news/the-intersect/wp/2016/03/24/the-internet-turned-tay-microsofts-fun-millennial-ai-bot-into-a-genocidal-maniac/ http://thehackernews.com/2016/03/smtp-sts-email-security.html MIS 5212.001

In The News Submitted http://www.theregister.co.uk/2016/03/24/us_charges_iranian_hackers/ http://www.theregister.co.uk/2016/03/24/water_utility_hacked/ http://www.securityweek.com/malvertising-campaign-hits-top-global-websites http://www.securitynewspaper.com/2016/03/26/18-million-stolen-ids-discovered-server-criminals-china-got-illegal-access/ Temple Phishing Efforts http://thehackernews.com/2016/03/system-integrity-protection.html http://www.kb.cert.org/vuls/id/319816 http://www.govinfosecurity.com/verizon-confirms-breach-affecting-business-customers-a-8991 MIS 5212.001

In The News What I noted https://www.shellterproject.com/ https://github.com/giMini/PowerMemory http://www.theregister.co.uk/2016/03/24/see_a_pin_and_pick_it_up_for_the_sake_of_security/ http://www.theregister.co.uk/2016/03/25/vnc_roulette/ http://www.antipope.org/charlie/blog-static/2016/03/follow-the-money-apple-vs-the-.html http://www.wsj.com/article_email/the-encryption-meltdown-1458690131-lMyQjAxMTI2NTI1NDYyOTQ0Wj MIS 5212.001

Presentation (1) MIS 5212.001

WEP Basic encryption for wireless networks Specified in IEEE 802.11-1997 Required a minimum 40-bit key, usually set at 104-bit Uses RC-4 encryption Applied only to data frames (Payload) Still widely used, especially on older gear MIS 5212.001

WEP Key Described as 64 or 128 bit Reality is 40 or 104 The pre-shared key (Not the same as WPA-PSK) is either 5 or 13 bytes Initialization vector is transmitted with each packet IV and key are concatenated to create a per packet key IV is not a secret! Four possible keys, index 0-3 MIS 5212.001

WEP Framing One bit field in the frame control field Called by a number of different names WEP bit Privacy bit Secure bit With this bit set, the receiving station expects to see a four byte WEP header immediately following the 802.11 header Also expects to see a four byte trailer immediately following the payload or data portion MIS 5212.001

More on Framing The four byte header is also the initialization vector or IV along with the index number to designate which WEP key was used Again, this was used with the WEP key to encrypt the data packet The four byte trailer is the Integrity Check Value or ICV This function similar to a CRC check to protect against packet modification MIS 5212.001

RC4 Stream cypher Requires a unique key (No re-use) One byte at a time 100 bytes of plaintext = 100 bytes of cypher text + eight bytes of WEP overhead Requires a unique key (No re-use) Recall: concatenated from IV and shared secret Uses a pseudo randomization function referred to as PRGA (Pseudo-random generation algorithm ) PRGA is XOR’d with the plaintext Recall article on XOR from in the news MIS 5212.001

Issues with WEP Poor No replay protection Key selection Message integrity check Initialization Vector (too short) No replay protection Challenge response reveals PRGA Key is reversible from cypher test (XOR) MIS 5212.001

Key Selection Restricted to 5 or 13 character pre-shared key Reduced key efficiency to 224 Users often use dictionary words MIS 5212.001

More on WEP Failures Weak IV selection leads to key recovery Known plaintext reveals key information First two bytes of WEP payload are mandated by 802.11 header spec (0xAA 0xAA) Once you have enough weak IVs, you can recover the key We will look at the Aircrack-ng tool for this MIS 5212.001

Aircrack-ng Pre-installed in Kali Similar issue to Kismet, will need to launch from terminal, not from drop down Aircrack-ng site has detailed information on installation, building from source, and use http://aircrack-ng.org/ MIS 5212.001

Recall Last Week Need to connect wireless card to Kali Need to verify using iwconfig command Then launch Kismet for a little recon This will also force the wireless card in to monitor mode Since StarDrive is my AP we’ll focus on it MIS 5212.001

StarDrive Double clicking on name gives me detail screen Note MAC Address WEP bit “Network” menu has option to close window and return to summary MIS 5212.001

MIS 5212.001

Done with Kismet We found the AP we want to attack Know Name (SSID), MAC Address (BSSID), WEP This also had the affect of forcing wlan0 into monitor mode MIS 5212.001

Extra Help w/ Aricrack Lots of extras at: http://aircrack-ng.org/doku.php?id=simple_wep_crack&DokuWiki=6a160c439893f7cfb1e861fe023a1e9d We’ll run through a few MIS 5212.001

Generarating Extra Traffic Created ARP traffic to get data faster You do need access to wired network, so limited applicability in the wild Used command: MIS 5212.001

Running airodump-ng Running command: This will create log file capture*.cap for further analysis MIS 5212.001

Finally, aircrack-ng Once enough data has been collected, run aircrack-ng output*.cap If you don’t have enough data you will see MIS 5212.001

With Enough Data Eventually, with enough IVs you can get to this: MIS 5212.001

WPA-PSK Recall, WPA introduced TKIP WPA2 introduced CCMP and kept TKIP Both work with both personal and enterprise Personal – PSK, Enterprise 802.1x WPA and WPA2 very similar for PSK MIS 5212.001

More Acronyms PSK – Pre-Shared Key KEK – Key Encryption Key PMK – Pairwise Master Key – Comes from PSK or EAP method PTK – Pairwise Temporal Key Two MIC keys (RX and TX EAPOL Key Encryption Key EAPOL Key Confirmation Key MIS 5212.001

WPA2-PSK PMK Derivation PMK is 256 bits in length PMK is derived using passphrase, ssid, and ssid length information Hashed 4096 times using HMAC-SHA1 This means process cannot be reversed to extract passphrase MIS 5212.001

WPA2 PTK Derivation Combines MAC of STA and AP with STA and AP nonces Update nonces generate fresh keys Uses PMK as additional input (Re: Key) along with the phrase “Pairwise Key Expansion” and combines with above and hashed w/ SHA1 to generate a PTK Note: Nonce is a random value generated by both STA and AP MIS 5212.001

PTK Mapping PTK is 384/512 bits in length First 16 bytes – HMAC MIC key Next 16 – EAPOL-Key KEK Next 16 – Temporal Encryption Key Next 8 – TX TKIP Michael (MIC) Key Next 8 – RX TKIP Michael (MIC) Key MIS 5212.001

WPA2 Four-Way Handshake Step 1 ANonce, start new PTK negotion SNonce, MIC of Frame 2 Step 2 Step 3 MIC of frame 3 MIC of frame 4, ready to TX/RX Step 4 MIS 5212.001

WPA2 Four-Way Capture Example First four lines are 4-Way Handshake Source has capture file if you want to look for yourself Source: http://mrncciew.com/2014/08/16/decrypt-wpa2-psk-using-wireshark/ MIS 5212.001

Identifying WPA2-PSK AP beacon frames identify capability information Cypher suite support Auth key management Wireshark can filter traffic, then manual inspection can identify MIS 5212.001

Identifying WPA2-PSK Example of beacon frame in wireshark http://www.hackxcrack.es/forum/hacking-wireless/cracking-wpawpa2-con-reaver/ MIS 5212.001

Shellter Exercise Installing Shellter in Kali Kali Linux: apt-get update apt-get install shellter MIS 5212.001

Shellter Exercise After Wine, Shellter will still error out. Read the error message and execute the command it gives you If everything goes OK should see MIS 5212.001

Shellter Exercise Examples from Shellter site https://youtu.be/Ye7Faa85GGc https://youtu.be/cihE8ctj1nM MIS 5212.001

Next Week In the news More wireless John the Ripper Attacking WPA-PSK Final thoughts MIS 5212.001

Questions ? MIS 5212.001