-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
965ffc9
commit 9c8df71
Showing
95 changed files
with
45,913 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
RedELK version 2 - BETA 2 | ||
RedELK version 2 - BETA 3 (unreleased) |
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# Part of RedELK | ||
# Dockerfile for RedELK base image | ||
# | ||
# Author: Outflank B.V. / Marc Smeets | ||
# | ||
|
||
FROM phusion/baseimage:18.04-1.0.0 | ||
LABEL maintainer="Outflank B.V. / Marc Smeets" | ||
LABEL description="RedELK Base Image" | ||
|
||
# Copy relevant install data | ||
RUN mkdir -p /root/redelkinstalldata/ | ||
COPY ./redelkinstalldata/ /root/redelkinstalldata/ | ||
|
||
# Init script | ||
RUN mkdir -p /etc/my_init.d | ||
RUN cp /root/redelkinstalldata/42_redelk-base-docker-init.sh /etc/my_init.d/42_redelk-base-docker-init.sh | ||
RUN chmod +x /etc/my_init.d/42_redelk-base-docker-init.sh | ||
|
||
# copy relevant scripts to redelk script working dir | ||
RUN mkdir -p /usr/share/redelk/bin | ||
RUN cp -r /root/redelkinstalldata/scripts/* /usr/share/redelk/bin/ | ||
RUN chmod -R 775 /usr/share/redelk/bin/* | ||
|
||
# Install required packages and python requirements | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update > /dev/null | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y install rsync python3-pil python3-pip > /dev/null | ||
RUN mkdir -p /usr/share/redelk/bin | ||
RUN cp -r /root/redelkinstalldata/scripts/ /usr/share/redelk/bin/ | ||
RUN pip3 install -q -r /usr/share/redelk/bin/Chameleon/requirements.txt > /dev/null | ||
RUN pip3 install -q elasticsearch pymsteams > /dev/null | ||
|
||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
CMD ["/sbin/my_init"] |
41 changes: 41 additions & 0 deletions
41
elkserver/docker/redelk-base/live/config/etc/cron.d/redelk
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Part of RedELK | ||
# cron.d script for periodic actions related to RedELK | ||
# | ||
# Author: Outflank B.V. / Marc Smeets | ||
# | ||
|
||
SHELL=/bin/sh | ||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||
|
||
# RedELK rsync comands for getting remote log files from teamservers via rsync - replace $IP with the remote host's DNS/IP, $HOSTNAME with the remote hostname as configured in filebeat on that system amd $USER with the username to login with. | ||
# Repeat line for multiple teamservers. | ||
# m h dom mon dow user command | ||
#*/2 * * * * redelk /usr/share/redelk/bin/getremotelogs.sh $IP $HOSTNAME scponly | ||
# | ||
|
||
# Run update script for TOR exit nodes twice a day | ||
# m h dom mon dow user command | ||
00 00,12 * * * redelk /usr/share/redelk/bin/run_torexitnodeupdate.sh | ||
|
||
# Run update script for SSLBL Botnet C2 IP addresses every 30min | ||
# m h dom mon dow user command | ||
*/30 * * * * redelk /usr/share/redelk/bin/run_abusechbotnetc2ipupdate.sh | ||
|
||
# Run update script for SSLBL SSL Certificate Blacklis | ||
# m h dom mon dow user command | ||
*/30 * * * * redelk /usr/share/redelk/bin/run_abusechsslcertupdate.sh | ||
|
||
# Run update script for rogue domain list | ||
# And run Chameleon.py for remote checking of domain classification | ||
# m h dom mon dow user command | ||
*/30 * * * * redelk /usr/share/redelk/bin/run_roguedomainsupdate.sh | ||
|
||
# Start script to create thumbnails of received screenshots | ||
# m h dom mon dow user command | ||
*/2 * * * * redelk /usr/share/redelk/bin/makethumbnail.py /var/www/html/c2logs/ | ||
|
||
# Start the enrichment of beacon data in ELK | ||
* * * * * redelk /usr/share/redelk/bin/run_enrich.sh | ||
|
||
# Start the checks for alarms | ||
*/5 * * * * redelk /usr/share/redelk/bin/run_alarm.sh |
Oops, something went wrong.