Skip to content

Commit

Permalink
feat: add support for correlation name lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Jun 14, 2024
1 parent efaca57 commit 777b007
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/detections/rule/correlation_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ fn is_related_rule(rule_node: &RuleNode, id_or_title: &str) -> bool {
return true;
}
}
if let Some(title) = hash.get(&Yaml::String("name".to_string())) {
if title.as_str() == Some(id_or_title) {
return true;
}
}
}
false
}
Expand Down

0 comments on commit 777b007

Please sign in to comment.