mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
tweaking:
- bump suricata to 7.0.7, update config, remove broadcast, multicast, netbios, igmp and mdns using capture-filter.bpf
This commit is contained in:
parent
486c97335f
commit
2747719f05
3 changed files with 32 additions and 9 deletions
|
@ -4,7 +4,8 @@ FROM alpine:edge
|
||||||
COPY dist/ /root/dist/
|
COPY dist/ /root/dist/
|
||||||
#
|
#
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk --no-cache -U add \
|
RUN apk --no-cache -U upgrade && \
|
||||||
|
apk --no-cache -U add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
file \
|
file \
|
||||||
|
|
6
docker/suricata/dist/capture-filter.bpf
vendored
6
docker/suricata/dist/capture-filter.bpf
vendored
|
@ -1,3 +1,5 @@
|
||||||
not (host sicherheitstacho.eu or community.sicherheitstacho.eu or listbot.sicherheitstacho.eu) and
|
not (host sicherheitstacho.eu or community.sicherheitstacho.eu or listbot.sicherheitstacho.eu) and
|
||||||
not (tcp port 64294) and
|
not (tcp port 64294 or tcp port 64305) and
|
||||||
not (tcp port 64305)
|
not (udp port 138 or udp port 5353) and
|
||||||
|
not (ip broadcast or ip multicast or ip6 multicast) and
|
||||||
|
not ip proto 2
|
||||||
|
|
32
docker/suricata/dist/suricata.yaml
vendored
32
docker/suricata/dist/suricata.yaml
vendored
|
@ -5,7 +5,7 @@
|
||||||
# options in this file, full documentation can be found at:
|
# options in this file, full documentation can be found at:
|
||||||
# https://docs.suricata.io/en/latest/configuration/suricata-yaml.html
|
# https://docs.suricata.io/en/latest/configuration/suricata-yaml.html
|
||||||
|
|
||||||
# This configuration file generated by Suricata 7.0.2.
|
# This configuration file generated by Suricata 7.0.7.
|
||||||
suricata-version: "7.0"
|
suricata-version: "7.0"
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -176,6 +176,7 @@ outputs:
|
||||||
- frame:
|
- frame:
|
||||||
# disabled by default as this is very verbose.
|
# disabled by default as this is very verbose.
|
||||||
enabled: no
|
enabled: no
|
||||||
|
# payload-buffer-size: 4kb # max size of frame payload buffer to output in eve-log
|
||||||
- anomaly:
|
- anomaly:
|
||||||
# Anomaly log records describe unexpected conditions such
|
# Anomaly log records describe unexpected conditions such
|
||||||
# as truncated packets, packets with invalid IP/UDP/TCP
|
# as truncated packets, packets with invalid IP/UDP/TCP
|
||||||
|
@ -214,7 +215,7 @@ outputs:
|
||||||
extended: yes # enable this for extended logging information
|
extended: yes # enable this for extended logging information
|
||||||
# custom allows additional HTTP fields to be included in eve-log.
|
# custom allows additional HTTP fields to be included in eve-log.
|
||||||
# the example below adds three additional fields when uncommented
|
# the example below adds three additional fields when uncommented
|
||||||
custom: [Accept-Encoding, Accept-Language, Authorization, Forwarded, From, Referer, Via]
|
#custom: [Accept-Encoding, Accept-Language, Authorization]
|
||||||
# set this value to one and only one from {both, request, response}
|
# set this value to one and only one from {both, request, response}
|
||||||
# to dump all HTTP headers for every HTTP request and/or response
|
# to dump all HTTP headers for every HTTP request and/or response
|
||||||
# dump-all-headers: none
|
# dump-all-headers: none
|
||||||
|
@ -251,8 +252,11 @@ outputs:
|
||||||
# output TLS transaction where the session is resumed using a
|
# output TLS transaction where the session is resumed using a
|
||||||
# session id
|
# session id
|
||||||
#session-resumption: no
|
#session-resumption: no
|
||||||
|
# ja4 hashes in tls records will never be logged unless
|
||||||
|
# the following is set to on. (Default off)
|
||||||
|
ja4: on
|
||||||
# custom controls which TLS fields that are included in eve-log
|
# custom controls which TLS fields that are included in eve-log
|
||||||
custom: [subject, issuer, session_resumed, serial, fingerprint, sni, version, not_before, not_after, certificate, ja3, ja3s]
|
custom: [subject, issuer, session_resumed, serial, fingerprint, sni, version, not_before, not_after, certificate, ja3, ja3s, ja4]
|
||||||
- files:
|
- files:
|
||||||
force-magic: yes # force logging magic on all logged files
|
force-magic: yes # force logging magic on all logged files
|
||||||
# force logging of checksums, available hash functions are md5,
|
# force logging of checksums, available hash functions are md5,
|
||||||
|
@ -291,7 +295,10 @@ outputs:
|
||||||
- snmp
|
- snmp
|
||||||
- rfb
|
- rfb
|
||||||
- sip
|
- sip
|
||||||
- quic
|
- quic:
|
||||||
|
# ja4 hashes in quic records will never be logged unless
|
||||||
|
# the following is set to on. (Default off)
|
||||||
|
ja4: on
|
||||||
- dhcp:
|
- dhcp:
|
||||||
enabled: no
|
enabled: no
|
||||||
# When extended mode is on, all DHCP messages are logged
|
# When extended mode is on, all DHCP messages are logged
|
||||||
|
@ -753,6 +760,7 @@ dpdk:
|
||||||
# - auto takes all cores
|
# - auto takes all cores
|
||||||
# in IPS mode it is required to specify the number of cores and the numbers on both interfaces must match
|
# in IPS mode it is required to specify the number of cores and the numbers on both interfaces must match
|
||||||
threads: auto
|
threads: auto
|
||||||
|
# interrupt-mode: false # true to switch to interrupt mode
|
||||||
promisc: true # promiscuous mode - capture all packets
|
promisc: true # promiscuous mode - capture all packets
|
||||||
multicast: true # enables also detection on multicast packets
|
multicast: true # enables also detection on multicast packets
|
||||||
checksum-checks: true # if Suricata should validate checksums
|
checksum-checks: true # if Suricata should validate checksums
|
||||||
|
@ -892,9 +900,10 @@ app-layer:
|
||||||
detection-ports:
|
detection-ports:
|
||||||
dp: 443
|
dp: 443
|
||||||
|
|
||||||
# Generate JA3 fingerprint from client hello. If not specified it
|
# Generate JA3/JA4 fingerprints from client hello. If not specified it
|
||||||
# will be disabled by default, but enabled if rules require it.
|
# will be disabled by default, but enabled if rules require it.
|
||||||
ja3-fingerprints: yes
|
ja3-fingerprints: yes
|
||||||
|
ja4-fingerprints: yes
|
||||||
|
|
||||||
# What to do when the encrypted communications start:
|
# What to do when the encrypted communications start:
|
||||||
# - default: keep tracking TLS session, check for protocol anomalies,
|
# - default: keep tracking TLS session, check for protocol anomalies,
|
||||||
|
@ -934,9 +943,13 @@ app-layer:
|
||||||
#max-streams: 4096
|
#max-streams: 4096
|
||||||
# Maximum headers table size
|
# Maximum headers table size
|
||||||
#max-table-size: 65536
|
#max-table-size: 65536
|
||||||
|
# Maximum reassembly size for header + continuation frames
|
||||||
|
#max-reassembly-size: 102400
|
||||||
smtp:
|
smtp:
|
||||||
enabled: yes
|
enabled: yes
|
||||||
raw-extraction: no
|
raw-extraction: no
|
||||||
|
# Maximum number of live SMTP transactions per flow
|
||||||
|
# max-tx: 256
|
||||||
# Configure SMTP-MIME Decoder
|
# Configure SMTP-MIME Decoder
|
||||||
mime:
|
mime:
|
||||||
# Decode MIME messages from SMTP transactions
|
# Decode MIME messages from SMTP transactions
|
||||||
|
@ -1084,6 +1097,10 @@ app-layer:
|
||||||
#compression-bomb-limit: 1mb
|
#compression-bomb-limit: 1mb
|
||||||
# Maximum time spent decompressing a single transaction in usec
|
# Maximum time spent decompressing a single transaction in usec
|
||||||
#decompression-time-limit: 100000
|
#decompression-time-limit: 100000
|
||||||
|
# Maximum number of live transactions per flow
|
||||||
|
#max-tx: 512
|
||||||
|
# Maximum used number of HTTP1 headers in one request or response
|
||||||
|
#headers-limit: 1024
|
||||||
|
|
||||||
server-config:
|
server-config:
|
||||||
|
|
||||||
|
@ -1290,7 +1307,6 @@ unix-command:
|
||||||
|
|
||||||
# Magic file. The extension .mgc is added to the value here.
|
# Magic file. The extension .mgc is added to the value here.
|
||||||
magic-file: /usr/share/misc/magic.mgc
|
magic-file: /usr/share/misc/magic.mgc
|
||||||
#magic-file:
|
|
||||||
|
|
||||||
# GeoIP2 database file. Specify path and filename of GeoIP2 database
|
# GeoIP2 database file. Specify path and filename of GeoIP2 database
|
||||||
# if using rules with "geoip" rule option.
|
# if using rules with "geoip" rule option.
|
||||||
|
@ -1798,6 +1814,10 @@ profiling:
|
||||||
enabled: no
|
enabled: no
|
||||||
filename: rule_perf.log
|
filename: rule_perf.log
|
||||||
append: yes
|
append: yes
|
||||||
|
# Set active to yes to enable rules profiling at start
|
||||||
|
# if set to no (default), the rules profiling will have to be started
|
||||||
|
# via unix socket commands.
|
||||||
|
#active:no
|
||||||
|
|
||||||
# Sort options: ticks, avgticks, checks, matches, maxticks
|
# Sort options: ticks, avgticks, checks, matches, maxticks
|
||||||
# If commented out all the sort options will be used.
|
# If commented out all the sort options will be used.
|
||||||
|
|
Loading…
Reference in a new issue