Skip to content

Commit

Permalink
Update callback_phishing_nlu_body_or_attachments.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscode authored Oct 23, 2023
1 parent dee9b81 commit 3279120
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions detection-rules/callback_phishing_nlu_body_or_attachments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ source: |
any(attachments,
(.file_type in $file_types_images or .file_type == "pdf")
and any(file.explode(.),
any(ml.nlu_classifier(.scan.ocr.raw).intents,
.name == "callback_scam" and .confidence == "high"
// exclude images taken with mobile cameras
not any(.scan.exiftool.fields,
.key == "Model" and strings.istarts_with(.value, "Iphone")
)
and any(ml.nlu_classifier(.scan.ocr.raw).intents,
.name == "callback_scam" and .confidence == "high"
)
)
)
Expand Down

0 comments on commit 3279120

Please sign in to comment.