Security
Process
-
Check login trials
last | moretail -300f /var/log/secure
-
Check hacked file update time
- use
gitwhich easily shows modified file - use log monitoring tool such as Elastic Stack
- use
-
Archive it for later analysis
tar cvfz ~/archive.tgz hacked_file1 path/to/hacked_file2- delete them
git reset --hard
-
Image Capture or record screen
- QuickTime
- Obsproject
Useful code
- monitoring status change
textwhile true; do git status; date; sleep 5; done