Detectionhightest

Code Executed Via Office Add-in XLL File

Adversaries may abuse Microsoft Office add-ins to obtain persistence on a compromised system. Office add-ins can be used to add functionality to Office programs

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2021-12-2836fbec91-fa1b-4d5d-8df1-8d8edcb632adwindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'new-object '
            - '-ComObject '
            - '.application'
            - '.RegisterXLL'
    condition: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-PowerShell

MITRE ATT&CK
Rule Metadata
Rule ID
36fbec91-fa1b-4d5d-8df1-8d8edcb632ad
Status
test
Level
high
Type
Detection
Created
2021-12-28
Path
rules/windows/powershell/powershell_script/posh_ps_office_comobject_registerxll.yml
Raw Tags
attack.persistenceattack.t1137.006
View on GitHub