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

Unable to use fields srcuser and dstuser in custom rule #868

Open
selivan opened this issue Nov 8, 2023 · 0 comments
Open

Unable to use fields srcuser and dstuser in custom rule #868

selivan opened this issue Nov 8, 2023 · 0 comments

Comments

@selivan
Copy link

selivan commented Nov 8, 2023

local_rules.xml:

<group name="syslog,sudo,">
  <rule id="5407" level="0" noalert="1" overwrite="yes">
    <if_sid>5400</if_sid>
    <description>Successful sudo executed(with exception).</description>
    <field name="srcuser">!zabbix</field>
    <mitre>
      <id>T1548.003</id>
    </mitre>
    <group>pci_dss_10.2.5,pci_dss_10.2.2,gpg13_7.6,gpg13_7.8,gpg13_7.13,gdpr_IV_32.2,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
  </rule>
</group>

Configuration error:

wazuh-analysisd: ERROR: Failure to read rule 5407. Field 'srcuser' is static.

Static fields like user or action have corresponding tags in rule syntax: <user>, <action>. But srcuser and dstuser do not have any tags, so I can not filter their values.

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

No branches or pull requests

1 participant