Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.30 #485

Merged
merged 34 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
315a7ca
Upgrade Suricata
TOoSmOotH Oct 11, 2023
8dfdf53
Remove unsupported integrations
defensivedepth Oct 16, 2023
730c068
Zeek 6 upgrade. Removes external af_packet & zeek-community-id plugin…
reyesj2 Oct 16, 2023
9492619
Merge pull request #458 from Security-Onion-Solutions/2.4/zeek6
reyesj2 Oct 16, 2023
fdbd9c6
Merge pull request #459 from Security-Onion-Solutions/bravo
TOoSmOotH Oct 16, 2023
4c9d848
Update fx-libpcap
reyesj2 Oct 16, 2023
22f20d4
Merge pull request #460 from Security-Onion-Solutions/2.4/zeek6
reyesj2 Oct 16, 2023
f97ca60
Cleanup
defensivedepth Oct 17, 2023
c7a2457
Disable unsupported integrations
defensivedepth Oct 17, 2023
a3be0f4
Merge pull request #462 from Security-Onion-Solutions/2.4/SupportedIn…
defensivedepth Oct 17, 2023
6820358
Fix for Zeek state.db being created as root, expected zeek:zeek. Use …
reyesj2 Oct 18, 2023
c3e0c40
Merge pull request #464 from Security-Onion-Solutions/2.4/zeek6
reyesj2 Oct 18, 2023
88d0ae1
Update Dockerfile
TOoSmOotH Oct 19, 2023
71372ac
Merge pull request #466 from Security-Onion-Solutions/TOoSmOotH-patch-1
TOoSmOotH Oct 19, 2023
a5637ad
Merge pull request #468 from Security-Onion-Solutions/foxtrot
defensivedepth Oct 20, 2023
ae960da
UPGRADE: influxDB v2.7.1 & telegraf v1.28.2
reyesj2 Oct 23, 2023
068f1a6
Add bash to telegraf for scripts/ to function properly
reyesj2 Oct 23, 2023
b7c9a70
Merge pull request #471 from Security-Onion-Solutions/reyesj2/updates
reyesj2 Oct 24, 2023
2e4fe25
Add integrations
weslambert Oct 25, 2023
45c7b50
Revert "UPGRADE: influxDB v2.7.1 & telegraf v1.28.2"
reyesj2 Oct 25, 2023
5e23461
Add sphere integration
weslambert Oct 25, 2023
eaf7c17
Merge pull request #474 from Security-Onion-Solutions/revert-471-reye…
reyesj2 Oct 25, 2023
65e68e6
Merge pull request #475 from Security-Onion-Solutions/fix/additional_…
weslambert Oct 25, 2023
6d7a3ed
Remove cpan Test::More
reyesj2 Oct 26, 2023
b2333ab
Delete instead of comment out lines. Fix typo
reyesj2 Oct 26, 2023
5c7acf6
Merge pull request #476 from Security-Onion-Solutions/reyesj2/zeekpatch
reyesj2 Oct 26, 2023
f0cdf88
Revert "Revert "UPGRADE: influxDB v2.7.1 & telegraf v1.28.2""
reyesj2 Oct 26, 2023
69daff2
Merge pull request #477 from Security-Onion-Solutions/revert-474-reve…
reyesj2 Oct 26, 2023
4e1d2b7
Merge pull request #478 from Security-Onion-Solutions/bravo
reyesj2 Oct 27, 2023
fd779df
Update Dockerfile
TOoSmOotH Oct 27, 2023
824f394
Merge pull request #479 from Security-Onion-Solutions/TOoSmOotH-patch-3
TOoSmOotH Oct 27, 2023
2f4df8c
Fix dns.query.name
defensivedepth Nov 2, 2023
9b6110e
Fix dns.query.name
defensivedepth Nov 2, 2023
c9419d1
Merge pull request #483 from Security-Onion-Solutions/2.4/dnsmapping
defensivedepth Nov 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions so-elastic-fleet-package-registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ ARG VERSION

