Medium Severity

Attachment: Office Stylesheet Scripting

Labels

No labels.

Description

A document, or zipped document that makes use of XLST stylesheet scripting.

@delivr_to
Created Dec 12th, 2024 • Last updated Dec 12th, 2024
Feed Source
delivr.to Feed
Source
type.inbound
and any(attachments,
    (
        1 of (
            // Office macro files
            .file_extension in~ $file_extensions_macros,
            // explode archives
            .file_extension in~ $file_extensions_common_archives,
            // detect files without an extension
            .file_type in ("7z")
        ) 
        and any(file.explode(.),
            .file_extension == "xml" and 
            any(.scan.strings.strings, strings.icontains(., "ms:script"))
        )
        and any(file.explode(.),
            any(.flavors.yara, . == "vb_file") and 
            any(.scan.strings.strings, strings.ilike(., 
              // https://github.com/decalage2/oletools/issues/851
              "*transformNodeToObject*",
              "*LoadXML*",
              "*transformNode*"
            ))
        )
    )    
)
and (
    not profile.by_sender().solicited
    or (
        profile.by_sender().any_messages_malicious_or_spam
        and not profile.by_sender().any_false_positives
    )
    or sender.email.domain.domain == "delivrto.me"
)
MQL Rule Console
•Docs•Learning Labs

Playground

Test against your own EMLs or sample data.

Share

Post about this on your socials.

Get Started. Today.

Managed or self-managed. No MX changes.

Deploy and integrate a free Sublime instance in minutes.
Get Started