File: shell.yaml

package info (click to toggle)
forensic-artifacts 20230928-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 996 kB
  • sloc: python: 1,939; sh: 22; makefile: 11
file content (308 lines) | stat: -rw-r--r-- 8,373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
# Shell user-interface artifact definitions.
---
name: BashShellConfigurationFile
doc: Bourne Again shell (bash) configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.bash_logout'
    - '%%users.homedir%%/.bash_profile'
    - '%%users.homedir%%/.bashrc'
    - '/etc/bash.bashrc'
    - '/etc/bashrc'
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths:
    - '/private/etc/bash.bashrc'
    - '/private/etc/bashrc'
  supported_os: [Darwin]
- type: FILE
  attributes:
    paths:
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.bash_logout'
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.bash_profile'
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.bashrc'
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://forensics.wiki/bash_shell']
---
name: BashShellHistoryFile
aliases: [MacOSBashHistory]
doc: Bourne Again shell (bash) history files.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.bash_history'
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths: ['%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.bash_history']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://forensics.wiki/bash_shell']
---
name: BashShellSessionFile
aliases: [MacOSBashSessions]
doc: Bourne Again shell (bash) session files.
sources:
- type: FILE
  attributes: {paths: ['%%users.homedir%%/.bash_sessions/*']}
supported_os: [Darwin]
urls: ['https://forensics.wiki/bash_shell']
---
name: BourneShellHistoryFile
doc: Bourne shell (sh) history files.
sources:
- type: FILE
  attributes: {paths: ['%%users.homedir%%/.sh_history']}
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths: ['%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.sh_history']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://en.wikipedia.org/wiki/Bourne_shell']
---
name: CShellConfigurationFile
doc: C shell (csh) configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.cshrc'
    - '/etc/csh.cshrc'
    - '/etc/csh.login'
    - '/etc/csh.logout'
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths:
    - '/private/etc/csh.cshrc'
    - '/private/etc/csh.login'
    - '/private/etc/csh.logout'
  supported_os: [Darwin]
- type: FILE
  attributes:
    paths: ['%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.cshrc']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://en.wikipedia.org/wiki/C_shell']
---
name: FishShellConfigurationFile
doc: FishShell (fish) configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.config/fish/conf.d/config.fish'
    - '/etc/fish/conf.d/*.fish'
    - '%%users.homedir%%/.config/fish/config.fish'
    - '/etc/fish/config.fish'
  supported_os: [Linux]
supported_os: [Linux]
urls: ['https://fishshell.com/docs/current/language.html#configuration']
---
name: FishShellHistoryFile
doc: Fish shell (fish) history files.
sources:
- type: FILE
  attributes: {paths: ['%%users.homedir%%/.local/share/fish/fish_history']}
  supported_os: [Linux]
supported_os: [Linux]
urls: ['https://fishshell.com/docs/current/cmds/history.html']
---
name: KornShellConfigurationFile
doc: KornShell (ksh) configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.ksh'
    - '/etc/kshrc'
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths:
    - '/private/etc/kshrc'
  supported_os: [Darwin]
- type: FILE
  attributes:
    paths: ['%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.ksh']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://en.wikipedia.org/wiki/KornShell']
---
name: RootUserShellConfigs
doc: Common Unix root shell configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '/root/.bash_logout'
    - '/root/.bash_profile'
    - '/root/.bashrc'
    - '/root/.cshrc'
    - '/root/.ksh'
    - '/root/.config/fish/config.fish'
    - '/root/.logout'
    - '/root/.profile'
    - '/root/.tcsh'
    - '/root/.zlogin'
    - '/root/.zlogout'
    - '/root/.zprofile'
supported_os: [Darwin, Linux]
---
name: RootUserShellHistory
doc: Common Unix root shell history files.
sources:
- type: FILE
  attributes:
    paths:
    - '/root/.bash_history'
    - '/root/.local/share/fish/fish_history'
    - '/root/.sh_history'
    - '/root/.zhistory'
    - '/root/.zsh_history'
supported_os: [Darwin, Linux]
---
name: ShellConfigurationFile
aliases: [AllShellConfigs, GlobalShellConfigs, UsersShellConfigs]
doc: Group of shell configuration files.
sources:
- type: ARTIFACT_GROUP
  attributes:
    names:
    - 'BashShellConfigurationFile'
    - 'CShellConfigurationFile'
    - 'FishShellConfigurationFile'
    - 'KornShellConfigurationFile'
    - 'ShellLogoutFile'
    - 'ShellProfileFile'
    - 'TeeShellConfigurationFile'
    - 'ZShellConfigurationFile'
supported_os: [Darwin, Linux, Windows]
---
name: ShellHistoryFile
aliases: [AllUsersShellHistory, UserShellHistory]
doc: Group of shell history files.
sources:
- type: ARTIFACT_GROUP
  attributes:
    names:
    - 'BashShellHistoryFile'
    - 'BourneShellHistoryFile'
    - 'FishShellHistoryFile'
    - 'ZShellHistoryFile'
supported_os: [Darwin, Linux, Windows]
---
name: ShellLogoutFile
doc: Shell logout file.
sources:
- type: FILE
  attributes: {paths: ['%%users.homedir%%/.logout']}
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths: ['%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.logout']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
---
name: ShellProfileFile
doc: Shell profile file.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.profile'
    - '/etc/profile'
  supported_os: [Darwin, Linux]
- type: FILE
  attributes: {paths: ['/private/etc/profile']}
  supported_os: [Darwin]
- type: FILE
  attributes:
    paths: ['%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.profile']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
---
name: TeeShellConfigurationFile
doc: Tee shell (tcsh) configuration files.
sources:
- type: FILE
  attributes: {paths: ['%%users.homedir%%/.tcsh']}
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths: ['%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.tcsh']
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://en.wikipedia.org/wiki/Tcsh']
---
name: ZShellConfigurationFile
doc: Z shell (zsh) configuration files.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.zlogin'
    - '%%users.homedir%%/.zlogout'
    - '%%users.homedir%%/.zprofile'
    - '/etc/zshenv'
    - '/etc/zshrc'
    - '/etc/zsh/zlogin'
    - '/etc/zsh/zlogout'
    - '/etc/zsh/zprofile'
    - '/etc/zsh/zshenv'
    - '/etc/zsh/zshrc'
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths:
    - '/private/etc/zshenv'
    - '/private/etc/zshrc'
    - '/private/etc/zsh/zlogin'
    - '/private/etc/zsh/zlogout'
    - '/private/etc/zsh/zprofile'
    - '/private/etc/zsh/zshenv'
    - '/private/etc/zsh/zshrc'
  supported_os: [Darwin]
- type: FILE
  attributes:
    paths:
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.zlogin'
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.zlogout'
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.zprofile'
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://en.wikipedia.org/wiki/Z_shell']
---
name: ZShellHistoryFile
doc: Z shell (zsh) history files.
sources:
- type: FILE
  attributes:
    paths:
    - '%%users.homedir%%/.zhistory'
    - '%%users.homedir%%/.zsh_history'
  supported_os: [Darwin, Linux]
- type: FILE
  attributes:
    paths:
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.zhistory'
    - '%%users.localappdata%%\Packages\*\LocalState\rootfs\home\*\.zsh_history'
    separator: '\'
  supported_os: [Windows]
supported_os: [Darwin, Linux, Windows]
urls: ['https://en.wikipedia.org/wiki/Z_shell']