Sublime Security medium experimental mql

Attachment: ICS calendar file with suspicious UID domain

Detects inbound messages containing ICS calendar attachments whose event UID ends with a known-malicious domain (@example.com) or contains a known bulk-invite automation toolkit identifier (mr-calendar-automation). Because the UID is client-supplied and passed through unmodified by calendar providers, it exposes attacker tooling even on invites relayed by legitimate, authenticated infrastructure.

View Source

Detection Logic

type.inbound
and any(attachments,
        (
          .file_type == "ics"
          or .file_extension == "ics"
          or .content_type in ("application/ics", "text/calendar")
        )
        //
        // 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
        //
        and any(beta.file.parse_ics(.).events,
                strings.iends_with(.uid,
                                   "@example.com",
                                   "mr-calendar-automation",
                                   "@calendar.invite"
                )
                or regex.imatch(.uid, 'meeting-[0-9]{13}-[0-9]{1,3}@.*')
        )
)

Field Validations

Loading…

Comments (0)

Loading comments...