Execution / User activities
A set of locations where proofs of execution and user activities can be searched for.
Shell history
Commands issued on Bash or similar (zsh, ksh, etc) are by default logged into the respectives history files. The name of the file depends on the interpreter used. By default on Bash, no timestamp are provided in the history, but ZSH do.
While being something pretty easily bypassed, it's surprisingly still a very valuable place to look into.
Location
<user_profile>/.bash_history
<user_profile>/.zsh_history<user_profile>/.zsh_SESSIONS/*
Appears to be a 10 000 limit. It holds the timestamp of the command.
<user_profile>/.sh_history
Follow the FILO principle. Only the last 128 commands by default.
<user_profile>/.history
Vim
By default vim will keep tracks of the files open/editer with it.
Location
<user_profile>/.viminfo>
Auditd
An amazing place to look for if you are lucky enought to have the audit logs as well as enought retention.
Location
/var/audit
/etc/security
Sudo
Commands issued with sudo are logged into the auth file. This doesn't apply to command issued after a sudo su , though su will be logged.
Location
/var/log/auth.log
Last updated
Was this helpful?