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

fixed Extend sshd parser to log messages regarding AllowUsers #874 #1018 #1021

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pfostenberg
Copy link

No description provided.

@pfostenberg
Copy link
Author

Should detect bf attacks even with AllowUsers are configured.

@LaurenceJJones
Copy link
Contributor

LaurenceJJones commented Apr 9, 2024

Should detect bf attacks even with AllowUsers are configured.

Hey so in the refeer issues the test case does not pass I had to alter the grok line to detect multiple cases

(Failed password for invalid )?(u|U)ser %{USERNAME:sshd_invalid_user}? from %{IP:sshd_client_ip}( port \d+)?( not allowed because not listed in AllowUsers)?

Do you have an example log line we can add for a test case?

Here is the provided case in the previous example

2023-11-14T00:20:42.738197+01:00 myserver sshd[1112652]: User root from 192.168.1.1 not allowed because not listed in AllowUsers

@pfostenberg
Copy link
Author

yes you can use this line: ( ends with ssh2)

Apr 6 18:51:41 eve sshd[2784424]: Failed password for invalid user root from 89.67.127.249 port 51182 ssh2

I added your line into my system for testing...

@LaurenceJJones
Copy link
Contributor

Can you check the updates I made @pfostenberg and if you are happy that the test cases are covered we can merge

@LaurenceJJones LaurenceJJones linked an issue Apr 9, 2024 that may be closed by this pull request
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.

Extend sshd parser to log messages regarding AllowUsers
2 participants