Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may abuse the Microsoft Office "Office Test" Registry key to obtain persistence on a compromised system.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-17 | ✗→✓ | ▲ Improved | -55% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -42% | 0% |
> Sub-technique of: T1137
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:
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.
Platforms: Windows, Office Suite
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
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
powershell$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"
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Create the Registry key used to execute it and set the permissions to "Read Control" to prevent easy access to the key without administrator permissions or requiring Privilege Escalation.
On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk.
| Finding | Severity | Impact | | -------------------------------- | -------- | ----------- | | Office Test technique applicable | Low | Persistence |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-276 | Incorrect Default Permissions |
Other measured skills in the registry, with their headline benchmark lift.