Blog

It’s Time to Turn Off WiFi and Bluetooth When Not In Use (Mac or PC)

By Rich

A little birdie pointed me to the latest post over at the Metasploit blog.

For those of you that don’t know, Metasploit is the best thing to hit penetration testing since sliced bread. To oversimplify, it’s a framework for connecting vulnerability exploits to payloads. Before Metasploit it was a real pain to convert a new vulnerability into an actual exploit. You had to figure out how to trigger the vulnerability, figure out what you could actually do once you took advantage of the vulnerability, and inject the right code into the remote system to actually do something. It was all custom programming, so script kiddies had to sit idly by until someone who actually knew how to program made a tool for them.

The Metasploit framework solves most of that by creating a standard architecture where you can plug the exploit in one end, then choose your attack payload on the other. Assuming you can script (or find) the exploit, Metasploit takes care of all the difficult programming to connect to convert that exploit into something that can actually do anything. New exploits and payloads appear on a regular basis, and the tool is so easy even an analyst like me can use it (web interfaces are just so friendly).

Commercial equivalents used by penetration testers are Core Impact and Immunity Canvas. I tend to think the commercial versions are more powerful, but the open source nature of Metasploit means exploits usually appear faster, and it’s plenty powerful. Besides, any script kiddie (or analyst) can download it for free and be up and running in no time (full disclosure- I use Core Impact and Metasploit in live demos, and am on the Daily Dave email list run by Immunity).

So what the heck does this have to do with turning off wireless?

Metasploit is working on a module to transition kernel mode exploits into user mode. This is, say, exactly what you’d need to plug in a wireless driver hack on one side, and use that to create a reverse shell under root on the other. Sound familiar? This was one of the tricks Maynor demonstrated in the Black Hat wireless video (and why he didn’t need root).

The kernel runs in ring 0- this is below any concept of a user account. Think of it as the world before root even exists. When you exploit something in the kernel you’ve bypassed nearly every security control and can do whatever you want, but since you’re running at such a low level, without any user accounts, the kinds of commands we’re used to are a lot more limited. You can’t list a directory because “ls” or “dir” don’t exist yet. If you want a reverse shell, to execute user commands, or whatever you need to convert that kernel mode access into userland access- where concepts like user accounts and shells exist. In Maynor’s case he dropped code in the kernel to create a reverse shell to his second system over a second wireless connection. Tricky stuff (so I hear, it’s not like I can do any of this myself).

The Metasploit team specifically cites wireless driver hacks as one of their reasons for adding this to the framework. With confirmed vulnerabilities on multiple platforms and devices this could foretell a new wave in remote exploits- attacks where you just need to be in wireless (including Bluetooth) range, not even on the same network. I’ve heard underground rumors of even more vulnerabilities on the way in all sorts of wireless devices. The module isn’t complete, but everything in Metasploit tends to move fast.

Based on this advancement I no longer feel confident in leaving my wireless devices running when they aren’t in use. I’m not about to shut them off completely, but my recommendation to the world at large is it’s time to turn them off when you aren’t using them.

More device driver hacks are coming in 2007, and wireless will be the big focus.

No Related Posts
Comments

How about a program,(especially Freeware), that can monitor usage that will turn off the Wi/Fi / BlueTooth when it has not been used for a pre-programmed amount of time. It would be something similar to the dial up scenario where it would cut off when the line was not being used!!!

I have been surfing the search engines this afternoon looking for such an item and found this site!!! I need one for Windows 7 specifically. I have suspected for a long time hackers were using my non-use or page read times to access and do their dirty work while I was not actively actuating the network.

Any takers?

By The-Phoenix


[...] read more | digg story [...]

By It’s Time to Turn Off WiFi and Bluetooth Whe


[...] I’m not going to post every time one of these pops up, but hopefully this puts some of the wireless flaw debates to bed. [...]

By More Wireless Kernel Bugs With Exploits: This Time


[...] We told you so. [...]

By New Wireless Exploit- Very Nasty


[...] “Based on this advancement I no longer feel confident in leaving my wireless devices running when they aren ’t in use. I’m not about to shut them off completely, but my recommendation to the world at large is it’s time to turn them off when you aren’t using them.”read more | digg story [...]

By Top Dog PC Services » Blog Archive » I


[...] Right now nothing to panic about, but I do stand by my advice to start limiting wireless use in public areas. I still use my wireless, but I leave it off when I don’t need an active connection. [...]

By Don’t Panic: Bluetooth 0Day on Mac: Probably


Bkwatch- someone sent me a better response than I could write:

"you design your shellcode to unload then reload the wireless driver so that connection is usable again. On OSX its just a matter of kextunload/kextload. Thats how you avoid needing a second connection. Or you could just have it poll and wait for the next time a connection is established. "

By rmogull


[...] I think that the future is going to become very interesting very quickly.  By now most everybody in IT Security is aware of the fact the Johnny Cache and Dave Maynor were telling the truth about problems in wireless drivers.  Although I know this is bad I really did not grasp the complete ramifications until I read this post at Securosis.com and I realized what Johnny and Dave had actually uncovered.   [...]

By Security Ripcord » Blog Archive » Kern


[...] Page Summary: Before Metasploit it was a real pain to convert a new vulnerability into an actual exploit. So what the heck does this have to do with turning off wireless. Metasploit is working on a module to transition kernel mode exploits into user mode. The Metasploit team specifically cites wireless driver hacks as one of their reasons for adding this to the framework.read more | digg story                  [...]

By » It’s Time to Turn Off WiFi and Bluet


Interesting.  The real impact may be on free wireless networks.  We’‘ve gotten to the point where the business model of free wireless is being worked out—if you want to have people cluster then free wireless works well.  I’‘d be less concerened about turning my wireless off when I’‘m not using it (at work, for instance) and more concerned about logging into some unknown network while grabbing a coffee and pastry.  Also, given the terrible bluetooth range of my Mac, I’‘m not too worried about someone sneaking in there—they would have to be on top of me to get a decent signal.

By bkwatch


If you like to leave comments, and aren’t a spammer, register for the site and email us at info@securosis.com and we’ll turn off moderation for your account.