Skip to content

Commit

Permalink
Update attachment_html_smuggling_unescape.yml
Browse files Browse the repository at this point in the history
Depending on how the HTML is structured javascript identifiers never populates and this is present in strings only. Updating to accommodate.
  • Loading branch information
morriscode authored Sep 22, 2023
1 parent 5683d77 commit ad7a1fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion detection-rules/attachment_html_smuggling_unescape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ source: |
or .file_extension in~ $file_extensions_common_archives
or .file_type == "html"
)
and any(file.explode(.), any(.scan.javascript.identifiers, . == "unescape"))
and any(file.explode(.),
any(.scan.javascript.identifiers, . == "unescape")
or any(.scan.strings.strings, regex.contains(., "document.write.{0,10}unescape"))
)
)
attack_types:
- "Credential Phishing"
Expand Down

0 comments on commit ad7a1fa

Please sign in to comment.