Skip to content

Commit

Permalink
Restoring rule + adding unsolicited (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenmitchell authored Dec 7, 2023
1 parent 5f110d2 commit 4ee2553
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions detection-rules/link_content_credential_phishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,27 @@ type: "rule"
severity: "high"
source: |
type.inbound
and any(attachments,
(
// office files
.file_extension in~ $file_extensions_macros
or .file_extension in~ $file_extensions_common_archives
or (
.file_extension is null
and .file_type == "unknown"
and .content_type == "application/octet-stream"
and .size < 100000
)
)
and (
any(file.explode(.),
(
any(.scan.strings.strings,
strings.ilike(., '*URLDownloadToFile*')
)
and any(.scan.strings.strings, strings.ilike(., '*Auto_Open*'))
)
or any(.scan.strings.strings,
regex.icontains(.,
'C:\\[A-Za-z]{7}\\[A-Za-z]{7}\\[A-Za-z]{7}'
)
)
)
and (
any(ml.nlu_classifier(body.current_thread.text).intents,
.name == "cred_theft" and .confidence in ("medium", "high")
)
// embedded in an image attachment
// note: don't use message_screenshot() for now
// because it's not limited to current_thread and may FP
or any(attachments,
.file_type in $file_types_images
and any(file.explode(.),
any(ml.nlu_classifier(.scan.ocr.raw).intents,
.name == "cred_theft" and .confidence in ("medium", "high")
)
)
)
)
and any(body.links,
beta.linkanalysis(., mode="aggressive").credphish.disposition == "phishing"
and beta.linkanalysis(., mode="aggressive").credphish.confidence in (
"medium",
"high"
)
)
and (
Expand Down

0 comments on commit 4ee2553

Please sign in to comment.