Web Hosting Talk


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : how to prevent user using brute force on it account
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)

 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-10-2008, 01:24 AM
xwing xwing is offline
View Beta Profile
Newbie
 
Join Date: Oct 2008
Location: malaysia
Posts: 6
* how to prevent user using brute force on it account

i had this problem that a user of mine is using the account on my linux vps to do brute forcing login/pass exploit,is there any way to prevent this?

Reply With Quote
Sponsored Links
  #2  
Old 10-10-2008, 02:34 AM
ServerSurgeon Martin ServerSurgeon Martin is offline
View Beta Profile
Newbie
 
Join Date: Jul 2008
Posts: 18
Hi,

You can use something like Logwatch and configure it to send emails to your mailbox, this will send emails with information who and from where tried bruteforce or dictionary attacks and based on this take measures(block account, Deny connections from some IP that was doing this).

__________________
Server Surgeon Martin
http://www.serversurgeon.com
Linux, BSD and Windows Administration Services
Toll Free US 877-378-7436International +1-213-291-9191

Reply With Quote
  #3  
Old 10-10-2008, 09:43 AM
xwing xwing is offline
View Beta Profile
Newbie
 
Join Date: Oct 2008
Location: malaysia
Posts: 6
*

aight sweeet

Reply With Quote
Sponsored Links
  #4  
Old 10-10-2008, 10:08 AM
eth1 eth1 is offline
View Beta Profile
Web Hosting Guru
 
Join Date: May 2008
Posts: 340
You can also install a firewall software such as CSF( www.configserver.com ) which along with LFD ( Login Failure Daemon ) will block the IP address of the offending computer trying to brute force on services such as POP3, SSH, IMAP etc.

Quote:
To complement the ConfigServer Firewall (csf), we have developed a Login Failure Daemon (lfd) process that runs all the time and periodically (every X seconds) scans the latest log file entries for login attempts against your server that continually fail within a short period of time. Such attempts are often called "Brute-force attacks" and the daemon process responds very quickly to such patterns and blocks offending IP's quickly. Other similar products run every x minutes via cron and as such often miss break-in attempts until after they've finished, our daemon eliminates such long waits and makes it much more effective at performing its task.

Reply With Quote
  #5  
Old 10-10-2008, 10:10 AM
activelobby4u activelobby4u is offline
View Beta Profile
Your support partner
 
Join Date: Apr 2005
Location: Queen of Arabian Sea
Posts: 1,885
apf/bfd is still one of the widely used methods apart from csf/lfd

__________________
Sandy @ SupportLobby
sales@supportlobby.com
http://supportlobby.com [Your 24/7 Extended Support Team]
Now offering exclusive windows support !!

Reply With Quote
  #6  
Old 10-10-2008, 10:27 AM
WeWatch WeWatch is offline
View Beta Profile
WHT Addict
 
Join Date: Oct 2008
Location: Chicago, IL
Posts: 110
Do you know for sure it's one of your users?

Could it be someone else using your VPS?

Have you seen the logs?

Reply With Quote
  #7  
Old 10-10-2008, 10:51 AM
psp7492 psp7492 is offline
View Beta Profile
WHT Addict
 
Join Date: Dec 2007
Posts: 156
If you have already identified the user, why don't you ban the user.

__________________
Webhosting to-check.in
You manage content, we manage the rest!

Reply With Quote
  #8  
Old 10-10-2008, 11:58 AM
xwing xwing is offline
View Beta Profile
Newbie
 
Join Date: Oct 2008
Location: malaysia
Posts: 6
the user has been banned and he admitted that it's just to test the program lol,im just want to avoid this kind of matter happen again on other users.

Reply With Quote
  #9  
Old 10-10-2008, 12:10 PM
Sh3khar Sh3khar is offline
View Beta Profile
Newbie
 
Join Date: Sep 2008
Posts: 17
Quote:
Originally Posted by xwing View Post
i had this problem that a user of mine is using the account on my linux vps to do brute forcing login/pass exploit,is there any way to prevent this?
I doubt any user on your VPS would be running such scripts. Such scripts are mostly uploaded under /tmp, /var/tmp, /dev/shm etc.

You can check all the ongoing processes running on your server using the command

ps -auxf

If the brute force is still going on, you will see the list of IPs the script is connecting to, get the PID of that process from the 2nd column and search the files the process is accessing using the command

lsof -p PID

Once you figure out the scripts, change the script permissions and kill the processes. Figuring out how the files were uploaded and securing your server accordingly is the next part.

Opps, I was posting the same time, when you figure out the client and posted your comments. However, the above commands will definitely help you to catch the user next time.

Regards.


Last edited by Sh3khar; 10-10-2008 at 12:13 PM. Reason: saw the client already figured out the user and posted his comments
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement: