Session recording for Tailscale SSH in beta
tailscale.com
tailscale.com
This isn’t to trivialize the work of Tailscale (like the famous Dropbox comment). I just wanted to point out a cool thing that sudo does that most people don’t know about.
script -ec "command args" ~/$(date +%Y-%m-%d-%H%M%S_$$_script.txt)
Works out of the box on almost every *nix system.The recordings end up as textfiles with the control sequences in, you can use commands like cat -v, grep or less -R on them. If you also record a timing file, you can replay it 1:1 on you terminal.
I'll be horsing around with this tonight -- I hope ts sshing to my local computer will just work so I can get local recording as well without a separate mechanism.
Now, shell sessions from a bastion host scream (hopefully!) security sensitive to IT. Moreover, at that point you shouldn't be entering any passwords or keys; one should trust least the integrity of application servers and similar end nodes. But dumps from company laptop home directories where 99% is crap from sales and management... no way that is going to be treated with proper care, no matter how much customer PII it might contain.
But I'm not much into the whole cloud movement for privacy reasons.
If you entered something in terminal directly, I won't call it sensitive.
I remember seeing someone do a demo on this but the result, after only 2 minutes where insane. There was so much data to go through that you might aswell just give up on trying to get anything useful.
But a more modern alternative seems to be the container based approach outlined here. https://lwn.net/Articles/848291/
I always assumed OpenSSH offers this too but I've never had a need to actually check. I guess you can just 'tee' it anyway.
https://github.com/iovisor/bcc/blob/master/tools/execsnoop.p...
However if I scp a script to an audited server, then execute it, would I be able to retrieve the content of the script to have a proper audit trail ?
In other words is the file transfer protocol audited ?
What do you mean? You can use Tailscale SSH in the free plan.