Setting Up a Honeypot On Linux For Security 06-13-2013, 08:24 AM
#1
Intro
Hello HC!
Today the topic of my tutorial is Creating a Honeypot on Linux but before we continue we need to understand what the term "Honeypot" stands for:
Usually Honeypot are of three types:
For this tutorial we going to take a look at only Low Interaction Honeypot, this type of Honeypot deploys services that are frequent targets for hackers. This type of honeypot has code, and can be installed on a physical system, This honeypot is not complex either.
There are many Honeypot Programs but the one we are going to install is called "Artillery". It's developed by the same team who have made SET (Social Engineering Toolkit
)
Installing Artillery
First of all open a Terminal and type the following command as root:
Then Navigate to the folder "artillery" by typing:
It has a setup.py script read y to be executed so type:
Follow the on screen instructions from the CLI and complete the installation
Configuring Artillery
Artillery has a configuration file which lets you edit it's configurations easily, For that in the same terminal as before type:
Now the Text Editor will open your Config file, Make sure the following things are set correctly:
Once you have done editing, Type the following code in the same terminal:
Operational Check
To see if Artillery is operating correctly, type the following netstat command in your terminal:
You should see the following:
![[Image: ZSYZaIZ.png]](http://i.imgur.com/ZSYZaIZ.png)
What are these?
These are actually the dummy ports setup by artillery to see if someone connects to it, scans on them etc. If it detects suspicious activity it blocks the IP permanently.
Working Test
To test Artillery, From another PC. run the following command:
e.g:
Next time you connect, You'll get a connection error. I'll be posting some more testing stuff later
Congratulations, You’ve setup a small low-interaction Honeypot on your system
Tutorial by Ex094
Hello HC!
Today the topic of my tutorial is Creating a Honeypot on Linux but before we continue we need to understand what the term "Honeypot" stands for:
Code:
In easy words, Honeypot is a fake system which is used to set a trap for intruders trying to gain unauthorized access to your system. A Honeypot is like a virtual program which tends to be a part of the computer and the network on which it is installed. A Honeypot detects scans, bruteforce attempts, nmap service scans, pings, telnet connections and more!Usually Honeypot are of three types:
Code:
1) Pure Honeypot
2) High Interaction Honeypot
3) Low interaction HoneypotFor this tutorial we going to take a look at only Low Interaction Honeypot, this type of Honeypot deploys services that are frequent targets for hackers. This type of honeypot has code, and can be installed on a physical system, This honeypot is not complex either.
There are many Honeypot Programs but the one we are going to install is called "Artillery". It's developed by the same team who have made SET (Social Engineering Toolkit
)Installing Artillery
First of all open a Terminal and type the following command as root:
Code:
sudo git clone https://github.com/trustedsec/artillery/ artillery/Then Navigate to the folder "artillery" by typing:
Code:
cd artilleryIt has a setup.py script read y to be executed so type:
Code:
sudo python setup.pyFollow the on screen instructions from the CLI and complete the installation
Configuring Artillery
Artillery has a configuration file which lets you edit it's configurations easily, For that in the same terminal as before type:
Code:
sudo gedit configNow the Text Editor will open your Config file, Make sure the following things are set correctly:
Code:
# DO YOU WANT TO TURN ON THE HONEYPOT
HONEYPOT=YES
# DO YOU WANT TO AUTOMATICALLY BAN ON THE HONEYPOT
HONEYPOT_BAN=YES
# PORTS TO SPAWN HONEYPOT FOR
PORTS="135,445,22,1433,3389,8080,21,5900,25,53,110,1723,1337,10000,5800,44443"
# DO YOU WANT TO MONITOR SSH BRUTE FORCE ATTEMPTS
SSH_BRUTE_MONITOR=ON
# HOW MANY ATTEMPTS BEFORE YOU BAN
SSH_BRUTE_ATTEMPTS=4Once you have done editing, Type the following code in the same terminal:
Code:
sudo python restart_server.pyOperational Check
To see if Artillery is operating correctly, type the following netstat command in your terminal:
Code:
netstat -antpYou should see the following:
![[Image: ZSYZaIZ.png]](http://i.imgur.com/ZSYZaIZ.png)
What are these?
These are actually the dummy ports setup by artillery to see if someone connects to it, scans on them etc. If it detects suspicious activity it blocks the IP permanently.
Working Test
To test Artillery, From another PC. run the following command:
Code:
telnet your_artillery_pc_IP artillery_dummy_porte.g:
Code:
telnet 192.168.0.120 445Next time you connect, You'll get a connection error. I'll be posting some more testing stuff later
Congratulations, You’ve setup a small low-interaction Honeypot on your system

Tutorial by Ex094


![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: fa00a00749.jpg]](http://puu.sh/aAFI1/fa00a00749.jpg)

![[Image: 4180_gif_by_d53865-d31l0il.gif]](http://fc06.deviantart.net/fs70/f/2010/299/7/7/4180_gif_by_d53865-d31l0il.gif)