Git Product home page Git Product logo

wazuh-tools's People

Contributors

barnumd avatar branchnetconsulting avatar kmfreder1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wazuh-tools's Issues

show-wazuh-rule missing output

If I run the script as posted, this is the output:

Processing /var/ossec/ruleset/rules/0020-syslog_rules.xml

I'm not seeing the actual rule displayed. I found if I changed the grep line from this:
grep -Pzo "^.<rule id="$ID" .(.|\n)*?" $F -h

to this:
grep -Pzo "<rule id="$ID" .(.|\n)?" $F -h

I get the following output:
Processing /var/ossec/ruleset/rules/0020-syslog_rules.xml

<program_name>^kernel</program_name>
Pre-match rule for kernel messages.

I'm running on Ubuntu 20.04 - I also was able to run the modified line on EC2 Linux and it worked there as well. I'm by no means a Linux or regex expert but for some reason, the ^.* at the start of the grep line caused the output to be suppressed.

Do you have any thoughts?

Wazuh-Sigma rules Sigwah

Hi Kevin,

Thanks for sharing these scripts as they are very useful.
I am working on integrating the Sigma rules into the wazuh rule set. I am using the import sigwah script to do this.

But after I ran the script and restarted the cluster, the manager could not restart and gave me a configuration error:

2020/07/21 17:47:39 ossec-analysisd: ERROR: Invalid configuration. 'group' is no                                                                                 t a valid element.
2020/07/21 17:47:39 ossec-analysisd: CRITICAL: (1220): Error loading the rules:                                                                                  'etc/rules/sigwah.xml'.
ossec-analysisd: Configuration error. Exiting

I checked the sigwah.xml file and the syntax and formatting seems to be good.

Could you please tell me how to resolve this issue or do something differently.

Thanks
Aakash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.