visit
One of my favourite areas of cybersecurity is SIEM (Security Incident Event Management). In 2017 I wrote a post on , one of my recommendations was using the as a SIEM as a start-off point for those looking to understand log analysis and how to investigate incidents. But one of the main gripes people had was, where can they get data to work on in their home environments. This post will focus on setting up a honeypot that already utilises the ELK Stack…
Honeypot is a system, whose sole purpose is to attract potential intruders and record their activity, to further analyse and investigate security breaches. In practice, a lot of devices can be classified as honeypots. By being enticing (i.e open ssh ports, unsecured S3 buckets etc), it is possible to generate logs from this into a SIEM platform like or Elastic and perform some threat intel. More often, honeypots 🤝 bot networks.
<iframe class="airtable-embed" src="//airtable.com/embed/shr8iwURPGxrthCkJ?backgroundColor=gray" frameborder="0" onmousewheel="" width="100%" height="533" style="background: transparent; border: 1px solid #ccc;"></iframe>
Requirements:
git clone //github.com/dtag-dev-sec/tpotce
cd tpotce/iso/installer/
./install.sh --type=user
There’s different variations of T-Pot depending on what you’re looking for. Based on the server I have provisioned, I’ll be selecting the standard build which includes all the honeypots and access to the ELK dashboard.
The installer will also then ask you for a username and password, this will be used to access Kibana and view the honeypot data. After all the dependencies are installed, the server will reboot.
After the reboot, as port 22 (ssh),port 80 (http) and port 443 (https) are now being utilised by the honeypot, you will find you won’t be able to access the honeypot anymore. But all we need to do is amend the firewall rules in GCP.
From the main console page on GCP compute engine page, click on the VM instance you wish to manage and click on view network details.
Click on firewall rules and you will find the SSH is still set to 80 and so will the https port. You can delete or amend the rules and add the following:
SSH: Port 64295
HTTPS: 64297These will be the ports used to connect to the honeypot. As I don’t see myself needing to SSH regularly to the honeypot, I have disabled the rule for SSH. You are also welcome to amend the firewall rules so that only your IP address will be accepted into the honeypot via SSH or https. You will now be able to connect to Kibana using:Using the credentials you created during setup, you will now be able to log into Kibana and view the data coming in from your honeypot. It took 16 minutes before I had my first attack. On Kibana, the team at T-Pot have developed dashboards already which you can use based on the honeypot data you wish to view. You will also have access to the following tools with your deployment:
— A web app for encryption, encoding, compression and data analysis.
— A web front end to maintain your elasticsearch cluster.
Spiderfoot — A reconnaissance tool that automatically queries over 100 public data sources (OSINT) to gather intelligence