https://attack.mitre.org/techniques/T1552/003/ attacker may search bash command history on compromised systems because sometimes users tend to pass username and password over command line to the program. when user logs out then all the commands are flushed out to .bash_history file. for each user the file resides in the same location. ~/.bash_history attacker can abuse this by looking through the file for potential credentials. Mitigation: there are multiple methods of preventing a users command history from being flushed to their .bash_history file, including use of the following commands: off logging: set +o history and set -o history to start logging again. another way: clean command history: history -c to make sure changes are written to disk, use: history -w to make more sure the history is cleared when existing a session, the following command comes in handy: cat /dev/null > ~/.bash_history && history -c && ex...