Sublime Security high experimental mql

beta.DLP: Spain Bank Account

Detects messages containing Spanish bank account numbers.

View Source

Detection Logic

//
// This rule makes use of a beta feature and is subject to change without notice
// using the beta feature in custom rules is not suggested until it has been formally released
//
type.outbound
and (
  any(beta.ml_extract_sensitive_information(body.current_thread.text).elements,
    .type == "es_bank_account" and .confidence in ("medium", "high")
  )
  or any(beta.ml_extract_sensitive_information(subject.subject).elements,
    .type == "es_bank_account" and .confidence in ("medium", "high")
  )
  or any(attachments,
    any(file.explode(.),
      (
        any(beta.ml_extract_sensitive_information(.scan.strings.raw).elements,
          .type == "es_bank_account" and .confidence in ("medium", "high")
        )
        or any(beta.ml_extract_sensitive_information(.scan.ocr.raw).elements,
          .type == "es_bank_account" and .confidence in ("medium", "high")
        )
      )
    )
  )
)

Field Validations

Loading…

Comments (0)

Loading comments...