EXPLORE
← Back to Explore
sublimehighRule

Attachment: HTML smuggling with concatenation obfuscation

Recursively scans files and archives to detect HTML smuggling techniques.

Detection Query

type.inbound
and any(attachments,
        (
          .file_extension in~ ("html", "htm", "shtml", "dhtml")
          or .file_extension in~ $file_extensions_common_archives
          or .file_type == "html"
        )
        and any(file.explode(.),
                any(.scan.strings.strings,
                    strings.ilike(.,
                                  "*CJzYyIuY29uY2F0KCJyaXB0Iik*",
                                  '*"sc".concat("ript")*'
                    )
                )
        )
)

Author

vector_sec

Data Sources

Email MessagesEmail HeadersEmail Attachments

Platforms

email
Raw Content
name: "Attachment: HTML smuggling with concatenation obfuscation"
description: |
  Recursively scans files and archives to detect HTML smuggling techniques.
references:
type: "rule"
severity: "high"
authors:
  - twitter: "vector_sec"
source: |
  type.inbound
  and any(attachments,
          (
            .file_extension in~ ("html", "htm", "shtml", "dhtml")
            or .file_extension in~ $file_extensions_common_archives
            or .file_type == "html"
          )
          and any(file.explode(.),
                  any(.scan.strings.strings,
                      strings.ilike(.,
                                    "*CJzYyIuY29uY2F0KCJyaXB0Iik*",
                                    '*"sc".concat("ript")*'
                      )
                  )
          )
  )
attack_types:
  - "Credential Phishing"
  - "Malware/Ransomware"
tactics_and_techniques:
  - "Evasion"
  - "HTML smuggling"
  - "Scripting"
detection_methods:
  - "Archive analysis"
  - "Content analysis"
  - "File analysis"
  - "HTML analysis"
id: "108ab346-bc11-5f96-916c-678891332ae8"