Stopping NetBIOS Spam?
MoonFacedAssassin asks: "I woke up this morning to find that my computer had a Windows messaging pop-up window with an advertisement about getting diplomas and degrees. I was quite shocked to find that my Bellsouth DSL IP address had been spammed. Has this happened to anyone else? Other than closing off the port which this can come through, are there any other ways to block this spam? And, how responsible is Bellsouth (or any ISP for that matter) in handling issues like this?"
I got one of these just the other day.
I believe shutting down the messenger service will stop them.
On Windows NT/2000/XP, stop the messaging service and enjoy ;-)
TechTV covered this earlier this year so you might want to read their breif article for more information.
Basically, they're port scanning for open port 139s and spam IP that comes up positive. Either turn off the messenger service in services or install a firewall/router and block incoming tcp connections on port 139 (NetBIOS).
While you're at it, turn off the remote registry service...
I concur with you danielrose.
<RANT> Without denying MoonFacedAssassin the right to a response to a very pertinent question, I think that posting that on Ask SlashJeeves shows a suprising level of ignorance from Cliff. Or he is at the end of some coding spree? Because this question does dot belong here, but rather on some newsgroup like comp.security.firewall (someone help me there).
Anyway, let me end my RANT section by saying that the level of interest of ask slashdot has regularly reached new lows every day.
I'm worried, to say the least
</RANT>But let's drop the political/marketing aspect of that and take car of some real technical stuff:
(Yeah you guessed it, I'm getting pedantic during insomnias (it's 3:00 here)).- Get over it: an IP does not get spammed, because scannig block of addresses does not require any kind of disclosure from your ISP. They only have to have a router advertising their block of IP to the internet for those block of addresses to be scanned. Because having such a setup is one of the primary requirements to be an ISP. Sorry.
Even residing into some secret whois database won't change anything there.
- The second thing that worries me is that if you got a window messaging message, this means that you probably have a whole slew of netbios services exposed to the internet. Now listen carefully: if you ever have a shared printer or worst, drive, your machine is already hacked. Even not having shares might no be sufficient to protect you.
- If you followed me this far, well thank you !!!
Now, welcome to a brave new world !Believe me, I've got firsthand experiences of having systems simply plug onto the internet, not even having some DNS record, and beeing scanned after one days of routable IP presence.
And no, you don't want them to "protect" you from that, because if they start going big brother on you, you will notice a real drop on the number of things you can do online. Unless you really want only to surf and e-mail a bit, that will be perfectly understandable.
But that's another debate: since internet is a jungle now, do we want to see some new kind of ISP that babysits theyr not-so-technical users ?
I'm not trying to scare you there, it`s just a fact.
In this case, please unplug from the network and reinstall from scratch. Do not backup any executablte. And the first time you re-plug you machine on the internet, please go immediately shopping for a personnal firewall, like ZoneAlarm and such. Once this one is done, either make sure your anti-virus software is up to date, or get you one. This will give you a reasonnable amount of security.
[Pruneau
That happend to me around Midnight on Monday. I shut off the "Messenger" service in WinXP (although 2k has the same service) and I still had NetBIOS running without getting network popups (who uses them anyways?)
Hope this helps.
P.S. The "Messenger" service in the Services list has nothing to do with Windows/MSN Messenger, so please don't confuse the two. ^_^
"Black holes are where God divided by zero." - Steve Wright
I have 2 Windows computers at home that have public static IPs. Instead of using my DSL router on the windows machines, I've given them local IP addresses (192.168.*.*) and route them through my Linux server. There I've put up an iptables firewall with DNAT and SNAT, so that when the windows computers are routed through the firewall, they get their public IPs assigned to them, and you can access the computers from the outside with the public IPs. On the Linux router I've added tons of rules, and one of the most important rule is the one that blocks ports 0-1024 on all windows machines. All important ports are usually below 1024, so I can basically run filesharing, etc. without having to worry about users accessing the files from the Internet (or accessing windows messaging). However, since all ports above 1024 are unblocked, and have a public IP due to the SNAT, the users on the windows machines can use P2P apps, play games online, etc. since their machines are accessible from the outside. This has worked extremely well for a long time, no need for firewalls on the windows boxes (like Norton Internet Security). I haven't experienced any viruses, hackers or unwanted pr0n sent to the printers because of open ports. :-)
Spam Takes New Form
Your so-called "Senior Security Engineer" needs to get a little more training. Port 135 has absolutely nothing to do with the Windows Messenger service.
Port 135 is the RPC/DCOM portmapper in Windows. It performs the exact same service that port 111 does on a Unix box offering RPC services. It allows remote RPC calls to "find" the dynamically assigned port that their target service is running on.
Windows Messenger does not use RPC or DCOM. It uses part of the same protocol that SAMBA uses.
OK, please do not regard this as bashing. It's just the correct answer to anyone with this problem - if you don't like it, the problem is not in the answer.
NETBIOS CANNOT BE SECURED. If you leave your netbios ports open, you can be cracked to such a degree that it will be impossible for anyone other than a forensic analyst (who will boot from a linux or BSD boot disk) to detect. Netbios is only a viable solution on TRUSTED networks, which the Internet isn't, by definition.
YOU ARE PROBABLY OWNED. Your machine is most likely already completely compromised, and is happily working on cracking RC5 ciphers for somebody you've never met. See the honeynet project for more information (incidentally, one of the founders of honeynet reportedly got cracked by el8; everybody can make mistakes).
YOUR BEST OPTION IS TO FORMAT YOUR HARD DRIVE. The fastest, most reliable way to remove any possibility of a problem is to reload your system from a read-only media - i.e. your windows distribution disk. You must scrub the hard drive first, though; there are programs that can survive windows reinstallation unless this step is taken. You must also disconnect your Internet connection until you have a firewall running, to be absolutely safe; you should buy the firewall or get a friend with a more secure system to download one for you, since anything you download with your machine is suspect.
Hope this helped!
255.255.255.255 is not a valid subnet mask. the most restrictive possible subnet mask is 255.255.255.252, and it has two usable IPs, one for a gateway and one for a computer.