WIFI, what is the state of security ? writed : 27/1/2008 Wep, the end ? WEP use a RC4 (symmetric stream sypher that support variable key). WEP use 40 and 128 bits keys witch is fixed by configuration. The big problem with the WEP is the initializationvector, it use 24 bits, but it never rotate the encryption key. Some cryptanalysts (Flusher, Mantin and Shamir) discovered inherent shortcoming inside the RC4 algorythm. This attack can work here because insinde WEB frame the first byte of the plain text come inside WEP LLC/SNAP Header part, it 100% clear inside, It work with a capture of 100.000 to 1 million of packets. The FSM attack was implemented by aircrack tools, i purpose a simple test (here i've attacked my FREEBOX based on wep key, for the test only....) Kismet snif ! For this example, i'll used BACKTRACK linux distribution (live cd), this distribution provide security tools without any installation !!, simply boot on it. (Some infos here : http://backtrack.offensive-security.com/index.php/Main_Page ) After the boot i configure my WL167G (USB WIFI SSTICK from ASUS) ;) /usr/local/etc/kismet.conf - First we need more info about the AP target and here i'll try to retreive maximum info about it like - encryption key used and more :=) After launching KISMET ( a sniffer wifi tools) i've found my freebox, By press [C] on the ap list name i can optain the client list : Inside Kismet you can also use : [R] (display network graph), [S] to select acces point.
- clients mac adress, SSID ( service set identifier), Kismet provide output format like : - packets dump (witch can be use with aircrack) - Log formats XML format like this : <wireless-network number="19" type="infrastructure" wep="true" cloaked="false" first-time="Fri Jan 25 06:43:25 2008" last-time="Fri Jan 25 06:47:34 2008"> Let's crack it with airodump tool : First i start with a sniffer on channel 13, it capture only IVS (with bssid that i've colleted via kismet and with the output name : test_wep_free ! bt ~ # airodump-ng -i rausb0 -c 13 -w test_wep_free --bssid D2:DB:30:69:40:C8 Now i've to run the FMS tools on the capture (it's not nessecary to stop airodump !!!), this crack can failed if IVS are not suffisent : bt ~ # aircrack-ng test_wep_free-01.ivs Finnaly i've got the key :
The key is found finnaly, here with a normal web traffic (no injections paquets used), 20000 IVS were used.
TKIP IEEE i've created a new system : TKIP it based on WEP and RC4 but the key process but they add a "dynamic" vector initialisation. This system enforce the WEP by temporal vector encryption change. It really a good idea because this system is compatible with devide "wep" compatible only. [ethernet frame ip] ---- [ Network header (IP) ] ---- [ Segment Header] ---- [secure dynamic IV] ---- [ data] ---- [MIC ] The main problem with this system was the implementation (witch is different between constructor). So .... i've configure WPA on my network !!!! Ok ... is it really absolutly secure ? NO This attack need a connected client, like the wep key i launch a sniffer : irodump-ng --write test-ap-wpa [INTERFACE]
Secure methods on WPA-PSK So it's a good question to search a good method to secure wireless network, to do that we need to have WPA. After that we've to be sure that passphrase we use is secure to protect our network, with dictionnary attack :
Biblio Wikipedia definition and WEP info : http://en.wikipedia.org/wiki/Fluhrer,_Mantin,_and_Shamir_attack An exelent french article about WEP algo : http://sid.rstack.org/blog/index.php/57-pourquoi-c-est-pourri-le-wep-part-2-cassage-en-regle Aircrack tools :
|
||||||||||
| © Bastien Barbe 2008 |