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: dump /etc/ld.so.preload with debugfs/xfs_db #280

Merged
merged 18 commits into from
Jan 15, 2025
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Artifacts

- chkrootkit/hidden_etc_ld_so_preload.yaml: Added collection of hidden /etc/ld.so.preload using debugfs and xfs_db tools [linux] ([mnrkbys](https://github.com/mnrkbys)).
- files/applications/ark.yaml: Added collection of metadata about recently opened archive files in Ark, the KDE archive manager [freebsd, linux, netbsd, openbsd].
- files/applications/dolphin.yaml: Added collection of session data for the Dolphin file manager in the KDE desktop environment. This file contains information about the state of the Dolphin application, such as the currently open directories and their paths and the last accessed locations [freebsd, linux, netbsd, openbsd].
- files/applications/dragon_player.yaml: Added collection of paths to recently opened video files using the Dragon Player [freebsd, linux, netbsd, openbsd].
Expand Down
28 changes: 28 additions & 0 deletions artifacts/chkrootkit/hidden_etc_ld_so_preload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 1.0
output_directory: /chkrootkit
# Collect /etc/ld.so.preload even if it is hidden by LD_PRELOAD Rootkits.
# ref 1: https://www.youtube.com/watch?v=3UrEJzqqPYQ
# ref 2: https://righteousit.com/wp-content/uploads/2024/04/ld_preload-rootkits.pdf
# ref 3: https://www.youtube.com/watch?v=-K9hhqv21P8
# ref 4: https://righteousit.com/wp-content/uploads/2024/04/xfs_db-ftw.pdf
artifacts:
-
description: Dump /etc/ld.so.preload with debugfs.
supported_os: [linux]
collector: command
condition: command_exists "debugfs" && df -T %mount_point%/etc | tail -n +2 | awk '{print $2}' | grep -q "ext"
command: linux_dump_etc_ld_so_preload.sh -f %mount_point%/etc/ld.so.preload
output_file: etc_ld_so_preload.txt
-
description: Dump /etc/ld.so.preload with xfs_db.
supported_os: [linux]
collector: command
condition: command_exists "xfs_db" && df -T %mount_point%/etc | tail -n +2 | awk '{print $2}' | grep -q "xfs"
command: linux_dump_etc_ld_so_preload.sh -f %mount_point%/etc/ld.so.preload
output_file: etc_ld_so_preload.txt
-
description: Collect file stats for /etc/ld.so.preload even if it is hidden.
supported_os: [linux]
collector: stat
path: /etc/ld.so.preload
output_file: stat_etc_ld_so_preload.txt
Loading
Loading