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

FreeBSD: information on jails (FreeBSD specific containers) #243

Merged
merged 6 commits into from
Jul 18, 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- files/system/tmp.yaml: Updated to increase max_file_size to 10MB.
- files/system/var_tmp.yaml: Updated to increase max_file_size to 10MB.
- hash_executables/hash_executables.yaml: Updated to remove max_depth and max_file_size properties.
- live_response/containers/jls.yaml: Added collection of jails used on FreeBSD systems [freebsd] [Herbert-Karl](https://github.com/Herbert-Karl)).
- live_response/hardware/dmesg.yaml: Updated collection of console message bufffer [esxi, freebsd, netscaler, openbsd, solaris] [Herbert-Karl](https://github.com/Herbert-Karl)).
- live_response/process/deleted.yaml: Collection of deleted processes will no longer use dd conv=swab. The binary file will be collected in its raw format now [linux].
- live_response/process/deleted.yaml: Updated to fix the collection of open files of (malicious) processes [linux] [mnrkbys](https://github.com/mnrkbys)).
Expand All @@ -54,6 +55,7 @@
- live_response/system/suid.yaml: Updated to remove max_depth limit.
- live_response/system/world_writable_directories.yaml: Updated to remove max_depth limit.
- live_response/system/world_writable_files.yaml: Updated to remove max_depth limit.
- live_response/system/zoneadm.yaml: Artifact was moved to live_response/containers directory [Herbert-Karl](https://github.com/Herbert-Karl)).

### Command Line Option Changes

Expand Down
37 changes: 37 additions & 0 deletions artifacts/live_response/containers/jls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2.0
condition: command_exists "jls"
output_directory: /live_response/containers
artifacts:
-
description: List all jails, including dying ones
supported_os: [freebsd]
collector: command
command: jls -q -d
output_file: jls_-q_-d.txt
-
description: List all jails, including dying ones, with all parameters.
supported_os: [freebsd]
collector: command
command: jls -q -d -h
output_file: jls_-q_-d_-h.txt
-
description: List all jails, including dying ones, with all parameters with parameter names included.
supported_os: [freebsd]
collector: command
command: jls -q -d -n
output_file: jls_-q_-d_-n.txt
-
description: Report a snapshot of the current processes in each running jail, including dying jails.
supported_os: [freebsd]
collector: command
foreach: jls -d jid
command: ps -J %line%
output_file: ps_-J_%line%.txt
-
description: Report a snapshot of the current processes in each running jail, including dying jails.
supported_os: [freebsd]
collector: command
foreach: jls -d jid
command: ps auxwww -J %line%
output_file: ps_auxwww_-J_%line%.txt

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2.0
version: 3.0
condition: command_exists "zoneadm"
output_directory: /live_response/system
output_directory: /live_response/containers
artifacts:
-
description: Display all installed zones. A zone is an application container that is maintained by the operating system run-time.
supported_os: [solaris]
collector: command
command: zoneadm list -i -v
output_file: zoneadm_list_-i_-v.txt