LokiSec.com

LokiSec.com
  • Security
    • Security Tools
    • Website Defense
    • Personal Security
    • Standards
  • Books
    • Technical

Using Rel1K’s Artillery To Protect Your Server

October 26, 2011 by CyberRad

If you are looking for a way to secure your linux server from some of the most common attacks being carried out today against linux servers then look no further then Rel1K’s Artillery program. Artillery is a combination of a honeypot, file monitoring and integrity, alerting, and brute force prevention tool.

Artillery acts like a honeypot by listening to ports you specify.  When someone does a port scan on your machine they will be blacklisted and an iptables entry will be added to block communication from that IP.  You can also configure it to send an email letting you know that the IP was blocked.  A whitelist is also available so you can add your IP addresses so they don’t get blocked when you are running an assessment on the server.

Not only does Artillery act like a honeypot but it also does file monitoring and integrity checking on directories you specify in the config file.  The file integrity mechanism leverages a 512-SHA database to monitor file changes.  If a change has been detected then an email can be sent to notify you of the change.

When is the last time you have looked at your auth.log?  I bet when you look at it that you will see attempts to authenticate to your server.  The SSH brute force detection and prevention module mitigates this issue by reading over your auth.log file.  Once it detects an attempt it adds that an iptables entry blocking communications from that IP.  The threshold of attempted logins is configurable.  By default it blocks after 4 attempts have been made.  As mentioned before there is a whitelist that prevents Artillery from adding your IP to iptables.

To download Artillery onto your server navigate to where you would like to download Artillery and type:
svn co http://svn.secmaniac.com/artillery artillery/

After it is downloaded open the artillery directory and type
./install.py.

Doing this will install Artillery in the /var directory, set it up to start at boot, and start Artillery.  Kill the Artillery process by finding it’s PID and customize the config file to fit your environment.
ps aux |grep Artillery
kill (PID)
nano /var/artillery/config

When you are done editing the config file start Artillery back up.
/etc/init.d/Artillery

Please keep in mind that as of this writing that Artillery is in Alpha and may have a few kinks in it.  I have ran it for a few days now with only one minor issue.

Check out Rel1K’s other projects at SecManiac.com which include the Social-Engineer Toolkit, Derbycon, and Metasploit: The Penetration Tester’s Guide (Excellent Read!).  Also, be sure to get your free hug from him as well.

Posted in Website Defense and tagged with apache, Dave, Derbycon, free hugs, Linux, rel1K, scan, security, SET, tools, tutorial, web, website. RSS 2.0 feed.
« How to perform a SQL Injection Attack
What to do after your *nix web server has been compromised »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent Posts

  • Backtrack 5 r3 has been released!
  • Metasploit: The Penetration Tester’s Guide
  • Google Hacking
  • Backtrack 5 r2 has been released!
  • Going Phishing with the Social Engineering Toolkit

Twitter Feed

  • RT @smhack1: The Space is open for the members hangout. Become a dues paying member and hangout with us. 1 day ago

  • RT @smhack1: We are participating in the Extra Life 2013 event http://t.co/aqg6mWYllF 5 days ago

  • I'm supporting @CMNHospitals through @ExtraLife4Kids! http://t.co/BtApLZUBx9 via @DonorDrive Help me reach my goal! 5 days ago

Archives

  • August 2012
  • June 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • October 2011
  • September 2011
  • August 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011

Tags

802.11 aircrack-ng aliases apache armitage audit Backtrack cree.py creepy flicker geolocation GUI hacker iis Linux metasploit meterpreter netcat network Nmap No Pentest php PTES Quality scan security SET Snort SQLi swiss army knife tools tutorial twitter Uber user-agent vulnerability w3af web weblabyrinth website WEP wireless WPA WPA2

Search

Spread the word!

Blogroll

  • Carnal0wnage
  • Darknet
  • DigiNinja
  • McGrew Security
  • mubix
  • PaulDotCom
  • SpyLogic
  • TaoSecurity

© 2011-2013 LokiSec.com All Rights Reserved