-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1011 from stratosphereips/develop
v1.1.2
- Loading branch information
Showing
156 changed files
with
7,097 additions
and
7,468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.1 | ||
1.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,90 @@ | ||
FROM ubuntu:22.04 | ||
# To avoid user interaction when installing libraries | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
# Blocking module requirement to avoid using sudo | ||
ENV IS_IN_A_DOCKER_CONTAINER=True | ||
# destionation dir for slips inside the container | ||
ENV SLIPS_DIR=/StratosphereLinuxIPS | ||
|
||
ENV NODE_VERSION=22.5.0 | ||
ENV NVM_DIR=/root/.nvm | ||
|
||
# use bash instead of sh | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
|
||
# Install wget and add Zeek and redis repositories to our sources. | ||
RUN apt update && apt install -y --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
git \ | ||
curl \ | ||
gnupg \ | ||
lsb-release \ | ||
software-properties-common \ | ||
build-essential \ | ||
file \ | ||
lsof \ | ||
iptables \ | ||
iproute2 \ | ||
nfdump \ | ||
tshark \ | ||
whois \ | ||
yara \ | ||
net-tools \ | ||
vim \ | ||
less \ | ||
unzip \ | ||
golang \ | ||
python3-certifi \ | ||
python3-dev \ | ||
python3-tzlocal \ | ||
python3-pip \ | ||
&& echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/ /' | tee /etc/apt/sources.list.d/security:zeek.list \ | ||
&& curl -fsSL https://download.opensuse.org/repositories/security:zeek/xUbuntu_22.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/security_zeek.gpg > /dev/null \ | ||
&& curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \ | ||
&& echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" > /etc/apt/sources.list.d/redis.list \ | ||
&& apt update \ | ||
&& apt install -y --no-install-recommends --fix-missing \ | ||
zeek \ | ||
redis \ | ||
npm \ | ||
&& ln -s /opt/zeek/bin/zeek /usr/local/bin/bro \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - \ | ||
&& export NVM_DIR="$HOME/.nvm" \ | ||
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \ | ||
&& nvm install 22 \ | ||
|
||
|
||
# Upgrade pip3 and install slips requirements | ||
RUN pip3 install --no-cache-dir --upgrade pip | ||
|
||
# Switch to Slips installation dir on login. | ||
WORKDIR ${SLIPS_DIR} | ||
|
||
COPY . $SLIPS_DIR | ||
|
||
# we're excluding black here because it has conflicts with the tensorflow version required in requirements.txt | ||
# this is temporary until we upgrade tensorflow to the latest version | ||
RUN pip install --ignore-installed --no-cache-dir -r install/requirements.txt \ | ||
&& chmod 774 slips.py \ | ||
&& git init \ | ||
&& git remote add origin https://github.com/stratosphereips/StratosphereLinuxIPS.git \ | ||
&& cd modules/kalipso \ | ||
&& npm install | ||
|
||
# set use_p2p to yes in the config file | ||
RUN sed -i "s/use_p2p : False/use_p2p : True/" config/slips.yaml | ||
|
||
# build the pigeon and add pigeon to path | ||
RUN cd p2p4slips \ | ||
&& go build \ | ||
&& export PATH="$PATH:/StratosphereLinuxIPS/p2p4slips/"; | ||
|
||
WORKDIR ${SLIPS_DIR} | ||
|
||
CMD /bin/bash | ||
FROM ubuntu:22.04 | ||
# To avoid user interaction when installing libraries | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
# Blocking module requirement to avoid using sudo | ||
ENV IS_IN_A_DOCKER_CONTAINER=True | ||
# destionation dir for slips inside the container | ||
ENV SLIPS_DIR=/StratosphereLinuxIPS | ||
|
||
ENV NODE_VERSION=22.5.0 | ||
ENV NVM_DIR=/root/.nvm | ||
|
||
# use bash instead of sh | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
|
||
# Install wget and add Zeek and redis repositories to our sources. | ||
RUN apt update && apt install -y --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
git \ | ||
curl \ | ||
gnupg \ | ||
lsb-release \ | ||
software-properties-common \ | ||
build-essential \ | ||
file \ | ||
lsof \ | ||
iptables \ | ||
iproute2 \ | ||
nfdump \ | ||
tshark \ | ||
whois \ | ||
yara \ | ||
net-tools \ | ||
vim \ | ||
less \ | ||
unzip \ | ||
golang \ | ||
python3-certifi \ | ||
python3-dev \ | ||
python3-tzlocal \ | ||
python3-pip \ | ||
&& echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/ /' | tee /etc/apt/sources.list.d/security:zeek.list \ | ||
&& curl -fsSL https://download.opensuse.org/repositories/security:zeek/xUbuntu_22.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/security_zeek.gpg > /dev/null \ | ||
&& curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \ | ||
&& echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" > /etc/apt/sources.list.d/redis.list \ | ||
&& apt update \ | ||
&& apt install -y --no-install-recommends --fix-missing \ | ||
zeek \ | ||
redis \ | ||
npm \ | ||
&& ln -s /opt/zeek/bin/zeek /usr/local/bin/bro \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - \ | ||
&& export NVM_DIR="$HOME/.nvm" \ | ||
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \ | ||
&& nvm install 22 \ | ||
|
||
|
||
RUN pip3 install --no-cache-dir --upgrade pip | ||
|
||
RUN git clone https://github.com/IDMEFv2/python-idmefv2 \ | ||
&& cd python-idmefv2 \ | ||
&& git submodule update --init --recursive \ | ||
&& python3 setup.py install \ | ||
&& cd .. | ||
|
||
|
||
# Switch to Slips installation dir on login. | ||
WORKDIR ${SLIPS_DIR} | ||
|
||
COPY P2P-image $SLIPS_DIR | ||
|
||
RUN pip install --ignore-installed --no-cache-dir -r install/requirements.txt \ | ||
&& chmod 774 slips.py \ | ||
&& git init \ | ||
&& git remote add origin https://github.com/stratosphereips/StratosphereLinuxIPS.git \ | ||
&& cd modules/kalipso \ | ||
&& npm install \ | ||
|
||
|
||
# build the pigeon and add pigeon to path | ||
RUN cd p2p4slips \ | ||
&& go build \ | ||
&& export PATH="$PATH:/StratosphereLinuxIPS/p2p4slips/"; | ||
|
||
WORKDIR ${SLIPS_DIR} | ||
|
||
CMD /bin/bash |
Oops, something went wrong.