-
Notifications
You must be signed in to change notification settings - Fork 5
chg: replace sigma-rust to sigmars #59
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces usage of the sigma_rust library with sigmars and updates rule loading and event conversion functions accordingly.
- Removed the unused helper function s from util.rs
- Updated get_updated_rules and load_rules_from_dir to use HashMap instead of Vec
- Replaced event deserialization using event_from_json with Event::new in scan.rs, aws_metrics.rs, and aws_detect.rs
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/util.rs | Removed unused function s to eliminate legacy code. |
src/update.rs | Changed rule loader to return a HashMap for easier lookup. |
src/scan.rs | Replaced event deserialization calls to work with sigmars. |
src/rules.rs | Updated rule loading functions to store rules in a HashMap. |
src/aws_metrics.rs | Switched sigma_rust to sigmars and replaced usage of s in event naming. |
src/aws_detect.rs | Updated rule loading and event processing to use sigmars, with a change in error handling for event time conversion. |
Cargo.toml | Added sigmars dependency and updated the dependency list. |
Comments suppressed due to low confidence (1)
src/aws_detect.rs:148
- [nitpick] Consider renaming 'rule_ids' to 'rules_map' or a similar descriptive name to indicate that it holds a mapping from rule IDs to rules.
let rule_ids = load_rules_from_dir(&options.rules);
Co-authored-by: Copilot <[email protected]>
@YamatoSecurity |
If it seems to be detecting properly, adding multi-threading support should be relatively easy :) |
It seems that simple Correlation is being detected, but due to an issue in my implementation, the results are not showing in the standard output. I will fix it. |
Unfortunately, at this point, the correlation rule is not being detected as expected. I’ll raise a question on the sigmars side. |
Thanks for looking into this! Even if correlations is not working at the moment, if this crate detects the same amount as the current one and more with support for v2 modifiers, then we might as well convert over to using this one and work with the authors of sigmars to later get correlations working. What do you think? |
@YamatoSecurity
|
What Changed
sigma-rust
crate withsigmars
? #52Evidence