mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
update
This commit is contained in:
2
.github/workflows/check-audit.yml
vendored
2
.github/workflows/check-audit.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
||||
|
||||
- name: Run WELA.ps1
|
||||
run: |
|
||||
./config/WELA.ps1
|
||||
./WELA.ps1
|
||||
|
||||
- name: Output UsableRules.csv
|
||||
run: |
|
||||
|
||||
@@ -86,21 +86,6 @@ fn parse_yaml(doc: Yaml, eid_subcategory_pair: &Vec<(String, String)>) -> Option
|
||||
"event_ids": event_ids,
|
||||
"subcategory_guids": subcategories
|
||||
}));
|
||||
} else if let Some(tags) = doc["tags"].as_vec() {
|
||||
if !tags.contains(&Yaml::from_str("sysmon")) {
|
||||
extract_event_ids(&doc, &mut event_ids);
|
||||
subcategories.insert("00000000-0000-0000-0000-000000000000".to_string());
|
||||
let event_ids: Vec<String> = event_ids.into_iter().collect();
|
||||
let subcategories: Vec<String> = subcategories.into_iter().collect();
|
||||
return Some(json!({
|
||||
"id": uuid,
|
||||
"title": title,
|
||||
"description": desc,
|
||||
"level": level,
|
||||
"event_ids": event_ids,
|
||||
"subcategory_guids": subcategories
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user