Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
DShield-SIEM — DShield Sensor Log Collection with ELK | Kitploit
工具/GitHubGitHub/bruneaug/dshield-siem
Defensive ToolsThreat Feeds & AggregatorsNetwork SecurityThreat IntelligenceIntrusion DetectionIncident ResponseLog Analysis
GitHubbruneaug/dshield-siem

DShield-SIEM

DShield Sensor Log Collection with ELK

查看仓库
5310424天前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
内容在请求的语言中不可用。显示英文版本。

DShield Sensor Log Collection with Elasticsearch

Introduction

This is fork and a significant update from the initial publication on the ISC Storm Center website by Scott Jensen as a BACS paper and the scripts published in Github.
https://github.com/fkadriver/Dshield-ELK
https://isc.sans.edu/diary/DShield+Sensor+Monitoring+with+a+Docker+ELK+Stack+Guest+Diary/30118

This is a good reference on howto use DShield-SIEM for analysis: https://isc.sans.edu/diary/30962/

DShield SIEM Network Flow

This provides an overview how the log collection with the DShield sensor is done.
https://github.com/bruneaug/DShield-SIEM/blob/main/Troubleshooting/DShield-SIEM-Flow.png

Why Used it?

This docker is custom built to be used with the DShield Honeypot to collect and parse the logs and collect the data to make it easy to search for research purposes. The suggested installation is to install the DShield sensor in a Rasperry using PI Raspbian OS or a system running Ubuntu 24.04 LTS either in your network or in the cloud of your choice.

Note: This must be installed on a separate server as per the instruction below.

  • This was tested on Ubuntu 24.04 & 26.04 LTS or Proxmox LXC Container
  • Step 1 build Ubuntu
  • Step 2 install docker and ELK
  • Step 3 install and configure Filebeat on DShield Sensor(s)

Ubuntu Setup

Like in an enterprise, a system collecting security logs and monitoring a network like the DShield SIEM, it need to be installed on a separately server and not with the DShield sensor.

  • Ubuntu 24.04 LTS Live Server 64-Bit
  • Minimum 10+ GB - Recommended 12 GB RAM
    • If the amount of RAM assigned to each containers (see below) is more than 2GB, consider increasing the server RAM capacity.
  • 4-8 Cores
  • Add 2 partitions, one for the OS, the other for docker
  • Minimum 300 GB partition assigned to /var/lib/docker
  • After Ubuntu is rebooted, setup the docker partition
  • Adding a 300 GB partition to a VM

Elastic Installed Packages

ELK Current Version: 8.19.15 (Updated 30 April 2026)

  • Kibana
  • Elasticsearch
  • Logstash
  • Elastic-Agent
  • Filebeat
  • Heartbeat
  • Metricbeat

Additional Software

  • CyberChef
  • Mitre ATT&CK - Attack Navigator

Note: To update ELK server components, follow these steps:
https://github.com/bruneaug/DShield-SIEM/blob/main/README.md#download-github-update

Install docker

Install docker as user ($) account:

sudo apt-get install ca-certificates curl gnupg network-manager txt2html
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
Note: You may need to take the next line, remove the backlash () and put everythin in a single line in Notepad to run this echo.
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update && sudo apt upgrade
sudo reboot (if update were applied)
sudo apt-get install -y jq docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin pip
sudo systemctl enable docker
sudo systemctl start docker.service

Confirm the docker service is running

sudo systemctl status docker.service

Update /etc/hosts

Add the following ELK servername es01 kibana fleet-server heartbeat logstash filebeat filebeat01
to /etc/hosts after the IP address and the server name:

sudo vi /etc/hosts

Add this to /etc/hosts after the ELK server IP addresses
127.0.0.1 sensor es01 ...
192.168.25.80 sensor es01 ...

es01 kibana fleet-server heartbeat logstash filebeat filebeat01

Add to sysctl vm.max_map_count

Edit the sysctl.conf file:

sudo vi /etc/sysctl.conf

Add the following at the bottom of the file:

vm.max_map_count=262144

Add save it. This is for Elasticsearch when using Docker.

Ensure the Firewall is Off

sudo iptables -nL

image

Configure and install DShield ELK

Using user ($) account, run the following commands:

git clone https://github.com/bruneaug/DShield-SIEM.git
mkdir scripts
mv DShield-SIEM/AddOnScripts/*.sh scripts
chmod 754 scripts/*.sh
cd ~/DShield-SIEM

Note: Before installation, you can edit the .env (ls -la to see it) file to make any derided changes.
- Current default password for elastic is student
Memory Limits in .env are the most memory that docker will allocate for each of the ELK containers.
Default to 3GB for Elasticsearch but can be expanded if you have the resources
Edit .env file and configure for your own ELK Stack

vi .env
  • Update the following variables in the .env file to match your ELK server DNS information, hostname, IP and default elastic password if you want to change it:
    • HOSTNAME="ubuntu"
    • DNS_SERVER="9.9.9.9"
    • IPADDRESS="192.168.25.231"
    • ELASTIC_PASSWORD=student
    • ES_MEM = Elasticsearch -> 4g, KB_MEM = Kibana -> 2g
  • Change the default nameserver(s) information (192.168.25.2 and 192.168.25.3) in the 3 logstash files listed below and your local private network DNS and location using Google Maps for the destination address (i.e. DShield sensor mapping - currently set for Ottawa, Canada), edit to the following files before loading docker:
  cd logstash/pipeline
  • logstash-200-filter-cowrie.conf
  • logstash-201-filter-iptables.conf
  • logstash-202-filter-cowrie-webhoneypot.conf
    Change the default to have accurate information in DShied SIEM, edit each files and change them.

Configuring ELK Infrastructure Monitoring

Edit heartbeat.yml to change the sensor IP (named PI) with your own sensor IP. Kibana heartbeat check the status of your services and determine whether they are available.
Update this IP and hostname to reflect your sensor. Note: You can copy and add same 5 lines if you have more than one sensor you would like to monitor

This can be viewed Observability -> Uptime Monitors
image

This line is the sensor IP address. If it doesn't received a respose while connecting to TCP 12222, it will mark it as down in the interface.
This is initiated by the ELK server to check the response from the sensor.
Update this line: hosts: ["192.168.25.165"]

vi ~/DShield-SIEM/heartbeat/heartbeat.yml

The script change_perms.sh will configure some of the files before starting the installation of the docker components.
The script will also update the IP address used in the dashboard query to the IP of your ELK stack.

~/scripts/change_perms.sh
~/scripts/get_researchers.sh

Now execute docker compose to build the ELK server applications.
This will build: Kibana, Elasticsearch, elastic-agent, Logstash and load the Cowrie parsers, configuration files and dashboard.

sudo docker compose up -d

Installation Completed

image
下载工具