EDIT: This apparently needs to be configured - setting HISTCONTROL=ignorespace
EDIT: This apparently needs to be configured - setting HISTCONTROL=ignorespace
I hope and presume they had much better monitoring than scanning bash history, but I'm not bet-my-career confident of that.
bash has an "audit" function which is normally compiled out.
https://git.savannah.gnu.org/cgit/bash.git/tree/configure#n1...
When enabled it logs to syslog.
Instead, the Kernel has built in functionality called Auditd[0], which is capable of logging any and all executions, file or socket accesses, and much more. Along with included tooling for quickly finding and alerting on events[3].
Further, if terminal logging or playback is really required (usually not), it's generally done through pam with tlog[1]. Red Hat 8 and above come with built-in tlog support[2].
[0] https://access.redhat.com/documentation/en-us/red_hat_enterp...
[1] https://github.com/Scribery/tlog/blob/main/README.md
[2] https://access.redhat.com/documentation/en-us/red_hat_enterp...