Skip to content

Commit

Permalink
Fixing FN: attachment_html_recipient_in_javascript_identifiers.yml (#805
Browse files Browse the repository at this point in the history
)
  • Loading branch information
morriscode authored Sep 22, 2023
1 parent 5908497 commit 5683d77
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,29 @@ source: |
type.inbound
and any(attachments,
(
.file_extension in~ ("html", "htm", "shtml", "dhtml")
.file_extension in~ ("html", "htm", "shtml", "dhtml", "xhtml")
or (
.file_extension is null
and .file_type == "unknown"
and .content_type == "application/octet-stream"
and .size < 100000000
)
or .file_extension in~ $file_extensions_common_archives
or .file_type == "html"
or .content_type == "text/html"
)
and any(file.explode(.),
// suspicious identifiers
any(.scan.javascript.identifiers, strings.like(., "atob", "decrypt"))
// Recipients address found in javascript
and any(recipients.to,
any(..scan.javascript.strings, strings.icontains(., ..email.email))
any([.scan.strings.strings, .scan.javascript.identifiers],
any(., strings.like(., "*atob*", "*decrypt*"))
)
)
)
// Recipients address found in javascript
and any(file.explode(.),
any(recipients.to,
any(..scan.javascript.strings, strings.icontains(., ..email.email))
)
)
)
attack_types:
- "Credential Phishing"
tactics_and_techniques:
Expand Down

0 comments on commit 5683d77

Please sign in to comment.