Skip to content

additional sshd decoders#1480

Merged
atomicturtle merged 1 commit intoossec:masterfrom
ddpbsd:sshd_decoders
Jul 31, 2018
Merged

additional sshd decoders#1480
atomicturtle merged 1 commit intoossec:masterfrom
ddpbsd:sshd_decoders

Conversation

@ddpbsd
Copy link
Member

@ddpbsd ddpbsd commented Jul 30, 2018

Add a few decoders for sshd. I'm not sure if the log messages changed recently, but I saw they weren't being decoded very well. I'm too tired to do it now, but reviewing the sshd decoders should be a task sometime.
Sample logs that should be decoded better:

Jul 28 23:22:18 junction sshd[15131]: Invalid user role1 from 192.144.139.214 port 4100
Jul 28 23:22:18 junction sshd[15131]: Received disconnect from 192.144.139.214 port 41006:11: Normal Shutdown, Thank you for playing [preauth]
Jun 22 12:01:13 junction sshd[11283]: Received disconnect from 212.14.228.46: 11: Bye Bye
Jul 28 23:22:18 junction sshd[15131]: Disconnected from invalid user role1 192.144.139.214 port 41006 [preauth]
Jul 28 23:35:04 junction sshd[38935]: Received disconnect from 185.8.49.228 port 37890:11: Bye Bye [preauth]
Jul 29 00:21:57 junction sshd[72341]: User root from 180.101.185.159 not allowed because not listed in AllowUsers
Jul 29 00:21:58 junction sshd[72341]: Connection closed by invalid user root 180.101.185.159 port 45952 [preauth]
Jul 29 00:39:25 junction sshd[52330]: Did not receive identification string from 192.168.18.8 port 36566
Jul 29 00:43:14 junction sshd[5957]: Unable to negotiate with 192.168.18.8 port 35250: no matching host key type found. Their offer: ssh-dss [preauth]
Jul 29 00:43:14 junction sshd[79098]: Protocol major versions differ for 192.168.18.8 port 34704: SSH-2.0-OpenSSH_7.8 vs. SSH-1.5-Nmap-SSH1-Hostkey

recently, but I saw they weren't being decoded very well.
Sample logs that should be decoded better:
Jul 28 23:22:18 junction sshd[15131]: Invalid user role1 from 192.144.139.214 port 4100
Jul 28 23:22:18 junction sshd[15131]: Received disconnect from 192.144.139.214 port 41006:11: Normal Shutdown, Thank you for playing [preauth]
Jun 22 12:01:13 junction sshd[11283]: Received disconnect from 212.14.228.46: 11: Bye Bye
Jul 28 23:22:18 junction sshd[15131]: Disconnected from invalid user role1 192.144.139.214 port 41006 [preauth]
Jul 28 23:35:04 junction sshd[38935]: Received disconnect from 185.8.49.228 port 37890:11: Bye Bye [preauth]
Jul 29 00:21:57 junction sshd[72341]: User root from 180.101.185.159 not allowed because not listed in AllowUsers
Jul 29 00:21:58 junction sshd[72341]: Connection closed by invalid user root 180.101.185.159 port 45952 [preauth]
Jul 29 00:39:25 junction sshd[52330]: Did not receive identification string from 192.168.18.8 port 36566
Jul 29 00:43:14 junction sshd[5957]: Unable to negotiate with 192.168.18.8 port 35250: no matching host key type found. Their offer: ssh-dss [preauth]
Jul 29 00:43:14 junction sshd[79098]: Protocol major versions differ for 192.168.18.8 port 34704: SSH-2.0-OpenSSH_7.8 vs. SSH-1.5-Nmap-SSH1-Hostkey
@atomicturtle atomicturtle merged commit 6f0eda9 into ossec:master Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants