Not able to collect TTY logs using AuditBeat in Kubernetes (AWS EKS)

I would like to audit users shell activity using AuditBeat and the auditd module integration, by looking at TTY logs. I have followed every possible doc and can't get it up and running.
I can see executions, but can't see the actual TTY.

I'm running AuditBeat in Kubernetes, over AWS EKS. Using the official helm chart.
I have minimal configuration file:

      tag: 6.7.0
      pullPolicy: IfNotPresent
      - module: auditd
        rate_limit: 0
        backlog_limit: 8196
        audit_rules: |
         -a exit,always -F arch=b64 -F euid=0 -S execve -k rootact
         -a exit,always -F arch=b32 -F euid=0 -S execve -k rootact
         -a exit,always -F arch=b64 -F euid>=1 -S execve -k useract
         -a exit,always -F arch=b32 -F euid>=1 -S execve -k useract
      - add_cloud_metadata:
        path: "/usr/share/auditbeat/data"
        filename: auditbeat
        rotate_every_kb: 10000
        number_of_files: 5

I have also added session required enable=* to both /etc/pam.d/password-auth and /etc/pam.d/system-auth

I'm auditing the outcome by tailing /usr/share/auditbeat/data/auditbeat, it has the logs for the executions but none for the TTY.

I have also tried running aureport --tty but it returns

    TTY Report
    # date time event auid term sess comm data
    <no events of interest were found>

auditd service has been stopped using sudo service auditd stop (and anyway we can see other logs by tailing for auditbeat, so its probably not the issue)

Anything i'm missing? What am i doing wrong?

Have already gone through:


Follow up question - according to the documentation, its required to stop auditd when using auditbeats with auditd, however, it seems that auditd tty logs don't work when auditd is not working. once i enabled auditd and enabled tty logs, it worked fine and i could see my logs using aureport --tty. how can we get the two to work together?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.