Phishing: Spearphishing Attachment T1566.001

Tactic: Initial Access

Adversaries may send spearphishing emails with a malicious attachment in an attempt to gain access to victim systems. Spearphishing attachment is a specific variant of spearphishing. Spearphishing attachment is different from other forms of spearphishing in that it employs the use of malware attached to an email. All forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, adversaries attach a file to the spearphishing email and usually rely upon User Execution to gain execution. Spearphishing may also involve social engineering techniques, such as posing as a trusted source.

Events covered

22 catalog events are tagged with this technique by at least one rule.

ProviderEventTitle
SysmonEvent ID 1Process creation
SysmonEvent ID 7Image loaded
SysmonEvent ID 11FileCreate
SysmonEvent ID 12RegistryEvent (Object create and delete)
SysmonEvent ID 13RegistryEvent (Value Set)
SysmonEvent ID 14RegistryEvent (Key and Value Rename)
SysmonEvent ID 22DNSEvent (DNS query)
Security-AuditingEvent ID 4656A handle to an object was requested.
Security-AuditingEvent ID 4663An attempt was made to access an object.
Security-AuditingEvent ID 4688A new process has been created.
Security-AuditingEvent ID 5379Credential Manager credentials were read.
ESFexecProcess Execution (Notify)
Windows-DefenderEvent ID 1121Microsoft Defender Exploit Guard has blocked an operation that is not allowed by your IT administrator.
Windows-DefenderEvent ID 1122Microsoft Defender Exploit Guard audited an operation that is not allowed by your IT administrator.
Windows-DefenderEvent ID 1125Your IT administrator would have caused Microsoft Defender Exploit Guard to block a potentially dangerous network connection.
Windows-DefenderEvent ID 1126Your IT administrator has caused Microsoft Defender Exploit Guard to block a potentially dangerous network connection.
Windows-DefenderEvent ID 1129A user has allowed a blocked Microsoft Defender Exploit Guard operation.
Windows-DefenderEvent ID 1131ProductName has blocked an operation that your administrator doesn't allow.
Windows-DefenderEvent ID 1132ProductName has audited an operation.
Windows-DefenderEvent ID 1133ProductName has blocked an operation that your administrator doesn't allow.
Windows-DefenderEvent ID 1134ProductName has audited an operation.
Windows-DefenderEvent ID 5007Product Name Configuration has changed.

Authoring guide

Patterns shared across the 94 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (69 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
process_name26eq 18, in 8, wildcard 1excel.exe, eqnedt32.exe, graph.exe, arp.exe, atbroker.exe
parent_process_name21eq 12, in 7, match 2excel.exe, EQNEDT32.exe, Graph.exe, explorer.exe, AcroRd32.exe
Image20ends_with 12, wildcard 4, contains 3, in 1, is_not_null 1, starts_with 1\brave.exe, \certutil.exe, \chrome.exe, \cmd.exe, \cscript.exe
event.type19eq 19, ne 1start, creation, deletion
EventID15eq 10, in 57, 1, 1121, 1122, 1125
TargetFilename12ends_with 8, contains 6, match 3, in 1, wildcard 1.docm, .dotm, .iso, .potm, (?i)((\x5cappdata\x5clocal\x5cmicrosoft\x5cwindows\x5c.*\...
CommandLine11contains 7, match 2, ends_with 1, in 1, ne 1(?i)((\x5cAppData\x5cLocal\x5cMicrosoft\x5cWindows\x5c.*\..., .exe, *.dll*, *http:*, *https:*
OriginalFileName9eq 5, in 4cmd.exe, bitsadmin.exe, certutil.exe, cscript.exe, eqnedt32.exe
ParentImage9ends_with 7, eq 2\winword.exe, ?:\windows\system32\mmc.exe, \cscript.exe, \eqnedt32.exe, \hh.exe
sourcetype9eq 9o365:management:activity, gsuite:gmail:bigquery, gws:reports:drive
file_name7in 3, ends_with 2, match 1, ne 1(?i)\.rdp$, *.cab, *.dll, *.exe, *.img.lnk
Operation6eq 6AlertEntityGenerated, TIMailData, AdminSubmission
file.extension6eq 6appinstaller, application, appx, exe, htm
EventType5eq 4, in 1, starts_with 1start, AlertTriggered, Image loaded, creation, exec
Workload5eq 5SecurityComplianceCenter, ThreatIntelligence

Top indicator values (746 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
15606
process_nameeq
mshta.exe
731
process_nameeq
powershell.exe
7104
process_nameeq
cscript.exe
625
process_nameeq
wscript.exe
629
process_nameeq
cmd.exe
577
parent_process_namein
onenote.exe
67
parent_process_namein
onenotem.exe
66
parent_process_namein
EQNEDT32.exe
55
parent_process_namein
Graph.exe
55
parent_process_namein
excel.exe
512
parent_process_namein
msaccess.exe
55
parent_process_namein
mspub.exe
55
parent_process_namein
onenoteim.exe
55
parent_process_namein
outlook.exe
57
parent_process_namein
powerpnt.exe
511
parent_process_namein
visio.exe
55
parent_process_namein
winproj.exe
55
parent_process_namein
winword.exe
512
process_namein
eqnedt32.exe
56
process_namein
excel.exe
55
process_namein
graph.exe
55
process_namein
msaccess.exe
55
process_namein
mspub.exe
55
process_namein
onenote.exe
55
process_namein
onenoteim.exe
55
process_namein
onenotem.exe
55
process_namein
outlook.exe
55
process_namein
powerpnt.exe
55
process_namein
visio.exe
55

Exclusions (130 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
process.code_signature.trustedeq
true
3
source_domaineq
internal_test_email.com
3
Imagewildcard
?:\windows\system32\notepad.exe
2
process_nameeq
rundll32.exe
2
CommandLinecontains
$cffixed_user_home/.zoterointegrationpipe
1
CommandLinecontains
immersivecontrolpanel
1
CommandLineends_with
-Embedding
1
CommandLinestarts_with
"C:\WINDOWS\system32\mmc.exe" "C:\Windows\System32\gpme.msc" /s /gpobject:"LDAP://
1
CommandLinewildcard
*com.microsoft.Outlook/Data/tmp/Outlook*Temp*
1
DeliveryActioneq
Blocked
1
Imagecontains
\appdata\local\microsoft\onedrive\
1
Imageends_with
\appdata\local\microsoft\teams\current\teams.exe
1
Imageends_with
\cmd.exe
1
Imageends_with
\excel.exe
1
Imageends_with
\filecoauth.exe
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 24 rules

Elastic 27 rules

Splunk 38 rules

Kusto 1 rule

Panther 4 rules