LinuxLinks.com
Newbies What Next ? News Forums Calendar
News Sections
Home
General News (3770/0)
Reviews (576/0)
Press Releases (450/0)
Distributions (132/0)
Software (515/0)
Hardware (383/0)
Security (188/0)
Tutorials (290/0)
Off Topic (168/0)

Related sites

User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User

Events
There are no upcoming events



Denyhosts

Denyhosts

DenyHosts is a Python script that analyzes the sshd server log messages to determine what hosts are attempting to hack into your system. It also determines what user accounts are being targeted. It keeps track of the frequency of attempts from each host. 

It is intended to prevent brute force attacks on SSH servers by monitoring invalid login attempts in the authentication log and blocking the originating IP addresses.


 Denyhosts

License
GNU GPL

Developer
Phil Schwartz

Website
denyhosts.sourceforge.net

Requirements
Python v 2.3 or greater
sshd server configured with tcp_wrappers support enabled

Support:
FAQ
Mailing List

Selected Reviews:
Unix Review

Features include:

  • Parses /var/log/secure to find all login attempts and filters failed and successful attempts
  • Synchronization mode allows DenyHosts daemons the ability to share data via a centralized server to proactively thwart attacks
  • Can be run from the command line, cron or as a daemon
  • Records all failed login attempts for the user and offending host
  • For each host that exceeds a threshold count, records the evil host
  • Keeps track of each non-existent user (eg. sdadasd) when a login attempt failed
  • Keeps track of each existing user (eg. root) when a login attempt failed
  • Keeps track of each offending host
  • Keeps track of suspicious logins (that is, logins that were successful for a host that had many login failures)
  • Keeps track of the file offset, so that you can reparse the same file (/var/log/secure) continuously (until it is rotated).
  • When the log file is rotated, the script will detect it and parse from the beginning
  • Appends /etc/hosts.deny and adds the newly banned hosts
  • Optionally sends an email of newly banned hosts and suspicious logins
  • Keeps a history of all user, host, user/host combo and suspicious logins encountered which includes the data and number of corresponding failed login attempts
  • Maintains failed valid and invalid user login attempts in separate files, such that it is easy to see which valid user is under attack (which would give you the opportunity to remove the account, change the password or change it's default shell to something like /sbin/nologin
  • Upon each run, the script will load the previously saved data and re-use it to append new failures
  • Resolves IP addresses to hostnames, if available
  • /etc/hosts.deny entries can be expired (purge) at a user specified time
Return to Security Home Page


Last Updated Monday, May 05 2008 @ 03:10 AM EDT


Who's Online
Guest Users: 22

Local Content
Migrating from Windows to Linux
Fedora 7 review
TV Guides
Cedega 4.2.1 Review
Linux Guide
Xandros Desktop OS Version 3.0 Review
Zaurus Software Reviews

Older Stories
Tuesday 05/13
  • DSA-1575-1 linux-2.6 -- denial of service (0)
  • Nexuiz shoots to the top of gaming list (0)

  • Monday 05/12
  • How I dumped Windows for Linux - Day 1 (0)
  • Fedora 9 leaked (0)
  • Microsoft opens arms to Linux (0)
  • Shuttle KPC K-4500 Review (0)

  • Sunday 05/11
  • Linux Equivalents to Windows Software (0)
  • Why we love Ubuntu Linux (or maybe we don't) (0)
  • Intel multi-core threading library supports Sun Studio (0)
  • ARM-based controller has StackableUSB expansion (0)

  • Whats New
    STORIES
    5 stories in last 24 hours

    COMMENTS last 48 hrs
    No new comments

    LINKS last 2 wks
    No recent new links

    Vote

    What do you find MOST attractive about Open Source software?

    Amount of customization
    Security
    Freedom provided
    Speed of development
    Quality
    Multiple versions
    Cost
    Potential to contribute
    Ability to modify code
    Results
    675 votes | 0 comments

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright © 2002 LinuxLinks.com - All rights reserved