LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-05-2009, 04:17 PM   #1
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Rep: Reputation: 20
Wardriver HaxXx0r WiFi vs /dev/me -- looking for options


I've had this before. I have a netbook that needs a buggy beta driver to connect wirelessly, so I can't use encryption on my router. Usually I turn off the wireless functionality when I don't need it, but more often than not I forget.

I found my neighbors made good use of my negligence, and I can't blame them. The nice girls next door apparently have two OSX's so here's what I did. I redirected all unknown devices to one site (kittenwar, whoehahaha). That stopped my neighbors well enough.

But after I had a wardriver on my network, I felt pretty sorry and (perhaps more importantly) I didn't want these attacks to seem to come from my IP address. It had all outward appearance that the wardriver had no idea (s)he was redirected. So... I just told ye olde iptables to drop everything except for my very own machines. I filter on MAC so it can be spoofed, but thats not my reason for writing y'all.

I have one on my network right now. He's been using my network for well over *calculates* 9 (say NINE) hours continuously. He's up to 20000 attacks at external sites now. I did some scans. It's a Vista, it's uptime is about the same length as the attack and all. I went outside, but as to is expected, no one was sitting in a car with a laptop. I thought maybe someone just left their notebook running in a car, but now that we are a couple of hours further I still see him on the network, and I doubt any lappy would last that long. So I'm not ruling out that it's a neighbor, who has the benefit of juice coming from the wall. Or he's got some high powered external battery, but I don't want to get carried away here.



A couple of things ignite my curiosity. I really think my firewall is setup properly. I don't think he can look any further than *ehm* nowhere. As far as he's concerned, every site on Internet is out tonight. Nobody is home. Then I imagine (but don't know) he's running some autonomous non-interactive process. Probably unsupervised.
That would explain he's not noticing his signal isn't reaching anything.

But I'm also curious about this sort of behavior. I, like everyone, get a lot of attacks on my network. It doesn't bother me, as I think my setup is secure. But this attack isn't pointed at me and is coming from the inside. That is different. The person doing this is close (needs to be as I have a very very cheap router).

Now what can I do? Yeah I know, I can secure my wireless AP further with extra MAC filtering or be more disciplined in turning it off, but what's the fun in that??

___
He doesn't know that I know that he's using my network. I think he failed to check whether his connection is fully enabled. Or maybe he's dodging the protection I have in place. I know I can dodge my own security, spoofing MAC and using a different IP than the one that is assigned may do the trick (although that would trigger the rate limiter so effectively you're not much further). But he's not using any of the ways I know that will, in combination, dodge the security. Nothing of the sorts.

I want to do something. Something we Dutch call 'tot stichting en vermaak', I can't really translate the connotations of that, but the closest is 'both educational and fun'. Security is interesting to me, and this real life black hat seems like to good a chance to miss. What is he doing, why, how, those questions I'd like to get answered from my new friend. Without him knowing it. And I don't mind playing a bit, as long as it's legal...

Have you actually gotten this far reading? Wow! Thanks! I thought about honeyd (as previously was recommended by a forum member here) but any thoughts? I wont catch him today, but I want to be ready next time. Have a devious trick up my sleeve, if you will.

Thanks for reading, and take care

Last edited by /dev/me; 02-05-2009 at 04:21 PM.
 
Old 02-05-2009, 04:25 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by /dev/me View Post
I've had this before. I have a netbook that needs a buggy beta driver to connect wirelessly, so I can't use encryption on my router. Usually I turn off the wireless functionality when I don't need it, but more often than not I forget.

I found my neighbors made good use of my negligence, and I can't blame them. The nice girls next door apparently have two OSX's so here's what I did. I redirected all unknown devices to one site (kittenwar, whoehahaha). That stopped my neighbors well enough.

But after I had a wardriver on my network, I felt pretty sorry and (perhaps more importantly) I didn't want these attacks to seem to come from my IP address. It had all outward appearance that the wardriver had no idea (s)he was redirected. So... I just told ye olde iptables to drop everything except for my very own machines. I filter on MAC so it can be spoofed, but thats not my reason for writing y'all.

I have one on my network right now. He's been using my network for well over *calculates* 9 (say NINE) hours continuously. He's up to 20000 attacks at external sites now. I did some scans. It's a Vista, it's uptime is about the same length as the attack and all. I went outside, but as to is expected, no one was sitting in a car with a laptop. I thought maybe someone just left their notebook running in a car, but now that we are a couple of hours further I still see him on the network, and I doubt any lappy would last that long. So I'm not ruling out that it's a neighbor, who has the benefit of juice coming from the wall. Or he's got some high powered external battery, but I don't want to get carried away here.



A couple of things ignite my curiosity. I really think my firewall is setup properly. I don't think he can look any further than *ehm* nowhere. As far as he's concerned, every site on Internet is out tonight. Nobody is home. Then I imagine (but don't know) he's running some autonomous non-interactive process. Probably unsupervised.
That would explain he's not noticing his signal isn't reaching anything.

But I'm also curious about this sort of behavior. I, like everyone, get a lot of attacks on my network. It doesn't bother me, as I think my setup is secure. But this attack isn't pointed at me and is coming from the inside. That is different. The person doing this is close (needs to be as I have a very very cheap router).

Now what can I do? Yeah I know, I can secure my wireless AP further with extra MAC filtering or be more disciplined in turning it off, but what's the fun in that??

___
He doesn't know that I know that he's using my network. I think he failed to check whether his connection is fully enabled. Or maybe he's dodging the protection I have in place. I know I can dodge my own security, spoofing MAC and using a different IP than the one that is assigned may do the trick (although that would trigger the rate limiter so effectively you're not much further). But he's not using any of the ways I know that will, in combination, dodge the security. Nothing of the sorts.

I want to do something. Something we Dutch call 'tot stichting en vermaak', I can't really translate the connotations of that, but the closest is 'both educational and fun'. Security is interesting to me, and this real life black hat seems like to good a chance to miss. What is he doing, why, how, those questions I'd like to get answered from my new friend. Without him knowing it. And I don't mind playing a bit, as long as it's legal...

Have you actually gotten this far reading? Wow! Thanks! I thought about honeyd (as previously was recommended by a forum member here) but any thoughts? I wont catch him today, but I want to be ready next time. Have a devious trick up my sleeve, if you will.

Thanks for reading, and take care
Have you tried using signal strength indicators to get a physical location?
 
Old 02-05-2009, 04:40 PM   #3
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Original Poster
Rep: Reputation: 20
Nope, my router doesn't have that sort of highly advanced technology. Maybe if I could get my main lappy in ad-hoc mode and get some route to him I might be able. But I don't know how to do that, if at all possible. Could I take a measurement from another point than from the router itself?
 
Old 02-05-2009, 04:45 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by /dev/me View Post
Nope, my router doesn't have that sort of highly advanced technology. Maybe if I could get my main lappy in ad-hoc mode and get some route to him I might be able. But I don't know how to do that, if at all possible. Could I take a measurement from another point than from the router itself?
A wireless sniffer will show you signal strength for both access points and clients. So by sniffing from your laptop and walking around you should be able to get a good idea of where the bad guy's computer is.
 
Old 02-05-2009, 04:49 PM   #5
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Original Poster
Rep: Reputation: 20
Oke, I just fired up Backtrack in virtualbox, I'm gonna try that now

Any recommendations?
 
Old 02-05-2009, 05:06 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by /dev/me View Post
Oke, I just fired up Backtrack in virtualbox, I'm gonna try that now

Any recommendations?
Not really. In fact, I wasn't even aware one could run such a sniffer in a virtual machine.
 
Old 02-05-2009, 05:27 PM   #7
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Original Poster
Rep: Reputation: 20
Eh... I wouldn't know why, but sniffin's new to me, so I might be wrong. The tools I know of are demanding in terms of learning curve. And it's well passed midnight, so the 'human factor' comes into play. I disabled my wireless AP and I decided to call it a night (he was still there y'know).

I did write my ISP about this, asked them if my IP address left 'interesting' things in their logs. Seems like the shortest route to firewall configuration sanity checking. My logs say nothing got through, but I want to check just to be sure.

But thanks for your *very* fast response! I'll look into the sniffer when time allows. I may have more questions on the matter that I'd like to discuss, and any thoughts are still welcome.

Take care!
 
Old 02-05-2009, 06:13 PM   #8
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
you can do a mac filter on the wireless router.
turn off dhcp
and disable ssid broadcast.

or

connect the wireless router to a seperate nic on your firewall and run openvpn on the firewall and allow iptables to only allow stuff from the openvpn network to pass and not the unencrypted network
 
Old 02-07-2009, 04:58 PM   #9
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
Quote:
Originally Posted by win32sux View Post
Quote:
Originally Posted by /dev/me View Post
Oke, I just fired up Backtrack in virtualbox, I'm gonna try that now

Any recommendations?
Not really. In fact, I wasn't even aware one could run such a sniffer in a virtual machine.
It is possible if you have a virtual ethernet device. Or, alternatively, you could use a USB ethernet/wifi device for full control.
Quote:
Originally Posted by slimm609 View Post
you can do a mac filter on the wireless router.
turn off dhcp
and disable ssid broadcast.
Those two in red will only deter casual users, but will do nothing for someone who is determined to get in.

In the off chance that this person used your open access point in the past, the machine could be attaching to the AP via Windows Zero Wireless Configuration without the user knowing it. This happened to me in the past when I was using Windows XP. I had 2 AP's. I used one for internet and the other was for local media storage. Sometimes my wireless device would disassociate from my internet AP and connect to my other AP.
 
Old 02-08-2009, 07:42 AM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I have a netbook that needs a buggy beta driver to connect wirelessly, so I can't use encryption on my router.
Can I ask what this wireless card is? It seems to me that is the root of your problem and if you can find a way to use encryption, all your other problems go away.
 
Old 02-08-2009, 12:42 PM   #11
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
As for encryption - I suspect wpa_supplicant would solve your problems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Researching wifi options Okie Linux - Wireless Networking 7 04-26-2008 07:40 AM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
wardriver kit with buffalo airstation, should it work in linux ? tajo01 Linux - Wireless Networking 3 01-14-2007 11:40 AM
Kernel config options (/dev, /dev/pts) jrdioko Slackware 5 08-22-2005 01:25 AM
where is wifi options in make menuconfig hotgirl101 Linux - Hardware 3 04-05-2004 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration