From 5cc7173fd4ad7c1e468e4cd71a9880946df64df0 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sat, 30 Nov 2013 14:16:26 +1100 Subject: [PATCH] ENH: add xarf email sender for login-attack type --- config/action.d/xarf-login-attack.conf | 88 ++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 config/action.d/xarf-login-attack.conf diff --git a/config/action.d/xarf-login-attack.conf b/config/action.d/xarf-login-attack.conf new file mode 100644 index 00000000..bbc97ea8 --- /dev/null +++ b/config/action.d/xarf-login-attack.conf @@ -0,0 +1,88 @@ +# Fail2Ban action for sending xarf Login-Attack messages to IP owner +# +# This requires querycontact ( http://pypi.python.org/pypi/querycontacts/ ) +# sudo pip install querycontacts +# +# This uses the https://abusix.com/contactdb.html to lookup abuse contacts. +# +# +# XARF is a specification for sending a formatted response +# for non-messaging based abuse including: +# +# Login-Attack, Malware-Attack, Fraud (Phishing, etc.), Info DNSBL +# +# For details see: +# https://github.com/abusix/xarf-specification +# http://www.x-arf.org/schemata.html +# +# +# Based on complain written by Russell Odom +# +# + +[Definition] + +actionstart = + +actionstop = + +actioncheck = + +actionban = ADDRESSES=`querycontacts ` + IP= + FROM= + SERVICE= + FAILURES= + MATCHES= + DATE=`LC_TIME=C date -u --date=@