-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ld_so_preload
- Loading branch information
Showing
17 changed files
with
210 additions
and
177 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 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,28 @@ | ||
version: 1.0 | ||
artifacts: | ||
# Git hooks/Git pager can be used to run persistence. | ||
# ref: https://www.elastic.co/security-labs/sequel-on-persistence-mechanisms | ||
- | ||
description: Collect Git hooks under .git/hooks directory. | ||
supported_os: [linux, macos] | ||
collector: file | ||
path: / | ||
path_pattern: ["*/.git/hooks/*"] | ||
file_type: [f] | ||
- | ||
description: Collect /etc/gitconfig file. | ||
supported_os: [linux, macos] | ||
collector: file | ||
path: /etc/gitconfig | ||
- | ||
description: Collect ~/.gitconfig file. | ||
supported_os: [linux, macos] | ||
collector: file | ||
path: /%user_home%/.gitconfig | ||
exclude_nologin_users: true | ||
- | ||
description: Collect ~/.config/git/gitconfig file. | ||
supported_os: [linux, macos] | ||
collector: file | ||
path: /%user_home%/.config/git/config | ||
exclude_nologin_users: true |
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,9 @@ | ||
version: 1.0 | ||
# APT can be used to run persistence. | ||
# ref: https://www.elastic.co/security-labs/sequel-on-persistence-mechanisms | ||
artifacts: | ||
- | ||
description: Collect script files under /etc/apt/apt.conf.d/ directory. | ||
supported_os: [linux] | ||
collector: file | ||
path: /etc/apt/apt.conf.d |
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,16 @@ | ||
version: 1.0 | ||
# DNF can be used to run persistence. | ||
# ref: https://www.elastic.co/security-labs/sequel-on-persistence-mechanisms | ||
artifacts: | ||
- | ||
description: Collect configuration files under /etc/dnf/pluginconf.d/ directory. | ||
supported_os: [linux] | ||
collector: file | ||
path: /etc/dnf/pluginconf.d | ||
- | ||
description: Collect script files under dnf-plugins directories. | ||
supported_os: [linux] | ||
collector: file | ||
path: / | ||
name_pattern: ["dnf-plugins"] | ||
file_type: [d] |
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,14 @@ | ||
version: 1.0 | ||
# YUM can be used to run persistence. | ||
# ref: https://www.elastic.co/security-labs/sequel-on-persistence-mechanisms | ||
artifacts: | ||
- | ||
description: Collect configuration files under /etc/yum/pluginconf.d/ directory. | ||
supported_os: [linux] | ||
collector: file | ||
path: /etc/yum/pluginconf.d | ||
- | ||
description: Collect script files under /usr/lib/yum-plugins/ directory. | ||
supported_os: [linux] | ||
collector: file | ||
path: /usr/lib/yum-plugins |
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,12 @@ | ||
version: 1.0 | ||
# udev rules can be abused to run persistence. | ||
# ref 1: https://www.elastic.co/security-labs/sequel-on-persistence-mechanisms | ||
# ref 2: https://ch4ik0.github.io/en/posts/leveraging-Linux-udev-for-persistence/ | ||
artifacts: | ||
- | ||
description: Collect udev rule files. | ||
supported_os: [linux] | ||
collector: file | ||
path: / | ||
path_pattern: ["*/udev/rules.d/*"] | ||
file_type: [f] |
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,10 @@ | ||
version: 1.0 | ||
condition: command_exists "acctadm" | ||
output_directory: /live_response/system | ||
artifacts: | ||
- | ||
description: Shows the configuration for extended accounting. | ||
supported_os: [solaris] | ||
collector: command | ||
command: acctadm | ||
output_file: acctadm.txt |
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,17 @@ | ||
version: 1.0 | ||
condition: command_exists "acctcom" | ||
output_directory: /live_response/system | ||
artifacts: | ||
- | ||
description: Shows the last commands executed in a reverse order based on the default accounting file. | ||
supported_os: [solaris] | ||
collector: command | ||
command: acctcom -f -i -t /var/adm/pacct | ||
output_file: acctcom_-f_-i_-t.txt | ||
- | ||
description: Shows the last commands executed in a reverse order from the historic accounting files. | ||
supported_os: [solaris] | ||
collector: command | ||
foreach: ls /var/adm/pacct* | ||
command: acctcom -f -i -t %line% | ||
output_file: acctcom_-f_-i_-t_%line%.txt |
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
Oops, something went wrong.