Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Filebeats System module to parse key exchange failures for SSH #11233

Closed
swedishmike opened this issue Mar 13, 2019 · 4 comments
Closed

Get Filebeats System module to parse key exchange failures for SSH #11233

swedishmike opened this issue Mar 13, 2019 · 4 comments
Labels
enhancement Filebeat Filebeat Stalled Team:Integrations Label for the Integrations team

Comments

@swedishmike
Copy link

Currently the System Module 'only' parses failed and successful authentications and populates the system.auth.ssh.event.field with "Accepted", "Failed" or "Invalid". It would be useful if another entry/parsing could be added. This is for when the negotiation of Key Exchange protocol fails as in the exanples below. This could for example be named NegotiatonError. Parsing the connecting IP with GeoIP would also be very useful.

Mar 13 15:13:30 hostname sshd[10440]: Unable to negotiate with XXX.XXX.XXX.XXX port 10718: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
Mar 13 15:14:07 hostname sshd[10444]: Unable to negotiate with XXX.XXX.XXX.XXX port 41311: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
Mar 13 15:14:25 hostname sshd[10447]: Unable to negotiate with XXX.XXX.XXX.XXX port 27413: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
Mar 13 15:14:43 hostname sshd[10451]: Unable to negotiate with XXX.XXX.XXX.XXX port 56318: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
Mar 13 15:15:25 hostname sshd[10455]: Unable to negotiate with XXX.XXX.XXX.XXX port 60650: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]

This could be useful on quite a lot of levels. From a security point of view you'd get deeper information about people trying to connect and possibly attempt bruteforce SSH accounts, even though this time your hardening makes it troublesome for them. If you look at it from a sysadmin view you will get information about mis-matching configurations in your infrastructure.

@jsoriano
Copy link
Member

@ruflin ruflin added the Team:Integrations Label for the Integrations team label Mar 15, 2019
@botelastic
Copy link

botelastic bot commented Jul 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Jul 8, 2020
@jsoriano jsoriano added Team:SIEM and removed Stalled labels Jul 9, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic
Copy link

botelastic bot commented Jun 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Jun 9, 2021
@botelastic botelastic bot closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Filebeat Filebeat Stalled Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

5 participants