Detection rules › Sublime MQL

Brand impersonation: DocuSign (QR code)

Severity
high
Type
rule
Source
github.com/sublime-security/sublime-rules

Detects messages using DocuSign image based lures, referencing or including a QR code from an Unsolicited sender. These messages often lead users to phishing sites or initiate unwanted downloads.

Threat classification

Sublime's own taxonomy (not MITRE ATT&CK).

CategoryValues
Attack typesCredential Phishing
Tactics and techniquesImpersonation: Brand, PDF, QR code, Social engineering

Event coverage

Rule body MQL

type.inbound
and any(attachments,
        (.file_type in $file_types_images or .file_type == "pdf")
        and (
          any(ml.logo_detect(.).brands,
              .name == "DocuSign" and .confidence in ("medium", "high")
          )
          or any(ml.logo_detect(file.message_screenshot()).brands,
                 .name == "DocuSign"
          )
        )
        and (
          any(file.explode(.),
              (
                (
                  .scan.qr.type is not null
                  and regex.contains(.scan.qr.data, '\.')
                )
                or 
                // QR code language
                (
                  regex.icontains(.scan.ocr.raw, 'scan|camera')
                  and regex.icontains(.scan.ocr.raw, '\bQR\b|Q\.R\.|barcode')
                )
              )

              // exclude images taken with mobile cameras and screenshots from android
              and not any(.scan.exiftool.fields,
                          .key == "Model"
                          or (
                            .key == "Software"
                            and strings.starts_with(.value, "Android")
                          )
              )
              // exclude images taken with mobile cameras and screenshots from Apple
              and not any(.scan.exiftool.fields,
                          .key == "DeviceManufacturer"
                          and .value == "Apple Computer Inc."
              )
          )
        )
)
and not (
  sender.email.domain.root_domain in ("docusign.net", "docusign.com")
  and headers.auth_summary.dmarc.pass
)

Detection logic

Scope: inbound message.

Detects messages using DocuSign image based lures, referencing or including a QR code from an Unsolicited sender. These messages often lead users to phishing sites or initiate unwanted downloads.

  1. inbound message
  2. any of attachments where all hold:
    • any of:
      • .file_type in $file_types_images
      • .file_type is 'pdf'
    • any of:
      • any of ml.logo_detect(.).brands where all hold:
        • .name is 'DocuSign'
        • .confidence in ('medium', 'high')
      • any of ml.logo_detect(file.message_screenshot()).brands where:
        • .name is 'DocuSign'
    • any of file.explode(.) where all hold:
      • any of:
        • all of:
          • .scan.qr.type is set
          • .scan.qr.data matches '\\.'
        • all of:
          • .scan.ocr.raw matches 'scan|camera'
          • .scan.ocr.raw matches '\\bQR\\b|Q\\.R\\.|barcode'
      • not:
        • any of .scan.exiftool.fields where any holds:
          • .key is 'Model'
          • all of:
            • .key is 'Software'
            • .value starts with 'Android'
      • not:
        • any of .scan.exiftool.fields where all hold:
          • .key is 'DeviceManufacturer'
          • .value is 'Apple Computer Inc.'
  3. not:
    • all of:
      • sender.email.domain.root_domain in ('docusign.net', 'docusign.com')
      • headers.auth_summary.dmarc.pass

Inspects: attachments[].file_type, headers.auth_summary.dmarc.pass, sender.email.domain.root_domain, type.inbound. Sensors: file.explode, file.message_screenshot, ml.logo_detect, regex.contains, regex.icontains, strings.starts_with. Reference lists: $file_types_images.

Indicators matched (15)

FieldMatchValue
attachments[].file_typeequalspdf
ml.logo_detect(attachments[]).brands[].nameequalsDocuSign
ml.logo_detect(attachments[]).brands[].confidencemembermedium
ml.logo_detect(attachments[]).brands[].confidencememberhigh
ml.logo_detect(file.message_screenshot()).brands[].nameequalsDocuSign
regex.containsregex\.
regex.icontainsregexscan|camera
regex.icontainsregex\bQR\b|Q\.R\.|barcode
file.explode(attachments[])[].scan.exiftool.fields[].keyequalsModel
file.explode(attachments[])[].scan.exiftool.fields[].keyequalsSoftware
strings.starts_withprefixAndroid
file.explode(attachments[])[].scan.exiftool.fields[].keyequalsDeviceManufacturer
3 more
file.explode(attachments[])[].scan.exiftool.fields[].valueequalsApple Computer Inc.
sender.email.domain.root_domainmemberdocusign.net
sender.email.domain.root_domainmemberdocusign.com