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.
Sublime rule (View on GitHub)
1name: "Attachment: ICS calendar file with suspicious UID domain"
2description: "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."
3type: "rule"
4severity: "medium"
5source: |
6 type.inbound
7 and any(attachments,
8 (
9 .file_type == "ics"
10 or .file_extension == "ics"
11 or .content_type in ("application/ics", "text/calendar")
12 )
13 //
14 // This rule makes use of a beta feature and is subject to change without notice
15 // using the beta feature in custom rules is not suggested until it has been formally released
16 //
17 and any(beta.file.parse_ics(.).events,
18 strings.iends_with(.uid,
19 "@example.com",
20 "mr-calendar-automation",
21 "@calendar.invite"
22 )
23 or regex.imatch(.uid, 'meeting-[0-9]{13}-[0-9]{1,3}@.*')
24 )
25 )
26tags:
27 - "Attack surface reduction"
28attack_types:
29 - "Credential Phishing"
30 - "BEC/Fraud"
31tactics_and_techniques:
32 - "Social engineering"
33 - "ICS Phishing"
34detection_methods:
35 - "File analysis"
36 - "Content analysis"
37id: "cbe06f4f-f041-501b-bfc0-957cd545cd83"