I receive scheduled emails from periodic with the subject line "daily security run output". I cannot find documentation to help interpret each section of the email, e.g. "checking negative group permissions", "checking for uids of 0"(root and toor are listed). Most important to me however, is to understand the details of each entry under "hostname login failures" (which of these should catch my eye more than the other?). E.g. what is the exact meaning of, and distinction between the following (I guess specifically in terms of how the attacker attempted to access the server):
Then there's this whole block from one IP address (I'm seeing a lot of these blocks that are logged within one second). I'm looking for specific (but not necessarily detailed) information for each line (for e.g. what's the difference between "Postponed keyboard-interactive" and "Failed keyboard-interactive").
Then someone's trying to login as root? How is this possible given that I have
in /etc/ssh/sshd_config
There are a few other possibilities that I have not listed here. Also, there is a lot more of this login-/failed-login-type information in /var/log/auth.log. How are those entires filtered to be part of the periodic emails?
Easiest might be to point me to some documentation / webpage with this info (if such a thing exists). I run sshguard if that's helpful to know...
Code:
]Oct 9 01:06:00 hostname sshd[44813]: error: PAM: authentication error for server1 from 66.66.66.666
Code:
Oct 9 03:49:42 hostname sshd[45520]: Invalid user admin from 77.777.777.777
Oct 9 03:49:42 hostname sshd[45520]: input_userauth_request: invalid user admin [preauth]
Oct 9 03:49:42 hostname sshd[45520]: Postponed keyboard-interactive for invalid user admin from 77.777.777.777 port 54195 ssh2 [preauth]
Oct 9 03:49:42 hostname sshd[45520]: error: PAM: authentication error for illegal user admin from ec2-54-148-255-249.us-west-2.compute.amazonaws.com
Oct 9 03:49:42 hostname sshd[45520]: Failed keyboard-interactive/pam for invalid user admin from 77.777.777.777 port 54195 ssh2
Code:
PermitRootLogin no
Code:
Oct 9 04:54:05 pangasius sshd[45676]: error: PAM: authentication error for root from 88.888.888.888
Easiest might be to point me to some documentation / webpage with this info (if such a thing exists). I run sshguard if that's helpful to know...