Code Monkey home page Code Monkey logo

sigma-rules's Issues

date field is in the wrong format

pySigma throws a sigma.exceptions.SigmaDateError exception when attempting to load some rules in this repository due to the format of the date field. For example:

sigma.exceptions.SigmaDateError: Rule date '01/22/2023' is invalid, must be yyyy/mm/dd or yyyy-mm-dd in The-DFIR-Report/Sigma-Rules/rules/network/zeek/zeek_smb_mapping_invoke-sharefinder_discovery.yml

This error can be reproduced with the SigmaCollection.load_ruleset() function:

from sigma.collection import SigmaCollection
SigmaCollection.load_ruleset(['The-DFIR-Report/Sigma-Rules'])

The following files use this problematic format for dates:

  • /rules/network/zeek/zeek_smb_mapping_invoke-sharefinder_discovery.yml
  • /rules/windows/builtin/win_security_invoke_sharefinder_discovery.yml
  • /rules/windows/powershell/powershell_module/posh_pm_invoke-sharefinder_discovery.yml
  • /rules/windows/powershell/powershell_script/posh_ps_invoke_sharefinder_discovery.yml

All other files use the appropriate yyyy/mm/dd format.

incorrect tag format for proc_creation_win_registry_query_for_wdigest.yml

pySigma throws a sigma.exceptions.SigmaValueError exception when attempting to load proc_creation_win_registry_query_for_wdigest.yml due to the format of the tag field:

Traceback (most recent call last):
  File "\AppData\Local\Programs\Python\Python39\lib\site-packages\sigma\rule.py", line 61, in from_str
    ns, n = tag.split(".", maxsplit=1)
ValueError: not enough values to unpack (expected 2, got 1)
...

sigma.exceptions.SigmaValueError: Sigma tag must start with namespace separated with dot from remaining tag.

This error can be reproduced with the SigmaCollection.load_ruleset() function:

from sigma.collection import SigmaCollection
SigmaCollection.load_ruleset(['The-DFIR-Report/Sigma-Rules'])

The problematic tag is t012. This should be part of the attack namespace i.e. attack.t012.

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.