I recently set up auditd and enabled TTY logging so I could give someone non-root shell access and monitor what they're doing. (For what it's worth I gave them jailshell access, a cPanel feature that restricts their access to only their user directory.)
I had it set up correctly, and to test it I was running aureport --tty -i
to see all user activity and ausearch -ul _username_ | aureport --tty -i
to filter the activity of the new account (hereby named _username_
, a pseudonym). On the _username_
account, I just ran some simple commands like cd
and ls
. I also compared this with cat /home/_username_/.bash_history
. I was logging in every day to check for updates, and I'm certain that I kept seeing the same record of activity from _username_
, the basic aforementioned commands. I know I saw this activity because I remember being confused that I didn't see it logged in aureport
until after I logged out. I had to Google to find out that this was a limitation of non-root TTY logging. So it was definitely in the aureport
a few days ago.
So today, I check again, and this time there is new activity for _username_
. Some pretty innocuous-looking commands. Frankly, I was expecting the person with the account to have more activity. What is very disconcerting to me, however, is that there is no previous record of activity from _username_
. My original test commands are no longer being reported by aureport
.
Is it possible they got up to no good, somehow got root access, and erased their history from auditd
, accidentally erasing the history of my test commands in the process? Are there any other explanations?