FROM docker.elastic.co/package-registry/distribution:$VERSION as original_image

# Remove unsupported packages
COPY scripts /scripts
RUN chmod +x /scripts/supported-integrations.sh && bash /scripts/supported-integrations.sh && rm -rf /scripts

# Cleanup unneeded packages, keeping the two most recent versons of each one
# Except for endpoint packages, keep all versions
RUN cd /packages/package-storage/ \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
#
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.

# This script removes unsupported packages from our self-hosted Elastic Package Repo container image.
# It is meant to be used during the image build process.

cd /packages/package-storage/
for file in *
do
PATTERN=$(echo $file | cut -d "-" -f 1)-
[[ ! $(grep -x "$PATTERN" /scripts/supported-integrations.txt) ]] && rm "$file" && echo "Deleted: $file..."
done

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apache-
auditd-
auth0-
aws-
azure-
barracuda-
carbonblack_edr-
checkpoint-
cisco_asa-
cisco_duo-
cisco_meraki-
cisco_umbrella-
cloudflare-
crowdstrike-
darktrace-
elasticsearch-
endpoint-
f5_bigip-
fim-
fireeye-
fleet_server-
fortinet-
fortinet_fortigate-
gcp-
github-
google_workspace-
http_endpoint-
httpjson-
juniper-
juniper_srx-
kafka_log-
lastpass-
log-
m365_defender-
microsoft_defender_endpoint-
microsoft_dhcp-
mimecast-
netflow-
o365-
okta-
osquery_manager-
panw-
pfsense-
pulse_connect_secure-
redis-
sentinel_one-
snyk-
sonicwall_firewall-
sophos-
sophos_central-
symantec_endpoint-
system-
tcp-
tenable_sc-
ti_abusech-
ti_misp-
ti_otx-
ti_recordedfuture-
udp-
vsphere-
windows-
zscaler_zia-
zscaler_zpa-
1password-
10 changes: 5 additions & 5 deletions so-influxdb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG INFLUX_VERSION=2.6.1
ARG INFLUX_VERSION=2.7.1

FROM ghcr.io/security-onion-solutions/ubuntu:22.04 as builder
FROM ghcr.io/security-onion-solutions/ubuntu:23.04 as builder

ARG INFLUX_VERSION
ARG NODE_VERSION=v18.14.0
ARG NODE_VERSION=v20.8.1
ARG NODE_ARCH=linux-x64

RUN apt update -y && apt install -y git wget xz-utils
RUN apt update -y && apt install -y git wget xz-utils
RUN git clone https://github.com/influxdata/ui -b OSS-v$INFLUX_VERSION
RUN wget https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_ARCH.tar.xz -O /node.xz
RUN tar -xJf /node.xz
Expand Down Expand Up @@ -34,7 +34,7 @@ RUN chmod a+x /redirect_to_file.sh && groupmod -g 939 influxdb

COPY --from=builder /ui/build /ui

RUN apt update -y && apt install netcat -y && apt clean -y
RUN apt update -y && apt install netcat-traditional -y && apt clean -y

ENTRYPOINT ["/redirect_to_file.sh"]
CMD ["/entrypoint.sh", "influxd"]
3 changes: 3 additions & 0 deletions so-kibana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ RUN ln -s /usr/share/kibana /opt/kibana

ENV PATH=/usr/share/kibana/bin:$PATH

# Disable hardcoded Integrations from showing up
RUN sed -i 's/"server": true,/"server": false,/g' /usr/share/kibana/node_modules/@kbn/custom-integrations-plugin/kibana.jsonc

