Skip to content

Commit

Permalink
fixing sophos detections
Browse files Browse the repository at this point in the history
  • Loading branch information
fscc-jamesd committed Jan 7, 2022
1 parent f4b8b0a commit c553d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hunt/modules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ pub fn detect_sophos_detections(
let threat_type;

// Sophos puts the relevant data in a Vec. Here we locate it and extract the key fields
if let Some(threat_data) = ajson::get(&event.to_string(), "Event.EventData.Data.#text") {
if let Some(threat_data) = ajson::get(&event.to_string(), "Event.EventData.Data") {
threat_type = match threat_data.to_vec().get(0) {
Some(a) => a.clone(),
None => return None,
Expand Down

0 comments on commit c553d5e

Please sign in to comment.