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] New CyberArk rules and decoders (Branch: 3.12-rebase-old-PRs) (Issue: #600) #596

Open
wants to merge 2 commits into
base: 3.12-rebase-old-PRs
Choose a base branch
from
Open
Show file tree
Hide file tree
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
52 changes: 52 additions & 0 deletions decoders/0475-cyberark_decoders.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!--
09/25/2017
Log example:
Sep 21 13:49:33 GADC-VAULT001 CEF:0|Cyber-Ark|Vault|1.10.0000|165|Retrieve password|1|act=Retrieve password suser=PasswordManager fname=Root\Operating System-HP-WindowsServerLocalAccounts dvc= SessionDuration= shost=192.168.1.2 dhost=gadc-spfsrvp01. duser=GSH001 SessionID=1 ApplicationType=2 UUID=3 Protocol=4 Command=5 CurrentWorkingDirectory=6 Hostname=7 MachineIP=8.9.8.9 AccountUsername=myacount cs1Label="Affected User Name" cs1=123 cs2Label="Safe Name" cs2=WIN-P-SPOTFIRE-LA cs3Label="Device Type" cs3=Operating System cs4Label="Database" cs4=123 cs5Label="Other info" cs5=123 cn1Label="Request Id" cn1=123 cn2Label="Ticket Id" cn2=CPM msg=CPM
-->

<decoder name= "cyberark">
<program_name>cef</program_name>
<prematch>\.+\|Cyber-Ark\|</prematch>
</decoder>

<decoder name="cyberark_fields">
<parent>cyberark</parent>
<regex offset="after_parent">^\.+\|\.+\|\.+\|(\.+)\|</regex>
<order>type</order>
</decoder>

<decoder name="cyberark_fields">
<parent>cyberark</parent>
<regex offset="after_regex">suser=(\.+) fname=(\.+) dvc=\.+ shost=(\S+)</regex>
<order>suser,fname,shost</order>
</decoder>

<decoder name="cyberark_fields">
<parent>cyberark</parent>
<regex offset="after_regex">dhost=(\.+) duser=(\S+)</regex>
<order>dsthost,duser</order>
</decoder>

<decoder name="cyberark_fields">
<parent>cyberark</parent>
<regex offset="after_regex">SessionID=(\S*)</regex>
<order>sessionID</order>
</decoder>

<decoder name="cyberark_fields">
<parent>cyberark</parent>
<regex offset="after_regex">Protocol=(\S*) Command=(\S*)</regex>
<order>protocol_,command</order>
</decoder>

<decoder name="cyberark_fields">
<parent>cyberark</parent>
<regex offset="after_regex">cs1=(\.*) cs2Label="Safe Name" cs2=(\.*) cs3Label="Device Type" cs3=(\.*) cs4Label="Database" cs4=(\.*) cs5Label="Other info" cs5=(\.*) cn1Label="Request Id"</regex>
<order>affected-user-name,safe-name,device-type,database,other-info</order>
</decoder>

<decoder name="cyberark_fields">
<parent>cyberark</parent>
<regex offset="after_regex">cn1=(\.*) cn2Label="Ticket Id" cn2=(\.*) msg=(\.+)</regex>
<order>request_id,ticket_id,msg</order>
</decoder>
20 changes: 20 additions & 0 deletions rules/0565-cyberark_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--
Rule ID: 89100-89199
CyberArk Rules
- This program is a free software; you can redistribute it and/or modify it under the terms of GPLv2.
-->

<group name="cyberark,">

<rule id="89100" level="0">
<decoded_as>cyberark</decoded_as>
<description>CyberArk</description>
</rule>

<rule id="89101" level="3">
<if_sid>89100</if_sid>
<description>CyberArk</description>
</rule>


</group>
6 changes: 6 additions & 0 deletions tools/rules-testing/tests/cyberark.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[CyberArk]
log 1 pass = Sep 21 13:49:33 GADC-VAULT001 CEF:0|Cyber-Ark|Vault|1.10.0000|165|Retrieve password|1|act=Retrieve password suser=PasswordManager fname=Root\Operating System-HP-WindowsServerLocalAccounts dvc= SessionDuration= shost=192.168.1.2 dhost=gadc-spfsrvp01. duser=GSH001 SessionID=1 ApplicationType=2 UUID=3 Protocol=4 Command=5 CurrentWorkingDirectory=6 Hostname=7 MachineIP=8.9.8.9 AccountUsername=myacount cs1Label="Affected User Name" cs1=123 cs2Label="Safe Name" cs2=WIN-P-SPOTFIRE-LA cs3Label="Device Type" cs3=Operating System cs4Label="Database" cs4=123 cs5Label="Other info" cs5=123 cn1Label="Request Id" cn1=123 cn2Label="Ticket Id" cn2=CPM msg=CPM

rule = 89101
alert = 3
decoder = cyberark