-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from wazuh/PR-62_add_local_rules
adding custom rules/decoders files
- Loading branch information
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
roles/wazuh/ansible-wazuh-manager/custom_ruleset/decoders/sample_custom_decoders.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- Local Decoders --> | ||
|
||
<!-- Modify it at your will. --> | ||
|
||
<!-- | ||
- Allowed static fields: | ||
- location - where the log came from (only on FTS) | ||
- srcuser - extracts the source username | ||
- dstuser - extracts the destination (target) username | ||
- user - an alias to dstuser (only one of the two can be used) | ||
- srcip - source ip | ||
- dstip - dst ip | ||
- srcport - source port | ||
- dstport - destination port | ||
- protocol - protocol | ||
- id - event id | ||
- url - url of the event | ||
- action - event action (deny, drop, accept, etc) | ||
- status - event status (success, failure, etc) | ||
- extra_data - Any extra data | ||
--> | ||
|
||
<decoder name="sample_custom_decoder"> | ||
<program_name>sample_custom_decoder</program_name> | ||
</decoder> |
18 changes: 18 additions & 0 deletions
18
roles/wazuh/ansible-wazuh-manager/custom_ruleset/rules/sample_custom_rules.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- Local rules --> | ||
|
||
<!-- Modify it at your will. --> | ||
|
||
<!-- Example --> | ||
<group name="local,syslog,sshd,"> | ||
|
||
<!-- | ||
Dec 10 01:02:02 host sshd[1234]: Failed none for root from 1.1.1.1 port 1066 ssh2 | ||
--> | ||
<rule id="200001" level="5"> | ||
<if_sid>5716</if_sid> | ||
<srcip>1.1.1.1</srcip> | ||
<description>sshd: authentication failed from IP 1.1.1.1.</description> | ||
<group>authentication_failed,pci_dss_10.2.4,pci_dss_10.2.5,</group> | ||
</rule> | ||
|
||
</group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters