-
Notifications
You must be signed in to change notification settings - Fork 3
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
Patrick
committed
Aug 6, 2022
1 parent
c5ebb17
commit 1015872
Showing
2 changed files
with
9 additions
and
11 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
16 changes: 9 additions & 7 deletions
16
rulesets/tracee/tracee.sh → rulesets/central/tracee.sh
100755 → 100644
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,13 +1,15 @@ | ||
#!/bin/bash | ||
|
||
#Currently deactivated for testing | ||
# Check if Tracee exists | ||
tracee_present=$( /usr/bin/docker images -q tracee ) | ||
|
||
#Only run if Tracee isn't running | ||
if [[ -n "$tracee_present" ]]; then | ||
docker run --name tracee --rm --pid=host --cgroupns=host --privileged -v /etc/os-release:/etc/os-release-host:ro -e LIBBPFGO_OSRELEASE_FILE=/etc/os-release-host aquasec/tracee:latest --rules TRC-2 --rules TRC-6 --rules TRC-7 --rules TRC-15 | ts '[%Y-%m-%d %H:%M:%S] module=Tracee output=' >> /var/log/detector.log & | ||
|
||
fi | ||
|
||
# tracee-updater | ||
# tracee_present=$( /usr/bin/docker images -q tracee ) | ||
# if [[ -n "$tracee_present" ]]; then | ||
# /usr/bin/docker pull aquasec/tracee; | ||
# /usr/bin/docker restart tracee; | ||
# fi | ||
# if [[ -n "$tracee_present" ]]; then | ||
# /usr/bin/docker pull aquasec/tracee; | ||
# /usr/bin/docker restart tracee; | ||
# fi |