Compare commits

...

6 commits

Author SHA1 Message Date
natitomattis
e16c2ab465
Merge bec64f2306 into c556d02a30 2025-07-02 19:42:47 +02:00
t3chn0m4g3
c556d02a30 update issue templates 2025-07-02 19:41:32 +02:00
t3chn0m4g3
2f0a9f7f49 fixes #1807 via 93048e724a
thanks to @trixam 🚀❤️
2025-07-02 15:04:37 +02:00
t3chn0m4g3
175e1944c2 Bump Elastic Stack to 8.18.3
- Logstash: include syslog output plugin and config example
2025-06-30 16:06:45 +02:00
natitomattis
bec64f2306 typo 2025-04-10 07:59:15 -03:00
natitomattis
b08bd2bd1c small fix on upgrade.sh 2025-04-10 07:35:27 -03:00
10 changed files with 41 additions and 22 deletions

View file

@ -10,10 +10,10 @@ assignees: ''
# Successfully raise an issue # Successfully raise an issue
Before you post your issue make sure it has not been answered yet and provide **⚠️ BASIC SUPPORT INFORMATION** (as requested below) if you come to the conclusion it is a new issue. Before you post your issue make sure it has not been answered yet and provide **⚠️ BASIC SUPPORT INFORMATION** (as requested below) if you come to the conclusion it is a new issue.
- 🔍 Use the [search function](https://github.com/dtag-dev-sec/tpotce/issues?utf8=%E2%9C%93&q=) first - 🔍 Use the [search function](https://github.com/telekom-security/tpotce/issues?utf8=%E2%9C%93&q=) first
- 🧐 Check our [Wiki](https://github.com/dtag-dev-sec/tpotce/wiki) and the [discussions](https://github.com/telekom-security/tpotce/discussions) - 🧐 Check our [Config Examples & Tutorials](https://github.com/telekom-security/tpotce/discussions/categories/config-examples-tutorials) and the [discussions](https://github.com/telekom-security/tpotce/discussions) in general.
- 📚 Consult the documentation of 💻 your Linux OS, 🐳 [Docker](https://docs.docker.com/), the 🦌 [Elastic stack](https://www.elastic.co/guide/index.html) and the 🍯 [T-Pot Readme](https://github.com/dtag-dev-sec/tpotce/blob/master/README.md). - 📚 Consult the documentation of 💻 your Linux OS, 🐳 [Docker](https://docs.docker.com/), the 🦌 [Elastic stack](https://www.elastic.co/guide/index.html) and the 🍯 [T-Pot Readme](https://github.com/telekom-security/tpotce/blob/master/README.md).
- ⚙️ The [Troubleshoot Section](https://github.com/telekom-security/tpotce?tab=readme-ov-file#troubleshooting) of the [T-Pot Readme](https://github.com/dtag-dev-sec/tpotce/blob/master/README.md) is a good starting point to collect a good set of information for the issue and / or to fix things on your own. - ⚙️ The [Troubleshoot Section](https://github.com/telekom-security/tpotce?tab=readme-ov-file#troubleshooting) of the [T-Pot Readme](https://github.com/telekom-security/tpotce/blob/master/README.md) is a good starting point to collect a good set of information for the issue and / or to fix things on your own.
- **⚠️ Provide [BASIC SUPPORT INFORMATION](#-basic-support-information-commands-are-expected-to-run-as-root) or similar detailed information with regard to your issue or we will close the issue or convert it into a discussion without further interaction from the maintainers**.<br> - **⚠️ Provide [BASIC SUPPORT INFORMATION](#-basic-support-information-commands-are-expected-to-run-as-root) or similar detailed information with regard to your issue or we will close the issue or convert it into a discussion without further interaction from the maintainers**.<br>
# ⚠️ Basic support information (commands are expected to run as `root`) # ⚠️ Basic support information (commands are expected to run as `root`)

View file

@ -10,10 +10,10 @@ assignees: ''
# Successfully raise an issue # Successfully raise an issue
Before you post your issue make sure it has not been answered yet and provide **⚠️ BASIC SUPPORT INFORMATION** (as requested below) if you come to the conclusion it is a new issue. Before you post your issue make sure it has not been answered yet and provide **⚠️ BASIC SUPPORT INFORMATION** (as requested below) if you come to the conclusion it is a new issue.
- 🔍 Use the [search function](https://github.com/dtag-dev-sec/tpotce/issues?utf8=%E2%9C%93&q=) first - 🔍 Use the [search function](https://github.com/telekom-security/tpotce/issues?utf8=%E2%9C%93&q=) first
- 🧐 Check our [Wiki](https://github.com/dtag-dev-sec/tpotce/wiki) and the [discussions](https://github.com/telekom-security/tpotce/discussions) - 🧐 Check our [Config Examples & Tutorials](https://github.com/telekom-security/tpotce/discussions/categories/config-examples-tutorials) and the [discussions](https://github.com/telekom-security/tpotce/discussions) in general.
- 📚 Consult the documentation of 💻 your Linux OS, 🐳 [Docker](https://docs.docker.com/), the 🦌 [Elastic stack](https://www.elastic.co/guide/index.html) and the 🍯 [T-Pot Readme](https://github.com/dtag-dev-sec/tpotce/blob/master/README.md). - 📚 Consult the documentation of 💻 your Linux OS, 🐳 [Docker](https://docs.docker.com/), the 🦌 [Elastic stack](https://www.elastic.co/guide/index.html) and the 🍯 [T-Pot Readme](https://github.com/telekom-security/tpotce/blob/master/README.md).
- ⚙️ The [Troubleshoot Section](https://github.com/telekom-security/tpotce?tab=readme-ov-file#troubleshooting) of the [T-Pot Readme](https://github.com/dtag-dev-sec/tpotce/blob/master/README.md) is a good starting point to collect a good set of information for the issue and / or to fix things on your own. - ⚙️ The [Troubleshoot Section](https://github.com/telekom-security/tpotce?tab=readme-ov-file#troubleshooting) of the [T-Pot Readme](https://github.com/telekom-security/tpotce/blob/master/README.md) is a good starting point to collect a good set of information for the issue and / or to fix things on your own.
- **⚠️ Provide [BASIC SUPPORT INFORMATION](#-basic-support-information-commands-are-expected-to-run-as-root) or similar detailed information with regard to your issue or we will close the issue or convert it into a discussion without further interaction from the maintainers**.<br> - **⚠️ Provide [BASIC SUPPORT INFORMATION](#-basic-support-information-commands-are-expected-to-run-as-root) or similar detailed information with regard to your issue or we will close the issue or convert it into a discussion without further interaction from the maintainers**.<br>
# ⚠️ Basic support information (commands are expected to run as `root`) # ⚠️ Basic support information (commands are expected to run as `root`)

View file

@ -22,7 +22,7 @@ services:
mem_limit: 4g mem_limit: 4g
ports: ports:
- "127.0.0.1:64298:9200" - "127.0.0.1:64298:9200"
image: "dtagdevsec/elasticsearch:24.04" image: "ghcr.io/telekom-security/elasticsearch:24.04.1"
volumes: volumes:
- $HOME/tpotce/data:/data - $HOME/tpotce/data:/data
@ -38,7 +38,7 @@ services:
mem_limit: 1g mem_limit: 1g
ports: ports:
- "127.0.0.1:64296:5601" - "127.0.0.1:64296:5601"
image: "dtagdevsec/kibana:24.04" image: "ghcr.io/telekom-security/kibana:24.04.1"
## Logstash service ## Logstash service
logstash: logstash:
@ -50,7 +50,7 @@ services:
depends_on: depends_on:
elasticsearch: elasticsearch:
condition: service_healthy condition: service_healthy
image: "dtagdevsec/logstash:24.04" image: "ghcr.io/telekom-security/logstash:24.04.1"
volumes: volumes:
- $HOME/tpotce/data:/data - $HOME/tpotce/data:/data
# - /root/tpotce/docker/elk/logstash/dist/logstash.conf:/etc/logstash/conf.d/logstash.conf # - /root/tpotce/docker/elk/logstash/dist/logstash.conf:/etc/logstash/conf.d/logstash.conf
@ -63,7 +63,7 @@ services:
tty: true tty: true
ports: ports:
- "127.0.0.1:6379:6379" - "127.0.0.1:6379:6379"
image: "dtagdevsec/redis:24.04" image: "ghcr.io/telekom-security/redis:24.04.1"
read_only: true read_only: true
# Map Web Service # Map Web Service
@ -77,7 +77,7 @@ services:
tty: true tty: true
ports: ports:
- "127.0.0.1:64299:64299" - "127.0.0.1:64299:64299"
image: "dtagdevsec/map:24.04" image: "ghcr.io/telekom-security/map:24.04.1"
depends_on: depends_on:
- map_redis - map_redis
@ -89,6 +89,6 @@ services:
- MAP_COMMAND=DataServer_v2.py - MAP_COMMAND=DataServer_v2.py
stop_signal: SIGKILL stop_signal: SIGKILL
tty: true tty: true
image: "dtagdevsec/map:24.04" image: "ghcr.io/telekom-security/map:24.04.1"
depends_on: depends_on:
- map_redis - map_redis

View file

@ -1,6 +1,6 @@
FROM ubuntu:24.04 FROM ubuntu:24.04
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ENV ES_VER=8.18.2 ENV ES_VER=8.18.3
# #
# Include dist # Include dist
COPY dist/ /root/dist/ COPY dist/ /root/dist/

View file

@ -1,5 +1,5 @@
FROM node:20.18.2-alpine3.20 FROM node:20.19.2-alpine3.20
ENV KB_VER=8.18.2 ENV KB_VER=8.18.3
# #
# Include dist # Include dist
COPY dist/ /root/dist/ COPY dist/ /root/dist/

View file

@ -1,6 +1,6 @@
FROM ubuntu:24.04 FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV LS_VER=8.18.2 ENV LS_VER=8.18.3
# #
# Include dist # Include dist
COPY dist/ /root/dist/ COPY dist/ /root/dist/
@ -42,6 +42,7 @@ RUN apt-get update -y && \
cp tpot-template.json /etc/logstash/ && \ cp tpot-template.json /etc/logstash/ && \
cd /usr/share/logstash && \ cd /usr/share/logstash && \
bin/logstash-plugin update logstash-filter-translate && \ bin/logstash-plugin update logstash-filter-translate && \
bin/logstash-plugin install logstash-output-syslog && \
rm /etc/logstash/pipelines.yml && \ rm /etc/logstash/pipelines.yml && \
rm /etc/logstash/logstash.yml && \ rm /etc/logstash/logstash.yml && \
# #

View file

@ -17,5 +17,12 @@ output {
template => "/etc/logstash/tpot-template.json" template => "/etc/logstash/tpot-template.json"
template_overwrite => "true" template_overwrite => "true"
} }
# Syslog Output Example
# syslog {
# host => "192.168.1.1"
# port => 514
# protocol => tcp
# appname => "logstash-logs"
# severity => "6"
# }
} }

View file

@ -816,7 +816,14 @@ output {
template => "/etc/logstash/tpot-template.json" template => "/etc/logstash/tpot-template.json"
template_overwrite => "true" template_overwrite => "true"
} }
# Syslog Output Example
# syslog {
# host => "192.168.1.1"
# port => 514
# protocol => tcp
# appname => "logstash-logs"
# severity => "6"
# }
#if [type] == "Suricata" { #if [type] == "Suricata" {
# file { # file {
# file_mode => 0770 # file_mode => 0770

View file

@ -33,8 +33,8 @@ RUN apk --no-cache -U upgrade && \
xmljson && \ xmljson && \
# #
# Setup ewsposter # Setup ewsposter
git clone https://github.com/telekom-security/ewsposter /opt/ewsposter && \ # git clone https://github.com/telekom-security/ewsposter /opt/ewsposter && \
# git clone https://github.com/telekom-security/ewsposter -b v1.32 /opt/ewsposter && \ git clone https://github.com/telekom-security/ewsposter -b v1.33 /opt/ewsposter && \
mkdir -p /opt/ewsposter/spool /opt/ewsposter/log && \ mkdir -p /opt/ewsposter/spool /opt/ewsposter/log && \
# #
# Setup user and groups # Setup user and groups

View file

@ -188,6 +188,10 @@ function fuRESTORE () {
fi fi
echo "### Restoring T-Pot config file .env" echo "### Restoring T-Pot config file .env"
tar xvf $myARCHIVE .env -C $HOME/tpotce >/dev/null 2>&1 tar xvf $myARCHIVE .env -C $HOME/tpotce >/dev/null 2>&1
# Backup file (.env) contains a record of the TPOT_VERSION that is used in docker-compose commmands.
# We should upgrade the version in this file after restoring the backup.
newVERSION=$(cat version)
sed -i 's/^TPOT_VERSION=.*/TPOT_VERSION=${newVERSION}/' $HOME/tpotce/.env
} }
################ ################