Detection rules › Sigma
Potential Persistence Via Visual Studio Tools for Office
Detects persistence via Visual Studio Tools for Office (VSTO) add-ins in Office applications.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | T1137.006 Office Application Startup: Add-ins |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 13 | RegistryEvent (Value Set) |
Stages and Predicates
Stage 1: selection
or:
TargetObject|contains: '\Software\Microsoft\Office\Excel\Addins\'
TargetObject|contains: '\Software\Microsoft\Office\Outlook\Addins\'
TargetObject|contains: '\Software\Microsoft\Office\Powerpoint\Addins\'
TargetObject|contains: '\Software\Microsoft\Office\Word\Addins\'
TargetObject|contains: '\Software\Microsoft\VSTO\Security\Inclusion\'
Stage 2: not 1 of filter_main_*
or:
or:
Image|endswith: '\Integrator.exe'
Image|endswith: '\Teams.exe'
Image|endswith: '\excel.exe'
Image|endswith: '\outlook.exe'
Image|endswith: '\powerpnt.exe'
Image|endswith: '\visio.exe'
Image|endswith: '\winword.exe'
or:
Image|startswith: 'C:\Program Files (x86)\Microsoft Office\OFFICE'
Image|startswith: 'C:\Program Files (x86)\Microsoft Office\Root\OFFICE'
Image|startswith: 'C:\Program Files\Microsoft Office\OFFICE'
Image|startswith: 'C:\Program Files\Microsoft Office\Root\OFFICE'
or:
Image|startswith: 'C:\Program Files\Common Files (x86)\Microsoft Shared\ClickToRun\'
Image|startswith: 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
Image|endswith: '\OfficeClickToRun.exe'
Image: 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
Image: 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
Image: 'C:\Windows\SysWOW64\msiexec.exe'
Image: 'C:\Windows\SysWOW64\regsvr32.exe'
Image: 'C:\Windows\System32\msiexec.exe'
Image: 'C:\Windows\System32\regsvr32.exe'
Stage 3: not 1 of filter_optional_*
or:
Image: ['C:\Program Files (x86)\AVG\Antivirus\RegSvr.exe', 'C:\Program Files\AVG\Antivirus\RegSvr.exe']
TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\'
Image: ['C:\Program Files (x86)\Avast Software\Avast\RegSvr.exe', 'C:\Program Files\Avast Software\Avast\RegSvr.exe']
TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
Image | ends_with |
|
Image | eq |
|
Image | starts_with |
|
TargetObject | match |
|