Skip to content

Commit 4189fbd

Browse files
authored
Merge pull request #440 from tclahr/update-shell-artifacts
replace single by individual shell artifacts
2 parents 2cc367d + 59aa03c commit 4189fbd

25 files changed

Lines changed: 422 additions & 33 deletions

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ All notable changes to this project will be documented in this file.
1616

1717
### Artifacts
1818

19+
- `files/applications/calc.yaml`: Added collection of calc history files [all].
1920
- `files/applications/imessage.yaml`: Renamed to `files/applications/messages.yaml` to better reflect its contents.
2021
- `files/applications/jenkins.yaml`: Added collection of Jenkins config.xml and build.xml files [linux, macos]. (by [halpomeranz](https://github.com/halpomeranz))
22+
- `files/applications/mail.yaml`: Added collection of .mailrc and .mail_aliases files [all].
2123
- `files/applications/microsoft_teams.yaml`: Updated collection of Microsoft Teams artifacts [linux, macos].
24+
- `files/applications/nano.yaml`: Added collection of nano history and config files [all].
25+
- `files/applications/python.yaml`: Added collection of python history files [all].
26+
- `files/applications/screen.yaml`: Added collection of .screenrc file [all].
27+
- `files/applications/sqlite.yaml`: Added collection of sqlite history files [all].
2228
- `files/browsers/brave.yaml`: Added collection of affiliation database file [linux, macos].
2329
- `files/browsers/chrome.yaml`: Added collection of affiliation database file [linux, macos].
2430
- `files/browsers/chromium.yaml`: Added collection of affiliation database file [linux, macos].
@@ -28,6 +34,22 @@ All notable changes to this project will be documented in this file.
2834
- `files/browsers/vivaldi.yaml`: Added collection of affiliation database file [linux, macos].
2935
- `files/logs/journal.yaml`: Updated collection of systemd journal artifacts to search files in `/var/log` only [linux]. (by [halpomeranz](https://github.com/halpomeranz))
3036
- `files/logs/tomcat.yaml`: Updated collection of Apache Tomcat logs to also search in the $CATALINA_BASE and $CATALINA_HOME locations [all].
37+
- `files/shell/config.yaml`, `files/shell/history.yaml`, and `files/shell/sessions.yaml` were replaced by the following artifacts:
38+
- `files/shell/ash.yaml`: Added collection of ash history and config files [all].
39+
- `files/shell/bash.yaml`: Added collection of bash history and config files [all].
40+
- `files/shell/common.yaml`: Added collection of common shell config files [all].
41+
- `files/shell/dash.yaml`: Added collection of dash history and config files [all].
42+
- `files/shell/elvish.yaml`: Added collection of elvish history and config files [all].
43+
- `files/shell/fish.yaml`: Added collection of fish history and config files [all].
44+
- `files/shell/ion.yaml`: Added collection of ion history and config files [all].
45+
- `files/shell/ksh.yaml`: Added collection of ksh history and config files [all].
46+
- `files/shell/mksh.yaml`: Added collection of mksh history and config files [all].
47+
- `files/shell/nscli.yaml`: Added collection of nscli history and config files [netscaler].
48+
- `files/shell/osh.yaml`: Added collection of osh history and config files [all].
49+
- `files/shell/powershell.yaml`: Added collection of powershell history and config files [all].
50+
- `files/shell/tcsh.yaml`: Added collection of tcsh history and config files [all].
51+
- `files/shell/xonsh.yaml`: Added collection of xonsh history and config files [all].
52+
- `files/shell/zsh.yaml`: Added collection of zsh history and config files [all].
3153
- `files/ssh/public_keys.yaml`: Added collection of SSH public keys [all]. (by [halpomeranz](https://github.com/halpomeranz))
3254
- `files/system/biome.yaml`: Updated collection of Biome artifacts [macos].
3355
- `files/system/boot.yaml`: Added collection of boot config, initramfs/initrd, sysvers, System.map, and GRUB config files, possible persistence mechanisms [linux]. (by [halpomeranz](https://github.com/halpomeranz))
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect calc history files.
5+
supported_os: [all]
6+
collector: file
7+
path: /%user_home%/.calc_history
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect mail config files.
5+
supported_os: [all]
6+
collector: file
7+
path: /%user_home%/.mailrc /%user_home%/.mail_aliases
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
version: 1.0
1+
version: 1.1
22
artifacts:
33
-
44
description: Collect nano history files.
55
supported_os: [all]
66
collector: file
7-
path: %user_home%
8-
name_pattern: [".nano_history"]
9-
max_depth: 4
7+
path: %user_home%/.nano_history
8+
-
9+
description: Collect nano config files.
10+
supported_os: [all]
11+
collector: file
12+
path: %user_home%/.nanorc
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect python history files.
5+
supported_os: [all]
6+
collector: file
7+
path: /%user_home%/.python_history
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect screen config files.
5+
supported_os: [all]
6+
collector: file
7+
path: /%user_home%/.screenrc
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect sqlite history files.
5+
supported_os: [all]
6+
collector: file
7+
path: /%user_home%/.sqlite_history

artifacts/files/shell/ash.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect history files (including logrotate and backup files).
5+
supported_os: [all]
6+
collector: file
7+
path: /%user_home%/.ash_history /var/log/shell.log
8+
-
9+
description: Collect system config files.
10+
supported_os: [all]
11+
collector: file
12+
path: /etc/profile.local /etc/rc.local.d/local.sh

artifacts/files/shell/bash.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect history files (including logrotate and backup files).
5+
supported_os: [all]
6+
collector: file
7+
path: /%user_home%/.bash_history /%user_home%/.bash_history~ /%user_home%/.bash_history.*
8+
-
9+
description: Collect user config files.
10+
supported_os: [all]
11+
collector: file
12+
path: /%user_home%/.bashrc /%user_home%/.profile /%user_home%/.bash_login /%user_home%/.bash_profile
13+
-
14+
description: Collect user session files.
15+
supported_os: [all]
16+
collector: file
17+
path: /%user_home%/.bash_sessions
18+
-
19+
description: Collect system config files.
20+
supported_os: [all]
21+
collector: file
22+
path: /etc/bash.bashrc
23+
-
24+
description: Collect additional user files.
25+
supported_os: [all]
26+
collector: file
27+
path: /%user_home%/.bash_aliases /%user_home%/.bash_logout /%user_home%/.inputrc
28+
-
29+
description: Parse config files to determine $HISTFILE.
30+
supported_os: [all]
31+
collector: command
32+
command: grep -E "HISTFILE=.*" /%user_home%/.bashrc /%user_home%/.bash_profile /%user_home%/.profile /etc/bash.bashrc | sed -e 's|.*HISTFILE=||' -e 's|^~/|/%user_home%/|'
33+
output_directory: /%temp_directory%/files/shell
34+
output_file: bash_histfile.txt
35+
-
36+
description: Collect $HISTFILE.
37+
supported_os: [all]
38+
collector: file
39+
path: /%temp_directory%/files/shell/bash_histfile.txt
40+
is_file_list: true

artifacts/files/shell/common.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 1.0
2+
artifacts:
3+
-
4+
description: Collect system files.
5+
supported_os: [all]
6+
collector: file
7+
path: /etc/.login /etc/profile /etc/shells /etc/profile.d/*
8+
-
9+
description: Parse config files to determine $HISTFILE.
10+
supported_os: [all]
11+
collector: command
12+
command: grep -E "^HISTFILE=.*" /etc/profile | sed -e 's|.*HISTFILE=||' -e 's|^~/|/%user_home%/|'
13+
output_directory: /%temp_directory%/files/shell
14+
output_file: common_histfile.txt
15+
-
16+
description: Collect $HISTFILE.
17+
supported_os: [all]
18+
collector: file
19+
path: /%temp_directory%/files/shell/common_histfile.txt
20+
is_file_list: true

0 commit comments

Comments
 (0)