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 Git persistence #281

Merged
merged 3 commits into from
Oct 15, 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
28 changes: 28 additions & 0 deletions artifacts/files/applications/git.yaml
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]
collector: file
path: /
path_pattern: ["*/.git/hooks/*"]
file_type: [f]
-
description: Collect /etc/gitconfig file.
supported_os: [linux]
collector: file
path: /etc/gitconfig
-
description: Collect ~/.gitconfig file.
supported_os: [linux]
collector: file
path: /%user_home%/.gitconfig
exclude_nologin_users: true
-
description: Collect ~/.config/git/gitconfig file.
supported_os: [linux]
collector: file
path: /%user_home%/.config/git/config
exclude_nologin_users: true
2 changes: 1 addition & 1 deletion profiles/ir_triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ artifacts:
- live_response/vms/*
- chkrootkit/chkrootkit.yaml
- hash_executables/hash_executables.yaml
- files/applications/git.yaml
- files/applications/lesshst.yaml
- files/applications/viminfo.yaml
- files/applications/wget.yaml
Expand All @@ -33,4 +34,3 @@ artifacts:
- files/shell/*
- files/ssh/*
- files/system/*