# Copy over the dashboards
RUN mkdir /usr/share/kibana/dashboards

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ fieldmappings:
username: user.name
uid: user.uid
sid: rule.uuid
query: query
answer: answers
query: dns.query.name
src_ip: destination.ip.keyword
src_port: source.port
dst_ip: destination.ip.keyword
Expand Down
4 changes: 2 additions & 2 deletions so-suricata/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN dnf -y install autoconf automake diffutils file-devel gcc gcc-c++ git \
lua-devel lz4-devel make nss-devel pcre-devel pcre2-devel pkgconfig \
python3-devel python3-sphinx python3-yaml sudo which cargo \
zlib-devel luajit-devel cargo && cargo install --force cbindgen
ENV SURIVERSION=6.0.14
ENV SURIVERSION=7.0.2
RUN mkdir /suricata

WORKDIR /suricata
Expand Down Expand Up @@ -55,6 +55,6 @@ RUN yum -y install epel-release bash libpcap iproute && \
ADD files/so-suricata.sh /usr/local/sbin/so-suricata.sh

RUN chmod +x /usr/local/sbin/so-suricata.sh
RUN rpm -i https://github.com/axellioinc/fx-libpcap/releases/download/fxlibpcap-1.9.1/fx-libpcap-1.9.1-1.el7.x86_64.rpm
RUN rpm -i https://github.com/axellioinc/fx-libpcap/releases/download/px3_1.9.1-3/fx-libpcap-1.9.1-3.el7_9.x86_64.rpm

ENTRYPOINT ["/usr/local/sbin/so-suricata.sh"]
4 changes: 2 additions & 2 deletions so-telegraf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ghcr.io/security-onion-solutions/telegraf:1.25.1-alpine
FROM ghcr.io/security-onion-solutions/telegraf:1.28.2-alpine
LABEL maintainer "Security Onion Solutions, LLC"
LABEL description="Telegraf running in Docker container for use with Security Onion"

USER root

RUN apk add --no-cache redis curl jq
RUN apk add --no-cache redis curl jq bash

ENTRYPOINT ["/entrypoint.sh"]
CMD ["telegraf"]
29 changes: 11 additions & 18 deletions so-zeek/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

FROM ghcr.io/security-onion-solutions/oraclelinux:9 as builder
FROM ghcr.io/security-onion-solutions/oraclelinux:9 as builder

RUN dnf -y install dnf-plugins-core && \
dnf config-manager --enable ol9_codeready_builder && \
dnf update -y && \
dnf update -y && \
dnf -y install epel-release bash libpcap iproute wget cmake swig && \
dnf -y install jemalloc numactl libnl3 libdnet gdb git && \
dnf -y install libpcap-devel openssl-devel zlib-devel jemalloc-devel python3-devel kernel-devel kernel-headers && \
Expand All @@ -32,16 +32,14 @@ RUN wget https://www.openssl.org/source/old/3.0/openssl-3.0.1.tar.gz && tar zxvf

WORKDIR /opensslbuild/openssl-3.0.1
RUN dnf -y install perl && \
echo 'yes' | cpan && \
cpan Test::More && \
./Configure --prefix=/usr/local/ssl --openssldir=/usr/local/ssl enable-fips && \
time make -j4 && \
time make install && \
/usr/local/ssl/bin/openssl fipsinstall -out /usr/local/ssl/fipsmodule.cnf -module /usr/local/ssl/lib64/ossl-modules/fips.so

WORKDIR /

ENV ZEEKVER=5.0.10
ENV ZEEKVER=6.0.2
ARG BUILD_TYPE=Release

