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

[Rebase] Add rules and decoder for filezilla (Branch: 3.12-rebase-old-PRs) (Issue: #216) #610

Open
wants to merge 3 commits into
base: 3.12-rebase-old-PRs
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next Next commit
Create 0505-filezilla_decoders.xml
  • Loading branch information
eliasgrana committed Apr 7, 2020
commit 90ab97dd3dcb90795475c5d116057fc86a2aa837
54 changes: 54 additions & 0 deletions decoders/0505-filezilla_decoders.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!--
- Filezilla decoders
- Created by Wazuh, Inc.
- Copyright (C) 2015-2020, Wazuh Inc.
- This program is a free software; you can redistribute it and/or modify it under the terms of GPLv2.
-->


<!--
- Pre match for filezilla server for windows
- Examples:
- (000005)3/13/2019 1:30:01 AM -
-->
<decoder name="filezilla">
<prematch>^\(\d+\) \S+ \S+ \w+ - </prematch>
</decoder>

<!--
- Extract ip, id (number) and action
- Examples:
- (000010) 3/13/2019 5:09:45 AM - (not logged in) (10.0.0.1)> 530 Login or password incorrect!
-->
<decoder name="filezilla-not-logged">
<parent>filezilla</parent>
<prematch offset="after_parent">\(not logged in\) \(\S+\)> \.+ </prematch>
<regex offset="after_parent">\(not logged in\) \((\S+)\)> (\S+) (\.+)</regex>
<order>srcip, id, action</order>
</decoder>

<!--
-
- Extract user, ip, id and action
- Examples:
- (000004) 3/13/2019 1:29:52 AM - usuario (10.0.0.1)> 550 Permission denied
-->
<decoder name="filezilla-user-action">
<parent>filezilla</parent>
<prematch offset="after_parent">\S+ \(\S+\)> \S+ \.</prematch>
<regex offset="after_parent">(\S+) \((\S+)\)> (\S+) (\.+)</regex>
<order>srcuser, srcip, id, acction</order>
</decoder>

<!--
-
- Extract user, ip and id
- Examples:
- (000004) 3/13/2019 1:29:52 AM - usuario (10.0.0.1)> 550 Permission denied
-->
<decoder name="filezilla-user-command">
<parent>filezilla</parent>
<prematch offset="after_parent">\S+ \(\S+\)> \S+</prematch>
<regex offset="after_parent">(\S+) \((\S+)\)> (\S+)</regex>
<order>srcuser, srcip, id</order>
</decoder>