Skip to contentSkip to conversation

Looking for automation scripts

DISCUSSION Tim Heagarty 7 participants 8 messages Jan 5, 2007 – Jan 6, 2007 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use? I've found a few things with google but respect the collective out here much more.

Thank you,

Tim Heagarty, CISSP, CISA, MCSE
http://www.TheaSecure.com/
(928) 533-9690
"There are 10 kinds of people in the world; those that understand binary, and those that don't."

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM

#1 lore raw
Quoted 15 lines · Tim Heagarty

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use? I've found a few things with google but respect the collective out here much more.

Thank you,

Tim Heagarty, CISSP, CISA, MCSE
http://www.TheaSecure.com/
(928) 533-9690
"There are 10 kinds of people in the world; those that understand binary, and those that don't."

Quoted 5 lines

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM

Something like psad (www.cipherdyne.com/psad/)?

Dimitri

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#2 lore raw
Quoted 9 lines · Tim Heagarty
Quoted 5 lines

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use? I've found a few things with google but respect the collective out here much more.

Something like psad (www.cipherdyne.com/psad/)?

Or
http://lkml.org/lkml/2006/12/31/127
http://lkml.org/lkml/2007/1/1/34
http://lists.netfilter.org/pipermail/netfilter/2005-June/061254.html
http://lists.netfilter.org/pipermail/netfilter/2005-June/061328.html

	-`J'
#3 lore raw
In reply to Tim Heagarty

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tim Heagarty
Sent: Friday, January 05, 2007 11:45 AM
To: [email protected]
Subject: Looking for automation scripts

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use? I've found a few things with google but respect the collective out here much more.

Thank you,

Tim Heagarty, CISSP, CISA, MCSE
http://www.TheaSecure.com/
(928) 533-9690
"There are 10 kinds of people in the world; those that understand binary, and those that don't."

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM

Or . . . Something like dynfw: http://www.gentoo.org/proj/en/dynfw.xml

########################################################
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

[email protected]
MailScanner at Bandwidthco Computer Security is for your absolute protection.
########################################################

#4 lore raw

Have a look at http://www.ossec.net

it has just the features you are after, and can monitor a bunch of log types (auth logs to look for failed ssh log-ins, apache logs, mail logs, and even talks to snort so it can block upon portscans, etc).

Cheers,
Andrew

Quoted 43 lines · markee

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tim Heagarty
Sent: Friday, January 05, 2007 11:45 AM
To: [email protected]
Subject: Looking for automation scripts

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use? I've found a few things with google but respect the collective out here much more.

Thank you,

Tim Heagarty, CISSP, CISA, MCSE
http://www.TheaSecure.com/
(928) 533-9690
"There are 10 kinds of people in the world; those that understand binary, and those that don't."

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM

Or . . . Something like dynfw: http://www.gentoo.org/proj/en/dynfw.xml

########################################################
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

[email protected]
MailScanner at Bandwidthco Computer Security is for your absolute protection.
########################################################

#5 lore raw
In reply to markee
Quoted 4 lines

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use?

denyhosts.sf.net?

Quoted 2 lines

I've found a few things with google but respect the collective out here much more.

	-`J'
#6 lore raw
Quoted 6 lines · Jan Engelhardt
Quoted 4 lines

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use?

denyhosts.sf.net?

While denyhosts is a good concept, I question whether it provides a real security benefit. If a new remotely exploitable vulnerability is discovered in OpenSSH (or other ssh implementation) it will most likely have nothing to do with trying to brute force passwords. Doing a quick search through http://www.securityfocus.com/bid/ turns up recent SSH security issues (not necessarily highly critical, but it is only a matter of time).

A better strategy is to use iptables to maintain a default-drop stance against all attempts to connect to the SSH daemon, but allow access via Single Packet Authorization. This way people can't even tell that you are running an SSH server at all. An nmap scan is completely useless against this, and it doesn't matter even if someone has a zero-day attack for your SSH daemon. Here is an SPA implementation:

http://www.cipherdyne.org/fwknop/

(Disclaimer: I developed fwknop)

Here is a howto for using GPG keys with fwknop:

http://www.cipherdyne.org/fwknop/docs/gpghowto.html

--
Michael Rash
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F

#8 lore raw
In reply to a message not in the archive

See http://fut.patch.com

I am planning and working on an extension to fut that will permit sysadmins to share the ip's of idiots.

William Perry

Quoted 30 lines · [email protected] wrote:

Am 06.01.2007 um 16:27 schrieb Michael Rash:

Quoted 8 lines · Jan Engelhardt
Quoted 6 lines
Quoted 4 lines

I've seen a few references here to scripts that monitor attacks and dynamically update iptables rules to knock down the attacks. Can anyone provide some good research starting points or sample scripts that they use?

denyhosts.sf.net?

Quoted 7 lines

While denyhosts is a good concept, I question whether it provides a real security benefit. If a new remotely exploitable vulnerability is discovered in OpenSSH (or other ssh implementation) it will most likely have nothing to do with trying to brute force passwords. Doing a quick search through http://www.securityfocus.com/bid/ turns up recent SSH security issues (not necessarily highly critical, but it is only a matter of time).

.. its recommendable as a second instance of a "firewall" framework.

Signature · 5 lines
This sounds also good: http://fail2ban.sourceforge.net

Best Regards

CM