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

fix: rule parse error(regression caused by #568) #576

Merged
merged 2 commits into from
Jan 21, 2024

Conversation

fukusuket
Copy link
Collaborator

@fukusuket fukusuket commented Jan 21, 2024

What Changed

Evidence

Test Environment

  • OS: macOS Sonoma version 14.0
  • Hard: MacBook Air(M1, 2020) , Memory 8GB, Core 8
  • Poetry: version 1.7.1

conversion script

I confirmed that logsource_mapping.py works as shown below.

% poetry run python logsource_mapping.py -r ../../../sigma -o ./converted_sigma_rules
[INFO:logsource_mapping.py:462] Start to logsource mapping sigma rules.
...
[INFO:logsource_mapping.py:520] [4111] files created successfully. Created files were saved under [./converted_sigma_rules].
[INFO:logsource_mapping.py:521] Script took [10.78] seconds.
fukusuke@fukusukenoMacBook-Air sigmac % 

no conversion errors

I confirmed that no parse errors as shown below.

% ./hayabusa csv-timeline -d ../hayabusa-sample-evtx -r ~/Scripts/Python/hayabusa-rules/tools/sigmac/converted_sigma_rules -w -o out.csv -C

╔╗ ╔╦═══╦╗  ╔╦═══╦══╗╔╗ ╔╦═══╦═══╗
║║ ║║╔═╗║╚╗╔╝║╔═╗║╔╗║║║ ║║╔═╗║╔═╗║
║╚═╝║║ ║╠╗╚╝╔╣║ ║║╚╝╚╣║ ║║╚══╣║ ║║
║╔═╗║╚═╝║╚╗╔╝║╚═╝║╔═╗║║ ║╠══╗║╚═╝║
║║ ║║╔═╗║ ║║ ║╔═╗║╚═╝║╚═╝║╚═╝║╔═╗║
╚╝ ╚╩╝ ╚╝ ╚╝ ╚╝ ╚╩═══╩═══╩═══╩╝ ╚╝
   by Yamato Security

Start time: 2024/01/21 13:53

Total event log files: 583
Total file size: 137.1 MB

Loading detection rules. Please wait.

Excluded rules: 27

Deprecated rules: 187 (4.85%) (Disabled)
Experimental rules: 1418 (36.81%)
Stable rules: 108 (2.80%)
Test rules: 2326 (60.38%)
Unsupported rules: 45 (1.17%) (Disabled)

Sigma rules: 3852
Total enabled detection rules: 3852

I would appreciate it if you could review when you have time🙏

@fukusuket fukusuket self-assigned this Jan 21, 2024
@fukusuket fukusuket added the bug Something isn't working label Jan 21, 2024
@fukusuket fukusuket marked this pull request as ready for review January 21, 2024 04:58
@fukusuket
Copy link
Collaborator Author

I fixed regression in #568. I am very sorry ... :(
The workflow Rule parse error check failure is caused by #568, so please ignore it in this PR🙇

Copy link
Collaborator

@YamatoSecurity YamatoSecurity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fukusuket Thank you for the quick fix!

@YamatoSecurity YamatoSecurity merged commit 7d33eff into main Jan 21, 2024
1 of 3 checks passed
@YamatoSecurity YamatoSecurity deleted the fix-rule-parse-error-568 branch January 21, 2024 06:23
@fukusuket
Copy link
Collaborator Author

@YamatoSecurity
Thank you so much for quick merging🙇
The GitHub Actions rule checks were not executed when Auto-PR(It was executed only manual PR) ... so check them as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule parsing error due to regression (caused by #568)
2 participants