Detectionmediumtest

Root Certificate Installed - PowerShell

Adversaries may install a root certificate on a compromised system to avoid warnings when connecting to adversary controlled web servers.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
oscd.community, Zach StanfordCreated Sat Oct 10Updated Fri Dec 0242821614-9264-4761-acfc-5772c3286f76windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic2 selectors
detection:
    selection1:
        ScriptBlockText|contains|all:
            - 'Move-Item'
            - 'Cert:\LocalMachine\Root'
    selection2:
        ScriptBlockText|contains|all:
            - 'Import-Certificate'
            - 'Cert:\LocalMachine\Root'
    condition: 1 of selection*
False Positives

Help Desk or IT may need to manually add a corporate Root CA on occasion. Need to test if GPO push doesn't trigger FP

Rule Metadata
Rule ID
42821614-9264-4761-acfc-5772c3286f76
Status
test
Level
medium
Type
Detection
Created
Sat Oct 10
Modified
Fri Dec 02
Path
rules/windows/powershell/powershell_script/posh_ps_root_certificate_installed.yml
Raw Tags
attack.defense-evasionattack.t1553.004
View on GitHub