- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Samba Denial of Service Attack
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 04:52 AM
05-14-2004 04:52 AM
Basically it went like this:
There were samba authentication attempts, which all failed, but generated little log files.
ipaddress.log in the directory on /var where samba stores its logs.
Honestly, I wasn't aware that samba kept logs like this, but I never bothered to look before.
There were hundreds of thousands of attempts, each creating log files. Several of the attempts managed to create rather huge log files.
So /var filled up and the systems stop accepting mail, which is how it came to my attention.
Actions taken thus far:
1) Blocked Port 137,138,139(netbios) and 901(swat) on the firewall, public Internet NIC card.
2)Analyzed the log files.
Questions:
1) Has anyone seen this before?
2) What additional security measures do I need to take? I have no need to provide samba services outside my private network.
3) General suggestions.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 05:16 AM
05-14-2004 05:16 AM
Solution1) Add 'hosts deny' and 'hosts allow' declerations to smb.conf like so
hosts deny = ALL
hosts allow = 127.0.0.1 192.168.0. 172.16.
That would deny all requests UNLESS they came from the loopback the Class C 192.168.0.xxx subnet, or the Class B 172.16.xxx.xxx subnet.
2) Use 'listen on' decleration to bind samba to a specific ip:
listen on = 192.168.0.42
3) Keep your new firewall rules in place...just in case :)
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 05:25 AM
05-14-2004 05:25 AM
Re: Samba Denial of Service Attack
log file = /var/opt/samba/log.%m
max log size = 10000
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 05:34 AM
05-14-2004 05:34 AM
Re: Samba Denial of Service Attack
Now I'm getting connection denied logs.
I guess the only alternative is to write a cron job to sweep the log directory on a regular basis.
The worm managed to eat 2.4 Gigabytes of disk space VERY,VERY fast.
I'm giving You a bunny because you earned it.
But this thread is OPEN!
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 05:59 AM
05-14-2004 05:59 AM
Re: Samba Denial of Service Attack
lib/access.c:check_access(328)
or
smdb/process.c:process_smb(883)
I'm assuming these numbers are not ports I can block.
Is there a firewall port I can block to stop this activity?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 06:15 AM
05-14-2004 06:15 AM
Re: Samba Denial of Service Attack
If you're still getting those errors, look towards infected machines on your network that still have access to the samba server. Maybe cron a job every hour that greps for the error phrase, pipes it through 'wc -l', and then emails you the results. Maybe it will trail off with the new access rules?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 06:16 AM
05-14-2004 06:16 AM
Re: Samba Denial of Service Attack
I found a link to a site that can provide you with more info on the subject.
http://security.wayne.edu/default/modules.php?name=News&file=article&sid=84
Have a nice weekend,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 08:12 AM
05-14-2004 08:12 AM
Re: Samba Denial of Service Attack
I think the worm is shut off by closing the samba port, port 445
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2004 10:49 PM
05-16-2004 10:49 PM
Re: Samba Denial of Service Attack
If the attack comes from multiple clients and you have Samba configured for one log file per client, you could end up with many log files - and the log file size limits become less important. You could consider changing the log file dir to something less important, perhaps a separate filesystem...
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 02:47 AM
05-17-2004 02:47 AM
Re: Samba Denial of Service Attack
It was all coming from port 445. I opened that port in hopes of doing samba mounts from outside my systems with my laptop as I travelled.
Very, bad idea. I'm working on VPN instead.
Once I shut port 445 i was okay.
ipfilters on hpux works nicely when you say block all traffic except what I authorize.
When I did that setting on the Linux boxes, iptables performance went down the tubes.
Apparently its more efficient to manually bloc the ports and leave the input setting set to ACCEPT.
That makes no sense.
This issue is resolved. Unless someone has come comments on my iptables problem which is better suited for a Linux thread.
Thanks.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 02:48 AM
05-17-2004 02:48 AM
Re: Samba Denial of Service Attack
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com