| name | T1137.002_office-test |
| description | Adversaries may abuse the Microsoft Office "Office Test" Registry key to obtain persistence on a compromised system. |
| category | configuration |
| version | 18.1 |
| author | cyberstrike-official |
| tags | ["mitre-attack","enterprise","t1137.002","persistence","windows","office-suite","sub-technique"] |
| technique_id | T1137.002 |
| tactic | persistence |
| all_tactics | ["persistence"] |
| platforms | ["Windows","Office Suite"] |
| mitre_url | https://attack.mitre.org/techniques/T1137/002 |
| tech_stack | ["windows","office"] |
| cwe_ids | ["CWE-276"] |
| chains_with | ["T1137","T1137.001","T1137.003","T1137.004","T1137.005","T1137.006"] |
| prerequisites | ["T1137"] |
| severity_boost | {"T1137":"Chain with T1137 for deeper attack path","T1137.001":"Chain with T1137.001 for deeper attack path","T1137.003":"Chain with T1137.003 for deeper attack path"} |
T1137.002 Office Test
Sub-technique of: T1137
High-Level Description
Adversaries may abuse the Microsoft Office "Office Test" Registry key to obtain persistence on a compromised system. An Office Test Registry location exists that allows a user to specify an arbitrary DLL that will be executed every time an Office application is started. This Registry key is thought to be used by Microsoft to load DLLs for testing and debugging purposes while developing Office applications. This Registry key is not created by default during an Office installation.
There exist user and global Registry keys for the Office Test feature, such as:
HKEY_CURRENT_USER\Software\Microsoft\Office test\Special\Perf
HKEY_LOCAL_MACHINE\Software\Microsoft\Office test\Special\Perf
Adversaries may add this Registry key and specify a malicious DLL that will be executed whenever an Office application, such as Word or Excel, is started.
Kill Chain Phase
Platforms: Windows, Office Suite
What to Check
How to Test
Atomic Red Team Tests
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Atomic Test 1: Office Application Startup Test Persistence (HKCU)
Office Test Registry location exists that allows a user to specify an arbitrary DLL that will be executed every time an Office
application is started. Key is used for debugging purposes. Not created by default & exist in HKCU & HKLM hives.
Supported Platforms: windows
$wdApp = New-Object -COMObject "Word.Application"
if(-not $wdApp.path.contains("Program Files (x86)"))
{
Write-Host "64-bit Office"
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office test\Special\Perf" /t REG_SZ /d "PathToAtomicsFolder\T1137.002\bin\officetest_x64.dll" /f
}
else{
Write-Host "32-bit Office"
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office test\Special\Perf" /t REG_SZ /d "PathToAtomicsFolder\T1137.002\bin\officetest_x86.dll" /f
}
Stop-Process -Name "WinWord"
Start-Process "WinWord"