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

artif: collect persistence via package managers #279

Merged
merged 4 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions artifacts/files/packages/apt.yaml
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
16 changes: 16 additions & 0 deletions artifacts/files/packages/dnf.yaml
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]
14 changes: 14 additions & 0 deletions artifacts/files/packages/yum.yaml
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