Attachment with auto-opening VBA macro (unsolicited)

Recursively scans files and archives to detect embedded VBA files with an auto open exec.

Sublime rule (View on GitHub)

 1name: "Attachment with auto-opening VBA macro (unsolicited)"
 2description: |
 3    Recursively scans files and archives to detect embedded VBA files with an auto open exec.
 4references:
 5  - "https://threatpost.com/microsoft-outlook-users-targeted-by-gamaredons-new-vba-macro/156484/"
 6type: "rule"
 7severity: "medium"
 8source: |
 9  type.inbound
10  and any(attachments,
11          (
12            .file_extension in~ $file_extensions_macros
13            or .file_extension in~ $file_extensions_common_archives
14          )
15          and any(file.explode(.), any(.scan.vba.auto_exec, . == "AutoOpen"))
16  )
17  and (
18    (
19      sender.email.domain.root_domain in $free_email_providers
20      and sender.email.email not in $recipient_emails
21    )
22    or (
23      sender.email.domain.root_domain not in $free_email_providers
24      and sender.email.domain.domain not in $recipient_domains
25    )
26  )  
27attack_types:
28  - "Malware/Ransomware"
29tactics_and_techniques:
30  - "Macros"
31detection_methods:
32  - "Archive analysis"
33  - "File analysis"
34  - "Macro analysis"
35  - "Sender analysis"
36id: "d48b3e53-dee4-546b-b81a-0c781929fdfb"
to-top