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

Add decoders to extract the username field from failed login logs of proftpd #740

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions decoders/0230-proftpd_decoders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
- proftpd[2344]: refused connect from 192.168.1.2 (192.168.1.2)
- proftpd[15181]: valhalla (crawl-66-249-66-80.googlebot.com[66.249.66.80]) - Connection from crawl-66-249-66-80.googlebot.com [66.249.66.80] denied.
- proftpd[26169] server.example.net: Fatal: unable to open incoming connection: Der Socket ist nicht verbunden
- proftpd[13378]: 10.22.136.85 (111.250.52.78[111.250.52.78]) - USER root (Login failed): Incorrect password
- proftpd[17655]: 10.22.136.85 (10.22.126.169[10.22.126.169]) - USER cronftp (Login failed): authentication via 'ssh-dss' public key failed
- proftpd[19969]: 10.22.136.85 (10.22.33.14[10.22.33.14]) - USER anonymous: no such user found from 10.22.33.14 [10.22.33.14] to ::ffff:10.22.136.85:21
-->
<decoder name="proftpd">
<program_name>^proftpd</program_name>
Expand All @@ -31,8 +34,26 @@
<fts>name, user, srcip, location</fts>
</decoder>

<decoder name="proftpd-ip">
<decoder name="proftpd-fail_password">
<parent>proftpd</parent>
<regex>^\S+ \(\S+[(\S+)]\)|^\S+ \(\S+[(\S+)]\)</regex>
<order>srcip</order>
<prematch> \(Login failed\): Incorrect password</prematch>
<regex>^\S+ \(\S+[(\S+)]\)\s*\S \w+ (\S+) </regex>
<regex>\(Login failed\): Incorrect password</regex>
<order>srcip, srcuser</order>
</decoder>

<decoder name="proftpd-fail_publickey">
<parent>proftpd</parent>
<prematch> \(Login failed\): authentication via '\S+' public key failed</prematch>
<regex>^\S+ \\S+[(\S+)]\)\s*\S \w+ (\S+) </regex>
<regex>\(Login failed\): authentication via '\S+' public key failed</regex>
<order>srcip, srcuser</order>
</decoder>

<decoder name="proftpd-non_existent">
<parent>proftpd</parent>
<prematch>: no such user found from </prematch>
<regex>^\S+ \(\S+[(\S+)]\)\s*\S \w+ (\S+): </regex>
<regex>no such user found from \S+ [\S+] to \S+</regex>
<order>srcip, srcuser</order>
</decoder>