Earlier quoted context omitted.
People are _way_ too trusting of Slack and similar services. You could run your own IRC or Mattermost server accessible only in your LAN or over VPN and this would be fairly safe. Heck, even SSL-only with cranked up SSL options would be fairly safe. Instead, people ship all their data off to a 3rd party company, often letting that 3rd party have control over their servers and such. Their customer data, their payment…
People will always feel comfortable trading privacy for convenience!
Posting successful SSH logins to Slack
51–60 of 71 posts
Re: Posting successful SSH logins to Slack
#52If you want to send email on login, add in /etc/profile : echo "`whoami` logged in at `date` from `echo $SSH_CLIENT`" | mail -s "`hostname` login" youremail@example.com Note that people can still ssh execute remotely etc.
Re: Posting successful SSH logins to Slack
#53If you want to send email on login, add in /etc/profile : echo "`whoami` logged in at `date` from `echo $SSH_CLIENT`" | mail -s "`hostname` login" youremail@example.com Note that people can still ssh execute remotely etc.
You'll definitely want to add a '&' at the end of that line so that you don't delay user logins if the network is down or mail barfs.
Re: Posting successful SSH logins to Slack
#54Excellent. I've been thinking about having a SSHD keylogger post to slack (or some other log). It's crazy that sshd doesn't have this functionality built-in. It's so important to know what your admins are executing on your machines. Aside from the fact that they might have been compromised, it's just good to know what sort of general administration is being done.
> It's so important to know what your admins are executing on your machines... Micromanagement at its finest! > it's just good to know what sort of general administration is being done. Your change management process will give you an overview of what your admins are doing.
Re: Posting successful SSH logins to Slack
#55Earlier quoted context omitted.
Which is easily defeated, of course ...
Some file systems support append-only permissions, although I've never used them. I wonder if that would work with bash's history file?
Re: Posting successful SSH logins to Slack
#56This post explains how to set it up:
https://blog.sucuri.net/2016/01/server-security-integrating-...
Re: Posting successful SSH logins to Slack
#57Excellent. I've been thinking about having a SSHD keylogger post to slack (or some other log). It's crazy that sshd doesn't have this functionality built-in. It's so important to know what your admins are executing on your machines. Aside from the fact that they might have been compromised, it's just good to know what sort of general administration is being done.
Look into auditd for logging execve() syscall instead. OSSEC can (directly) report or act on any thing reported through logs.
https://blog.sucuri.net/2016/01/server-security-integrating-...
Re: Posting successful SSH logins to Slack
#58Is Slack really the right place for security-critical notifications?
yes? I mean the next step is to have an automated phone call go out to people (which is what we do for critical alerts). Short of that, slack is on my desktop, laptop, and phone. If i don't have one of those around me at the time, you aren't getting ahold of me for any reason. So yeah i think it's perfectly valid for security-critical notifications. Plus this isn't as security critical as you'd think. I don't want kl…
Re: Posting successful SSH logins to Slack
#59Earlier quoted context omitted.
yes? I mean the next step is to have an automated phone call go out to people (which is what we do for critical alerts). Short of that, slack is on my desktop, laptop, and phone. If i don't have one of those around me at the time, you aren't getting ahold of me for any reason. So yeah i think it's perfectly valid for security-critical notifications. Plus this isn't as security critical as you'd think. I don't want kl…
Slack is terrible for auditing, though. What's wrong with email?