Skip to contentSkip to conversation

pam_tty_audit bi-directional logging

DISCUSSION Tracy Reed 3 participants 5 messages Jun 7, 2013 – Jun 10, 2013

lore
Share & tools
lore

Tracy Reed

author
#0 lore raw

Is there any way to make pam_tty_audit log not only what the user types but also what the server sends back? Due to regulatory requirements We are currently having to use proprietary, kludgy, unreliable bastion host "solutions" to get full session logging. It seems like pam_tty_audit, being in the tty layer, would have access to everything going through the tty both send and receive but it looks like only commands typed are logged. Am I missing something?

Thanks!

Signature · 1 line
Tracy Reed
#1 lore raw

----- Original Message -----

Quoted 2 lines

Is there any way to make pam_tty_audit log not only what the user types but also what the server sends back?

No, this is currently not possible.
Mirek

#2 lore raw
Quoted 7 lines · Miloslav Trmač

----- Original Message -----

Quoted 3 lines

Is there any way to make pam_tty_audit log not only what the user types but
also what the server sends back?

No, this is currently not possible.

Impossible as in 1) what is already shipped can't do this, or 2) no amount of code being added to the kernel can do this, or 3) for upstream political reasons?

-Steve

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

#3 lore raw

----- Original Message -----

Quoted 7 lines · Miloslav Trmač
Quoted 6 lines

----- Original Message -----

Quoted 3 lines

Is there any way to make pam_tty_audit log not only what the user types but
also what the server sends back?

Quoted 5 lines
Quoted 1 line

No, this is currently not possible.

Impossible as in 1) what is already shipped can't do this, or 2) no amount of code being added to the kernel can do this, or 3) for upstream political reasons?

Primarily 1), also
4) auditing output is a little more difficult because it's much more common to have a _lot_ of output (e.g. (find -name '*.c')), so TTY auditing should probably be able to throttle the TTY throughput. (In principle the same problem is with input as well - with a PTY I can cause massive amount of data to be audited - but it doesn't occur accidentally.) Mirek

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

#4 lore raw
Quoted 9 lines · Miloslav Trmač
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Is there any way to make pam_tty_audit log not only what the user types but also what the server sends back?

No, this is currently not possible.

Impossible as in 1) what is already shipped can't do this, or 2) no amount of code being added to the kernel can do this, or 3) for upstream political reasons?

Quoted 6 lines

Primarily 1), also
4) auditing output is a little more difficult because it's much more common to have a _lot_ of output (e.g. (find -name '*.c')), so TTY auditing should probably be able to throttle the TTY throughput. (In principle the same problem is with input as well - with a PTY I can cause massive amount of data to be audited - but it doesn't occur accidentally.)

Probably would need to escape/drop all the control characters, too, so report display terminal doesn't get hijacked. :-) But yes, I could see someone DoS'ing the machine easily now that you mention it.

-Steve

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit