Message Attachments

Attribute groupRule
attachments (collection)Y

attachments (collection)

#

Description

Message Data Model attribute: attachments

Fields #

NameDescription
content_idContent-ID extracted from the MIME payload; is stripped of leading and trailing <> characters
content_typeContent-Type extracted from the MIME payload
file_extensionFile extension from context such as headers
file_nameFile name
file_typeFile type determined by looking at the magic bytes in the file
md5MD5 hash of the raw contents
sha1SHA1 hash of the raw contents
sha256SHA256 hash of the raw contents
sizeSize of the file in bytes

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
type.inboundeqtrue377 rulesmql
profile.by_senderfunc_callprofile.by_sender().any_messages_malicious_or_spam74 rulesmql
profile.by_senderfunc_callprofile.by_sender().prevalence in (new, outlier)17 rulesmql
attachmentslength_compare037 rulesmql
attachmentslength_compare128 rulesmql
attachmentslength_compare313 rulesmql
body.current_thread.textis_null14 rulesmql
body.current_thread.textlength_compare08 rulesmql
body.current_thread.textlength_compare106 rulesmql
profile.by_sender_emailfunc_callprofile.by_sender_email().any_messages_malicious_or_spam14 rulesmql
profile.by_sender_emailfunc_callprofile.by_sender_email().prevalence in (new, outlier)8 rulesmql
type.outboundeqtrue13 rulesmql
filter(attachments, .file_type == 'pdf')length_compare17 rulesmql
filter(attachments, .file_type not in $file_types_images)length_compare07 rulesmql
sender.email.emailcross_field_comparerecipients.to[0].email.email7 rulesmql

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Sublime MQL #

References #