Skip to content

Commit

Permalink
Update callback_phishing_nlu_body_or_attachments.yml (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscode authored Nov 5, 2024
1 parent 1bbf1b6 commit f7d3080
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions detection-rules/callback_phishing_nlu_body_or_attachments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@ source: |
and (
any(attachments,
(.file_type in $file_types_images or .file_type == "pdf")
and any(file.explode(.),
and (
any(ml.nlu_classifier(beta.ocr(.).text).intents,
.name == "callback_scam" and .confidence in ("medium", "high")
)
or any(file.explode(.),
// exclude images taken with mobile cameras and screenshots from android
not any(.scan.exiftool.fields,
.key == "Model"
or (
.key == "Software"
and strings.starts_with(.value, "Android")
)
or (.key == "UserComment" and .value == "Screenshot")
)
and any(ml.nlu_classifier(.scan.ocr.raw).intents,
.name == "callback_scam"
and .confidence in ("medium", "high")
)
// exclude images taken with mobile cameras and screenshots from android
not any(.scan.exiftool.fields,
.key == "Model"
or (
.key == "Software"
and strings.starts_with(.value, "Android")
)
or (.key == "UserComment" and .value == "Screenshot")
)
and any(ml.nlu_classifier(.scan.ocr.raw).intents,
.name == "callback_scam"
and .confidence in ("medium", "high")
)
)
)
and (
// negate noreply unless a logo is found in the attachment
Expand Down

0 comments on commit f7d3080

Please sign in to comment.