Office Application Startup T1137

Tactic: Persistence

Adversaries may leverage Microsoft Office-based applications for persistence between startups. Microsoft Office is a fairly common application suite on Windows-based operating systems within an enterprise network. There are multiple mechanisms that can be used with Office for persistence when an Office-based application is started; this can include the use of Office Template Macros and add-ins.

Events covered

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

Authoring guide

Patterns shared across the 28 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 (28 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
TargetObject11contains 7, ends_with 4, wildcard 1\software\microsoft\office\, *\software\microsoft\office\*\outlook\today\*, *\software\microsoft\office\*\outlook\webview\*, \excel\options, \microsoft\office\outlook\addins\antivirus.asoutext\
Details8eq 4, contains 2, ends_with 1, starts_with 1, wildcard 10x00000001, DWORD (0x00000001), (Empty), *://*, *:\*
TargetFilename8ends_with 5, contains 3, wildcard 2\microsoft\outlook\vbaproject.otm, .doc, .docm, .docx, .ppam
Image7ends_with 7, starts_with 2, eq 1\outlook.exe, \excel.exe, /bash, /curl, /dash
EventType4in 2, ne 2New-InboxRule, Set-InboxRule, deletion
event.type3ne 2, eq 1deletion, start
registry_value_name3eq 3Level, LoadMacroProviderOnBoot, URL
data_stream.dataset2eq 2o365.audit
event.outcome2eq 2success
registry_path2contains 2\\outlook\\, \\outlook\\security
Esql.inbox_rule_name1regex_match 1[!@#$%^&*()_+={[\]|\\:;"'<,>.?/~` \-]+
ParentImage1contains 1microsoft excel, microsoft onenote, microsoft powerpoint
ProviderName1eq 1MDATP
Provider_Name1eq 1Exchange
ScriptBlockText1contains 1-comobject , .application, .registerxll

Top indicator values (190 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
Imageends_with
\outlook.exe
514
Imageends_with
\excel.exe
218
Imageends_with
\winword.exe
220
Imageends_with
/bash
113
Imageends_with
/curl
122
Imageends_with
/dash
19
Imageends_with
/fish
14
Imageends_with
/osacompile
12
Imageends_with
/osascript
17
Imageends_with
/python
18
Detailscontains
0x00000001
24
Detailseq
0x00000001
263
Detailseq
DWORD (0x00000001)
240
Detailseq
(Empty)
12
Detailseq
DWORD (0x00000000)
138
Detailseq
DWORD (0x00000002)
111
EventTypein
New-InboxRule
23
EventTypein
Set-InboxRule
23
EventTypene
deletion
211
TargetFilenameends_with
\microsoft\outlook\vbaproject.otm
22
TargetObjectcontains
\software\microsoft\office\
24
data_stream.dataseteq
o365.audit
245
event.outcomeeq
success
2251
event.typene
deletion
228
Detailsends_with
.xll
1
Detailsstarts_with
/R
1
Detailswildcard
*://*
1
Detailswildcard
*:\*
1
Detailswildcard
\\*\*
1
Esql.inbox_rule_nameregex_match
[!@#$%^&*()_+={[\]|\\:;"'<,>.?/~` \-]+
1

Exclusions (52 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
Imageends_with
\outlook.exe
3
Imageends_with
\excel.exe
2
Imageends_with
\winword.exe
2
Imageends_with
\integrator.exe
1
Imageends_with
\officeclicktorun.exe
1
Imageends_with
\onenote.exe
1
Imageends_with
\powerpnt.exe
1
Imageends_with
\teams.exe
1
Imageends_with
\visio.exe
1
Imageends_with
\vstoinstaller.exe
1
Detailseq
(Empty)
1
Detailseq
DWORD (0x00000000)
1
Detailseq
DWORD (0x00000001)
1
Imageeq
c:\program files (x86)\avast software\avast\regsvr.exe
1
Imageeq
c:\program files (x86)\avg\antivirus\regsvr.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 16 rules

Elastic 7 rules

Splunk 3 rules

Kusto 1 rule

Panther 1 rule