RUN mkdir /zeekbuild
Expand All @@ -51,12 +49,9 @@ WORKDIR /zeekbuild
RUN wget https://download.zeek.org/zeek-$ZEEKVER.tar.gz && tar zxvf zeek-$ZEEKVER.tar.gz
RUN cd zeek-$ZEEKVER && \
./configure --prefix=/opt/zeek --spooldir=/nsm/zeek/spool --logdir=/nsm/zeek/logs --enable-jemalloc --build-type=$BUILD_TYPE --with-openssl=/usr/local/ssl && \
time make -j4 && time make install && \
fips-mode-setup --enable
time make -j4 && time make install
RUN /opt/zeek/bin/zkg install --force ja3 && \
/opt/zeek/bin/zkg install --force hassh && \
/opt/zeek/bin/zkg install --force https://github.com/TOoSmOotH/zeek-af_packet-plugin --version=master && \
/opt/zeek/bin/zkg install --force zeek-community-id && \
/opt/zeek/bin/zkg install --force --skiptests https://github.com/mmguero-dev/bzar --version=master && \
/opt/zeek/bin/zkg install --force --skiptests icsnpp-bacnet && \
/opt/zeek/bin/zkg install --force --skiptests icsnpp-bsap && \
Expand All @@ -68,11 +63,9 @@ RUN /opt/zeek/bin/zkg install --force ja3 && \
/opt/zeek/bin/zkg install --force --skiptests icsnpp-modbus && \
git clone https://github.com/cisagov/icsnpp-s7comm && \
/opt/zeek/bin/zkg install --force --skiptests icsnpp-s7comm && \
git clone https://github.com/amzn/zeek-plugin-profinet && \
/opt/zeek/bin/zkg install --force --skiptests zeek-plugin-profinet && \
git clone https://github.com/amzn/zeek-plugin-tds && \
/opt/zeek/bin/zkg install --force --skiptests zeek-plugin-tds && \
/opt/zeek/bin/zkg install --force --skiptests zeek-spicy-wireguard && \
/opt/zeek/bin/zkg install --force --skiptests https://github.com/mmguero-dev/zeek-plugin-profinet --version=master && \
/opt/zeek/bin/zkg install --force --skiptests https://github.com/mmguero-dev/zeek-plugin-tds --version=master && \
/opt/zeek/bin/zkg install --force --skiptests zeek-spicy-wireguard && \
/opt/zeek/bin/zkg install --force --skiptests zeek-spicy-stun && \
/opt/zeek/bin/zkg install --force --skiptests https://github.com/iamckn/oui-logging && \
/bin/python3 /opt/zeek/share/zeek/site/oui-logging/oui.py /opt/zeek/share/zeek/site/oui-logging/oui.dat && \
Expand All @@ -84,11 +77,11 @@ RUN groupadd --gid 937 zeek && \
chown -R 937:937 /opt/zeek && \
chown -R 937:937 /nsm/zeek && \
chown -R 937:937 /usr/local/ssl

FROM ghcr.io/security-onion-solutions/oraclelinux:9

LABEL maintainer "Security Onion Solutions, LLC"
LABEL description="Zeek running in a docker with AF_Packet 3.2.0 for use with Security Onion"
LABEL description="Zeek running in docker for use with Security Onion"

# Common CentOS layer
RUN dnf update -y && \
Expand All @@ -106,8 +99,8 @@ COPY --from=builder /usr/local/ssl/ /usr/local/ssl
# Copy over the entry script.
COPY files/zeek.sh /usr/local/sbin/zeek.sh
RUN chmod +x /usr/local/sbin/zeek.sh
RUN rpm -Uvh --nofiledigest --nodigest https://github.com/axellioinc/fx-libpcap/releases/download/fxlibpcap-1.9.1/fx-libpcap-1.9.1-1.el7.x86_64.rpm
RUN rpm -Uvh https://github.com/axellioinc/fx-libpcap/releases/download/px3_1.9.1-3/fx-libpcap-1.9.1-3.el7_9.x86_64.rpm

HEALTHCHECK --interval=10m --timeout=2m CMD /opt/zeek/bin/zeekctl status || (kill -s 15 -1 && (sleep 30; kill -s 9 -1))
HEALTHCHECK --interval=10m --timeout=2m CMD runuser -u zeek -- /opt/zeek/bin/zeekctl status || (kill -s 15 -1 && (sleep 30; kill -s 9 -1))

ENTRYPOINT ["/usr/local/sbin/zeek.sh"]
Loading